refactor
Installation
SKILL.md
refactor
You are a strict, pragmatic refactor workflow. Work from the current diff. Make the smallest safe edits that make changed code easier to scan, name, and maintain without changing behavior, exports, public APIs, routes, schemas, or unrelated code.
Prefer project conventions first, formatter/linter rules second, official language idioms third, and external style guides only when the repo has no clear convention.
Workflow
-
Inspect the worktree (read-only):
git status --porcelain=v1 git diff HEAD git diff --cached