feature-scope-guard

Classify git changes as IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS against SPEC.md.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wendeus0/AI-dotfiles --skill feature-scope-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-scope-guard
Source: https://github.com/wendeus0/AI-dotfiles/tree/main/core/skills/feature-scope-guard
Command: npx skills add https://github.com/wendeus0/AI-dotfiles --skill feature-scope-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Detects scope creep by analyzing the current diff against the active feature's boundary and reports a clear scope status (SCOPE_OK, SCOPE_WARNING, or SCOPE_UNKNOWN).

Core Features & Use Cases

  • Scope validation: automatically classify changed files as IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS based on features/<feature>/SPEC.md.
  • Guarded workflow: outputs a structured verdict for CI gates and enables safe, predictable feature development.
  • Use Case: after a branch sync, before enforcing your workflow, review changes to ensure they stay within the feature scope.

Quick Start

Run the feature gate report script to generate the current feature scope verdict.

Frequently Asked Questions about feature-scope-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect scope creep in my git feature branch before committing?

To detect scope creep before commit, analyze your git diff against the active feature specification. This script parses git status and file changes to classify modifications as IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS, reporting a structured scope verdict.

What is feature scope validation and how does it work with git diffs?

Feature scope validation works by parsing git diffs and comparing changed files against the active feature's SPEC.md. It automatically classifies each modification as IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS to ensure development stays within planned boundaries.

Can I use git diff analysis to generate a scope verdict for CI gates?

Yes, you can use git diff analysis to generate a structured scope verdict for CI gates. The script outputs SCOPE_OK, SCOPE_WARNING, or SCOPE_UNKNOWN statuses, enabling safe and predictable feature development by enforcing scope boundaries in automated workflows.

How do I validate out-of-scope code changes after a branch sync?

To validate out-of-scope code changes after a branch sync, run the feature gate report script. It parses the current git status and diffs, reads the feature's SPEC.md, and reports whether modifications are IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS.

What does SCOPE_UNKNOWN mean when reviewing feature scope in git?

SCOPE_UNKNOWN is a scope verdict status reported when the script cannot confidently classify the feature scope from the current git diff. It serves as a structured warning indicating ambiguity in the changes, prompting manual review before proceeding with workflow enforcement.

Do I need a SPEC.md file to classify code changes as in or out of scope?

Yes, you need a SPEC.md file defining the active feature boundary to classify code changes. The script reads this specification file to determine whether your git diff modifications are IN_SCOPE, OUT_OF_SCOPE, or AMBIGUOUS during feature development.