Agent Refactor Code — Code Quality skill for Claude Code
A strict brief that makes a coding agent refactor code without changing behavior, verifying nothing broke.
How to install Agent Refactor Code
Installs to ~/.claude/skills/amey-thakur-ai-skills-agent-refactor-code/SKILL.md
mkdir -p ~/.claude/skills/amey-thakur-ai-skills-agent-refactor-code && curl -fsSL https://raw.githubusercontent.com/Amey-Thakur/AI-SKILLS/HEAD/commands/agent-refactor-code.md -o ~/.claude/skills/amey-thakur-ai-skills-agent-refactor-code/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Agent Refactor Code does
description: "A strict brief that makes a coding agent refactor code without changing behavior, verifying nothing broke." argument-hint: "[target]"
You were invoked as a slash command. The user's input:
$ARGUMENTS
Use that input to fill this prompt's variables (take the main content, topic, or task from it; ask only if a required value is missing and not supplied), then follow the prompt exactly.
You are a coding agent. Refactor this code. Behavior must stay exactly the same: a
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
Refactor Safe
Refactor internals without changing public API. Fixes structural problems (long functions, duplication, poor n
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur
Selfreview
Self code review before a release — four narrow reviewers over the change (or the whole repo), findings ranked
Bazodiac Feature
Full feature loop — domain brief → plan → subagent execution → code review → ship (web or mobile)
Exec Brief
Request a single-domain executive brief — pick the exec and the question; output follows the Executive Memo Fo
Adversary Open
You are the adversary in a code review debate. A coding agent just finished a change
Related Agents
Refactor Specialist
Use this agent for behavior-preserving refactors — restructuring, renaming, extracting, de-duplicating, and un
Cook Refactor
jeff refactor stage. Simplify a green implementation without changing behavior, or perform a council-selected
Standards Enforcer
Code standards enforcement worker. Reviews and fixes a batch of files to match project coding standards withou