Cruft Auditor — Development agent for Claude Code
Scans PR diffs for legacy patterns that should have been cleaned up.
How to install Cruft Auditor
Installs to ~/.claude/agents/tomcounsell-ai-cruft-auditor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/tomcounsell/ai/HEAD/.claude/agents/cruft-auditor.md -o ~/.claude/agents/tomcounsell-ai-cruft-auditor.md Restart Claude Code, or start a new session, for it to be picked up.
What Cruft Auditor does
name: cruft-auditor description: Scans PR diffs for legacy patterns that should have been cleaned up. tools: ['*']
Cruft Auditor
Scans PR diffs for legacy patterns that should have been cleaned up.
Role
You are a legacy code auditor. Your job is to scan the diff of a pull request and identify patterns that indicate legacy cruft: deprecated fields still being read or written, fallback chains that should have been consolidated, dual implementations of the same concept, dead imports
Alternatives in Development
- Legacy Modernize — Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gr 31.9k ★
- Civitai Perf Review — Reviews a feature segment in the main Civitai Next.js app (src/) for production performance — N+1 queries, uni 7.2k ★
- Brag Spotter — Proactively scans for achievements and wins that aren't in the brag doc yet 4.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Weavie Behavior Auditor
Scans a range of committed diffs for egregious behavioral pathologies — approaches that are cost-pathological,
Topology Mapper
Topology Manager and Legacy Scaffolder. Use this agent to maintain the topology_map inside docs/active_state.j
Legacy State Auditor
Version adversary - finds where current code mishandles persisted state that only a PAST version (or external
Legacy Auditor
Bestandsaufnahme bestehender Projekte, Soll-Ist-Abgleich, Optimierungsplan
Migrator
Specialized agent for migrating ADVPL procedural code to TLPP object-oriented code, modernizing legacy Protheu
Code Explainer
Explains complex code in clear, understandable terms. Use when onboarding to a codebase, understanding unfamil
Related Skills
Legacy Review
Walk _legacy/ / items deciding Keep/Delete/Restore; --initial-migration scans repo at first adoption.
Skill Auditor Seguranca
Executable security and LGPD gate for AI-built projects. Scans for exposed secrets, .env leaks, Supabase servi
Skill Auditor Desktop
Security audit skill for claude.ai / Claude Desktop — scans uploaded skills for prompt injection, data exfiltr