refactor-scope-session
[代码质量] 为重构会话定义明确的边界和目标。用于确定什么将改变和什么不会改变,设定成功标准,并创建专注的重构范围。
📖 中文导读:[代码质量] 为重构会话定义明确的边界和目标。用于确定什么将改变和什么不会改变,设定成功标准,并创建专注的重构范围。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: refactor-scope-session description: "[Code Quality] Defines clear boundaries and goals for a refactoring session. Use to establish what WILL and WILL NOT change, set success criteria, and create a focused refactoring scope."
Refactor: Scope Session
Define precise boundaries for a refactoring cycle.
Scoping Checklist
1. Goals Definition
- What specific improvement are we targeting?
- What metrics will improve?
2. Boundaries (IN Scope)
- Which files/modules will be touched?
- What types of changes are allowed?
3. Boundaries (OUT of Scope)
- Which areas must NOT change?
- What behaviors must remain identical?
4. Success Criteria
- How do we know refactoring succeeded?
- What tests must pass?
Principles
- Smaller is safer
- One goal per session
- Define done upfront
- Preserve behavior