architect-design
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Structured design process for the architect agent. Guides from grill conclusions to complete NOTES.md + tech-spec.md plus needed domain documentation updates through constraint gathering, module identification, interface design, alternative exploration, and risk analysis. Use when the architect needs to produce design decisions and technical specifications.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- vortezwohl/Architecttheir own version, first seen Jul 16, 2026
- viksant/swe-skillstheir own version, first seen Jul 15, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- vortezwohl/Architect★ 27same name
- viksant/swe-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/lean.mdcCursor rule
- aiops-implementSkill
- aiops-setupSkill
- aiopsSkill
- code-graphSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- exploreSkill
- file-refactorSkill
- gitopsSkill
- grillingSkill
- grill-with-docsSkill
- handoffSkill
- improve-codebase-architectureSkill
- leanSkill
- prototypeSkill
- pruneSkill
- reviewSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- ui-mockupSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use design-vocabulary.md throughout — module, interface, depth, seam, deletion test, leverage, locality.
- Very specific: line 40
If graphify-out/graph.json exists, validate constraints against the actual code structure:
- Distinctive: line 79
Return results over side effects: prefer pure outputs when possible
- Very specific: line 102
Before finalizing the design artifacts, run a short /domain-modeling pass:
- Very specific: line 105
Add only project-specific domain language to CONTEXT.md.
- Distinctive: line 106
Check each design decision against the ADR threshold: hard to reverse, surprising without context, and a real trade-off with alternatives.
- Very specific: line 107
Create docs/adr/NNNN-slug.md only for decisions that meet all three criteria.
- Distinctive: line 132
Do not write implementation code (interface signatures and pseudocode only)
- Distinctive: line 133
Every design decision must list at least one rejected alternative with reason
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architect Design
Structured design process: from grill/domain-modeling conclusions to complete NOTES.md + tech-spec.md + any needed domain documentation updates.
Vocabulary
Use design-vocabulary.md throughout — module, interface, depth, seam, deletion test, leverage, locality. Do not drift into "component," "service," "API," or "boundary."
Inputs
- Grill conclusions (assumptions exposed, constraints identified)
CONTEXT.mddomain glossary (from/aiops-setup)docs/adr/existing architecture decision records.scratch/<feature>/VERDICT.md(if prototyper ran)graphify-out/graph.json(if/code-graphhas been run — query via/code-graph query god-nodes,/code-graph query communitiesfor overview)
Process
Step 1: Constraint gathering
Extract constraints from all inputs. Classify:
- Hard constraints: cannot be violated (existing ADRs, platform limits, team capacity, compliance)
- Soft constraints: preferences that can be traded off (performance targets, code style, library preferences)
List constraints explicitly in NOTES.md Context section. Reference ADRs by number — do not re-litigate settled decisions unless friction is real enough to warrant revisiting (mark clearly).
Step 1.5: Graph validation (if code graph available)
If graphify-out/graph.json exists, validate constraints against the actual code structure:
- Query
/code-graph query modulesto get the current module inventory - For each constraint referencing existing modules, verify the module exists and matches the constraint's assumptions
- Query
/code-graph query deps <module>to check dependency claims - Flag any constraint that contradicts the graph (e.g., "Module A doesn't depend on Module B" but the graph shows it does)
Record graph-validated constraints in NOTES.md with [graph-verified] tags.
Step 2: Module identification
Identify the modules needed to satisfy the requirements. For each candidate module:
- Deletion test: imagine deleting it. Does complexity vanish (pass-through → merge into caller)? Or does complexity reappear across N callers (earning its keep → keep it)?
- Depth assessment: is the interface small relative to the behaviour it hides? Deep = high leverage for callers. Shallow = interface nearly as complex as implementation → merge or split.
- Scope check: does the module own a coherent slice of the problem, or is it a grab-bag?
Label each module as new (greenfield) or deepening (refactoring existing shallow modules into one deep one).
Step 3: Dependency mapping
For each module, map its dependencies and decide the integration strategy:
| Dependency type | Examples | Integration |
| In-process | Pure computation, in-memory state | Merge directly into module, no seam needed |
| Local-substitutable | PGlite for Postgres, in-memory FS | Test with stand-in; seam stays internal |
| Remote but owned | Internal microservices, internal APIs | Define interface at seam; production transport + in-memory test double |
| True external | Stripe, Twilio, third-party | Inject behind interface; mock for tests |
Rule: don't introduce a seam unless at least two implementations are justified (typically production + test). A single-implementation seam is just indirection.
Step 4: Interface design
For each module, design the interface:
- Minimize entry points: fewer methods = fewer tests needed = higher leverage per method
- Simplify parameters: what can the interface hide from callers?
- Accept dependencies, don't create them: inject what the module needs, don't hardcode it
- Return results over side effects: prefer pure outputs when possible
- Document everything a caller must know: invariants, ordering, error modes, configuration, performance
The interface is the test surface — callers and tests cross the same seam.
Step 5: Explore alternatives
For the most critical module (highest risk, most callers, or deepest impact), design ≥2 radically different interfaces:
- Design A: minimize interface — 1–3 entry points, maximum leverage per entry point
- Design B: maximize flexibility — support many use cases and extension points
- Design C (if applicable): optimize for the most common caller — default case trivial
Compare: which design gives callers the most capability per unit of interface they learn? Where does change concentrate? Where are the seams?
Pick the strongest, or propose a hybrid. Record in NOTES.md:
- Chosen approach
- Rationale: why this one
- Rejected alternatives: at least one, with reason for rejection
- Constraints imposed: what this decision locks in
Step 6: Domain documentation pass
Before finalizing the design artifacts, run a short /domain-modeling pass:
- Extract new or changed domain terms from the design.
- Add only project-specific domain language to
CONTEXT.md; skip general engineering terms. - Check each design decision against the ADR threshold: hard to reverse, surprising without context, and a real trade-off with alternatives.
- Create
docs/adr/NNNN-slug.mdonly for decisions that meet all three criteria; otherwise skip the ADR. - Record the outcome in
NOTES.mdso downstream agents know whether domain docs were changed or intentionally left alone.
Step 7: Specification output
Produce the primary design artifacts:
NOTES.md — design decisions, trade-off analysis, constraints:
- Problem statement (one sentence)
- Context (existing system, known constraints, relevant ADRs)
- Design decisions (chosen + rejected + rationale + constraints imposed)
- Domain docs (CONTEXT.md updates, ADRs created, ADRs skipped with brief reason)
- Scope (in scope / out of scope)
- Open questions (blocking items must be resolved before planner)
tech-spec.md — technical specification:
- Architecture (module relationship description)
- Module inventory (each module: interface, depth assessment, dependencies, integration strategy)
- Data model (entities, fields, types)
- API contracts (method + path + request/response for each interface)
- Sequence (step-by-step interaction between modules)
- Risks (risk + impact + mitigation)
Constraints
- Do not write implementation code (interface signatures and pseudocode only)
- Every design decision must list at least one rejected alternative with reason
- Name modules using
CONTEXT.mddomain terms; if introducing a new term, add it toCONTEXT.md - ADRs stay optional: write one only when the
/domain-modelingADR threshold is met - Existing ADRs are not re-litigated unless friction warrants it (mark explicitly)
- Open questions with blocking items must be flagged — planner cannot start until resolved
- Label each module as new or deepening existing modules
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

