mathias7799/maaawkit/codebase-documenter
Claude Code and agent skill by mathias7799/maaawkit
- community
Checking that the SKILL.md file is still in the repository.
Generate or refresh documentation for an existing codebase — README, architecture overview, CLAUDE.md, onboarding guide, module docs, ADRs. Use when the user asks to document a repo, write/update a README, explain the architecture, create onboarding docs, "make this understandable", or when inheriting an undocumented codebase.
Install
npx vskill@latest install mathias7799/maaawkit/codebase-documenterSKILL.md
The same SKILL.md was published earlier as mathias7799/maaawkit/codebase-documenter.
Codebase Documenter
Documentation derived from reading real code, verified by running real commands. Docs written from assumption are worse than no docs — they're confidently wrong. The second law: document for a reader, not for completeness; every doc has ONE audience and answers THEIR questions.
Step 0 — Pick the deliverable (ask if ambiguous)
| Audience | Deliverable | |
|---|---|---|
| New dev, day one | README + getting-started | |
| Team, ongoing | ARCHITECTURE.md + module docs | |
| Claude/agents | CLAUDE.md (use the kit's template) | |
| Future-you re: decisions | ADRs |
Default for "document this repo": README + ARCHITECTURE.md + CLAUDE.md.
Step 1 — Learn the repo (evidence pass)
- Map: entry points, build/test/run commands (from csproj/package.json/pyproject/scripts — then RUN them to confirm they work; a README with broken commands is the classic failure).
- Trace the ONE core flow end-to-end (request → handler → service → data → response) by reading, not guessing. This becomes the architecture doc's centerpiece.
- Collect tribal knowledge signals: weird-looking code that's load-bearing (git blame the strangest parts), env vars actually read (
git grep -h "env\." | sort -ustyle per language), external services touched. - For big repos: fan out module-mapping to subagents (orchestration skill), one module each, fixed report format.
README.md structure (top-level, keep under ~120 lines)
ARCHITECTURE.md structure
Code-level documentation (when asked to document code itself)
- Doc comments (XML docs / JSDoc / docstrings / comment-based help) on PUBLIC surface only: what it does, params that aren't obvious, exceptions/error returns, one example for non-trivial APIs.
- Never narrate the obvious (
// increments i). Comments explain WHY and non-obvious constraints; the code explains what. - Don't reformat or "improve" code while documenting — docs diffs must be docs-only.
Rules
- Verify every command you write down by running it. Mark anything unverifiable: "(untested — no access to X)".
- State uncertainty explicitly: "appears to be dead code (no callers found via grep)" not silent omission or invented purpose.
- Freshness beats coverage: 5 accurate docs > 20 stale ones. Prefer generating from the source of truth (schema from migrations, env table from actual reads) so refresh is mechanical.
- Every doc gets a header:
<!-- Last verified: <date> against <commit short-sha> -->. - Mermaid for diagrams (renders on GitHub); one diagram per concept, max ~15 nodes — a diagram you can't read is decoration.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/maaaw-kit/skills/codebase-documenter/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mathias7799/maaawkit/codebase-documenter)