- Home
- Skills
- Code Quality & Review
- decomment
decomment
by PisgaX
Automated comment stripping that removes clutter while preserving linter directives and TODOs across any language.
Free
decomment
Example session with this skill installed
Clean up the comments in auth_service.py and user_controller.ts. Keep any TODOs.
- Read your context and instructions
- Compiled the decomment
I have stripped all documentation, inline comments, and section headers from the specified files while preserving tool directives and TODO markers.
Code Cleanup Summary
| File | Comments Removed | Exceptions Kept | Status |
|---|---|---|---|
auth_service.py | 14 | 1 (TODO) | Cleaned |
user_controller.ts | 23 | 3 (ESLint directives) | Cleaned |
// user_controller.ts (Partial view)
import { Request, Response } from 'express';
import { UserService } from './user.service';
export class UserController {
private userService: UserService;
constructor() {
this.userService = new UserService();
}
// TODO: Implement rate limiting for this endpoint
async getUser(req: Request, res: Response) {
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
const { id } = req.params as any;
const user = await this.userService.findById(id);
return res.json(user);
}
}
Next steps
- Run your linter to ensure no remaining directives were missed.
- Verify that any removed docstrings weren't required for your IDE's autocomplete.
- Commit the changes to your feature branch.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
AI generated code often includes excessive explanatory comments and docstrings that clutter your codebase. Manual cleanup is tedious, prone to human error, and slows down the PR process.
What it does
- Identifies and removes all line, block, and inline trailing comments across any programming language.
- Deletes JSDoc, docstrings, and section dividers without impacting functional logic.
- Detects and preserves critical compiler directives like
eslint-disableortype: ignore. - Retains
TODOandFIXMEmarkers to ensure outstanding tasks are not lost during cleanup. - Handles bulk processing across files or specific directories with precise
str_replaceedits.
Why this beats prompting it yourself
Generic prompts often result in the AI "judging" which comments are useful, leading to inconsistent results. This skill enforces a zero-tolerance policy for documentation while safely protecting shebangs and linter instructions that actually affect build behavior.
Use cases
- Cleaning up AI-generated "chatter" comments before committing code to a repository.
- Stripping internal developer notes and dividers from a production-ready file.
- Minifying configuration files (YAML, JSON5, TOML) by removing all non-functional text.
- Standardizing code style across a legacy codebase by removing outdated documentation.
Known limitations
Will remove JSDoc and Python docstrings even if they are used to generate external API documentation unless explicitly told to skip them.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
This skill has been used 6 times.
Trust & safety
Security scan
Security scan passed 2 months ago
- Free with an Agensi account
- Software
Python
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.