一键导入
refactoring
Use when refactoring code, identifying refactor candidates, or improving design after tests are green.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when refactoring code, identifying refactor candidates, or improving design after tests are green.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when discussing levels of abstraction, composed method, SLAP, stepdown rule, or mixed abstraction levels within a function.
Use when refactoring into deep modules, choosing seams, classifying dependencies, deciding adapter strategy, or planning tests around a refactor.
Use when designing interfaces, comparing interface alternatives, applying Design It Twice, or exploring interfaces for a module.
Find deep-module opportunities in a codebase. Use when the user wants to improve architecture, refactor, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
Use when discussing modules, interfaces, implementation, depth, seams, adapters, leverage, locality, or code design terminology.
| name | refactoring |
| description | Use when refactoring code, identifying refactor candidates, or improving design after tests are green. |