All skills
cursor avatar

/architect

@12d587d
by cursorcursor/plugins9.1k stars
857

Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.

Use this Skill: https://skilld.dev/gh/cursor/plugins/architect

This session only. Nothing lands on disk.

referencesrunner-prompt.md

≈772 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Architect runner prompt

The orchestrator passes this file through to every parallel candidate runner during Phase B and fills in the variable inputs around it: the task, the Phase A grounding artifacts, the isolated working directory, and the path to write outputs. The working directory is a git worktree when available, otherwise a per-runner subdirectory under the sketch dir. What matters is independence between candidates.

You are producing one candidate design in architect's parallel exploration. Read the architect skill in full first. That's the workflow you're inside. Output a candidate design package: type sketch, function signatures, module map, and prose rationale shaped per rationale-template.md.

Apply the following discipline. The orchestrator compares candidates on these axes to pick a base.

  • Caller's usage first. Write the README-style usage and two or three real call sites before the types, then derive the type sketch from them. The usage is the spec. The two must agree, so reconcile the sketch to the usage, not the reverse.
  • Data structures first. Get the core types right and the code becomes obvious. Trace each dominant access pattern through the proposed structure. If the answer is "we'll add a map / index / cache later," the structure is wrong.
  • Interface depth. Compare the capability hidden behind the public surface relative to the size of that surface. Prefer a simple interface that pulls complexity into the callee, even when the implementation becomes less simple. Do not put transport or wire types on the public API. Parse into domain types behind the interface.
  • Shared state: if two actors might both write, ask "what happens?" If the answer isn't "nothing," default to per-actor state with a merge at the read boundary, per the separate-before-serializing-shared-state principle skill.
  • Make boundaries visible. not implemented errors for bodies, // TODO pseudocode for tricky logic, doc comments stating intent and invariants. A reader should trace data from input to output by reading types and signatures alone.
  • Encode invariants in types: hard-to-misuse types > runtime checks > prose comments, per the encode-lessons-in-structure principle skill.
  • Validate at boundaries, trust types inside, per the boundary-discipline principle skill. Business logic as pure functions. The shell stays thin.
  • Single source of truth per invariant. Derive instead of sync.
  • Idempotent state transitions where applicable, per the make-operations-idempotent principle skill. Ask what happens if the operation runs twice or crashes halfway.
  • Short call chains. If tracing the flow needs more than three files, flatten the hierarchy, per the laziness-protocol and minimize-reader-load principle skills.

You are one of several runners, each on a different model. Produce the best design your model can make. Don't hedge against the others. Differences between candidates are the signal used to pick a base and graft. Converging on a safe-looking middle defeats the exploration.

Source: SKILL.md on GitHub

No alerts7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill implements a structured architectural design workflow involving mental modeling, sketching, and implementation. A minor security risk exists regarding indirect prompt injection where malicious instructions embedded in existing source code could influence the agent's design decisions during the grounding phase.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

Signed by skilld at 12d587d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
disable-model-invocation
true

README badge

README badge for cursor/plugins/architect