What problem does it solve?
This Skill reduces noisy, over-explained Python comments and developer docstrings so code becomes easier to read, maintain, and review. It helps teams preserve rationale and constraints while removing redundant narration that merely repeats what the code already says.
Core Features & Use Cases
- Comment compression with guardrails: Rewrites verbose comments into compact, why-first notes and deletes trivial what-comments.
- Protected surfaces enforcement: Avoids changing @mcp.tool docstrings, Field(description=...) strings, and functional pseudo-comments such as noqa, type: ignore, pragma, formatter, shebang, and encoding directives.
- AST-based safety gate: Uses a validation script to prove edits are comment-only and do not alter executable code or protected literals.
- Use cases: Ideal for Python repositories that want cleaner internal documentation, more maintainable helper docstrings, and safer comment cleanup during refactors or style sweeps.
Quick Start
Ask the assistant to run compress-code-comments on a specific Python file or directory to tighten developer comments without changing behavior.