返回 Skill 列表
extension
分类: 开发与工程无需 API Key

refactor-scope-session

[代码质量] 为重构会话定义清晰的边界和目标。用于确定哪些内容会改变,哪些不会改变,设定成功标准,并创建一个专注的重构范围。

person作者: jakexiaohubgithub

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

  1. Smaller is safer
  2. One goal per session
  3. Define done upfront
  4. Preserve behavior