Declutter

From SDiamante13/dotfiles · View interactive version

Declutter is an AI agent skill from the GitHub repository SDiamante13/dotfiles. Refactor code to remove dead code, useless comments, unused variables, and unused imports. Use when asked to declutter a class, clean up noisy code, remove cruft, or run `/refactor:declutter`.

How to use this skill

Skill file

Declutter Refactor

Ask the user for the file or directory to refactor. Support multiple files if a directory is provided.

Process

Work through these steps in order, making a separate commit for each step that finds issues:

  1. Remove unused imports
  2. Remove unused variables
  3. Remove unused methods
  4. Remove redundant/unnecessary comments
  5. Fix inconsistent formatting

After EACH step:

Output

Provide a brief summary at the end listing what was removed (e.g., "Removed 3 unused imports, 2 unused methods").

Commit Format

Use Arlo's Commit Notation (ACN):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.