decomment

    2

    Automated comment stripping that removes clutter while preserving linter directives and TODOs across any language.

    Free

    4 installs5.0 (1 review)

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    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

    FileComments RemovedExceptions KeptStatus
    auth_service.py141 (TODO)Cleaned
    user_controller.ts233 (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

    1. Run your linter to ensure no remaining directives were missed.
    2. Verify that any removed docstrings weren't required for your IDE's autocomplete.
    3. 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-disable or type: ignore.
    • Retains TODO and FIXME markers to ensure outstanding tasks are not lost during cleanup.
    • Handles bulk processing across files or specific directories with precise str_replace edits.

    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 install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    4 people have installed this skill.

    Trust & safety

    Security scanned

    Verified clean 26 days ago

    • Free to download with an account

    Listed26 days ago

    What's inside

    Frequently Asked Questions