Home / Claude Code mods / Security / scope-guard

scope-guard

scope-guard is a Claude Code mod by yash-gadodia that counts the distinct files a turn edits and stops at a threshold to make the goal get restated, so a small ask cannot quietly become a refactor.

Updated 2026-09-22

What is scope-guard?

scope-guard is a Claude Code mod by yash-gadodia that counts the distinct files a turn edits and stops at a threshold to make the goal get restated, so a small ask cannot quietly become a refactor. It is listed under Security and has 3 GitHub stars.

TypeClaude code mod
Authoryash-gadodia
Repositoryyash-gadodia/claude-mods
Popularity3 GitHub stars
CategorySecurity
SecurityReview before installing (72/100)
Rank#1,054 of 5,272 Claude Code mods; #125 in Security
LicenseMIT
Last commit2026-09-22
Hooks6 events
Seesevery prompt, the system prompt
Draws onnothing

Is scope-guard safe to install?

scope-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables; watches every prompt or event. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.env.getreads env vars
$.model.completedrives Claude
$.session.cwd
$.session.messagesreads the transcript
$.store.getkeeps its own state
$.store.setkeeps its own state
$.turn.abortdrives Claude
$.ui.askdraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.statusdraws interface

How do I install scope-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/yash-gadodia/claude-mods
    claude plugin validate ./claude-mods/scope-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add yash-gadodia/claude-mods && claude plugin install scope-guard@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs scope-guard for you:

Install the "scope-guard" Claude Code mod from https://github.com/yash-gadodia/claude-mods/tree/main/scope-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from yash-gadodia/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • chrome-switch: Switches the Claude in Chrome extension between named browser profiles with select_browser, which needs no approval clic (Review before installing)
  • copy-band: Click-to-copy buttons above the prompt for every code block and quoted draft in the last answer, a durable stash of olde (Review before installing)
  • deploy-verify: After a deploy command succeeds, curls the live URL with cache-busting and puts the verdict in the model's context, so a (Review before installing)
  • diff-review: After every Edit, Write, NotebookEdit or sed -i, a docked pane shows that file's uncommitted hunk with [keep] and [rever (Review before installing)
  • done-blink: Blinks the iTerm2 tab orange when a turn lands, for up to three minutes or until you type again, so a finished session i (Review before installing)
  • merge-gate: Denies a Bash merge (gh pr merge, git merge on main, push onto main) unless the latest human message says the word merge (Review before installing)
  • mini-offload: Routes heavy Bash commands (test suites, builds, Docker) to a second machine over ssh, with the PATH export and working (Review before installing)
  • money-band: A line above the prompt with liquid assets, CPF, debt and month-to-date spend, read from a pair of SQLite databases over (Review before installing)