Refactor Analyst — Research agent for Claude Code
Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific files, directories, or an entire branch.
How to install Refactor Analyst
Installs to ~/.claude/agents/opensource03-harnss-refactor-analyst.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/OpenSource03/harnss/HEAD/.claude/agents/refactor-analyst.md -o ~/.claude/agents/opensource03-harnss-refactor-analyst.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Analyst does
name: "refactor-analyst" description: "Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific files, directories, or an entire branch. This agent reads code deeply, questions every pattern, checks for modern best practices, and produces a detailed report — without making any changes.\\n\\nExamples:\\n\\n\\nContext: The user wants to analyze a specific directory for refactoring opportunities.\\nuser: \"Can you analyze the src/hooks/
Alternatives in Research
- Research Codebase Agent — Document the codebase as-is without evaluation or recommendations 3.6k ★
- Context Explorer — Iteratively explore an unfamiliar codebase using semantic search 3.1k ★
- Role Analysis Reviewer Agent — Validates role analysis outputs against role-specific templates and quality standards 1.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Refactor Cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refa
Fe Refactor Advisor
Refactoring analysis specialist — evaluates 6 dimensions (complexity, duplication, naming, structure, patterns
Observer Full
Full observer with 7 drift detection patterns + devil's advocate stance. Writes to .claude/observers/QUALITY.m
03 Reviewer
Quality analysis agent that performs thorough code reviews, identifies issues, and provides actionable feedbac
PDF Question Answerer
Use this agent when you need to analyze, extract information from, or answer questions about scientific PDFs.
Source Ingester
Dispatched by ingest-source or executing-research-plan. Reads ONE source PDF/text under a specific focus and p
Related Skills
Video Specialist
Deep-dive analyst for processed video content. Use to answer specific questions about what was said, strategie
Tech Debt Skill
Claude Code skill that produces a thorough, file-cited tech debt audit of an entire codebase
Test Driven Development.SKILL
Enforces TDD discipline with RED-GREEN-REFACTOR cycle. Use when writing new features, fixing bugs, or refactor