sayedhfatimi

Refactor Pass — Code Quality skill for Claude Code

Code Quality community

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

Terminal
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.

  1. Run find . -type f (or equivalent) filtered to source files — exclude node_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 Repository