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
654 skills46 agents54 commands
Install
$ npx -y skills add yeaight7/agent-powerups --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cleanup

Context preview

What this command does when you run it.

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

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.

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

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
2
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
11d ago
Last commit
3mo ago
Created

Repo: yeaight7/agent-powerups