scope-check

scope-check is a skill for Claude Code, Codex from fending/context-engineering. It costs 30 tokens per session (692 once invoked), scanned A, original, MIT.

A check for project rules written in AGENTS.md files, especially rules that restrict changes to certain files or areas.

In plain words
What is it for?
Use it before planning work in protected parts of a repository.
Why use it?
It can reveal boundary conflicts before code is written, reducing the risk of making changes the project forbids.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it before planning work in protected parts of a repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fending/context-engineering/scope-check
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 fending/context-engineering --skill scope-check
Clone the repo
git clone --depth 1 https://github.com/fending/context-engineering

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 scope-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/fending/context-engineering/scope-check/github.svg)](https://agentmods.dev/skills/fending/context-engineering/scope-check)
Your own site
<a href="https://agentmods.dev/skills/fending/context-engineering/scope-check"><img src="https://agentmods.dev/badge/skills/fending/context-engineering/scope-check/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 scope-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/fending/context-engineering/scope-check"><img src="https://agentmods.dev/badge/skills/fending/context-engineering/scope-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 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.00030 $0.00692
Opus 5.5 $0.00012 $0.00277
Sonnet 5.5 $0.00006 $0.00138
Haiku 4.5 $0.00003 $0.00069

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

Security

Grade A, and why

scope-check 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 3mo 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.

examples/claude-config/skills/scope-check/SKILL.md · 56 lines

How it starts

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

Scope Check

Validate a planned task against AGENTS.md boundary rules before writing any code.

What This Skill Does

  1. Build constraint list: Read AGENTS.md boundary sections ("Do NOT", "Boundaries", "Restrictions") from all applicable levels -- project root and any relevant subdirectories for the files the task will touch.

  2. Compare task against constraints: For each boundary rule, assess whether the planned task could conflict. Consider both direct conflicts (task explicitly does what a rule forbids) and indirect ones (task modifies a file in a protected area, task has side effects that touch restricted scope).

  3. Assess and report:

    • Clear -- no boundary conflicts found. Proceed.
    • Warning -- task touches areas near boundaries. Specific rules quoted with the potential conflict explained. Proceed with awareness.
    • Blocked -- task directly violates one or more boundary rules. Rules quoted, conflict explained, alternatives suggested.

When to Use

  • Before starting any task that touches files or areas you know have restrictions
  • When a task description feels like it might conflict with project boundaries
  • When working in an unfamiliar part of the codebase where you haven't read the local AGENTS.md
  • As a planning step before larger changes that span multiple directories

Example Output

Checking task "add rate limiting to auth middleware" against boundaries...

Warning: AGENTS.md (project root) declares:

Do NOT modify auth middleware without explicit approval

This task directly modifies auth middleware. The boundary doesn't prohibit the change -- it requires approval before proceeding. Confirm with the project owner before starting.

Clear on all other boundaries. No subdirectory-level restrictions apply to src/middleware/.

How It Pairs with boundary-guard

Scope-check and boundary-guard are complementary, not redundant:

  • Scope-check runs at planning time, before work starts. It's proactive -- you invoke it to understand constraints before writing code.
  • boundary-guard runs at execution time, on every file edit. It's reactive -- it catches violations the moment they happen, even if you didn't run scope-check first.

Read the full file on GitHub · 56 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. 3mo ago First seen · 56 lines · 30 tokens per session scan A 257a837bda61

Subscribe to this mod's changes

scope-check is a skill published in the GitHub repository fending/context-engineering (12 stars, last pushed 8mo ago), licensed MIT. It adds 30 tokens to every session and 692 once invoked, about $0.0001 per session on Opus 5.5. 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

scope-check compared with skills from other repositories

scope-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scope-checkfending/context-engineeringSkill128mo agoMITA30Claude Code, Codex
ccccocoindex-io/cocoindex-codeSkill3.0k5d agoApache-2.0A80Claude Code
michel-run-local-dev-stackPackmindHub/packmindSkill32720d agoApache-2.0A275Claude Code, Codex
michel-cli-demo-recorderPackmindHub/packmindSkill32720d agoApache-2.0A212Claude Code, Codex
hexagonal-architecturePackmindHub/packmindSkill32720d agoApache-2.0A70Claude Code, Codex
michel-create-packmind-datasetPackmindHub/packmindSkill32720d agoApache-2.0A0Claude Code, Codex
michel-packmind-engineer-reviewPackmindHub/packmindSkill32720d agoApache-2.0A181Claude Code