architecture-md
Installation
SKILL.md
ARCHITECTURE.md Generator
Generate high-quality ARCHITECTURE.md files that give newcomers a mental map of a codebase. Based on matklad's article: the biggest contributor bottleneck is not writing code, it's figuring out where to change it. ARCHITECTURE.md bridges that gap.
Core Principles
- Short and stable -- Only describe things unlikely to change frequently. Don't synchronize with code. Revisit a couple of times a year.
- Bird's eye first -- Start with the problem being solved, not the solution.
- Codemap over prose -- Answer "where's the thing that does X?" and "what does this thing do?" for every module.
- Name, don't link -- Name important files, modules, types. Don't hyperlink (links go stale). Encourage symbol search.
- Invariants are gold -- Explicitly call out what's deliberately absent. Important invariants are often expressed as absence, and are impossible to divine from reading code.
- Mark boundaries -- API boundaries between layers constrain all possible implementations behind them. Finding a boundary by randomly reading code is hard.
- Cross-cutting concerns last -- After the codemap, address things that are everywhere and nowhere (error handling, testing, config).
Workflow
Step 1: Explore the Codebase
Related skills
More from caidanw/skills
modern-css
>
47karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
35distill-to-skill
>-
34behavioral-testing
>
27agent-first-repo
>-
26parse-dont-validate
>-
26