doc-maintenance
БесплатноЗапускает вложенные скриптыНе проверенSystematic documentation audit and maintenance. This skill should be used when documentation may be stale, missing, or misorganized — after feature work…
от NickCrew★ 76 звёзд на GitHubОб этом скилле
Documentation Maintenance
Systematically audit, organize, and remediate project documentation by comparing the codebase against existing docs to find staleness, gaps, and misorganization.
When to Trigger
- After merging a feature branch or completing a refactor
- After dependency upgrades or API changes
- When onboarding surfaces confusion about project docs
- Periodic maintenance (monthly or per-release)
- When
scripts/doc_audit.pyis run manually and reports findings
Workflow Overview
Phase 1: Audit → Run deterministic scan + haiku search agents
Phase 2: Triage → Classify findings by severity and action type
Phase 3: Remediate → Dispatch specialized agents to fix/create docs
Phase 4: Quality → docs-architect reviews all changes
Phase 1: Audit
Step 1a — Run the deterministic scan
Execute the bundled audit script to get a baseline report:
python3 skills/doc-maintenance/scripts/doc_audit.py
The script produces a structured report covering:
- Broken internal links (markdown
[text](path)pointing to missing files) - Orphan docs (files not linked from any other doc or README)
- Missing required structure (expected folders/files absent from
docs/ormanual/) - Stale-relative-to-code (docs whose referenced subtree has churned significantly since the doc was last touched — measured via git log of code commits between the doc's last edit and now, not absolute doc age, which produces noise on stable architecture docs)
- Empty or stub files (< 3 lines of content)
Pass --json for machine-readable output. Pass --root PATH to override project root detection.
Step 1b — Dispatch search agents
After the deterministic scan, launch subagents to perform deeper analysis.
Model selection is task-calibrated: haiku for pattern enumeration, sonnet for
multi-file correlation and judgment. See references/agent-dispatch.md for
full prompt templates.
Agent 1 — Code-to-doc coverage scan (subagent_type: "Explore", model: "haiku"):
Search the codebase for public APIs, CLI commands, config schemas, and exported modules.
Cross-reference against existing docs (presence-check via grep). Report anything undocumented.
Haiku is sufficient because the inner loop is pattern enumeration plus a presence grep.
Agent 2 — Doc-to-code freshness scan (subagent_type: "general-purpose",
model: "sonnet", per-docfile dispatch):
For each markdown file in scope, dispatch a sonnet agent with the file content. The
agent (a) extracts every concrete code reference (function names, CLI flags, file paths,
config keys, API endpoints), (b) verifies each against current code via grep / codanna /
Read, (c) reports mismatches as RENAMED / REMOVED / CHANGED. Sonnet + per-docfile is
needed because freshness verification often requires multi-file traces (handler →
middleware → config) and distinguishing renamed from removed requires reading the new
location, not just confirming the old one is gone.
Agent 3 — Structure compliance scan (subagent_type: "Explore", model: "haiku"):
Compare current docs/ and manual/ layout against the prescribed folder structure
in references/folder-structure.md. Report missing folders, misplaced files, naming violations.
Haiku is correct here — pure pattern matching against a spec.
Agent 4a — ASCII diagram detector (subagent_type: "Explore", model: "haiku"):
Scan markdown for box-drawing characters (─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼), arrow notation
(-->, <--, ==>), or indented tree structures beyond a few nodes. Report each as
a candidate for Mermaid conversion with the suggested diagram type. Haiku is correct
because this is mechanical pattern detection — find the characters, report the location.
Agent 4b — Missing-diagram judgment scan (subagent_type: "general-purpose",
model: "sonnet", per-docfile dispatch):
For each markdown file in scope, dispatch a sonnet agent. The agent reads the doc and
flags sections where adding a diagram would meaningfully improve comprehension —
multi-step flows where ordering matters, architecture relationships with named
components, state transitions, request/response sequences. Crucially, sonnet flags
only when a diagram adds value over the prose (not every step list needs a diagram).
Haiku tends to either over-flag (every list looks diagrammable) or under-flag (misses
implicit flow descriptions); sonnet's judgment is what makes this signal trustworthy.
Launch agents 1, 2, 3, 4a, 4b in parallel — but agents 2 and 4b dispatch internally
per-docfile, so the actual call count is 2 + (2 × N_docfiles) rather than 5.
Step 1c — Merge results
Combine the script output with agent findings into a single audit report. Deduplicate overlapping findings. The report becomes the input for Phase 2.
Phase 2: Triage
Classify each finding into one of these action categories:
| Category | Description | Example |
|---|---|---|
| stale |
Установить doc-maintenance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл doc-maintenance?
Systematic documentation audit and maintenance. This skill should be used when documentation may be stale, missing, or misorganized — after feature work, refactors, dependency upgrades, or as a periodic health check. It prescribes folder structure for docs/ and manual/, dispatches haiku subagents for codebase/doc scanning, and routes doc creation to specialized agents (reference-builder, technical-writer, learning-guide) with docs-architect as quality gate.
Как установить скилл doc-maintenance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-maintenance запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic