scope-guard

scope-guard is a skill for Claude Code from Rune-kit/rune. It costs 62 tokens per session (1,762 once invoked), scanned A, original, MIT.

A scope monitor that compares the current Git changes with the original plan and flags files or work that were not planned.

In plain words
What is it for?
Use it during feature development, parallel work, or refactoring to identify unplanned changes and classify how far the work has drifted.
Why use it?
It makes scope creep visible before a task grows beyond its agreed work.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the TodoWrite tool.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it during feature development, parallel work, or refactoring to identify unplanned changes and classify how far the work has drifted.

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

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/scope-guard"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/scope-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,762 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.00062 $0.01762
Opus 5.5 $0.00025 $0.00705
Sonnet 5.5 $0.00012 $0.00352
Haiku 4.5 $0.00006 $0.00176

Measured 8d ago against content hash 24bbb30a292d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scope-guard 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 8d 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.

skills/scope-guard/SKILL.md · 184 lines

How it starts

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

scope-guard

Purpose

Passive scope monitor. Reads the original task plan, inspects current git diff to see what files have changed, and compares them against the planned scope. Flags any unplanned additions as scope creep with specific file-level detail.

Called By (inbound)

  • cook (L1): Phase 6.6 scope drift detection when files touched > planned
  • team (L1): after each parallel workstream completes, before merge
  • rescue (L1): during safeguard phase to detect unplanned changes
  • plan (L2): optional scope validation after plan acceptance

Calls (outbound)

None — pure L3 monitoring utility.

Executable Instructions

Step 1: Load Plan

Read the original task/plan from one of these sources (check in order):

  1. TodoWrite task list — read active todos as the planned scope
  2. .rune/progress.md — use Read on D:\Project\.rune\progress.md (or equivalent path)
  3. If neither exists, ask the calling skill to provide the plan as a text description

Extract from the plan:

  • List of files/directories expected to be changed
  • List of features/tasks planned
  • Any explicitly out-of-scope items mentioned

Step 2: Assess Current Work

Run Bash with git diff to see what has actually changed:

git diff --stat HEAD

Also check staged changes:

git diff --stat --cached

Parse the output to extract the list of changed files.

Step 3: Compare

For each changed file, determine if it is:

  • IN_SCOPE: file matches a planned file/directory or is a natural dependency of planned work
  • OUT_OF_SCOPE: file is not mentioned in the plan and is not a direct dependency

Rules for "natural dependency" (counts as IN_SCOPE):

  • Test files for planned source files
  • Config files modified as a side-effect of adding a planned feature
  • Lock files (package-lock.json, yarn.lock, Cargo.lock) — always IN_SCOPE

Rules for OUT_OF_SCOPE (counts as creep):

  • New features not mentioned in the plan
  • Refactoring of files unrelated to the task
  • New dependencies added without a planned feature requiring them
  • Documentation files for unplanned features

Read the full file on GitHub · 184 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. 8d ago First seen · 184 lines · 62 tokens per session scan A 24bbb30a292d

Subscribe to this mod's changes

scope-guard is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 1,762 once invoked, about $0.0002 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-11-22.

Related

scope-guard compared with skills from other repositories

scope-guard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scope-guardRune-kit/runeSkill962d agoMITA62Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex
binder-design-tool-selectionzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA91Claude Code, Codex
end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA98Claude Code, Codex
agent-orchestratorlingxling/awesome-skills-cnSkill3411mo agoMITA41Claude Code
poc-spec-loopfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex