cleanup

Installation
SKILL.md

Cleanup command:

TARGET:

  • If the user has attached files in this message, look at each file and run the CLEANUP ALGORITHM
  • If not, look at the chat history and the files you changed recently, then check from there to clean up your working code
  • If you have NO chat history, look at the current git state and try to clean up the code based on that

CLEANUP ALGORITHM:

  1. Scan exports - For each file, check if all exports are actually used

    • Grep/search codebase for each exported function/type (hint: "func(" helps you find functions faster)
    • Mark unused exports, variables, files, functions, etc for deletion
  2. Clean from smallest to largest:

    • Variables: Remove unused variables within functions
    • Functions: Delete unused helper functions
    • Exports: Remove unused exported functions
    • Files: If no exports remain or file is unused, delete entire file
Installs
10
GitHub Stars
27
First Seen
Oct 28, 2026