By joowankim
Legacy code refactoring specialist - clean up your messy code with safe, test-driven refactoring
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin joowankim-declutterSafe, test-driven refactoring plugin for Claude Code
Legacy code cleanup with systematic assessment, behavior-preserving tests, and atomic changes.
# Add the marketplace
/plugin marketplace add joowankim/declutter
# Install the plugin
/plugin install declutter@declutter
/plugin install /path/to/declutter
/assess src/
Identifies code smells, complexity hotspots, and refactoring opportunities.
/declutter src/problematic-module.py
Automatically starts the 5-step workflow:
All tests pass, behavior is preserved, and code quality is improved.
Declutter follows three iron laws:
| Iron Law | Meaning |
|---|---|
| No refactoring without assessment | Never change code before understanding it |
| No code changes without tests | Capture behavior with characterization tests first |
| No completion without verification | Confirm all tests pass |
| Command | Purpose |
|---|---|
/assess | Codebase quality assessment |
/declutter | Start refactoring workflow |
/migrate | Gradual migration |
Declutter uses specialized agents:
| Agent | Role | Model |
|---|---|---|
declutter-analyzer | Code analysis | Sonnet |
declutter-smell-detector | Smell detection | Haiku |
declutter-executor | Refactoring execution | Sonnet |
declutter-reviewer | Final verification | Opus |
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ /assess │ ──▶ │ /declutter │ ──▶ │ Done │
│ Analyze │ │ Refactor │ │ Improved │
└─────────────┘ └─────────────┘ └─────────────┘
│ │
▼ ▼
Assessment 5-Step Workflow
Report (Assess→Plan→Test→Execute→Verify)
See docs/ for detailed documentation:
MIT License - see LICENSE for details.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
Team-oriented workflow plugin with role agents, 27 specialist agents, ECC-inspired commands, layered rules, and hooks skeleton.
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.
Complete collection of battle-tested Claude Code configs agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use