- Home
- Skills
- Business & Operations
- Scope Guardian: Catch AI Changes Outside the Agreed Scope
Works with the AI Agents you already use
Scope Guardian: Catch AI Changes Outside the Agreed Scope
by a365ngay
Agree on what may change, then check every changed path: in scope, protected, or out of scope. Fix the requested thing without silently changing everything else.
Free
What it does
- Creates a clear contract of which files are allowed to change and which are protected
- Compares current files against a saved snapshot to find every single edit
- Flags any changes made to files that were supposed to be off-limits
- Produces a detailed report of in-scope and out-of-scope work for your review
- Works without changing your files or deleting your work accidentally
Who it's for
Founders managing freelance developers
Make sure your developer only touches the files you agreed on and doesn't break other parts of the app.
Try asking: “Review these changes against our original plan for the login screen.”
Software teams doing big refactors
Keep your code clean by flagging every file changed that was not part of the official refactor list.
Try asking: “Check if any protected files were edited during the database update.”
Project managers overseeing code updates
Get a clear report of what was changed and if any of it was outside the project scope.
Try asking: “Compare the current files to the snapshot I took before the contractor started.”
Scope Guardian: Catch AI Changes Outside the Agreed Scope
Example session with this skill installed
Use Scope Guardian. You were asked to fix the login flow only: src/auth/ and tests/auth/. Payments and package.json are off limits. Check the files you changed against that scope before I review the PR.
- Read your context and instructions
- Compiled the scope guardian
Summary
5 files changed, only 2 are inside the agreed scope. Status
REVIEW_REQUIRED: 2 protected files and 1 out-of-scope file were touched. I have not reverted anything; you decide what stays.
Change contract
- Allow:
src/auth/*,tests/auth/* - Protect:
src/payment/*,package.json - Everything else is out of scope unless you approve it.
Path report
| Path | Status | Why it changed (my explanation) | Action needed |
|---|---|---|---|
| src/auth/login.ts | IN_SCOPE | The fix itself | Review diff |
| tests/auth/login.test.ts | IN_SCOPE | Regression test for the fix | Review diff |
| package.json | PROTECTED | I bumped a dependency while debugging | Revert or approve explicitly |
| src/payment/pay.ts | PROTECTED | Shared helper import was renamed | Revert or approve explicitly |
| src/dashboard.ts | OUT_OF_SCOPE | Formatting only | Revert or approve scope change |
Engine output (python3 scripts/engine.py scope.json)
{
"status": "REVIEW_REQUIRED",
"flagged": [
{"path": "package.json", "status": "PROTECTED"},
{"path": "src/dashboard.ts", "status": "OUT_OF_SCOPE"},
{"path": "src/payment/pay.ts", "status": "PROTECTED"}
],
"coverage_warnings": [],
"semantic_review_required": true,
"write_blocked": false
}
Limits of this check
Path matching cannot see unrelated logic inside login.ts; the in-scope diffs still need a line-by-line review. A clear path report is not proof the fix works.
Next steps
- Tell me which flagged files to revert. I will not touch them without your OK.
- Run the auth test suite once the scope is clean.
Connects securely to your tools. The creator never sees your data.
About this skill
It is common for small fixes to turn into big, messy changes that break parts of your project you didn't want touched. This skill helps you keep control by checking every change against a plan you approve first. It acts like a digital guard that watches which files are being edited and warns you if something unexpected happens.
How it works
- You tell your AI agent what you want to change and which files are "off-limits."
- The skill records how your project looks right now as a baseline.
- Once work starts or finishes, the skill compares the new files to the baseline.
- It flags any files that were changed but weren't on your "allowed" list.
- You get a clear report showing what was in scope, what was out of scope, and any warnings.
Frameworks & tools
This skill uses Python scripts to compare files and create snapshots. It works best with Git to track changes but can also manually check files on Windows, macOS, or Linux.
Why this beats prompting it yourself
Standard AI agents often get carried away and edit files they weren't asked to touch, or they lose track of what the original files looked like. This skill uses a strict contract and specialized scripts to prove exactly what changed, ensuring nothing is missed or hidden in a large project.
Use cases
- Preventing a freelancer from editing core security files during a UI update.
- Checking for "scope creep" where a simple fix turns into a massive rewrite.
- Verifying that a code cleanup stayed within specific folders.
- Spotting accidental changes to important configuration files.
Known limitations
It cannot see inside hidden files, submodules, or very large files. It only checks if files changed, not if the new code inside them actually works correctly.
Uses scripts/snapshot.py for file hashing and scripts/engine.py for contract validation via fnmatchcase patterns. Requires Python 3.10+ and operates on JSON input/output schemas. Designed for read-only advisory checks across Git-tracked and untracked files.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
Nothing to install. It runs in your AI agent.
- Optional
Python 3.10+
Git (snapshot helper only)
On Windows, install Git for Windows if you want the optional snapshot helper.
Permissions
Shell and file read are for the optional scripts: the engine reads the scope JSON you give it; the snapshot helper runs read-only git ls-files and hashes files. Neither writes files, uses network, installs hooks or runs git reset/checkout/clean.
What's inside
Frequently Asked Questions
New in Business & Operations
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Business & Operations.