All 94 skillsQuality6 of 13
stryx:refactor
When code should be tidied or split without changing what it does.
/stryx:refactorInside 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 wordsWhen 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- Fixing a bug→ stryx:debug
- Measured speed work→ stryx:performance
- Java upgrade facts→ stryx:java
- A read-only review→ stryx:review
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- Pick the mode (all four share the gate below; pick one per task, never blend them in one commit)
- The gate: the 5-step refactoring cycle
- Refactor mode
- Simplify mode (after implementation, before review)
- Clean mode (dead code and hygiene)
- Migrate mode
- Characterization tests (lock behavior before you touch it)
- Verification gates
- Anti-premature completion
- The 3-strike rule
- Quick-start cheatsheet
- Code smell quick reference
- YAGNI enforcement checklist
Its helper
1 agent works by this book- stryx:refactorerWhen code needs tidying, splitting or dead-code cleanup with no change in what it does.
Works with
the skills it names most- stryx:debug→Something is broken: a bug, an error, a crash, a failing test or wrong data.
- stryx:patterns→When reading unfamiliar code, choosing a design pattern or sizing up technical debt.
- stryx:performance→Something is slow, laggy, too big or uses too much memory.
- stryx:review→When code or a pull request should be checked before commit or merge.
- stryx:test→When tests must be written or fixed, or you want the test written first (TDD).
- stryx:verify→When Claude is about to say done, fixed or ready to commit: fresh proof comes first.
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.