architecture-decisions
Skill5 starsChanged 19 days agoMITView on GitHub
Use before building anything that changes how parts of the system fit together, and whenever a decision is hard to reverse. Reads the architecture overview and ADRs first, checks a plan or pull request against them, writes MADR 4 ADRs, keeps the C4 diagrams and overview in sync, and optionally draws interactive diagrams with Archify.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- mikejhill/agent-skillstheir own version, first seen Nov 29, 2026
- drvoss/everything-copilot-clitheir own version, first seen Oct 26, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- jwilger/agent-skillstheir own version, first seen Oct 11, 2026
- caiaffa/claude-code-ultimate-engineering-systemtheir own version, first seen Sep 14, 2026
- lzx-Bill/Project-Factory-Coretheir own version, first seen Jul 15, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- drvoss/everything-copilot-cli★ 49same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- caiaffa/claude-code-ultimate-engineering-system★ 17same name
- jwilger/agent-skills★ 4same name
- lzx-Bill/Project-Factory-Core★ 0same name
- mikejhill/agent-skills★ 0same name
- terrene-foundation/pact★ 0same 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 repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- dora-metricsSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- observabilitySkill
- prototypeSkill
- prSkill
- rename-productSkill
- researchSkill
- retroSkill
- security-auditSkill
- setup-integrationsSkill
- setup-matt-pocock-skillsSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- update-dependenciesSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Write one only when all three are true (rule from domain-modeling):
- Distinctive: line 32
Always write one for: a database, message bus, auth or identity provider, hosting or deployment target, a new app or service, a new …
- Distinctive: line 34
Do not write one for: bug fixes, routine upgrades, a new screen that follows the platform checklist, configuration changes.
- Distinctive: line 41
Decision Drivers: prefer the quality goals in section 1 of the overview (consistency, changeability, testability, security).
- Distinctive: line 45
Keep it short: one screen is typical.
- Very specific: line 47
When the pull request merges: set status: accepted, add the row to docs/adr/README.md.
- Very specific: line 55
Update the affected arc42 section of docs/architecture/README.md: building blocks, runtime, environments, cross-cutting concepts, risks.
- Distinctive: line 56
Update the C4 diagram that changed: context (level 1) for a new user type or outside system, containers (level 2) for a new app, service or …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture decisions
This repo documents architecture three ways. Keep them consistent with each other and with the code:
| What | Where | Format |
| The big picture | docs/architecture/README.md | arc42 sections with C4 diagrams in Mermaid |
| Why it is that way | docs/adr/NNNN-*.md, indexed in docs/adr/README.md | MADR 4 (docs/adr/template.md) |
| Domain language | GLOSSARY.md | domain-modeling skill |
1. Before you plan or build: read
docs/architecture/README.md: at least the sections for the parts you will touch.docs/adr/README.md, then every accepted ADR in that area.GLOSSARY.mdif it exists.
Then state, in the plan, spec or ticket: "Fits ADR-NNNN" for each relevant decision, or "Conflicts with ADR-NNNN because…". Never silently work around an accepted ADR.
2. Decide whether a new ADR is needed
Write one only when all three are true (rule from domain-modeling):
- Hard to reverse
- Surprising without context
- The result of a real trade-off
Always write one for: a database, message bus, auth or identity provider, hosting or deployment target, a new app or service, a new integration pattern between apps and backend, a new cross-cutting library (DI, networking, state), or a deliberate deviation from an existing ADR.
Do not write one for: bug fixes, routine upgrades, a new screen that follows the platform checklist, configuration changes.
3. Write the ADR
- Copy
docs/adr/template.mdtodocs/adr/NNNN-short-title.md(next free number, lowercase, hyphens). - Front matter:
status: proposed, today's date,decision-makers. - Context and Problem Statement: 2-4 sentences; link the spec issue.
- Decision Drivers: prefer the quality goals in section 1 of the overview (consistency, changeability, testability, security).
- Considered Options: at least two real options. "Do nothing" counts if it was a real option.
- Decision Outcome: "Chosen option: …, because …". List good and bad consequences honestly.
- Confirmation: name the CI check, test or lint rule that enforces it. If none exists yet, add a ticket for one.
- Keep it short: one screen is typical. Use plain English.
When the pull request merges: set status: accepted, add the row to docs/adr/README.md.
To change a decision: write a new ADR, and set the old one's status to superseded by ADR-NNNN. Never rewrite the decision of an accepted ADR; fixing typos and links is fine.
4. Keep the overview and diagrams in sync
In the same pull request as the architecture change:
- Update the affected arc42 section of
docs/architecture/README.md: building blocks, runtime, environments, cross-cutting concepts, risks. - Update the C4 diagram that changed: context (level 1) for a new user type or outside system, containers (level 2) for a new app, service or data store, the layer diagram for a new layer.
- Link the new ADR from section 4 (Solution strategy) if it is a strategy-level decision.
- Mermaid only, using the classes already defined in the diagrams (palette from
design/tokens.json). Check it renders (npx -y @mermaid-js/mermaid-cli -i file.mmd -o out.svgor the GitHub preview).
5. Review checklist (used by code-review)
- The change respects every accepted ADR in its area, or includes a new ADR that supersedes it.
- A decision that meets the three criteria has an ADR with status, date, options and Confirmation.
docs/architecture/README.mdand its diagrams still match the code.docs/adr/README.mdlists the new ADR.- Names match
GLOSSARY.mdand the platform skills (the same names on iOS, Android and web).
6. Interactive diagrams (optional): Archify
For a shareable, interactive view (zoom, click-through, sequence animation, export to PNG or SVG), use Archify by tt-a1i (Apache 2.0). It is not stored in this repo (about 18 MB); install it when needed, project only:
npx -y skills@latest add https://archify.si --skill archify --agent claude-code --copy --yesUse --agent codex, cursor or opencode for other agents. Then ask, for example: "Use Archify to draw the containers in docs/architecture/README.md from this repository." It writes standalone HTML into .archify/, which is git-ignored. Mermaid in docs/architecture/ stays the source of truth; Archify output is for presenting and exploring, so do not commit it unless asked.
How it connects to the other skills
| Stage | Skill | What this skill adds |
| Shape, Refine | grill-with-docs, domain-modeling | When a hard-to-reverse decision lands, write it here in MADR format |
| Specify | to-spec | The spec lists the ADRs it relies on and any new ADR it needs |
| Plan | to-tickets | A ticket for each new ADR, ordered before the code tickets that depend on it |
| Build | implement, tdd, platform skills | Read section 1 before coding |
| Review | code-review, pr | Section 5 checklist |
| Improve | improve-codebase-architecture | Proposals that contradict an ADR become a new ADR, not a silent refactor |
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.

