code-cleanup
Delegate to Code Janitor
When you encounter repetitive, mechanical code tasks, launch the code-janitor agent instead of doing the work yourself to preserve context.
Delegate When:
- Fixing multiple linting errors across files
- Renaming variables/functions consistently across codebase
- Updating import statements in multiple files
- Fixing formatting or style violations throughout project
- Resolving IDE diagnostics in batch
- Bulk refactoring that doesn't require design decisions
Keep in Main When:
- Task requires architectural decisions
- Single file with 1-2 changes
- User explicitly wants you to do it
How:
Use Task tool with subagent_type: "essentials:code-janitor" providing task description and scope.
The code-janitor agent uses TodoWrite to track work, iterates until complete, and verifies with linters.
More from krmcbride/claude-plugins
github-content
Fetch GitHub issues, PRs, repo contents, and code using the gh CLI. Use when the user shares GitHub URLs (issues, PRs, repos, source files) or asks about GitHub content. The gh CLI provides complete content that web fetching often misses due to JavaScript rendering.
17code-examples
Find real-world code examples across millions of GitHub repositories. Use when the user wants to see how others implement something, find usage patterns, or discover code examples in the wild.
11documentation-lookup
Look up library and framework documentation. Use when the user asks about API docs, library usage, framework features, or mentions specific libraries/packages by name.
6