/general:codebase-documentationfrom general
Use this skill when creating or updating codebase documentation for AI coding agents. It covers initial repository documentation, monorepo/package/app README hierarchies, dense-folder documentation, and efficient incremental updates by reviewing Git changes since documentation was last updated.
Ships in general. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create practical, current documentation that helps AI agents perform agentic software development in an unfamiliar codebase. Prefer concise, navigable README files over broad prose.
README.md, then nested README.md files for apps, packages, services, libraries, and dense folders.scripts/repo-map.py inventories a repository, finds README files, identifies likely documentation targets, and reports changed files since the latest commit that touched documentation.Resolve the skill directory from the active SKILL.md location, then run:
python3 "$SKILL_DIR/scripts/repo-map.py" --repo "$REPO" --format markdown --since-doc-update
Use --format json when you need machine-readable output.
Use the current repository if the user does not name a path. For a monorepo, assume the whole repo unless the user names a package/app.
Identify:
README.md, nested README.md, docs/, agent instructions, architecture notes.Initial documentation when no adequate docs exist or the user asks to document the whole codebase:
Incremental update when docs already exist:
git log -1 --format=%H -- README.md '**/README.md' docs
git diff --name-status <doc_commit>..HEAD -- .
git status --porcelain
README.md, package/app boundaries, or root README.If there is no prior documentation commit, treat the task as initial documentation.
Always consider:
README.md for repository-level orientation.apps/*/README.md for deployable applications.packages/*/README.md, libs/*/README.md, or modules/*/README.md for reusable packages.services/*/README.md for service boundaries, APIs, jobs, queues, integrations.Do not create README files in trivial folders where names and local code are self-explanatory.
Each README should answer:
Use templates from assets/readme-template.md and assets/folder-readme-template.md when drafting new files. Read references/doc-strategy.md for detailed heuristics.
Before finishing:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub liljamesjohn-archive/claude-code-skills --plugin general2 skills in this plugin