Code Cleanup
Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring and build verification gates
- Type
- Plugin
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Version
- 1.7.0
- Author
- Jeremy Longshore
What Code Cleanup is
Code Cleanup is a plugin published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.
Installing Code Cleanup adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.
How to install Code Cleanup
Claude Code
- Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace
- Install the plugin: claude plugin install code-cleanup@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
- Restart the session if the new skills or commands don't appear straight away.
Claude Cowork
- Open Customize → Plugins and choose Add marketplace.
- Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub).
- Find Code Cleanup in the list, click Install, then connect any connectors it needs from its Connectors tab.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/testing/code-cleanup/.claude-plugin/plugin.json, shared under the repository's MIT license. Read the full file on GitHub.
Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring, build verification gates, and specialized agents.
Born from a real cleanup session — 25,000 lines removed, 4 bugs caught — packaged into a reusable Claude Code plugin.
Quick Start
# Install
claude /plugin marketplace add jeremylongshore/claude-code-plugins
# Run full cleanup
/cleanup
# Target specific dimensions
/cleanup --dimensions dead,types,security
# Scope to directory
/cleanup src/api/
# Changed files only
/cleanup --changedThe 11 Dimensions
Ordered by risk level (LOW → HIGH):
Safety First
- Never auto-applies high-risk changes — always flags for review
- Confidence scoring on every finding (HIGH/MEDIUM/LOW)
- Build verification gate after each auto-applied dimension
- One-command revert if anything breaks
- Clean git state required before starting
Agents
11 specialized agents, one per dimension:
- dead-code-hunter — finds unreachable and unused code
- slop-remover — identifies AI-generated comment noise
- weak-type-eliminator — strengthens type annotations
- security-scanner — flags secrets, injection vectors, weak crypto
- legacy-code-remover — modernizes deprecated patterns
- type-consolidator — merges duplicate type definitions
- defensive-code-cleaner — removes unnecessary guards
- performance-optimizer — spots N+1 queries, blocking I/O, bloat
- dry-deduplicator — detects copy-paste code blocks
- async-pattern-fixer — catches floating promises and race conditions
- circular-dep-untangler — maps and resolves module cycles
Language Support
Primary: TypeScript, JavaScript, Python Secondary: Go, Rust (via grep patterns) Tool integrations: knip, madge, ruff, jscpd, dependency-cruiser, bandit, vulture
How It Works
- Safety checkpoint — verify clean git state, green tests, record baseline
- Scope determination — full codebase, directory, or changed files
- Dimensional scan — each dimension scans with tools + grep patterns
- Confidence scoring — HIGH (auto-apply), MEDIUM (flag with fix), LOW (flag only)
- Build verification — type check + tests after each auto-applied dimension
- Report generation — summary table, applied changes, flagged items
License
MIT
Author
Jeremy Longshore — Intent Solutions
Contributors
- Jeremy Longshore (@jeremylongshore)
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Code Cleanup?
Code Cleanup is a plugin for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring and build verification gates
How do I install Code Cleanup in Claude Code?
Add the repository as a plugin marketplace: claude plugin marketplace add jeremylongshore/tons-of-skills-marketplace Install the plugin: claude plugin install code-cleanup@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.
Can I use Code Cleanup in Claude Cowork?
Open Customize → Plugins and choose Add marketplace. Enter jeremylongshore/tons-of-skills-marketplace (the owner/repo shorthand works for GitHub). Find Code Cleanup in the list, click Install, then connect any connectors it needs from its Connectors tab.
Is Code Cleanup safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Guidewire Pack Claude Code skill pack for Guidewire InsuranceSuite (10 skills) Plugin · jeremylongshore/tons-of-skills-marketplace
- Grid Designs spatial foundations — spacing scales, responsive grids, breakpoints, and layout primitives for design systems. Use when creating or auditing layout systems for a product. Trigger with \"design a layout system\", \"audit our grid\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Helm Chart Generate Helm charts for Kubernetes applications Slash Command · jeremylongshore/tons-of-skills-marketplace
- Hex Pack Claude Code skill pack for Hex (18 skills) Plugin · jeremylongshore/tons-of-skills-marketplace
- Coderabbit Pack Evidence-backed CodeRabbit operator workflows for reviews, CLI, configuration, security, governance, APIs, and incident response (24 skills) Plugin · jeremylongshore/tons-of-skills-marketplace
- Cloud Cost Optimizer Optimize cloud costs and generate cost reports Plugin · jeremylongshore/tons-of-skills-marketplace
- Cohere Pack Source-grounded Cohere v2 operator workflows for Chat, Embed, Rerank, RAG, tools, security, migration, and production operations Plugin · jeremylongshore/tons-of-skills-marketplace
- Clickup Pack Production-grade Claude Code operator workflows for governed ClickUp integrations (24 skills) Plugin · jeremylongshore/tons-of-skills-marketplace