core/capabilities/context/scope-guard/SKILL.md
Monitors implementation scope and prevents drift beyond the plan. Detects unrequested refactors, gold-plating, and "while I'm here" additions. Use when implementing tasks from a plan, writing code for a feature, or when the agent starts modifying files not listed in the current task.
npx skillsauth add xoai/sage scope-guardInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Do what was planned. Nothing more.
Core Principle: Every line of code that wasn't in the plan is a line of code that wasn't reviewed, wasn't tested against the spec, and wasn't approved by the human. "While I'm here" is how technical debt and bugs are born.
Active throughout implementation. Scope guard is a background discipline, not a discrete step. Apply these rules continuously while working.
In scope (MAY do without asking):
MUST NOT do these without explicit human approval:
SHOULD NOT do unless the constitution requires it:
Before committing any change, ask:
If the answer to all four is "no," you're scope creeping. Revert the change.
If you believe the change is truly important, note it in .sage/decisions.md
under a "Future Work" section and move on.
Sometimes you discover mid-implementation that the plan is incomplete. This is legitimate — but the response is NOT to silently expand scope:
testing
Root cause diagnosis with evidence, Reproducing test, Minimal patch
tools
Session resumption with context
tools
Configure Sage preset and project settings. Switch between base, startup, enterprise, or opensource constitution presets. Use when the user says "configure sage", "change preset", or "sage settings".
development
Brief (medium+ tasks), Spec, Implementation plan