mcpField
C
cleanup

cleanup

github.com/mkanatDevelopment7145 installsUpdated 9w ago
Repository

About cleanup

cleanup is a code-review skill that inspects a change or codebase for redundant transformations, compatibility shims, defensive code, and deduplication. It fixes findings and repeats the inspection until no further cleanup is found.

Key features

  1. 01Inspect changes or the full codebase
  2. 02Find redundant transformations and indexes
  3. 03Identify unnecessary shims and defensive code
  4. 04Fix findings and re-inspect iteratively

Use cases

  1. 01Review a change for unnecessary code
  2. 02Simplify data-flow transformations
  3. 03Remove avoidable compatibility layers
  4. 04Recheck code after each cleanup pass

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mkanat/skills --skill cleanup

After installing, type/cleanupin Claude Code to confirm it loaded.

Details

From the project README

Cleanup

Look over the current change (or the whole codebase if there is no current change) and look for:

  • Any transformations or indexes that are redundant with data structures or relationships already known earlier in the whole-program data flow.
  • Any backwards-compatibility shims, unnecessary defensive code, or unnecessary deduplication.
  • For any deduplication added in this change, ask yourself: could these objects have arrived here inherently deduplicated?

Print out your findings, if any. Then, fix any findings you found.

After fixing your findings, look over the code again: now that we have done that cleanup, are there any other cleanups available? Print out your new findings. Then fix them.

Continue to do that in a loop (look over the code again, find any new cleanups that are visible now that you've fixed the last ones, print them out, and fix them if you find any) until you find no more cleanups to do upon reinspection.

Comments

Markdown supported