agent-scope

agent-scope is a skill for Claude Code, Codex from floomhq/moto. It costs 0 tokens per session (814 once invoked), scanned A, original, MIT.

A scope guard for AI coding agents: a tool that limits which files an agent may change while allowing it to read the wider project. A monorepo is one repository containing multiple applications or packages.

In plain words
What is it for?
Use it to define allowed and protected paths, request approval before protected edits, check a change set, and add CI checks that catch scope violations.
Why use it?
It helps prevent an agent working on one task from accidentally changing unrelated areas such as authentication, billing, or database migrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to define allowed and protected paths, request approval before protected edits, check a change set, and add CI checks that catch scope violations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/floomhq/moto/agent-scope
View source ↗ floomhq/moto
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add floomhq/moto --skill agent-scope
Clone the repo
git clone --depth 1 https://github.com/floomhq/moto

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-scope

README.md
[![agentmods](https://agentmods.dev/badge/skills/floomhq/moto/agent-scope/github.svg)](https://agentmods.dev/skills/floomhq/moto/agent-scope)
Your own site
<a href="https://agentmods.dev/skills/floomhq/moto/agent-scope"><img src="https://agentmods.dev/badge/skills/floomhq/moto/agent-scope/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-scope

Your own site · 80×15
<a href="https://agentmods.dev/skills/floomhq/moto/agent-scope"><img src="https://agentmods.dev/badge/skills/floomhq/moto/agent-scope.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00814
Opus 5.5 $0.00000 $0.00326
Sonnet 5.5 $0.00000 $0.00163
Haiku 4.5 $0.00000 $0.00081

Measured 1mo ago against content hash 8066cd8599ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-scope scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/skills/agent-scope/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.



name: agent-scope description: | Enforce scoped write access for AI coding agents. Use when starting a new task, before committing changes, when asked to "check scope", "validate my diff", "did I touch anything I shouldn't", or when working in a monorepo where protected modules (auth, billing, migrations) must not be silently modified.

agent-scope — Scope Guard for AI Coding Agents

agent-scope stops AI agents from silently changing code outside their intended task.

  • Read broadly (**/*)
  • Write narrowly (scoped paths)
  • Ask before touching protected code
  • Run checks before finishing

When to use

  • Starting a new task in a monorepo
  • Agent keeps touching unrelated modules
  • Need to lock auth, billing, or database layers
  • Want a CI gate that catches scope violations in PRs

Quick setup

npm install -g agent-scope
agent-scope init

Edit agent.scope.yml:

version: "0.1"
mode: strict

task:
  id: "your-task-id"
  title: "Your task title"

scope:
  read:
    - "**/*"
  write:
    - "apps/web/settings/**"
    - "packages/email/**"
    - ".agent-scope/**"
  protected:
    - "packages/auth/**"
    - "packages/billing/**"
    - "db/migrations/**"
  approval_required:
    - "package.json"
    - "pnpm-lock.yaml"

Daily workflow

Before editing

Review agent.scope.yml to confirm your write boundaries.

After editing

agent-scope check

If violations appear, do not proceed. Your options:

  1. Revert the out-of-scope changes
  2. Request scope expansion:
    agent-scope request packages/auth/session.ts \
      --reason "Need to expose email preference in session"
    
  3. Approve if human already gave permission:
    agent-scope approve packages/auth/session.ts
    

Before finishing

agent-scope run

This validates scope and then runs checks.before_done from the config.

Integration with agents

Claude Code hook

Add to your workflow:

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 147 lines · 0 tokens per session scan A 8066cd8599ae

Subscribe to this mod's changes

agent-scope is a skill published in the GitHub repository floomhq/moto (32 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 814 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

eval-agents

Audit custom subagent definitions for Claude Code (.claude/agents/.md) and Codex (.codex/agents/.toml): loadability against the native schema, description overlap, model tier, tool scope, and headless-safe instructions. Use when onboarding to a project with agents, after adding or importing agents, or when the parent…

FlorianBruniaux/claude-code-ultimate-guide · 80 tokens

issue-triage

3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit only.

FlorianBruniaux/claude-code-ultimate-guide · 81 tokens

land-and-deploy

Merge PR, wait for CI, verify deploy, run canary. The complete landing pipeline.

FlorianBruniaux/claude-code-ultimate-guide · 24 tokens

sandbox-unblock

Diagnostic protocol to run before reporting a sandbox blocker or asking for a configuration change. Eleven checks that eliminate false positives, then a report template the person holding the settings can act on. On one measured day, six of eight reported blockers turned out to be false, all from the same handful of…

FlorianBruniaux/claude-code-ultimate-guide · 65 tokens

self-assessment

Interactive skill assessment with personalized learning path generation.

FlorianBruniaux/claude-code-ultimate-guide · 12 tokens

review-pr

Perform a comprehensive code review of a pull request.

FlorianBruniaux/claude-code-ultimate-guide · 12 tokens