# Claude Code Agent: Unused Code Cleaner > Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after refactoring, when removing features, or before production deployment. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx claude-code-templates@latest --agent development-tools/unused-code-cleaner --yes ``` Inspect before activation: ```bash npx claude-code-templates@latest --agent development-tools/unused-code-cleaner --yes --dry-run ``` --- ## What This Agent Covers Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after refactoring, when removing features, or before production deployment. This TokRepo page is an original install wrapper for the upstream Claude Code agent. It records the install path, source SHA, operational profile, and verification command without republishing the full upstream prompt body. --- ## Operating Profile - Category: Development Tools - Claude Code Templates path: `development-tools/unused-code-cleaner` - Tools declared upstream: Read, Write, Edit, Bash, Grep, Glob - Best fit: Claude Code projects that need a focused specialist agent and reproducible install command. - Codex usage: stage and inspect generated files before activation when project-global behavior is sensitive. --- ## Verification ```bash npx claude-code-templates@latest --agent development-tools/unused-code-cleaner --yes --dry-run ``` Expected installed file: ```text .claude/agents/unused-code-cleaner.md ``` --- ## Source & License - Source: [davila7/claude-code-templates development-tools/unused-code-cleaner.md](https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/agents/development-tools/unused-code-cleaner.md) - Source SHA: `27774e4c46c3db9788ead8c5c9d67f7a5547f1cd` - Wrapper content hash is stored in TokRepo metadata. - License: MIT --- Source: https://tokrepo.com/en/workflows/claude-code-agent-unused-code-cleaner-fb99be5d Author: TokRepo精选