architecture
Skill1 starsChanged 30 days agoMITView on GitHub
Draw the architecture picture before planning - Discovery when the request is still vague, C4 Context / Container when adding, changing or connecting systems or modeling a legacy system, with a contract table and sequence diagrams. Use when brainstorming calls it, or the user says "C4", "overall architecture", "big picture", "draw the system".
149 other projects use a version of this.
Adopted by
Most recently taken up by
- vjrivmon/Setup-Software-IAtheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- sirius-cc-wu/sirius-skillstheir own version, first seen Nov 29, 2026
- jskswamy/skillstheir own version, first seen Nov 29, 2026
- DGouron/review-flowtheir own version, first seen Nov 29, 2026
- meaningfy-ws/skillerytheir own version, first seen Nov 29, 2026
Used with
Projects with it also use intelligent-routing, red-team-tactics and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SKB3002Skillintelligent-routing
Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.
Also in 6 projects that use this
xenitV1Skillred-team-tactics
Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.
Also in 9 projects that use this
xenitV1Skillbash-linux
Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.
Also in 9 projects that use this
SKB3002Skillnextjs-react-expert
React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.
Also in 3 projects that use this
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
- +7 more from xenitV1
Other versions149 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 149
- anthropics/knowledge-work-plugins★ 37ksame name
- iOfficeAI/AionUi★ 34ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- nativewind/nativewind★ 8.1ksame name
- PaulWoitaschek/Voice★ 3.3ksame name
- wellwelwel/poku★ 1.2ksame name
- patrickjaja/claude-desktop-extra★ 785same name
- Alwurts/simple-ai★ 755same name
- ktnyt/cclsp★ 673same name
139 more not listed
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 repository17 other files it gives its agents.
- brainstormingSkill
- commit-pushSkill
- docs-standardsSkill
- domain-modelingSkill
- e2e-playwrightSkill
- executing-plansSkill
- grillingSkill
- migrating-legacy-codeSkill
- prototypeSkill
- resolving-merge-conflictsSkill
- routingSkill
- security-testingSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 129 edited versions we read keep these.
0
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 23
No artifact folder yet -> create it per R-092 (with intent.md) before writing.
- Very specific: line 34
Read docs/architecture/c4.md if it exists (if the project's own instructions name another place, follow them).
- Very specific: line 56
Add the artifact path and the list of gaps (arrows without contract, open questions), then ask the user to approve with the ask tool.
“Common” is measured: kept by at least 6 in 10 of the 129 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 before the plan
The output is a picture the user (in the analyst role) can approve before the spec / plan is written. The risk level
and flow are decided by routing and R-117; this skill only picks the level of drawing.
1 · Pick the level
- Does the work add, change or connect a container (app, service, database, external system), or does the user need a legacy system modeled? No -> Level 0: draw nothing, go back to the calling skill.
- Yes, and after reading the repo and clarifying the request you still cannot name the related systems, actors, and in / out of scope -> Level 1 · Discovery (§2), then level 2 when done.
- Yes, and you can name them -> Level 2 · C4 (§3).
State the chosen level and why in one line.
2 · Level 1 · Discovery
No artifact folder yet -> create it per R-092 (with intent.md) before writing. Write into the task's research.md
per references/discovery.md: overview diagram, main business flow, rough scope, assumptions, open questions (marked
blocking / non-blocking), at least 2 options with trade-offs.
Exit when both hold: no blocking open question remains · the user approves the picture. Not yet -> batch the blocking questions (R-138), update, present again. Until then, do not go down to C4 and do not write the spec.
3 · Level 2 · C4
Per references/c4.md:
- Read
docs/architecture/c4.mdif it exists (if the project's own instructions name another place, follow them). A legacy system with no model yet -> build it from the code, and write the date it was checked against the code. - Draw Context + Container as a Mermaid
flowchart(notC4Context). Component only for the container being changed, written in the task'sspec.md. Never draw the Code level. - Contract table: one row per arrow between two containers. An arrow with no contract yet -> the Contract cell reads
**[TODO]** contract, and the presentation says so. - A sequence diagram for each main flow; every message between containers carries a contract code that is in the table. A message with no code -> add a table row, or state the gap.
- The change against the living model ->
spec.md.docs/architecture/c4.mdis updated in the same commit as the code that changes a container, not at design time. Modeling a legacy system without changing containers -> write straight intodocs/architecture/c4.mdafter the user approves; outside the confirmed scope -> ask per R-003; the file is not a task artifact, commit per R-015 (list it, wait for the user's OK). - The project has no
docs/du-an/lo-trinh.jsonand the whole system was just modeled (new or old) -> in the presentation, propose once to build a roadmap per the containers / modules just drawn (flow #35 ofrouting), unless it was already proposed in the session (e.g. inbrainstorming); if the user does not choose it, drop it and do not ask again in the session.
An architecture decision made while drawing -> an ADR per domain-modeling › adr.md.
4 · Present and stop
Show the diagram in chat with the harness's drawing tool (none -> a Mermaid block), without asking "Draw a diagram?".
Add the artifact path and the list of gaps (arrows without contract, open questions), then ask the user to approve with
the ask tool. After approval -> go back to the next step of the calling skill; called from routing #33 -> stop. Never
write the plan on your own.
Rationalizations
| Thought | Reality |
| "Even a small feature gets a C4, to be safe" | Level 0 draws nothing; a needless diagram costs tokens and nobody reads it |
| "There is a diagram, the dev can handle contracts" | An arrow with no contract is a gap; state it now, not at the contract gate while running the plan |
| "Draw the Code level too, for completeness" | Code is the source of truth at that level; a Code diagram is stale by the next commit |
"Edit docs/architecture/c4.md right away at design time" | The living model reflects the running system; update it in the same commit as the code that changes a container, except when modeling a legacy system (§3.5) |
| "A blocking question is open, but draw the C4 first" | Discovery not finished means the C4 is drawn on a wrong assumption |
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.

