Skip to main content
在 Manus 中运行任何 Skill
一键导入

refactor

星标2
分支0
更新时间2026年7月6日 14:34

Executor discipline for behavior-preserving refactoring. Forces a written invariant list, a verified test safety net BEFORE any edit, small green steps that keep the build and tests passing after every commit-sized move, and strict no-scope-creep — behavior changes and bug fixes found mid-refactor are reported as findings, not smuggled in. Prevents "refactor" from becoming a euphemism for a risky rewrite where behavior drifts, scope bleeds into neighboring code, and the module sits red for hours. TRIGGER on phrases like "refactor this", "clean up this module", "extract a function/class/service", "rename X across the codebase", "restructure this code", "split this file", "decouple X from Y", "tidy up without changing behavior", "improve the structure of X", "make this more readable/maintainable", "move this logic into", "deduplicate this code". SKIP when the change intentionally alters public interfaces or observable behavior (that is a contract change to escalate, not a refactor), when the task is a greenfiel

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly