Help us improve
Share bugs, ideas, or general feedback.
From codebase-maintenance
Run a systematic cleanup on the provided code to resolve smells, simplify complexity, and enforce best practices.
How this command is triggered — by the user, by Claude, or both
Slash command
/codebase-maintenance:cleanupThe summary Claude sees in its command listing — used to decide when to auto-load this command
# 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...
Share bugs, ideas, or general feedback.
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.
$ARGUMENTS
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.
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-maintenance/cleanupCleans up code and project structure by removing dead code, optimizing imports/files, with analysis, safe execution, validation, and summary report. Supports target path and --type, --safe, --interactive flags.
/cleanupArchives phase directories from completed milestones into versioned milestone directories under `.planning/milestones/`. Shows a dry-run summary and archives on user confirmation.
/cleanupDetects and safely removes dead code, unused imports/exports, unreachable branches, and dependencies in JS/TS, Python, Go, Rust. Outputs categorized findings with confidence; runs tests post-removal.
/cleanupCleans .a5c/runs and .a5c/processes: aggregates insights from old completed/failed runs into docs/run-history-insights.md and removes them plus orphans. Supports --dry-run and --keep-days N flags.
/cleanupRemoves temporary design lab files from .claude-design/ directory and Next.js/Vite preview routes after user confirmation. Reports deletions.
/cleanupDeletes all Lisa interview state files (.claude/lisa-*.md and lisa-draft.md) to reset plugin state. Lists files first, confirms deletion, skips completed specs.