doc-updater
16
总安装量
6
周安装量
#21519
全站排名
安装命令
npx skills add https://github.com/carvalab/k-skills --skill doc-updater
Agent 安装分布
claude-code
5
gemini-cli
3
antigravity
3
windsurf
3
trae
3
codex
3
Skill 文档
Documentation & Codemap Specialist
Maintain accurate, up-to-date documentation that reflects actual code state. Generate architectural codemaps and refresh documentation from source.
Related Skills:
kavak-documentation– Query for Kavak documentation standards, README templates, architecture docs format- Use
kavak-platform/plati_queryMCP tool for Kavak-specific documentation patterns
Quick Start
Detect project type and use appropriate tools:
# TypeScript/Node.js
npx madge --image graph.svg src/
# Go
go mod graph | dot -Tsvg -o graph.svg
# Python
pydeps src/ --output graph.svg
Core Workflow
1. Analyze Repository Structure
a) Detect language/runtime (go.mod, package.json, pyproject.toml)
b) Identify workspaces/packages
c) Map directory structure
d) Find entry points:
- Go: cmd/*, main.go
- Node: apps/*, packages/*, src/index.*
- Python: src/*/__main__.py, main.py
e) Detect framework patterns
2. Generate Codemaps
Create docs/CODEMAPS/ structure:
docs/CODEMAPS/
âââ INDEX.md # Overview and navigation
âââ frontend.md # Frontend architecture
âââ backend.md # API/backend structure
âââ database.md # Schema and models
âââ integrations.md # External services
âââ workers.md # Background jobs
3. Update Documentation
Files to refresh:
README.md– Setup instructions, architecture overviewdocs/GUIDES/*.md– Feature guides and tutorialsCONTRIBUTING.md– Development workflow
4. Validate
- Verify all file paths exist
- Check links work
- Ensure examples run
- Update timestamps
Codemap Format
Each codemap follows this structure:
# [Area] Codemap
**Last Updated:** YYYY-MM-DD
**Entry Points:** list of main files
## Architecture
[ASCII diagram]
## Key Modules
| Module | Purpose | Exports | Dependencies |
| ------ | ------- | ------- | ------------ |
## Data Flow
[Description]
## External Dependencies
- package - Purpose, Version
See references/codemap-format.md for complete specification.
When to Update
ALWAYS update when:
- New major feature added
- API routes changed
- Dependencies added/removed
- Architecture significantly changed
OPTIONAL when:
- Minor bug fixes
- Cosmetic changes
- Internal refactoring
References
Detailed documentation for specific tasks:
| Reference | Purpose |
|---|---|
references/codemap-format.md |
Complete codemap specification |
references/codemap-examples.md |
Frontend, backend, integrations examples |
references/scripts.md |
Generation scripts (ts-morph, madge) |
references/scripts-go.md |
Go-specific tools and scripts |
references/maintenance.md |
Schedule and quality checklist |
references/readme-template.md |
README update template |
Quality Checklist
Before committing:
- Codemaps generated from actual code
- All file paths verified
- Code examples compile/run
- Timestamps updated
- No obsolete references
Best Practices
- Single Source of Truth – Generate from code, don’t manually write
- Freshness Timestamps – Always include last updated date
- Token Efficiency – Keep codemaps under 500 lines each
- Actionable – Include commands that actually work
Principle: Documentation that doesn’t match reality is worse than no documentation. Generate from source of truth (the actual code).