# Scope Guardian: Catch AI Changes Outside the Agreed Scope

> 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.

Scope Guardian: Catch AI Changes Outside the Agreed Scope is a free AI agent skill on Agensi by a365ngay, in Business & Operations. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [a365ngay](https://www.agensi.io/creators/a365ngay)
- Category: [Business & Operations](https://www.agensi.io/skills/business-operations)
- Version: 0.1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scope-guardian-catch-ai-changes-outside-the-agreed-scope
- Tags: project-management, code-review, python, git, automation

## 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: "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: "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: "Compare the current files to the snapshot I took before the contractor started."

## 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
1. You tell your AI agent what you want to change and which files are "off-limits."
2. The skill records how your project looks right now as a baseline.
3. Once work starts or finishes, the skill compares the new files to the baseline.
4. It flags any files that were changed but weren't on your "allowed" list.
5. 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.

## Requires

- Optional: Python 3.10+
- Optional: Git (snapshot helper only)

On Windows, install Git for Windows if you want the optional snapshot helper.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Scope Guardian: Catch AI Changes Outside the Agreed Scope skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this help if my AI agent usually edits too many files?

This skill prevents an AI from making unrequested changes to your project files. It compares your files before and after work starts to flag any edits that fall outside the specific list of files you allowed it to touch.

### Do I need any special software to make this work?

You need Python installed on your computer to run the included check scripts. If you want to track changes automatically, having Git installed is helpful, but the skill can also check files manually on Windows, macOS, or Linux.

### What kind of report will I get after the work is done?

You will receive a clear report showing which changes were within your approved plan, which were protected, and which were unexpected. It also alerts you to any areas it could not check, such as very large files or hidden folders.

### Are there any files or types of changes this skill cannot track?

It cannot see inside hidden files, submodules, or very large files. It only detects that a file was changed and does not verify if the new code inside those files actually works or is free of bugs.

### How do I tell my AI agent to start guarding my project?

Tell your agent which files are off-limits and which ones it is allowed to edit. Then, ask the agent to use this skill to record a baseline of your project before it begins any work.

### Will this skill automatically undo changes if it finds a mistake?

No, this skill is strictly read-only and will never automatically revert your code or delete files. It acts as an advisor, flagging issues for you to review and decide on yourself.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
