Agent skill

30-00-refactor-index

Refactoring primer index. Read this first before any refactor — it points you to the right guide for your situation. Progressive exploration, not bulk loading.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/30-00-refactor-index

SKILL.md

30.00 Refactor Index

Guides for restructuring code without breaking behavior. Don't read them all — match your situation, read that one.

General (any language)

ID Guide When to use
30.01 Full refactor guide Large multi-file refactor with extraction, wiring, verification
30.02 Convergence audit Finding semantic duplication — different code doing the same thing
30.03 Test-driven refactoring Writing compile-failing tests that define the refactor's end state

TypeScript

ID Guide When to use
30.04 Closure monolith decomposition Splitting a 1000+ line closure into domain modules with shared refs

Quick decision aid

  • "This file is huge, where do I start?"30.01
  • "Different sessions wrote the same thing three ways"30.02
  • "How do I know the refactor is done?"30.03
  • "Everything is trapped in one closure"30.04 (TS)
  • "Should I extract this into a new file?"40.02 (module boundaries)
  • "Who owns this state I'm moving?"40.01 (state ownership)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results