comment-policy

Remove redundant code comments while retaining tripwires and retrieval pointers.

6|Updated May 29, 2026
One-click install
npx skills add https://github.com/fusebase-dev/fusebase-flow --skill comment-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comment-policy
Source: https://github.com/fusebase-dev/fusebase-flow/tree/main/flow-skills/comment-policy
Command: npx skills add https://github.com/fusebase-dev/fusebase-flow --skill comment-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about comment-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop redundant code comments from bloating AI coding agent context?

To stop redundant code comments from bloating your AI coding agent context, enforce a write-time comment policy that strips WHAT-restating prose and changelog notes while retaining only non-obvious constraint tripwires and external rationale retrieval pointers.

What types of code comments should I keep for AI coding assistants?

For AI coding assistants, you should keep only tripwire comments that flag non-obvious constraints editors could break, and retrieval pointers that link to external rationale, removing all duplicate rationale and WHAT-restating prose.

How do I enforce a comment policy across AI code-writing sub-agents?

You can enforce a comment policy across AI code-writing sub-agents by using a pre-written push block that delegates the FR-22 rules, ensuring all sub-agents apply the retention and removal logic even if they do not auto-load the skill.

Does the FR-22 write-time comment policy work with Claude Code or Cursor?

The FR-22 write-time comment policy works with development workflows using AI-powered coding assistants like Claude Code or Cursor, automatically applying comment enforcement as you write or edit code files.

What is the best way to review code comments before an AI agent reads source code?

The best way to review code comments before an AI agent reads source code is to apply an automated pre-commit comment review that eliminates redundant comments and enforces retention of only useful tripwires and retrieval pointers.

Why do over-commented code files reduce AI agent performance?

Over-commented code files reduce AI agent performance because redundant WHAT-restating prose, changelog notes, and duplicate rationale waste valuable context budget, leaving less room for the actual source code logic the agent needs to process.