What problem does it solve?
Code comments often contain redundant WHAT-restating prose, changelog notes, and duplicate rationale that wastes valuable context budget when AI coding agents read source code. Over-commenting is invisible to standard review hooks, so bad comment habits go uncaught until they bloat agent context and reduce performance.
Core Features & Use Cases
- Write-time comment enforcement: Automatically applies the FR-22 comment policy as you write code, so rules are enforced at the moment comments are added, not just during review.
- Two-type comment rule: Retains only useful tripwire comments (non-obvious constraints editors could break) and retrieval pointers (links to external rationale), removing all redundant comment types.
- Sub-agent delegation support: Includes a pre-written push block to enforce the policy across code-writing sub-agents that may not auto-load the skill.
- Use Case: Development teams using AI coding assistants like Claude Code or Cursor can use this skill to ensure all code comments are useful for AI editors, reducing context bloat and improving agent performance on code tasks.
Quick Start
Use the comment-policy skill when writing or editing any code file to automatically strip redundant comments and retain only useful tripwires and retrieval pointers.