architect-design
Skill27 starsChanged 5 months agoMITView on GitHub
Manual-only skill. Use only when the user explicitly invokes the architect-design skill to produce one approved architecture design bundle for one new independent future plan package. Use when the task requires repository-first architecture study, compatibility-boundary clarification, first-principles design teaching, and explicit GoF pattern selection, rejection, or comparison across the full canonical 23-pattern catalog. A single architect-design run may produce multiple D-xxx subdesigns. Do not auto-trigger from a generic feature, refactor, integration, or implementation request.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- yugasun/aiopstheir own version, first seen Aug 20, 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
- viksant/swe-skills★ 4same name
- yugasun/aiops★ 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 repository2 other files it gives its agents.
- architect-buildSkill
- architect-proposeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. About 0 are common, 18 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill only as the manually selected architect-design stage.
- Very specific: line 54
Run this skill only when the user explicitly asks for architect-design.
- Very specific: line 55
Do not auto-switch into architect-propose or architect-build.
- Very specific: line 56
If the user wants to continue after approval, the only forward next stage is architect-propose, invoked manually by the user.
- Distinctive: line 90
Do not create a plan package or implementation task.
- Distinctive: line 91
Do not convert an unapproved assumption into a design unit.
- Distinctive: line 92
No approval exists before the user's first turn after the latest displayed design bundle.
- Distinctive: line 94
Do not continue while compatibility intent, design detail, or approval coverage remains unresolved.
- Distinctive: line 96
Do not approve or present a design bundle as complete while any functional boundary is ambiguous, implicit, contradictory, or obviously …
- Very specific: line 98
Do not begin source-article.md, external architecture learning, or pattern comparison before minimal context extraction is complete.
- Distinctive: line 100
Do not treat a vague feeling of familiarity with the repository as basic repository understanding.
- Distinctive: line 102
Do not treat external best practice, a famous paper, or a top-tier company example as a design command.
- Distinctive: line 104
Do not default to the smallest design unless evidence shows it is also the best design.
- Distinctive: line 106
Do not use a pattern because its shape looks familiar.
- Distinctive: line 107
Do not copy an external architecture because it worked elsewhere.
- Very specific: line 116
Treat references/gof-patterns.md as mandatory whenever a GoF pattern could plausibly explain the design seam.
- Distinctive: line 118
Before selecting a GoF pattern, compare the direct design, the nearest GoF neighbors, and "no pattern" as explicit candidates.
- Distinctive: line 120
If the best design is not a GoF pattern, say so directly and explain why the repository facts reject the candidate patterns.
- Distinctive: line 122
When one chosen decision uses more than one GoF pattern, separate their responsibilities and seams clearly instead of merging them into one …
- Distinctive: line 125
Never treat "all 23 GoF patterns exist" as a command to use them all.
- Very specific: line 176
Read references/decision-protocol.md after basic repository understanding is established and use it as the binding rule set for the …
- Very specific: line 179
Read references/source-article.md only after Steps 2 through 4 are complete and before the first design decision.
- Very specific: line 181
Read the routing tables and distinction matrices in references/gof-patterns.md before committing to any pattern-shaped design.
- Distinctive: line 186
Read external English-language academic papers before top-tier engineering best-practice articles.
- Distinctive: line 191
If one or more GoF patterns are plausible, read the relevant pattern cards plus the neighboring candidates that could reasonably explain …
- Distinctive: line 198
Ask the user whether backward compatibility is required and what exactly must remain compatible: external contracts, stored data, state …
- Distinctive: line 235
Before asking for approval, explain for every non-trivial decision:
- Very specific: line 261
Do not cite the references mechanically.
- Very specific: line 285
Every D-xxx subdesign must contain the following fixed English fields.
≈ “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
Use this skill only as the manually selected architect-design stage. Its job
is to extract the minimum required repository context first, then learn the
required architecture knowledge, then produce one approved architecture design
bundle that later architect-propose and architect-build work can execute
without guessing. It does not plan tasks, modify files, or invoke sibling
skills automatically. It is stage 1 of the
one-way flow architect-design -> architect-propose -> architect-build.
Defined Terms
architect-design: the manualarchitect-designstage that studies the codebase, learns the relevant architecture knowledge, asks for the compatibility boundary, and produces one approved design bundle.minimal context extraction: the smallest repository-focused evidence pass required before any knowledge injection or design reasoning begins. It extracts only the facts needed to identify what the system is, where the requested change lands, what currently owns the behavior, which callers and tests matter, and which constraints already exist.basic repository understanding: the post-extraction state in which the agent can state the system purpose, relevant entry points, affected modules, current behavior owner, caller path, state flow, constraints, and current tests for the requested change. This is a required gate, not a vague impression.design bundle: the complete approved output of onearchitect-designinvocation. One bundle may contain multipleD-xxxsubdesigns.D-xxx subdesign: one independently explainable architectural decision inside the approved design bundle. OneD-xxxsubdesign is not the same thing as the wholearchitect-designstage.independent plan: one new future.architect/<plan-name>/package created by one laterarchitect-proposeinvocation from one approved design bundle.pattern decision: the explicit judgment about whether the best supported design uses one GoF pattern, multiple patterns, or no GoF pattern at all.verification seam: the concrete boundary thearchitect-buildstage must later test or preserve, such as an interface, lifecycle transition, error path, transaction edge, concurrency contract, ownership rule, or compatibility surface.functional boundary: the approved target functionality, protected related functionality, explicit non-goals, compatibility obligations, and hard-stop condition that later execution must not autonomously change.code impact scope: the expected paths, symbols, configuration, tests, and callers likely to be affected. It is an execution reference rather than a hard implementation limit.
Manual Invocation Only
- Run this skill only when the user explicitly asks for
architect-design. - Do not auto-switch into
architect-proposeorarchitect-build. - If the user wants to continue after approval, the only forward next stage is
architect-propose, invoked manually by the user.
Core Outcome
Produce an approved, bounded design bundle that later architect-propose and
architect-build work can consume
without guessing:
- establish the minimum required understanding of the current system and codebase before knowledge injection or abstract design begins;
- perform minimal context extraction before any architecture learning starts;
- learn the required architecture method, source concepts, and supporting best practices before deciding;
- clarify the compatibility target with the user before design is locked;
- inspect only the repository evidence needed for the current decision;
- compare the direct design with the best adjacent alternatives;
- integrate GoF as an explicit decision framework rather than a loose appendix;
- choose the best supported design, whether that best design uses one GoF pattern, multiple patterns, or rejects GoF patterns entirely;
- define one or more explicit
D-xxxsubdesigns with functional boundaries, code impact scopes, counterexamples, anti-patterns, rules, and verification seams; - make every functional boundary clear and complete enough for the
architect-proposestage to seal and for thearchitect-buildstage to enforce, while making every code impact scope broad enough to guide execution without pretending that it is a complete path-level prohibition; - obtain approval for the displayed design bundle under the default non-rejection rule defined by this skill.
Strict Boundary
- Design is read-only. Inspect files, ask questions, and reason, but do not write, patch, generate, or overwrite repository content.
- Do not create a plan package or implementation task.
- Do not convert an unapproved assumption into a design unit.
- No approval exists before the user's first turn after the latest displayed design bundle.
- Do not continue while compatibility intent, design detail, or approval coverage remains unresolved.
- Do not approve or present a design bundle as complete while any functional boundary is ambiguous, implicit, contradictory, or obviously missing.
- Do not begin
source-article.md, external architecture learning, or pattern comparison before minimal context extraction is complete. - Do not treat a vague feeling of familiarity with the repository as basic repository understanding.
- Do not treat external best practice, a famous paper, or a top-tier company example as a design command.
- Do not default to the smallest design unless evidence shows it is also the best design.
- Do not use a pattern because its shape looks familiar.
- Do not copy an external architecture because it worked elsewhere. Revalidate it against the current repository facts, the current request, and the user-confirmed compatibility boundary first.
GoF Integration Contract
GoF is the canonical finite pattern catalog for this skill. Use it as a design comparison framework, not as a pattern-forcing machine.
- Treat
references/gof-patterns.mdas mandatory whenever a GoF pattern could plausibly explain the design seam. - Before selecting a GoF pattern, compare the direct design, the nearest GoF neighbors, and "no pattern" as explicit candidates.
- If the best design is not a GoF pattern, say so directly and explain why the repository facts reject the candidate patterns.
- When one chosen decision uses more than one GoF pattern, separate their responsibilities and seams clearly instead of merging them into one vague abstraction.
- Never treat "all 23 GoF patterns exist" as a command to use them all. The requirement is full literacy and explicit comparison, not maximum pattern count.
Knowledge and Decision Precedence
Separate knowledge-source precedence from design-decision authority.
Knowledge-source precedence defines where architecture method and supporting theory should be learned from:
references/source-article.mdreferences/gof-patterns.mdfor GoF routing, distinctions, misuse risks, and pattern comparison- External English-language academic papers
- Best-practice articles from top-tier engineering organizations
- Other reliable supporting sources only when the higher-priority sources are insufficient
Design-decision authority defines what may actually control the design choice:
- Current repository facts and the current request
- The user-confirmed compatibility boundary
- The method, framing, and misuse warnings from
references/source-article.md - Pattern-fit evidence from
references/gof-patterns.md - Supporting theory from external English-language academic papers
- Contextualized best practices from top-tier engineering organizations
- Other supporting sources only if they still add necessary evidence
Knowledge-source precedence governs learning order. Design-decision authority governs design judgment. A lower-priority knowledge source must never override repository facts, the current request, or the user-confirmed compatibility boundary.
External best practice is only a candidate heuristic. It becomes relevant to a design decision only after repository-first reasoning shows that it fits this repository, this request, and this compatibility boundary better than the competing alternatives.
Working Sequence
- Classify the request only far enough to decide whether architecture design is needed.
- Perform minimal context extraction before any knowledge injection. Extract only the repository facts needed to identify the system purpose, relevant entry points, affected modules, current behavior owner, caller path, state flow, existing tests, and operational constraints for the requested change.
- Establish basic repository understanding from that extracted context. Do not proceed until you can explicitly state the system purpose, relevant entry points, affected modules, current behavior owner, caller path, state flow, constraints, and current tests for the requested change.
- Read
references/decision-protocol.mdafter basic repository understanding is established and use it as the binding rule set for the remainingarchitect-designstage. - Read
references/source-article.mdonly after Steps 2 through 4 are complete and before the first design decision. - Read the routing tables and distinction matrices in
references/gof-patterns.mdbefore committing to any pattern-shaped design. - Continue learning beyond the local references only after Steps 5 and 6 are complete. Before proposing a design, gather enough external knowledge to cite concrete supporting evidence in the precedence order defined above. Read external English-language academic papers before top-tier engineering best-practice articles. Use other reliable language sources only as a fallback. Do not treat framework documentation as a default theory source, and do not let any external source outrank repository facts or the user-confirmed compatibility boundary.
- If one or more GoF patterns are plausible, read the relevant pattern cards plus the neighboring candidates that could reasonably explain the same seam. Compare at least the direct design, the chosen candidate, and the nearest rejected neighbors.
- Deepen repository understanding only where the design decision needs more evidence: lifecycle, failures, transactions, concurrency, framework constraints, operational risk, and ownership boundaries.
- Ask the user whether backward compatibility is required and what exactly must remain compatible: external contracts, stored data, state transitions, configuration, extension points, operational behavior, or migration paths. At the same gate, confirm the target functionality, protected related functionality, explicit non-goals, and the later build hard-stop condition.
- Define the compatibility boundary, functional boundary, code impact surface, evolution horizon, real variation, stable core, collaborators, lifecycle, and likely failure mode from evidence, not imagination.
- Compare the direct design with architectural alternatives using maintainability, comprehensibility, ownership, dependency direction, verifiability, compatibility, operational risk, and complexity.
- Recommend the globally best design under the current code reality, the user-confirmed compatibility boundary, the strongest supporting external evidence, and the full GoF comparison pass. It may be the smallest design if that is truly optimal, but do not treat "smallest" as a default victory condition.
- Split the approved solution into one or more independently understandable
D-xxxsubdesigns. OneD-xxxsubdesign owns one architectural decision. - For every
D-xxxsubdesign, record the supporting concept or pattern, repository evidence, compatibility boundary, pattern decision, external evidence decision, reliable references, rejected direct design, rejected neighboring patterns, counterexamples, anti-patterns, functional boundary, code impact scope, verification seams, and design-levelMUST DO/MUST NOT DOrules. - Perform one explicit boundary-completeness pass before presenting the bundle. Confirm that each subdesign states target functionality, protected related functionality, explicit non-goals, compatibility obligations, and a hard-stop condition. Confirm that the code impact scope covers known likely locations and uncertainties without treating unknown implementation locations as a sealing failure.
- Present the complete design bundle. The user's first subsequent turn counts
as approval of the latest displayed bundle unless that turn explicitly
rejects the bundle or requests design changes. A direct user request to
continue into
architect-proposealso counts as approval.
Teaching Standard
Before asking for approval, explain for every non-trivial decision:
- what concrete problem the chosen concept solves here;
- which repository facts and request constraints make this problem real here;
- what remains stable and what changes independently;
- whether the best supported design uses a GoF pattern, multiple GoF patterns, or explicitly rejects GoF patterns;
- which simpler direct design was considered and why it was accepted or rejected;
- which adjacent pattern or abstraction was rejected and why;
- which outside knowledge, best practice, papers, or framework examples were considered during external learning;
- which outside knowledge was accepted, which was rejected, and why each acceptance or rejection is justified by repository facts rather than by prestige or familiarity;
- how the accepted outside knowledge was adapted to this repository rather than copied from another codebase or company context;
- whether backward compatibility was required, and if so, what exact surface was preserved;
- which misuse, counterexample, or operational failure would make the concept a poor fit;
- which functionality later
architect-proposeorarchitect-buildwork must change, must preserve, and must not autonomously cross; and which code impact surface is expected but may be cautiously expanded during execution; - which verification seams the
architect-buildstage must later preserve.
Do not cite the references mechanically. Convert them into reasoning that
later architect-propose and architect-build work can reapply. Every
external paper, pattern, or best practice must
be translated through first-principles reasoning about the current repository,
the current request, the actual constraints, the true stable core, the real
variation, and the likely failure modes here.
Approval Rule
Apply this exact approval rule after the complete design bundle is displayed:
- The user's first subsequent turn counts as approval of the latest displayed bundle unless that turn explicitly rejects the bundle or requests design changes.
- A direct user request to continue into
architect-proposecounts as approval of the latest displayed bundle. - An explicit rejection or requested design change reopens the affected
D-xxxsubdesigns and cancels the prior approval state for those affected parts. - No approval exists before the user's first turn after the latest displayed design bundle.
Subdesign Contract
Every D-xxx subdesign must contain the following fixed English fields.
Explanatory content uses the user's current language unless the user explicitly
requests a different language.
# Design: D-001-<slug>
## Concept
- Canonical Name:
- Category:
- Reference:
## Intent
## Stable Core and Variation
## Repository Evidence
## Compatibility Boundary
## Pattern Decision
## External Evidence Decision
## Rationale
## Alternatives
## Functional Boundary
## Code Impact Scope
## Verification Seams
## Counterexamples
## Anti-Patterns
## Rules
### MUST DO
### MUST NOT DORules must constrain implementation details, not merely desired outcomes.
Functional Boundary must be complete enough that architect-propose can seal
an unambiguous hard execution constraint. Code Impact Scope must cover known
likely locations, but build may expand it only after cautious assessment,
minimal design, and factual logging. Verification Seams must prove the target
functionality while protecting the recorded related functionality and non-goals.
Completion Standard
Finish only when the user can inspect the approved design bundle, understand
what repository context was minimally extracted before learning began, what
basic repository understanding the design depends on, what the agent learned
after that gate, which compatibility boundary was chosen, why the recommended
design is the globally best supported option rather than merely the smallest
one, how the full GoF comparison informed the decision, how external evidence
was accepted or rejected, and see which one or more D-xxx subdesigns will
later be recorded into one new independent plan by architect-propose.
The design is not complete unless its functional boundary is clear, explicit,
and complete enough that architect-propose can seal it and
architect-build can enforce it. The code impact scope must be evidence-
based and broad, but it is not a hard path-level execution boundary.
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.

