From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/general:codebase-documentationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create practical, current documentation that helps AI agents perform agentic software development in an unfamiliar codebase. Prefer concise, navigable README files over broad prose.
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:
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub liljamesjohn-archive/claude-code-skills --plugin general