check-docs-drift
БесплатноБез исполняемых скриптовНе проверенFind and fix where docs/api.md fell behind the code. Triggers on "check for doc drift", "is the API doc up to date", "/check-docs-drift", "перевір дрейф…
от genkovich★ 17 звёзд на GitHubОб этом скилле
Skill: check-docs-drift
Goal: catch the moment docs/api.md stops matching the code — and close the gap by documenting what the code grew.
Doc drift is what happens when code moves and the docs don't: a feat: adds a public method, but the API reference still lists the old surface. This skill makes that gap visible and fixable in one pass. The detection is deterministic (a script); the fix is the agent writing the missing line in the doc's own style.
Inputs
scripts/check-docs-drift.py— the deterministic detector.src/notes.py— the real public surface.docs/api.md— the documented surface.templates/drift-report.md— the report shape.
Protocol
Detect — run the script, do not eyeball the code. Run exactly:
./scripts/check-docs-drift.pyIt prints the
NoteBookmethods in the code, the methods in the doc, and the gap both ways. Exit 0 = in sync (report that and stop); exit 1 = drift.Report the drift using
templates/drift-report.md: which methods are in the code but missing fromdocs/api.md(the doc fell behind), and which are documented but gone from the code (a ghost). Quote the script's findings — do not invent any.Propose the fix. For each undocumented method, read its signature and docstring in
src/notes.pyand add a matching row to the## NoteBooktable indocs/api.md, in the table's existing style. For a ghost, propose removing the stale row. Edit onlydocs/api.md.Re-run the script to confirm the gap closed — exit 0 means the doc is back in sync. Leave the edit in the working tree.
Definition of Done
- The drift was found by
scripts/check-docs-drift.py, not guessed from reading the code. - Every undocumented method got a table row matching its real signature and docstring; every ghost row was flagged.
- A second run of the script exits 0 (in sync).
- The edit is in the working tree only — not committed, not pushed.
Anti-patterns
- Skipping the script. "The doc looks fine" is not a finding. The gap comes from parsing or it does not exist.
- Inventing a method that is not in the code, or describing it differently from its real signature. Copy the truth from
src/notes.py. - Editing the code to match the doc. The code is the truth; the doc follows it. Edit only
docs/api.md. - Committing or pushing. Leave the suggestion in the working tree.
References & templates
scripts/check-docs-drift.py— the deterministic detector.templates/drift-report.md— drift report scaffold.
Установить check-docs-drift в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(./scripts/check-docs-drift.py)Bash(git log:*)Read(src/**)Read(docs/**)Edit(docs/**)Вложенные файлы
FAQ
Что делает скилл check-docs-drift?
Find and fix where docs/api.md fell behind the code. Triggers on "check for doc drift", "is the API doc up to date", "/check-docs-drift", "перевір дрейф документації", "docs drift". Runs the deterministic scripts/check-docs-drift.py (parses the public NoteBook methods with ast, compares to what docs/api.md documents — NO LLM finds the gap), reports the drift, and PROPOSES the doc edit that closes it. The gap is found by parsing; the agent writes the missing documentation in the doc's existing style. Edits only docs/; never commits or pushes.
Как установить скилл check-docs-drift?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл check-docs-drift запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic