一键导入
engineering-refactoring
Use when refactoring, cleaning up, modularizing, renaming, reducing technical debt, or preserving behavior while improving structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when refactoring, cleaning up, modularizing, renaming, reducing technical debt, or preserving behavior while improving structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when choosing technical architecture, project shape, stack, data source, boundaries, deployment model, AI/Agent architecture, or scaffold strategy.
Use when designing or implementing RPA, OCR, CV, LLM production pipelines, browser automation, data governance, analytics reporting, or POC/spike automation.
Use when implementing, fixing bugs, migrating code, wiring APIs, running validation commands, or closing a build/test loop with minimal scoped changes.
Use when a task needs engineering-route judgment before choosing product definition, project inheritance, architecture, execution, build, refactor, review, release, organization, automation, or skill-evolution work.
Use when splitting a feature, writing an implementation plan, choosing worktree strategy, defining vertical slices, validation gates, or review roles before coding.
Use when engineering an organization, company mechanism, SOP, onboarding, interview process, non-software project, WBS, estimate, workspace, knowledge base, table, or document-led operating system.
| name | engineering-refactoring |
| description | Use when refactoring, cleaning up, modularizing, renaming, reducing technical debt, or preserving behavior while improving structure. |
| metadata | {"version":"0.12.0"} |
重构必须行为保持。先识别真实坏味道,再选手法和保护网;不要把 feature、bug fix、格式化和依赖升级混进同一个重构。
工程路由: Refactor | 行为保持型重构 | Maintenance
当前阶段: 9 维护
项目形态:
参考依据:
- 路由规则:
- 已读 reference:
- 外部/历史依据:
缺失内容:
下一步 3 个动作:
要创建/更新的文件:
验证门禁:
停止条件:
references/refactoring-rules.md:坏味道、重构手法和行为保持 gate。references/checklists.md:重构与验证 checklist。references/execution-pipeline.md:PR 拆分、review pipeline、验证流程。references/stage-playbook.md:Stage 9 维护判断。