scope-creep-detector
Ce qu’il fait
Ce skill compare un ensemble de modifications de code avec l'objectif d'une ligne que vous lui donnez. Il signale les fichiers sans rapport, les modifications importantes et les changements risqués, pour qu'une correction reste une correction. Il s'adresse aux développeurs qui veulent des modifications ciblées et faciles à relire.
Quand l’utiliser
- ✓Quand vous demandez si une modification a dépassé la correction qu'elle devait apporter.
- ✓Quand une demande de fusion semble trop large et que vous voulez savoir quoi en extraire.
- ✓Quand une modification touche des dépendances, des noms publics, de la configuration ou des fichiers de build que vous n'attendiez pas.
Lien du skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/scope-creep-detector/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Ma modification doit corriger un plantage dans l'analyseur. Vérifie si j'ai touché à des choses que je n'aurais pas dû, et dis-moi quoi séparer.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill compare les modifications de votre code avec l'objectif que vous avez indiqué, cherche des signaux comme des fichiers sans rapport et des changements de dépendances, puis suggère pour chaque partie : garder, séparer ou justifier. Il ne modifie pas vos fichiers.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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 overlaplikely_creep: paths without overlap, with the reason and detected signalsnew_deps: dependencies introduced in supported manifest formatsapi_renames: nearby removed and added public function or class declarationsconfig_edits: CI, container, build, YAML, and TOML changesstats: 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:
- Keep when the path is necessary for the stated intent and the connection is direct. Explain the connection in one sentence.
- 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.
- 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:
- Intent and diff source
- Files and subsystems touched, with total additions and deletions
- In-scope changes
- Likely creep with signal evidence
- Keep, split, or justify table
- 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 classifierreferences/scope-signals.md: signal definitions, thresholds, and l
Questions fréquentes
Modifie-t-il mon code ?
Non. Il analyse les modifications et ne fait aucune édition, aucun commit ni aucun changement de branche.
Que se passe-t-il si je ne donne pas d'objectif ?
Le skill se rabat sur le nom de votre branche, mais il vous demandera un objectif d'une ligne si ce nom n'est pas clair.
Vérifie-t-il si mon code est correct ?
Non. Il regarde la portée de la modification, et non la justesse, la sécurité ou la qualité des tests.
Détails
Description originale de l’auteur
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.
Popularité
- Étoiles GitHub
- 144k
- Position au classement
- #678
- Licence
- Apache-2.0
- Mis à jour
- 22/10/2026
Commentaires
- …
Autres skills de ce dépôt
advisor-orchestrator-worker
144kAide votre agent à répartir une très grande tâche entre une équipe de modèles IA : un modèle fort planifie et contrôle, les autres exécutent.
commit-archaeologist
144kAide votre agent à expliquer pourquoi un morceau de code existe, en lisant l'historique git local : qui l'a ajouté et ce qui a changé ensuite.
dependency-doctor
144kAide votre agent à vérifier un fichier de dépendances (requirements.txt, pyproject.toml, package.json) et proposer des corrections simples.
first-reader
144kAide votre agent à tester un brouillon en simulant la façon dont de vrais lecteurs le vivent, en montrant où ils risquent de décrocher et ce qu'ils retiennent.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.