docs-code
Installation
SKILL.md
Docs Code
Analyze a codebase, get confirmation on the module map, then make every comment high-value — add, modify, or delete as needed, including cleaning experimental comments — without changing code behavior.
When NOT to Use
- The goal is simplifying or refactoring code: use
clean-codeinstead. This skill only changes comments, never code logic. - The goal is deleting unused code: use
fireinstead. - The goal is documentation beyond code comments (README, guides, tutorials): use
write-docsinstead.
Trigger Scope
Pick one path based on how the skill was triggered:
full pass(default when the user asks to document a codebase, directory, or module): run all phases below, including confirmations.inline annotation(when triggered proactively — e.g., the agent is about to write a comment — or the target is a single file, function, or small comment change): skip Phase 0 and Phase 1. Apply Comment Quality Rules, Comment Style, What to Add, and Large File Rules directly. When modifying or deleting comments, keep only those that pass the Comment Quality Rules. Then run Phase 3 verification on the changed scope.