architecture
Skill0 starsChanged 4 months agoMITView on GitHub
Use when designing modules, seams, and adapters, when evaluating module depth and identifying deepening opportunities in a codebase, or when modernizing legacy code incrementally (strangler-fig, seams, characterization tests, safe extraction).
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.
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- api-specSkill
- architecture-diagramsSkill
- ask-bundleSkill
- bragSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dockerSkill
- e2e-testingSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- gatesSkill
- ghSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- i18nSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- mcp-governanceSkill
- media-toolsSkill
- memory-managementSkill
- mesh-utilsSkill
- observability-qualitySkill
- obsidian-workflowSkill
- operate-blenderSkill
- operate-godotSkill
- performanceSkill
- planningSkill
- playbookSkill
- project-bootstrapSkill
- project-orchestratorSkill
- prompt-compilerSkill
- prototypeSkill
- researchSkill
- scanSkill
- scheduled-turnsSkill
- scrape-toolsSkill
- securitySkill
- self-improvementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 74 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Don't drift into "component," "service," "API," or "boundary."
- Distinctive: line 40
One adapter = hypothetical seam; two = real: Don't add a seam unless something varies across it.
“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
Architecture
Design deep modules — a lot of behaviour behind a small interface at a clean seam, testable through that interface. Aim: leverage for callers, locality for maintainers, testability for everyone.
Reference docs: reference/DEEPENING.md (dependency categories + refactor
moves), reference/DESIGN-IT-TWICE.md, reference/HTML-REPORT.md (report
format).
Glossary — use these terms exactly
Don't drift into "component," "service," "API," or "boundary."
- Module — anything with an interface and an implementation (scale-agnostic).
- Interface — everything a caller must know: signature, invariants, ordering, error modes, config, performance.
- Depth — leverage at the interface: behaviour exercisable per unit of interface learned. Deep = small interface + lots of implementation.
- Seam (Feathers) — a place you can alter behaviour without editing there.
- Adapter — a concrete thing satisfying an interface at a seam (role, not substance).
- Leverage — what callers get from depth. Locality — what maintainers get: change and bugs concentrate in one place.
Principles
- Depth is a property of the interface, not the implementation.
- The deletion test — delete the module: complexity vanishes → pass-through; reappears across callers → earning its keep.
- The interface is the test surface — callers and tests cross the same seam.
- One adapter = hypothetical seam; two = real. Don't add a seam unless something varies across it.
- Accept dependencies, don't create them; collapse pass-through wrappers; co-locate decisions; hide parameter clusters; push I/O to the seam; delete tests on deleted shallow modules.
Deepening process (evaluate + act)
Symptoms of shallowness: wide interface/thin impl; chains of tiny modules per concept; setup-heavy test explosion; dependency fan-out; repeated caller setup. Several together → deepening candidate.
- Scope before scanning (YAGNI) — user direction wins; else walk
git log --onelinefor hot spots. Read.devin/CONTEXT.md+ ADRs first. Broad/unfamiliar →researchdeep-mode before the sub-agent. - Explore with an
architect/researchersub-agent — organic, noting friction; apply the deletion test to suspects. - Present candidates — self-contained HTML report in OS temp dir
(
$TMPDIR//tmp/%TEMP%,architecture-review-<ts>.html), Tailwind + Mermaid via CDN, before/after visuals, per candidate: files, problem, solution, locality/leverage benefits, strength badge (Strong / Worth exploring / Speculative). Open it for the user. - Act — pick the refactor move per dependency category
(
reference/DEEPENING.md); tests land at the deepened interface.
Legacy modernization protocol
- Characterization tests first — capture current behavior before touching.
- Find seams — where new code can replace old.
- Strangle incrementally — route small slices through new impls.
- Refactor locally — extract, rename, deduplicate.
- Verify each step — tests + diff-check.
- Document — ADRs for architecture changes and deprecated paths.
Each commit leaves the system testable and no worse than before. Report before/after: tests, complexity, migration status.
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.

