workflow-refactor

Installation
SKILL.md

Refactor Code Skill

Degree of freedom: MIXED. Structure target [HIGH freedom]; behavior-preserving checks and affected tests [LOW freedom — run exactly].

How to reason

  1. Observe — current structure, callers, tests
  2. Interpret — duplication vs needed variation
  3. Classify — extract / inline / rename / stop (behavior would change)
  4. Severity — a public API change is not this skill

Worked example

Observe: three copy-pasted date formatters; tests only cover one. Interpret: same behavior, three implementations. Classify: extract formatDate; add the missing two call-site tests first (red), then extract (green). Verify: same output; no new features.

Installs
30
GitHub Stars
9
First Seen
Jun 15, 2026
workflow-refactor — kensaurus/cursor-kenji