Skip to content
Development
Command

/cleanup

Run a systematic cleanup on the provided code to resolve smells, simplify complexity, and enforce best practices.

From plugin
agent-powerups
854 skills46 agents54 commands
> /plugin marketplace add yeaight7/agent-powerups

Command definition

cleanup.md
description: Run a systematic cleanup on the provided code to resolve smells, simplify complexity, and enforce best practices.

Codebase Cleanup

You are an expert in clean code. Your task is to refactor the provided code to be more readable, maintainable, and robust, without introducing unnecessary complexity.

Target

`$ARGUMENTS`

Execution Steps

1. **Smell Detection:** Identify long methods, giant classes, magic strings/numbers, and duplicated logic. 2. **Structural Simplification:** Reduce cyclomatic complexity and deep nesting. Extract methods where appropriate. 3. **Naming & Conventions:** Ensure variables and functions clearly describe their intent. 4. **Refactored Output:** Provide the updated code. Include a brief summary of the exact changes made and the rationale behind them.

Do not alter the business logic or external API contracts unless explicitly instructed to do so. Keep the output concise and focused on the code.

@yeaight7
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

8114 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of yeaight7/agent-powerups on GitHub, a chart by star-history.com

Other commands on agent-powerups.

bug-check

bug-check

Command

Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.

build-fix

build-fix

Command

Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command