Refactor Guided — Code Quality skill for Claude Code
Systematic, safety-first refactoring with verification at each step.
How to install Refactor Guided
Installs to ~/.claude/skills/cavaleiro-ai-claude-workflow-v2-refactor-guided/SKILL.md
mkdir -p ~/.claude/skills/cavaleiro-ai-claude-workflow-v2-refactor-guided && curl -fsSL https://raw.githubusercontent.com/cavaleiro-ai/claude-workflow-v2/HEAD/commands/refactor-guided.md -o ~/.claude/skills/cavaleiro-ai-claude-workflow-v2-refactor-guided/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Guided does
allowed-tools: Bash(git:*), Bash(npm:*), Bash(npx:*), Bash(yarn:*), Bash(pnpm:*), Bash(bun:*), Bash(pytest:*), Bash(python:*), Bash(go:*), Bash(cargo:*), Read, Write, Edit, Glob, Grep description: Systematic, safety-first refactoring with verification at each step. Never refactors and adds features simultaneously. argument-hint: "[target file, directory, or refactoring description]"
Guided Refactoring
Perform safe, incremental refactoring with test verification at every step.
Con
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Repren — Power rename/refactor tool (now with Claude Code skill support 371 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cfn Vote Implement
MUST BE USED after cfn-dry-review or cfn-alpha-launch:manifest produces a manifest. Also verification phase of
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Twin Sparrow Code Quality Skill
Review, refactor, and harden code for correctness, maintainability, testability, and operational safety across
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Refactor Simple
Quick refactoring check for Python code focusing on:
Fowler Refactor Skill
Martin Fowler refactoring patterns agent skill for Claude Code / OpenCode
Related Agents
Code Refactor
Improve code structure, performance, and maintainability through systematic refactoring. Specializes in legacy
Go Refactor
Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate r
Frontend Refactor
Staff Frontend Engineer for large-scale react refactors. Use for app-wide refactoring to react best practices.