Scope Creep Detector

VerifiedSafe

Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude CodeCursorCodex
#scope-creep#git-diff#code-review#pull-request#offline-analysis

Recommended for

Automated summary

Compares a git diff against a stated intent and surfaces scope-creep signals — unrelated files, new dependencies, public API renames, config or CI edits, oversized hunks, formatting-only files — with keep, split, or justify guidance.

Strengths

  • Runs fully offline against the working tree diff, the index, a branch versus a merge base, a saved .diff file, or stdin, without touching the working tree, index, commits, or branches.
  • Emits structured JSON (in_scope, likely_creep, new_deps, api_renames, config_edits, stats) that is easy to act on.
  • Requires a keep, split, or justify disposition for every flagged path, which turns signals into a concrete split plan.
  • Explicitly treats empty arrays as evidence and warns against tuning the churn threshold just to make a warning disappear.

Limitations

  • Relatedness is keyword overlap between the intent and the file path, so it is triage evidence rather than proof of authorial intent.
  • Without an intent it falls back to the branch name; generic or detached branch names make the relatedness judgement meaningless.
  • Judges scope only — not correctness, security, or test quality.
  • Dependency detection covers a limited set of manifest formats, and the default churn threshold may need repository-specific context.
When to use it

Use it before opening a pull request, or whenever a diff looks broader than the fix it claims to be.

When not to use it

Skip it when you need a correctness or security review, a lint pass, or a commit message rather than a scope check.

Security analysis

Safe
Quality score93/100

The skill instructs running a local Python classifier on git diffs with explicit statements that it operates offline, makes no network calls, and does not modify the working tree, index, commits, or branches. There are no destructive, exfiltrating, or obfuscated commands, and no declared use of sensitive tools beyond local script execution for analysis.

No concerns found

How this analysis is made

Examples

Check the working tree against an intent
My intent for this change is 'fix null dereference in parser'. Check whether my working tree diff grew beyond that and tell me what to keep, split, or justify.
Is this staged change too broad?
Are my staged changes too broad to be one PR for 'add retry limit to webhook delivery'? Run the scope check and give me a concrete split plan.
What unrelated stuff did I touch?
Compare this branch against main and show me the files that look unrelated to a parser fix, including any new dependencies or CI edits.

name: scope-creep-detector description: >- Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad pull requests, changes that grew beyond a fix, dependency additions, public API renames, config or CI edits, oversized hunks, and formatting-only files. Use when the user asks whether a change grew beyond the fix, a PR is too broad, or what unrelated stuff they touched, and wants keep, split, or justify guidance. Operates locally and offline. license: Apache-2.0 metadata: author: "Matt Van Horn" version: "1.0.0" source: "https://github.com/Shubhamsaboo/awesome-llm-apps"

Scope Creep Detector

A one-line fix should not require a reviewer to reverse-engineer fourteen files across three subsystems. This skill compares a git diff with its stated intent, surfaces scope signals, and turns them into keep, split, or justify decisions.

Everything runs locally. The script makes no network calls and does not change the working tree, index, commits, or branches.

When to use

  • Before opening a pull request whose diff may have grown beyond its intent
  • When a bug fix touches unexpected files or subsystems
  • When the user asks whether staged changes are too broad
  • When a diff includes dependency, public API, config, CI, or build changes
  • When the user wants a concrete split plan for a mixed change

When not to use

  • Formatting code, running a linter, or writing a commit message
  • Reviewing correctness, security, or test quality inside an agreed scope
  • Measuring historical project growth across many commits
  • Editing or reverting files without the user's approval

Establish the intent

Use the user's one-line intent when available. Keep it concrete, such as fix null dereference in parser or add retry limit to webhook delivery.

If no intent was given, the script falls back to the current branch name. If that name is generic, detached, or unrelated to the work, ask for one line of intent before treating relatedness as meaningful.

Run the classifier

Run from this skill directory and point --repo at the target repository.

Working tree diff:

python3 scripts/scope_creep.py --repo /path/to/repo \
  --intent "fix null dereference in parser" --json

Staged diff:

python3 scripts/scope_creep.py --repo /path/to/repo --staged \
  --intent "fix null dereference in parser" --json

Branch diff against a merge base:

python3 scripts/scope_creep.py --repo /path/to/repo --base main \
  --intent "fix null dereference in parser" --json

Saved diff or stdin:

python3 scripts/scope_creep.py --diff change.diff --intent "parser fix" --json
git diff --staged | python3 scripts/scope_creep.py --diff - \
  --intent "parser fix" --json

Use --hunk-threshold only when the repository has a documented reason to change the default churn threshold. Do not tune the threshold merely to make a warning disappear.

Interpret the JSON

Read references/scope-signals.md before making a recommendation. Treat the classifier as triage evidence, not proof of authorial intent.

  • in_scope: file paths with at least one intent/path keyword overlap
  • likely_creep: paths without overlap, with the reason and detected signals
  • new_deps: dependencies introduced in supported manifest formats
  • api_renames: nearby removed and added public function or class declarations
  • config_edits: CI, container, build, YAML, and TOML changes
  • stats: churn, subsystem counts, oversized hunks, and formatting-only files

Empty arrays are evidence too. Say that no signal was detected, not that the diff is guaranteed to be in scope.

Recommend keep, split, or justify

Give every item in likely_creep one disposition:

  1. Keep when the path is necessary for the stated intent and the connection is direct. Explain the connection in one sentence.
  2. Split when it can land independently, belongs to another subsystem, or introduces a dependency, API rename, config edit, or large hunk that is not required for the intent. Name the files or hunks for the follow-up change.
  3. Justify when a cross-cutting edit cannot be separated safely. State the invariant or build constraint that requires it and call out reviewer risk.

Prefer split when evidence is ambiguous. Never claim that a zero overlap score proves a file is unrelated. Path vocabulary is a cheap, deterministic proxy.

Write the scope report

Use this compact structure:

  1. Intent and diff source
  2. Files and subsystems touched, with total additions and deletions
  3. In-scope changes
  4. Likely creep with signal evidence
  5. Keep, split, or justify table
  6. Proposed follow-up grouping, if any

Name file paths and hunk headers. For an oversized mixed hunk, explain that the script cannot split it automatically and describe the smallest coherent edit. Ask before applying any split, revert, staging, or commit operation.

Files

  • scripts/scope_creep.py: deterministic unified-diff parser and classifier
  • references/scope-signals.md: signal definitions, thresholds, and limits

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/scope-creep-detector-mte1lkul/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/scope-creep-detector-mte1lkul' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/scope-creep-detector-mte1lkul/download' --output '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md.part' && mv '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md.part' '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && test -s '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/scope-creep-detector' && cp -R '.skill-downloads/scope-creep-detector-mte1lkul' '.claude/skills/scope-creep-detector'

Cursor
test -f '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && test -s '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/scope-creep-detector' && cp -R '.skill-downloads/scope-creep-detector-mte1lkul' '.cursor/skills/scope-creep-detector'

Codex
test -f '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && test -s '.skill-downloads/scope-creep-detector-mte1lkul/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/scope-creep-detector' && cp -R '.skill-downloads/scope-creep-detector-mte1lkul' '.agents/skills/scope-creep-detector'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/scope-creep-detector-mte1lkul'

openskills read 'scope-creep-detector-mte1lkul'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/scope-creep-detector-mte1lkul/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills