
doc-maintainer
by sjmyuan
Easy practice for subjects such as math and English.
SKILL.md
name: doc-maintainer description: Update project documentation to reflect code changes (bug fixes, refactors, or new features). Provide concise, actionable edits to requirements, architecture, README, and related docs. Use this skill when code changes occur.
For Bug Fixes:
- Update troubleshooting guides if the bug was a common issue
- Revise usage examples if they demonstrated the buggy behavior
- Update changelog with bug fix details
- Check if requirements or specs need correction
For New Features:
- Add or update requirements documentation
- Extend architecture docs if new components or patterns are introduced
- Update README with feature overview and setup instructions
- Create or update usage examples demonstrating the feature
- Add API documentation for new interfaces or endpoints
- Update configuration guides if new settings are required
- Document any breaking changes or migration steps
For Refactors:
- Update architecture docs if structure or patterns changed
- Revise developer guides if workflows or practices changed
- Update configuration guides if build/dev setup changed
- Refresh inline documentation for refactored code
- Check if examples need updates for new code organization
- Verify README accuracy (file paths, command references)
For Dependency/Infrastructure Changes:
- Update README installation and setup sections
- Revise configuration guides
- Update deployment documentation
- Document version compatibility requirements
- Add migration guides for breaking dependency changes
-
Review the Change
- Examine modified files, commit messages, and PR descriptions
- Identify what changed: behavior, API, UX, dependencies, structure
- Note the user impact and developer impact separately
- Check test files to understand new behavior validation
-
Identify Affected Documentation
- Use the impact-assessment capability to determine doc scope
- List specific sections within each document that need updates
- Prioritize user-facing docs over internal notes
- Consider both direct and indirect documentation impacts
-
Make Focused, Accurate Edits
- Update only the sections directly affected by the change
- Avoid broad rewrites unless documentation is fundamentally outdated
- Ensure technical accuracy by referencing the actual code
- Use precise terminology consistent with the codebase
- Maintain the existing tone and style of each document
-
Add or Update Examples
- Provide code snippets showing new usage patterns
- Include before/after examples for changed APIs
- Demonstrate edge cases or common pitfalls
- Ensure examples are runnable and tested (when possible)
- Use realistic scenarios that match user context
-
Document Migration Steps
- For breaking changes, provide clear step-by-step migration instructions
- Include code snippets showing the old and new way
- List all affected code patterns users need to update
- Explain the rationale for the change
- Estimate migration effort and provide timelines
-
Maintain Cross-References
- Link related documentation sections
- Reference source code files and line numbers
- Point to relevant tests, examples, or config files
- Cite GitHub issues, PRs, or commit SHAs for traceability
- Update any broken links or outdated references
-
Record Design Decisions
- Document why certain approaches were chosen
- Explain trade-offs and alternatives considered
- Note any constraints or assumptions
- Preserve context for future maintainers
- Update architecture decision records (ADRs) if applicable
Accuracy:
- All code examples compile/run without errors
- API signatures match actual implementation
- Configuration examples use correct syntax
- File paths and references are correct
- Version numbers and dates are accurate
Completeness:
- All affected documentation sections identified and updated
- Breaking changes clearly documented with migration paths
- New features have usage examples
- Edge cases and limitations are mentioned
- Related documentation is cross-referenced
Clarity:
- Documentation is understandable to the target audience
- Technical jargon is explained or avoided
- Step-by-step instructions are unambiguous
- Examples are well-commented and self-explanatory
- Structure follows a logical flow
Consistency:
- Terminology matches the codebase and existing docs
- Formatting follows the project's documentation style
- Tone is consistent with other documentation
- Examples follow consistent patterns
- Cross-references use standard linking format
Maintainability:
- Documentation is not overly coupled to implementation details
- Examples are simple and focused
- Duplicated information is minimized
- Version-specific details are clearly marked
- Documentation location is logical and discoverable
Requirements & Specifications:
- Be precise and unambiguous
- Use "must," "should," "may" consistently (RFC 2119 style)
- Focus on what, not how
- Include acceptance criteria
Architecture Documentation:
- Use diagrams where helpful (describe them in text)
- Explain the "why" behind architectural decisions
- Document constraints and trade-offs
- Keep high-level; avoid implementation minutiae
README:
- Start with a brief, compelling overview
- Prioritize getting started quickly
- Use bullet points and short paragraphs
- Include badges, screenshots, or demos where relevant
API Documentation:
- Document all parameters, return values, and exceptions
- Provide type signatures (TypeScript, JSDoc)
- Include usage examples for each method
- Note deprecations and version compatibility
Usage Examples:
- Show realistic, practical scenarios
- Include necessary imports and setup
- Comment complex or non-obvious code
- Demonstrate both common and advanced usage
Troubleshooting Guides:
- Use problem-solution format
- Include error messages users actually see
- Provide step-by-step debugging instructions
- Link to related issues or discussions
Changelog:
- Group by version, newest first
- Categorize: Added, Changed, Deprecated, Removed, Fixed, Security
- Be concise but specific
- Reference issues/PRs when helpful
When you need specific examples to understand how to document different types of code changes, load the relevant example file from the examples folder:
- Bug Fix Documentation: When documenting bug fixes and issue resolutions, read
examples/bug-fix-documentation.md - New Feature Documentation: When documenting new features and capabilities, read
examples/new-feature-documentation.md - Refactor Documentation: When documenting code refactoring and restructuring, read
examples/refactor-documentation.md
Only load example files when they are directly relevant to the type of code change being documented to minimize context size.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です