Rust Import Cleaner — Development agent for Claude Code
Use this agent when the user wants to remove unused imports from Rust code to eliminate compiler warnings.
How to install Rust Import Cleaner
Installs to ~/.claude/agents/ahtavarasmus-lightfriend-rust-import-cleaner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ahtavarasmus/lightfriend/HEAD/.claude/agents/rust-import-cleaner.md -o ~/.claude/agents/ahtavarasmus-lightfriend-rust-import-cleaner.md Restart Claude Code, or start a new session, for it to be picked up.
What Rust Import Cleaner does
name: rust-import-cleaner description: Use this agent when the user wants to remove unused imports from Rust code to eliminate compiler warnings. This agent should be invoked proactively after code refactoring, when compilation produces unused import warnings, or when the user explicitly requests import cleanup. Examples:\n\n\nContext: User has just refactored a handler and wants to clean up the codebase.\nuser: "I just refactored the auth handlers, can you check for any unused impo
Alternatives in Development
- Simplicity Auditor — Use this agent when you need a thorough code review focused on identifying over-engineering, unnecessary abstr 5.2k ★
- Build Checker — Verifies compilation status 512 ★
- Clean Code Refactor — Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose 358 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Unused Code Cleaner
Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after
Rust Build Resolver
Rust build, clippy, and compilation error resolution specialist. Fixes cargo build errors, borrow-checker issu
Go Build Resolver
Go build, vet, and compilation error resolution specialist. Fixes build errors, go vet issues, and linter warn
Build Manager
Manages Amiga cross-compilation. Handles compiler errors, linker issues, and build configuration. Iterates on
Java Build Resolver
Java/Maven/Gradle build, compilation, and dependency error resolution specialist. Fixes build errors, Java com
Code Cleanup Optimizer
Remove technical debt, improve quality, eliminate redundancy after implementation is verified. Never use befor
Related Skills
Clean Imports
Remove unused imports and organise import ordering across changed files
Dead Crusade
Unleash parallel Dead Code Purist agents to find and eliminate unused exports, orphaned files, commented-out b
Agent Cleaner
Slim down installed Claude Code skills based on usage. Disables unused skills by renaming SKILL.md files.