dot_agents/skills/documenting-architecture/SKILL.md
Document system architecture, design decisions, layer boundaries, and how components connect and communicate. Use when (1) a project's architecture is undocumented, (2) agents can't figure out how the system fits together, (3) after major refactoring that changed system structure, or (4) onboarding developers who need to understand the big picture. References domain concepts — never redefines them.
npx skillsauth add MrPointer/dotfiles documenting-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Document how a system is designed: its layers, boundaries, communication patterns, and the rationale behind key design decisions. Architecture docs explain how the system is built and why it was built that way.
Domain ← Defines business concepts (referenced by this layer)
↓
Architecture ← You are here (system structure and design decisions)
↓
Business Processes ← References architecture for "how the system implements this flow"
↓
Components ← References architecture for "where this component fits"
Before writing anything:
docs/context/<topic>-anchor.md. Verify against the current code before documenting — anchors explain design context, but architecture docs document durable reality.Focus on the targeted area:
Stay within the requested scope. If asked to document the API layer's architecture, don't document the entire system.
Follow the project's existing doc style. If none exists, use this structure:
# <System/Area> Architecture
## Overview
<What this system/area does and how it's structured — 3-5 sentences>
## Design Principles
<The guiding principles behind the architecture — what trade-offs were made and why>
- <Principle 1>: <rationale>
- <Principle 2>: <rationale>
## Structure
### <Layer/Module Name>
- **Responsibility**: <What this layer owns>
- **Boundaries**: <What it exposes, what it hides>
- **Dependencies**: <What it depends on — direction matters>
### <Another Layer/Module>
...
## Communication Patterns
<How layers/modules communicate with each other>
- <Pattern>: <where it's used and why>
## Key Design Decisions
<Important architectural choices and their rationale>
| Decision | Choice | Rationale | Alternatives Considered |
|----------|--------|-----------|------------------------|
| ... | ... | ... | ... |
## Constraints
<Technical constraints, platform limitations, or organizational factors that shaped the architecture>
Architecture docs should include a mermaid diagram showing how the major parts relate. Place it in or after the Structure section to give humans an instant visual overview.
Choose the diagram type based on what you're showing:
flowchart TD/LR): Best for showing layers, dependency direction, and data flow between components.sequenceDiagram): Best when showing how components interact over time (e.g., request lifecycle).Guidelines:
If new documentation files were created, propose adding a pointer in AGENTS.md:
## Architecture
See `docs/architecture/<area>.md` for <brief description>.
Never put architecture details into AGENTS.md itself — only add a pointer.
[text][ref] with [ref]: path at the bottom of the file) rather than inline links. They read better in source and are easier to maintain.testing
Create implementation plans from a reviewed RFC. Uses the RFC as the approved design baseline, decomposes it into executable sub-plans, and runs RFC-specific plan review.
tools
Create implementation plans directly from user requirements when no reviewed RFC is available or the user explicitly declines RFC-first planning. Decomposes work into self-contained sub-plans with full iterative multi-agent plan review.
content-media
Decompose a reviewed RFC into sequenced features for a single project. Uses the RFC as the approved design baseline and produces a persistent epic plan reviewed for RFC fidelity and feature decomposition.
tools
Decompose large efforts directly from user requirements when no reviewed RFC is available or the user explicitly declines RFC-first epic planning. Produces a persistent epic plan with rich feature descriptions that feed into planning-project-features separately.