“编程与软件开发”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
Guides behavior-preserving refactors through invariant locking, characterization tests, seam creation, disciplined decomposition order, and strict separation of semantic and structural changes. Use when a task requires extracting modules, reducing complexity, decoupling components, consolidating duplicated logic, or restructuring legacy code without altering observable behavior. Trigger phrases: refactor, extract module, decompose, restructure, simplify, consolidate, reduce complexity, decouple, technical debt, untangle. Do NOT use for greenfield design, full rewrites, or changes that intentionally alter external behavior (use feature skills or architecture-review instead).