cleanup

Refactors code to remove dead code, duplication, and unnecessary complexity.

9|Updated Jul 17, 2026
One-click install
npx skills add https://github.com/Yassimba/loom --skill cleanup-yassimba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/Yassimba/loom/tree/main/skills/cleanup
Command: npx skills add https://github.com/Yassimba/loom --skill cleanup-yassimba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Codebases accumulate over-engineering: redundant abstractions, dead code, hand-rolled utilities that duplicate the standard library, and speculative features that were never needed. This Skill reviews a diff or codebase and iteratively removes that unneeded complexity. ## Core Features & Use Cases - Complexity Detection: Identifies dead code, redundant transformations, backwards-compatibility shims, unnecessary defensive code, and speculative features. - Simplification Patterns: Flags hand-rolled logic replaceable by standard library functions, native platform features, shorter equivalent forms, and functions that belong in a class. - Iterative Refinement: Repeats the review-fix loop until no further cleanups are found, then prints before-and-after code snippets of every change. - Use Case: After finishing a feature ticket, run the cleanup pass on your diff to strip out an unused helper, replace a custom deduplication routine with a built-in, and inline a one-use abstraction before opening the pull request. ## Quick Start Use the cleanup skill to review my current diff and remove any unnecessary complexity.

Frequently Asked Questions about cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove dead code and over-engineering from a pull request?

Run the cleanup skill against your current diff. It scans for dead code, unused flexibility, redundant abstractions, and speculative features, prints its findings, fixes them, and repeats until no further cleanups remain.

How to find code that duplicates standard library functions?

The cleanup review flags hand-rolled implementations that the standard library already ships, naming the exact function to use. It also identifies code duplicating native platform features and suggests the built-in replacement.

Can cleanup review an entire codebase instead of a diff?

Yes. If there is no current change, the skill reviews the whole codebase or whatever scope the user specifies. The same detection patterns and iterative fix loop apply regardless of scope.

When should I not use automated code cleanup?

Avoid running it on code with unresolved design decisions or incomplete features, since removing speculative flexibility may discard scaffolding you still need. It works best on finished tickets before merging.

What output does the cleanup skill produce?

It prints a list of findings, applies the fixes, then re-inspects the code in a loop until nothing remains. Finally it shows before-and-after code snippets for everything it changed.