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

scope-discipline

在实现功能、编辑源代码或响应任务交接时使用。确保严格按照要求执行 - 不扩大范围,不添加“既然我在做”的内容。

person作者: jakexiaohubgithub

Scope Discipline

Hard Rule

Do exactly what the task asks. Nothing more.

Warning Signs

If you catch yourself thinking:

  • "While I'm here, I should also..."
  • "This would be cleaner if I refactored..."
  • "Let me add error handling for edge cases that might..."
  • "I'll add a helper function for future use..."
  • "This needs better types/documentation..."
  • "Let me make this more configurable..."

STOP. Complete the task as specified first. Note improvements in handoff if genuinely valuable.

What Counts as Scope Creep

| In Scope | Out of Scope | |----------|--------------| | Fix the bug reported | Refactor surrounding code | | Add requested feature | Add "nice to have" extras | | Handle specified cases | Handle hypothetical cases | | Use existing patterns | Introduce new patterns | | Modify listed files | "While I'm here" changes |

The Test

Before making a change, ask: "Did the task explicitly ask for this?"

  • Yes → Do it
  • No, but necessary for task → Do it, explain why
  • No, but would be nice → Don't do it. Note in handoff if important.

Recovery

If you've already gone out of scope:

  1. Revert uncommitted scope creep
  2. Complete original task
  3. Propose extras as separate follow-up task