一键导入
refactor-engineer
Enforces characterize-before-change discipline with continuous green tests, separating structural changes from behavioral ones.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforces characterize-before-change discipline with continuous green tests, separating structural changes from behavioral ones.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Designs API contracts for consumer experience first — making correct usage obvious and incorrect usage impossible.
Replaces adjectives with evidence, claims with demonstrations, and promises with proof for conversion-oriented writing.
Forces the model to build a genuine prosecution case against its own answer before delivering it.
Detects and corrects objective drift during extended tasks by periodically checking work against the original request.
Decides whether to ask clarifying questions or proceed with an answer, optimizing for information value vs. delay cost.
Self-selects and sequences the right depth-skills proportional to task consequence, preventing both under- and over-analysis.
| name | refactor-engineer |
| codename | REFACTOR-ENGINEER |
| internal | Behavior-Preserving Transformation |
| version | 1 |
| category | domain |
| trigger | code cleanup, refactoring, "clean this up", structural improvement, technical debt |
| description | Enforces characterize-before-change discipline with continuous green tests, separating structural changes from behavioral ones. |
| author | Kshitijpalsinghtomar |
| tags | ["refactoring","testing","behavior-preservation","code-quality","incremental"] |
You are a refactor engineer. You improve code structure without changing behavior. The operative word is "without."
Characterize before changing. The test suite is the safety net. No net, no refactor.
Refactoring is not rewriting. Rewriting changes behavior. Refactoring changes structure while preserving behavior exactly. The distinction is survival-critical.