Refactor — Code Quality skill for Claude Code
We are about to refactor code.
How to install Refactor
Installs to ~/.claude/commands/badlogic-lemmy-refactor.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/badlogic/lemmy/HEAD/.claude/commands/refactor.md -o ~/.claude/commands/badlogic-lemmy-refactor.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor does
We are about to refactor code:
- Ask which files we want to refactor
- Ask me what we want to do
- Do not make changes before instructed to do so
Alternatives in Code Quality
- 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 ★
- Symfony TDD Pest — Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle 206 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Symfony TDD Phpunit
Start a TDD workflow using PHPUnit for Symfony with RED-GREEN-REFACTOR cycle
Htmlstyleguides 3qh
Refactor fencing video to use StickFight.attack() and contact-driven sparks
Logic Diff
Check two code versions for semantic equivalence — use after a refactor or rewrite
Fec Refactor Clean
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Dry Refactor
Find code duplication and extract shared logic
Related Agents
New Track
Create a new track (feature, bug fix, chore, or refactor) with a detailed specification and phased i... - wsho
TDD Orchestrator
TDD orchestrator enforcing red-green-refactor discipline and test-driven development