cavaleiro-ai

Refactor Guided — Code Quality skill for Claude Code

Code Quality community

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

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