Maintaining Documentation After Code Changes
БесплатноБез исполняемых скриптовНе проверенTwo-phase workflow to keep project documentation synchronized with code changes
Об этом скилле
Maintaining Documentation After Code Changes
Overview
Documentation drift is inevitable without systematic maintenance. Code evolves rapidly while documentation becomes stale. This skill provides a two-phase workflow to keep project docs synchronized with code: analyze recent changes, then update and restructure documentation accordingly.
When to Use
Use this skill when:
- Completing features or bugfixes (before marking work complete)
- Preparing to merge branches or create pull requests
- Git diff shows significant code changes
- Documentation feels stale, incomplete, or contradicts current code
- New functionality added without corresponding doc updates
- Onboarding reveals outdated or missing documentation
- API changes or new commands/tasks added
- Implementation challenges revealed better practices
When NOT to use:
- During active development (docs can lag slightly, update at checkpoints)
- For trivial changes (typo fixes, formatting)
- When no code has changed
Critical Principle
Maintaining existing documentation after code changes is NOT "proactively creating docs" - it's keeping current docs accurate.
CLAUDE.md instructions about "don't proactively create documentation" apply to NEW documentation files for undocumented features. They do NOT apply to maintaining existing documentation after you change the code it documents.
If you changed the code, you must update the corresponding documentation. No exceptions.
Common Rationalizations (And Why They're Wrong)
| Rationalization | Reality |
|---|---|
| "I'll update docs in a follow-up PR" | Later rarely happens. Context is freshest now. Capture it. |
| "Commit messages are documentation enough" | Commit messages explain code changes, not user workflows. Both are needed. |
| "Code is self-documenting if well-written" | Code shows HOW. Docs explain WHY and usage patterns. Different purposes. |
| "Time pressure means ship now, document later" | Shipping undocumented changes creates support burden > time saved. |
| "Don't know if user wants docs updated" | If code changed, docs MUST update. Not optional. Ask about scope, not whether. |
| "Documentation is maintenance overhead" | Outdated docs are overhead. Current docs save time for everyone. |
| "Minimal accurate > comprehensive outdated" | False choice. This skill gives you accurate AND complete in 15-30 min. |
| "Different teams handle docs differently" | This skill IS the standard for this project. Follow it. |
| "Risk of making commit scope too large" | Documentation changes belong with code changes. Same PR = atomic change. |
| "Best practices docs only change for patterns" | If you discovered lessons during implementation, they belong in CLAUDE.md. |
None of these are valid reasons to skip documentation maintenance.
Quick Reference
| Phase | Focus | Key Activities |
|---|---|---|
| Analyze | What changed? | git diff → review docs → identify gaps |
| Update | Sync docs | Update content → restructure → summarize changes |
Implementation
Phase 1: Analysis
Goal: Understand what changed and what documentation needs updating
Review recent changes:
git diff [base-branch]...HEADExamine the full diff to understand scope of changes
Check existing documentation:
- README.md (main project docs)
- CLAUDE.md (AI assistant guidance) - use
cipherpowers:maintaining-instruction-filesfor size/quality - AGENTS.md (multi-agent instructions) - use
cipherpowers:maintaining-instruction-filesfor size/quality - README_*.md (specialized documentation)
- docs/ directory (practices, examples, plans)
- Any project-specific doc locations
Identify documentation gaps:
- New features without usage examples
- Changed APIs without updated references
- Implementation lessons not captured in CLAUDE.md
- New best practices discovered during work
- Implementation challenges and solutions
- Known issues or limitations discovered
- Commands/tasks that changed behavior
Output of analysis phase: List of specific documentation updates needed
Phase 2: Update
Goal: Bring documentation into sync with current code
Update content to reflect changes:
- Add new sections for new features
- Update changed functionality (especially examples)
- Document implementation details for complex components
- Update usage examples with new functionality
- Add troubleshooting tips from recent issues
- Update best practices based on experience
- Verify commands/tasks reflect current behavior
Restructure for clarity:
- Remove outdated or redundant content
- Group related topics together
- Split large files if they've grown unwieldy
- Fix broken cross-references
- Ensure consistent formatting
Document updates: Provide summary of changes:
- Files updated
- Major documentation changes
Установить Maintaining Documentation After Code Changes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Maintaining Documentation After Code Changes?
Two-phase workflow to keep project documentation synchronized with code changes
Как установить скилл Maintaining Documentation After Code Changes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Maintaining Documentation After Code Changes запускает скрипты?
Нет, скилл состоит только из инструкций (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