Skills
mk:docs-init
Generates a project's first docs folder from a scout of the code. For a repository with no docs or only stubs.
| Source | .claude/skills/docs-init/SKILL.md |
| Owner | docs |
| Runtime | claude-code |
| Risk | medium |
| Phase | on-demand |
What it does
mk:docs-init scouts the codebase with mk:scout, then hands the findings to the documenter agent, which writes the first documentation set. It generates only the files the project needs.
When to use it
Use it when docs/ is missing, empty or holds only stubs, when you ask to initialize or generate docs, or after mk:bootstrap. Usage: /mk:docs-init.
| Need | Use instead |
|---|---|
| Update docs that already exist | mk:document-release |
Only the agent conventions file (docs/project-context.md) | mk:project-context |
If populated docs exist, the skill suggests mk:document-release and stops. Run mk:project-context as well when you want the conventions file, since docs-init does not write it.
Steps
- Check whether
docs/exists and is populated. - Scout the codebase with
mk:scout, skipping.claude/,.git/,node_modules/,__pycache__/,dist/andbuild/. - Merge the scout reports into one context.
- Delegate to the
documenteragent to write the files below. - Run
wc -l docs/*.md | sort -rnand flag files over 800 lines. - Print the generated files with line counts.
The skill writes documentation only, never code.
Output
| File | Written |
|---|---|
README.md (300 lines or fewer) | Always |
docs/project-overview.md | Always |
docs/codebase-summary.md | Always |
docs/code-standards.md | Always |
docs/architecture/system-architecture.md | Always |
docs/deployment-guide.md | When CI/CD or Docker config is found |
docs/design-guidelines.md | When frontend code is found |
Gotchas
- Always scout first. Docs written without findings describe code that does not exist.
- A project under 10 files gets
README.mdanddocs/codebase-summary.mdonly. README.mdis for outside readers (setup, usage).docs/project-overview.mdis for insiders (why it exists, design decisions).- List entry points in
docs/codebase-summary.mdunder "Entry Points". - Docs drift after the first feature. Run
mk:document-releaseafter each ship.