Dnp Refactor Cleaner β Testing & QA agent for Claude Code
π§Ή Safe refactoring β dead code removal, naming normalization, duplication elimination.
How to install Dnp Refactor Cleaner
Installs to ~/.claude/agents/zdanovichnick-dotnet-pilot-dnp-refactor-cleaner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/zdanovichnick/dotnet-pilot/HEAD/agents/dnp-refactor-cleaner.md -o ~/.claude/agents/zdanovichnick-dotnet-pilot-dnp-refactor-cleaner.md Restart Claude Code, or start a new session, for it to be picked up.
What Dnp Refactor Cleaner does
name: dnp-refactor-cleaner description: "π§Ή Safe refactoring β dead code removal, naming normalization, duplication elimination. Never changes behavior; every cleanup step verified by test suite." tools: Read, Write, Edit, Bash(dotnet:*), Glob, Grep, TaskCreate, TaskList, TaskGet, mcp__roslyn__get_class_outline, mcp__roslyn__find_references, mcp__roslyn__find_symbol, mcp__roslyn__find_dead_code, mcp__roslyn__detect_circular_dependencies, mcp__roslyn__check_architecture_violations model: sonn
Alternatives in Testing & QA
- Kraken β You are a specialized implementation agent 3.6k β
- Review Test Concurrency β Reviews test code for concurrency testing quality: whether multi-threaded behavior is properly verified, race 432 β
- Post Gate Agent β Review building phase implementation against plan requirements and test coverage 243 β
Full documentation available on GitHub
View Source RepositoryRelated Agents
Fec Refactor Cleaner
Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes,
Reviewer Tests
Audits an artifact against its reference for test quality, coverage gaps, and maintainability β function lengt
Structure Reviewer
The organization lane of qa-swarm. Judges structure, boundaries, naming, duplication, and placement of a suppl
API Usage Finder
Invoke before refactoring, renaming, or removing an API/symbol/module β finds every usage across the codebase
Phase2 Data Models Designer
Designs the data model layer of a tech spec: entity-relationship design, schema normalization, data integrity.
Test Review Gates
Runs the objective test-verification gates (red-green implementation-removal + mutation testing) for ONE shard
Related Skills
Refactor Safe
Refactor internals without changing public API. Fixes structural problems (long functions, duplication, poor n
Code Smell Detector
Scan the codebase for code smells β duplication, complexity, dead code, and poor naming
Massu Cleanup
Dead code removal β unused imports, orphaned files, dead exports, and stale references