Cleanup Phase 4 Survey — Security agent for Claude Code
Surveys local reshaping targets for phase 4 of a codebase cleanup — the god functions and type debt the 1.4 audit recorded, the duplicate pairs phase 2 never consumed, filtered by churn and by whether.
How to install Cleanup Phase 4 Survey
Installs to ~/.claude/agents/crangelp-codebase-cleanup-cleanup-phase-4-survey.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/CRangelP/codebase-cleanup/HEAD/agents/cleanup-phase-4-survey.md -o ~/.claude/agents/crangelp-codebase-cleanup-cleanup-phase-4-survey.md Restart Claude Code, or start a new session, for it to be picked up.
What Cleanup Phase 4 Survey does
name: cleanup-phase-4-survey description: Surveys local reshaping targets for phase 4 of a codebase cleanup — the god functions and type debt the 1.4 audit recorded, the duplicate pairs phase 2 never consumed, filtered by churn and by whether a test actually exercises each one — and returns the tier A queue plus at most five tier B candidates with a recommendation. Read-only by design: tier B moves a domain word or a signature, and that is the user's call. disallowedTools: Write, Edit
Y
Alternatives in Security
- Token Auditor — Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d 79.4k ★
- JS Error Handler Auditor — Use this agent when you need to audit a JavaScript codebase for unhandled errors in top-level async operations 6.1k ★
- Project Auditor — Read-only health audit of the VibeFrame monorepo 165 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Audit Specialist
Use this agent for codebase audits — tech-debt audits, hotspot analysis, dead-code sweeps, coupling/churn fore
Type Auditor
Short-lived agent that consolidates duplicate type definitions found across parallel stories. Spawned by wave-
Recheck Verifier
Fresh-context re-audit of a right-arm verifier's PASS (task-verifier / integration-verifier / acceptance-verif
Audit Triage
Prioritizes existing audit tickets, records executable triage metadata, and models dependencies consumed by au
Team Finisher
Final cleanup specialist. Removes all console.log statements (including audit diagnostic logs) and enforces co
Audit Sweep
A read-only audit or survey sweep — reviewing a corpus against a stated rule and reporting what violates it, w
Related Skills
Git Ops
Git + worktree orchestrator entry point. /git-ops --landall surveys every branch/worktree and batch-lands the
Synthesize Research
Synthesize user research from interviews, surveys, and feedback into structured insights and recommendations.
Seance
Read-only survey of a whole repository at a ref for standing simplification targets — pattern contention, dead