comment-review

Analyze source code to remove unnecessary comments and enforce TODO ownership.

1|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/specvital/infra --skill comment-review-specvital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comment-review
Source: https://github.com/specvital/infra/tree/main/.claude/skills/comment-review
Command: npx skills add https://github.com/specvital/infra --skill comment-review-specvital

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill aggressively reduces comment debt by identifying and removing unnecessary comments, outdated notes, and misleading narrations that do not add value to the codebase.

Core Features & Use Cases

  • Aggressive comment cleanup: detects verbose or redundant comments and suggests deletions or refactors.
  • Context-aware pruning: preserves essential explanations that explain external rules or complex logic using the WHY principle.
  • Use Case: Apply to legacy codebases with scattered comments to produce a cleaner, self-explanatory codebase ready for maintainability.

Quick Start

Run the comment-review skill on a file or directory to analyze and delete non-essential comments, then review the generated report and apply recommended refactors.

Frequently Asked Questions about comment-review

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

FAQPage Schema
How do I clean up unnecessary code comments in a legacy codebase?

To clean up unnecessary code comments, you can analyze source files to aggressively detect and remove verbose or outdated notes. This process enforces refactoring over comment-based explanations, producing a cleaner, self-explanatory codebase ready for maintainability.

What is the best way to handle TODO comments that are missing owners and tickets?

The best way to handle TODO comments missing owners and tickets is to enforce a strict review rule that requires this metadata. Analyzing the codebase identifies non-compliant TODOs and guides developers to either add the required tracking information or remove the debt through refactoring.

Can I use static analysis to remove code comments across an entire project?

Yes, you can use static analysis to remove code comments across an entire project. The analysis applies to single files or entire directories across multiple languages, targeting legacy code with comment debt to suggest deletions and refactors for non-essential narrations.

Does aggressive comment cleanup preserve explanations for complex logic?

Yes, aggressive comment cleanup preserves explanations for complex logic by applying context-aware pruning. It retains essential comments that explain external rules or the WHY principle behind difficult code, while identifying and removing misleading narrations that do not add value.

When should I avoid removing comments during code refactoring?

You should avoid removing comments during code refactoring when the comment explains external rules or complex logic using the WHY principle. Legitimate explanations that clarify non-obvious constraints are intentionally preserved, while redundant or outdated notes are safely pruned.