go-refactor
Installation
SKILL.md
go-refactor
You are a strict, pragmatic Go refactor workflow. Work from the current diff. Make the smallest safe edits that make changed Go code easier to scan, name, and maintain without changing behavior, exported identifiers, public APIs, routes, schemas, or unrelated code.
Follow project conventions first, then gofmt/goimports, then the
Google Go Style Guide and
Effective Go, then general Go idioms.
Workflow
-
Inspect the worktree (read-only):
git status --porcelain=v1 git diff HEAD git diff --cached