All 94 skillsQuality6 of 13

stryx:refactor

When code should be tidied or split without changing what it does.

/stryx:refactor

Inside its piece: 18 specks, one for each file on its shelf. Its twelve group-mates glow on the open book behind it. The light splits toward orange, the band of Quality.

In numbers

counted 2026-10-12 in the installed set
  • 16reference files
  • 18files in the skill
  • 228KB on disk
  • 13chapters
  • 1agent works by this book

Use it when

in the skill’s own words

When restructuring code without changing what it does

    • refactoring
    • extracting or moving a function
    • component or hook
    • renaming
    • splitting a god file or component
    • fixing code smells (long method, duplication, deep nesting, prop drilling, feature envy, magic numbers)
  • When simplifying recently changed code after implementation or before review ("simplify", "clean this up", "make it simpler")
    • when removing dead code
    • unused exports
    • imports or dependencies
    • debug statements or commented-out code
    • consolidating duplicates and imports
  • When eliminating `any` or turning on TypeScript strict flags
  • When migrating a pattern (class to function components, callbacks to async/await, Redux or MobX to Zustand, lodash to native) or upgrading React, Electron, Vite or another dependency across major versions
  • When a refactor keeps breaking tests

Not for

another skill does it

On its shelf

18 files, 228 KB
  • references/16
    • top level13
    • personas/3
  • SKILL.md1
  • evals/1

Inside the book

13 chapters, by title only
  1. Pick the mode (all four share the gate below; pick one per task, never blend them in one commit)
  2. The gate: the 5-step refactoring cycle
  3. Refactor mode
  4. Simplify mode (after implementation, before review)
  5. Clean mode (dead code and hygiene)
  6. Migrate mode
  7. Characterization tests (lock behavior before you touch it)
  8. Verification gates
  9. Anti-premature completion
  10. The 3-strike rule
  11. Quick-start cheatsheet
  12. Code smell quick reference
  13. YAGNI enforcement checklist

Its helper

1 agent works by this book

Works with

the skills it names most

Claude loads it by itself when the moment comes; by hand, type the line at the top. It comes with the whole set: Installs all 94 skills, 32 agents and the brain program as one set. The skill’s own text is private source and is not shown here.