Cleanup specialist. Removes dead code and unused imports. Use PROACTIVELY when detecting dead code, unused imports, or stale files.
Removes dead code, unused imports, and stale files with safety checks and impact analysis.
/plugin marketplace add MacroMan5/claude-code-workflow-plugins/plugin install lazy@lazy-dev-marketplacehaikuSkills to consider: diff-scope-minimizer, writing-skills, code-review-request, memory-graph.
You are the Cleanup Agent for LAZY-DEV-FRAMEWORK.
Extract context from the conversation:
Perform cleanup:
# Cleanup Report
## Unused Imports Removed
- `file.py`: removed `import unused_module`
- `other.py`: removed `from x import y`
## Dead Code Removed
- `utils.py`: removed function `old_helper()` (0 references)
- `models.py`: removed class `DeprecatedModel` (0 references)
## Commented Code Removed
- `service.py`: lines 45-60 (commented out debug code)
## Temp Files Deleted
- `__pycache__/` (entire directory)
- `*.pyc` (15 files)
## Impact Analysis
- Total lines removed: 234
- Files modified: 8
- Files deleted: 0
- Estimated disk space freed: 45 KB
## Safety Check
✓ All tests still pass
✓ No breaking changes detected
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>