scope-creep-detector
Skill này làm gì
Skill này so sánh một tập thay đổi code với mục đích một dòng bạn đưa ra. Skill đánh dấu các file không liên quan, chỉnh sửa lớn và thay đổi rủi ro, để một bản sửa lỗi vẫn là một bản sửa lỗi. Skill dành cho lập trình viên muốn các thay đổi tập trung và dễ rà soát.
Khi nào nên dùng
- ✓Khi bạn hỏi một thay đổi có vượt quá bản sửa lỗi dự định hay không.
- ✓Khi một pull request có vẻ quá rộng và bạn muốn biết phần nào nên tách ra.
- ✓Khi một thay đổi chạm đến phụ thuộc, tên công khai, cấu hình hoặc file build mà bạn không ngờ tới.
Liên kết skill
https://github.com/Shubhamsaboo/awesome-llm-apps/blob/main/agent_skills/scope-creep-detector/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thay đổi của tôi nhằm sửa lỗi crash trong parser. Kiểm tra xem tôi có chạm vào thứ gì không nên chạm không, và cho tôi biết nên tách ra phần nào.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill so sánh các thay đổi trong code với mục đích bạn nêu, tìm các tín hiệu như file không liên quan và chỉnh sửa phụ thuộc, rồi gợi ý nên giữ, tách hay giải thích từng phần. Skill không thay đổi file của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có thay đổi code của tôi không?
Không. Nó chỉ phân tích thay đổi và không chỉnh sửa, commit hoặc thay đổi nhánh nào.
Nếu tôi không đưa ra mục đích thì sao?
Skill dùng tên nhánh của bạn làm dự phòng, nhưng sẽ hỏi bạn một mục đích một dòng nếu tên nhánh không rõ ràng.
Nó có kiểm tra xem code có đúng không?
Không. Nó xem xét phạm vi của thay đổi, không xem xét tính đúng đắn, bảo mật hay chất lượng test.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 144k
- Vị trí xếp hạng
- #678
- Giấy phép
- Apache-2.0
- Cập nhật
- 22/10/2026
Bình luận
- …
Thêm skill từ kho mã này
advisor-orchestrator-worker
144kGiúp agent của bạn chia một tác vụ rất lớn cho nhóm model AI, model mạnh lập kế hoạch và kiểm tra, còn model rẻ hơn làm phần việc.
commit-archaeologist
144kGiúp agent của bạn giải thích lý do một đoạn code tồn tại bằng cách đọc lịch sử git cục bộ, gồm ai đã thêm nó và điều gì thay đổi sau đó.
dependency-doctor
144kGiúp agent của bạn kiểm tra file requirements.txt, pyproject.toml hoặc package.json để tìm lỗi phụ thuộc thường gặp và gợi ý sửa nhỏ.
first-reader
144kGiúp agent của bạn kiểm thử bản nháp bằng cách mô phỏng cách độc giả thật trải nghiệm nó, chỉ ra chỗ họ có thể mất hứng thú và điều họ ghi nhớ.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.