dot_agents/skills/documenting-components/SKILL.md
Create documentation for specific components or areas of a codebase. Analyzes targeted code sections and produces structured documentation useful to both humans and AI agents. Use when (1) documenting an undocumented component or module, (2) building initial docs for a new area, (3) an agent discovers documentation gaps during codebase exploration, or (4) onboarding documentation is needed for a complex subsystem. Always targets a specific component — never documents the entire codebase at once.
npx skillsauth add MrPointer/dotfiles documenting-componentsInstall 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.
Create focused, accurate documentation for specific components or areas of a codebase. Targets individual components — never attempts to document an entire codebase in one pass.
Domain ← Defines business concepts (referenced by this layer)
↓
Architecture ← Defines system structure (referenced by this layer)
↓
Business Processes ← Defines end-to-end flows (referenced by this layer)
↓
Components ← You are here (specific module internals and interfaces)
Before writing anything:
docs/, doc/, documentation/, etc.)Focus only on the specified component:
Do not explore unrelated parts of the codebase. Stay within the component boundary.
Create documentation following the project's existing style. If no style exists, use this structure as a starting point:
# <Component Name>
## Overview
<What this component does and why it exists — 2-3 sentences max>
## Architecture
<How it's structured internally, key design decisions, patterns used>
## Key Interfaces
<Public APIs, interfaces, types that consumers need to know — include signatures>
## Dependencies
<What this component depends on and what depends on it>
## Patterns & Conventions
<Project-specific patterns this component follows that aren't obvious from the code>
## Non-Obvious Behavior
<Gotchas, edge cases, implicit contracts, ordering requirements — things that bite you>
Adapt to the project's conventions — don't introduce a conflicting format if docs already exist.
If new documentation files were created, propose adding a pointer in AGENTS.md:
## <Section Name>
See `docs/<new-file>.md` for <brief description>.
Never put the documentation content into AGENTS.md — only add a one-line pointer. AGENTS.md is an index, not an encyclopedia.
This skill can be invoked:
After documentation is created, future planning sessions and executing agents benefit from it automatically — they read the docs instead of re-exploring code.
[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.