Refactor Pass — Code Quality skill for Claude Code
Produce a comprehensive, non-destructive REFACTOR_PLAN.md for the current codebase — a read-only structural analysis that surveys naming, structure, consolidation, and dead code, and drives a later.
How to install Refactor Pass
Installs to ~/.claude/skills/sayedhfatimi-claude-skills-refactor-pass/SKILL.md
mkdir -p ~/.claude/skills/sayedhfatimi-claude-skills-refactor-pass && curl -fsSL https://raw.githubusercontent.com/sayedhfatimi/claude-skills/HEAD/commands/refactor-pass.md -o ~/.claude/skills/sayedhfatimi-claude-skills-refactor-pass/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Pass does
Produce a comprehensive, non-destructive `REFACTOR_PLAN.md` for the current codebase — a read-only structural analysis that surveys naming, structure, consolidation, and dead code, and drives a later implementation phase.
Phase 1 — Project Survey
Start by building a complete picture of the project before reading individual files.
- Run
find . -type f(or equivalent) filtered to source files — excludenode_modules,.git,dist,build,.next,coverage, and any lock file
Alternatives in Code Quality
- Brooks Sweep — Run all Brooks-Lint analyses in one pass, auto-fix safe findings, confirm risky ones 1.5k ★
- Format — Run the black formatter on the entire codebase 1.1k ★
- WP Phpstan — WordPress static analysis with PHPStan 902 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Resume Plan
Resume the architecture refactor — read roadmap + memory, report current state, ask pending questions
Refactor Safe
Refactor internals without changing public API. Fixes structural problems (long functions, duplication, poor n
Cleanup Code
Remove dead code, unused imports, optimize structure, and improve code quality.
My Project Standards
A Claude Code skill that makes Claude build, extend, refactor, and review projects using my development standa
Odoo Plan
Clarify and plan a non-trivial Odoo feature or refactor before implementation.
Advanced Code Review Review
Advanced Code Review Phase 3: Deep Review - multi-pass code analysis, finding generation with severity classif
Related Agents
Refactor Cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refa
Mobile Researcher
Surveys an Android or iOS codebase to populate the Research section of a tasks/ .md spec file before any plann
Craft Specialist
Structural refactor agent. Delegate here for refactor, cleanup, anti-pattern removal, readability improvements