architecture
Skill9 starsChanged 8 months agoMITView on GitHub
Create or update docs/ARCHITECTURE.md — services, components, data flow, trust boundaries. Use when the user asks to design the system, map out how pieces fit together, sketch data flow, define boundaries, or says 'how should this be structured', 'write up the system design', 'let's architect this', 'draw the component diagram'.
82 other projects use a version of this.
Adopted by
Most recently taken up by
- MagicJosh/rastheir own version, first seen Oct 6, 2026
- wellwelwel/lagunetheir own version, first seen Oct 4, 2026
- patrickjaja/claude-desktop-extratheir own version, first seen Oct 4, 2026
- fabiandistler/agentstheir own version, first seen Sep 30, 2026
- afonsoft/skillstheir own version, first seen Sep 30, 2026
- rafaelh/skillstheir own version, first seen Sep 30, 2026
Used with
Projects with it also use deployment-procedures, behavioral-modes 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.
xfstudioSkilldeployment-procedures
Production deployment principles and decision-making. Safe deployment workflows, rollback strategies, and verification. Teaches thinking, not scripts.
Also in 5 projects that use this
xfstudioSkillbehavioral-modes
AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.
Also in 4 projects that use this
tiendatworkSkill2d-games
2D game development principles. Sprites, tilemaps, physics, camera.
Also in 3 projects that use this
tiendatworkSkill3d-games
3D game development principles. Rendering, shaders, physics, cameras.
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
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
- +1 more from xfstudio
- +5 more from tiendatwork
Other versions82 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 82
- iOfficeAI/AionUi★ 33ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- ktnyt/cclsp★ 675same name
- patrickjaja/claude-desktop-extra★ 657same name
- FerroxLabs/wayland★ 608same name
- owainlewis/blueprint★ 410same name
- microsoft/powerplatform-build-tools★ 308same name
- techygarg/lattice★ 197same name
- sd0xdev/sd0x-harness★ 191same name
- wellwelwel/lagune★ 172same name
72 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.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 74 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Create the system architecture document.
- Distinctive: line 9
Before interviewing, read what already exists:
- Very specific: line 12
Read docs/PRD.md or docs/prd/ if they exist
- Very specific: line 13
Read docs/ARCHITECTURE.md — if revising, don't start from scratch
- Distinctive: line 15
Read any whitepaper, design doc, or existing architecture doc
- Distinctive: line 18
Read README.md for project overview
- Distinctive: line 20
Read key entry points (main files, route definitions, config files)
- Distinctive: line 21
Check git log --oneline -20 for recent direction
- Very specific: line 22
Read package.json, Cargo.toml, pyproject.toml, or equivalent for dependencies and project metadata
- Distinctive: line 27
Use AskUserQuestion to dig into the system design.
- Very specific: line 95
No TDD yet? → "Define testing and dev workflow with /tdd"
- Very specific: line 96
No threat model? → "Consider /security for the threat model"
“Common” is measured: kept by at least 6 in 10 of the 74 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
Create the system architecture document. Argument: $ARGUMENTS
Context Gathering
Before interviewing, read what already exists:
- Check for existing docs:
- Read
docs/PRD.mdordocs/prd/if they exist - Read
docs/ARCHITECTURE.md— if revising, don't start from scratch - Read
README.md,CLAUDE.md - Read any whitepaper, design doc, or existing architecture doc
- Read
- If no docs exist (inherited project):
- Read
README.mdfor project overview - Explore the directory structure to understand the codebase layout
- Read key entry points (main files, route definitions, config files)
- Check
git log --oneline -20for recent direction - Read
package.json,Cargo.toml,pyproject.toml, or equivalent for dependencies and project metadata - Summarize what you learned to the user before starting the interview — "Here's what I understand about this project so far: ..."
- Read
Interview
Use AskUserQuestion to dig into the system design. Adapt questions based on what you already learned from the codebase.
- Components — What are the main components/services/modules? How do they communicate? What are the trust boundaries?
- Data flow — How does data enter the system, get processed, and get stored? What are the critical paths?
- Technology choices — What stack and why? What are the hard constraints vs preferences?
- Deployment — How does this run? Single binary, microservices, serverless? Where (cloud, on-prem, edge)?
- Scaling and performance — What are the expected loads? Where are the bottlenecks? What needs to be fast?
- Integration points — What external systems does this talk to? What APIs does it expose? What does it depend on?
- Key decisions — What architectural decisions have already been made? What tradeoffs were accepted and why?
For inherited projects, focus more on: "Is my understanding correct?" and "What would you change?" rather than "What do you want?"
Write
Write to docs/ARCHITECTURE.md:
# Architecture
**Version:** [version]
**Date:** [date]
## System Overview
[High-level description. Include a Mermaid diagram showing major components and their relationships.]
## Components
### [Component 1]
- **Responsibility:** [what it does]
- **Technology:** [stack/language]
- **Interfaces:** [what it exposes, what it consumes]
- **Key design decisions:** [why it's built this way]
### [Component 2]
...
## Data Flow
[How data moves through the system. Use Mermaid sequence or flow diagrams for critical paths.]
## Technology Stack
| Layer | Technology | Rationale |
|-------|-----------|-----------|
| [layer] | [tech] | [why] |
## Deployment Model
[How the system is deployed. Infrastructure, environments, CI/CD.]
## Key Decisions
| Decision | Choice | Alternatives Considered | Rationale |
|----------|--------|------------------------|-----------|
| [decision] | [what was chosen] | [what else was considered] | [why] |
## Constraints and Limitations
[Known limitations, technical debt, things that need revisiting.]Adapt the structure to the project. Small projects may not need Deployment or Scaling sections. Monorepos may need a crate/package layout section. Use judgment.
After Writing
- Present the document to the user for review. Iterate until they're satisfied.
- Suggest next steps based on what exists:
- No TDD yet? → "Define testing and dev workflow with
/tdd" - No threat model? → "Consider
/securityfor the threat model" - Ready to build? → "Create feature specs with
/spec <name>, then/roadmap"
- No TDD yet? → "Define testing and dev workflow with
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.

