Agent skill

Scope Guard

by athola in athola/claude-night-market

Scores feature worthiness and enforces branch-size limits against overengineering.

MITAuto-check passedAgent Workflows

Install Scope Guard

skills CLI
$ npx skills add athola/claude-night-market --skill scope-guard -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market scope-guard --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/imbue/skills/scope-guard .claude/skills/scope-guard && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scope-guard
GitHub stars
341
Token cost
~2.3k tokens
SKILL.md length
883 words
Files
6
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Scores feature worthiness and enforces branch-size limits against overengineering.

  • Works in 8 steps: Score the Feature → Check Against Backlog → Verify Branch Budget → …
  • Evaluating whether a feature belongs in the current scope
  • SKILL.md covers Philosophy, When To Use, When NOT To Use and Quick Start, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Scope Guard is an agent skill from athola/claude-night-market. Scores feature worthiness and enforces branch-size limits against overengineering. Use when evaluating whether a feature belongs in the current scope or branch.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `modules/anti-overengineering.md`, `modules/baseline-scenarios.md` and `modules/branch-management.md`).

It sits in Agent Workflows, covering Planning. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Evaluating whether a feature belongs in the current scope
  • Tasks that involve Planning

Example prompts

  • “Use the scope-guard skill to score feature worthiness and enforces branch-size limits against overengineering”
  • “/scope-guard”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Score the Feature
  2. Check Against Backlog
  3. Verify Branch Budget
  4. Monitor Thresholds
  5. Calculate Worthiness (scope-guard:worthiness-scored)
  6. Compare Against Backlog (scope-guard:backlog-compared)
  7. Check Branch Budget (scope-guard:budget-checked)
  8. Document Decision (scope-guard:decision-documented)

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scope Guard loads about 2.3k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 883 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 883 words, ~2,274 tokens.

Download SKILL.mdSave it as .claude/skills/scope-guard/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
scope-guard
description
Scores feature worthiness and enforces branch-size limits against overengineering. Use when evaluating whether a feature belongs in the current scope or branch.
alwaysApply
false
category
workflow-methodology
tags
anti-overengineering, scope, YAGNI, prioritization, backlog
usage_patterns
feature-evaluation, scope-validation, threshold-monitoring, backlog-management
complexity
intermediate
model_hint
standard
estimated_tokens
2500
modules
modules/decision-framework.md, modules/github-integration.md, modules/anti-overengineering.md, modules/branch-management.md, modules/baseline-scenarios.md
role
library

The cheapest feature is the one you never build. Scope-guard weighs each proposed feature against its value, its cost, and the branch budget, so only what is earned ships.

Scope Guard

Prevents overengineering by both Claude and human during the brainstorm, plan, and execute workflow. Forces explicit evaluation of every proposed feature against business value, opportunity cost, and branch constraints.

Philosophy

Core Belief: Not all features deserve implementation. Most ideas should be deferred to backlog until proven necessary.

Three Pillars:

  1. Worthiness Scoring - Quantify value vs cost before building
  2. Opportunity Cost - Compare against existing backlog
  3. Branch Discipline - Respect size thresholds

When To Use

  • During brainstorming sessions before documenting designs
  • During planning sessions before finalizing implementation plans
  • When evaluating "should we add this?" decisions
  • Automatically via hooks when branches approach thresholds
  • When proposing new features, abstractions, or patterns

When NOT To Use

  • Bug fixes with clear, bounded scope
  • Documentation-only changes
  • Trivial single-file edits (< 50 lines)
  • Emergency production fixes

Quick Start

1. Score the Feature

Use the Worthiness formula:

(Business Value + Time Criticality + Risk Reduction) / (Complexity + Token Cost + Scope Drift)

Verification: Run the command with --help flag to verify availability.

See decision-framework.md for details.

Thresholds:

  • > 2.0 → Implement now
  • 1.0 - 2.0 → Discuss first
  • < 1.0 → Defer to backlog
2. Check Against Backlog

Compare against docs/backlog/queue.md:

  • Does it beat top queued items?
  • Is there room in branch budget?
3. Verify Branch Budget

Default: 3 major features per branch

If at capacity, must drop existing feature, split to new branch, or justify override.

4. Monitor Thresholds

Watch for Yellow/Red zones:

  • Lines: 1000/1500/2000
  • Commits: 15/25/30
  • Days: 3/7/7+

See branch-management.md for monitoring.

Core Workflow

Step 1: Calculate Worthiness (scope-guard:worthiness-scored)

Score each factor (1, 2, 3, 5, 8, 13):

  • Value Factors: Business Value, Time Criticality, Risk Reduction
  • Cost Factors: Complexity, Token Cost, Scope Drift

Details: decision-framework.md

Step 2: Compare Against Backlog (scope-guard:backlog-compared)
  1. Check docs/backlog/queue.md for existing items
  2. Compare Worthiness Scores
  3. New item must beat top queued item OR fit within branch budget
Step 3: Check Branch Budget (scope-guard:budget-checked)

Count current features in branch. If at budget (default: 3), new feature requires:

  • Dropping an existing feature, OR
  • Splitting to new branch, OR
  • Explicit override with justification
Step 4: Document Decision (scope-guard:decision-documented)

Record outcome:

  • Implementing: Note Worthiness Score and budget slot
  • Deferring (MANDATORY STEPS):
    1. Create GitHub issue immediately - See github-integration.md Steps 1-3
    2. Mark scope-guard:github-issue-created complete
    3. Create Discussion - See github-integration.md Step 4. Prompt: "Creating a Discussion with full reasoning context. [Y/n]" Publishing is the default. If the user explicitly declines, skip Discussion creation. If publishing fails, continue.
    4. Optionally add to docs/backlog/queue.md with issue link
  • Rejecting: Document why (low value, out of scope)

IMPORTANT: Deferral is NOT complete until a GitHub issue exists. This prevents context loss when branches are merged or abandoned.

Anti-Overengineering Rules

Key Principles:

  • Ask clarifying questions BEFORE proposing solutions
  • No abstraction until 3rd use case
  • Defer "nice to have" features
  • Stay within branch budget

See anti-overengineering.md for full rules and red flags.

Backlog Management

Directory Structure
**Verification:** Run the command with `--help` flag to verify availability.
docs/backlog/
├── queue.md              # Active ranked queue
└── archive/
    ├── ideas.md          # Deferred feature ideas
    ├── optimizations.md  # Deferred performance work
    ├── refactors.md      # Deferred cleanup
    └── abstractions.md   # Deferred patterns

Verification: Run the command with --help flag to verify availability.

Queue Rules
  • Max 10 items in active queue
  • Items older than 30 days without pickup → move to archive
  • Re-score monthly or when project context changes
Show full SKILL.md (363 more words)Show less
Adding to Queue

When deferring, add to docs/backlog/queue.md:

markdown
| Rank | Item | Worthiness | Added | Branch/Epic | Category |
|------|------|------------|-------|-------------|----------|
| 1 | [New item description] | 1.8 | 2025-12-08 | current-branch | idea |

Verification: Run the command with --help flag to verify availability.

Re-rank by Worthiness Score after adding.

Integration Points

With superpowers:brainstorming

At end of brainstorming, before documenting design:

  1. List all proposed features/components
  2. Score each with Worthiness formula
  3. Defer items scoring < 1.0 to backlog
  4. Check branch budget for remaining items

Self-invoke prompt: "Before documenting this design, let me evaluate the proposed features with scope-guard."

With superpowers:writing-plans

Before finalizing implementation plan:

  1. Verify all planned items have Worthiness > 1.0
  2. Compare against backlog queue
  3. Confirm within branch budget
  4. Document any deferrals

Self-invoke prompt: "Before finalizing this plan, let me verify scope with scope-guard."

During superpowers:executing-plans

Periodically during execution:

  1. Run threshold check: lines, files, commits, days
  2. Warn if Yellow zone reached
  3. Require justification if Red zone reached

Self-invoke prompt: "This branch has grown significantly. Let me check scope-guard thresholds."

Required TodoWrite Items

When evaluating a feature, create these todos:

  1. scope-guard:worthiness-scored
  2. scope-guard:backlog-compared
  3. scope-guard:budget-checked
  4. scope-guard:github-issue-created (MANDATORY if deferring - blocks step 5)
  5. scope-guard:decision-documented

Note: Step 4 (github-issue-created) is REQUIRED when deferring items. You cannot mark decision-documented complete without first completing github-issue-created for deferrals.

  • superpowers:brainstorming - Ideation workflow this guards
  • superpowers:writing-plans - Planning workflow this validates
  • imbue:review-core - Review methodology pattern
  • imbue:karpathy-principles - Compact four-principle synthesis covering scope, simplicity, surgical edits, and verifiable goals
  • See docs/quality-gates.md#skill-level-quality-gate-composition for the full gate-skill federation graph

Module Reference

Exit Criteria

  • Every proposed feature has a Worthiness Score computed from the formula (Business Value + Time Criticality + Risk Reduction) / (Complexity + Token Cost + Scope Drift) and a disposition: implement (>2.0), discuss (1.0-2.0), or defer (<1.0)
  • Deferred items have a GitHub issue created before scope-guard:decision-documented is marked complete; the issue URL is recorded in the todo
  • Branch budget checked: if at 3 major features, a new feature requires dropping an existing one, splitting to a new branch, or an explicit written override with justification
  • Branch threshold zones checked (lines 1000/1500/2000, commits 15/25/30, days 3/7/7+); Yellow zone triggers a warning, Red zone blocks without justification

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in plugins/imbue/skills/scope-guard of athola/claude-night-market.

  • SKILL.md
  • modules/anti-overengineering.md
  • modules/baseline-scenarios.md
  • modules/branch-management.md
  • modules/decision-framework.md
  • modules/github-integration.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Scope Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scope Guard compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scope Guard this skillathola/claude-night-market341—~2.3kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Interview Meaddyosmani/agent-skills103k6 repos~3.8kAutomated safety check: PassMIT
OpenSpec Guided OnboardingFission-AI/OpenSpec71k1 repos~4.5kAutomated safety check: PassMIT
Writing Plansgeeksblabla/stateofdev.ma16357 repos~661Automated safety check: PassNone
Subagent Driven DevelopmentAsvarox/allkaraoke26137 repos~1.2kAutomated safety check: PassNone

Similar skills

  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Interview Me

    addyosmani/agent-skills

    Asks one question at a time, each with a best guess attached, until the agent is about 95 percent sure what you really want, before any plan, spec or code.

    103k GitHub starsUsed in 6 repos~3.8k tokens
    Agent WorkflowsAuto-check passed
  • OpenSpec Guided Onboarding

    Fission-AI/OpenSpec

    Walks you through a complete OpenSpec workflow cycle with narration while doing real work in your codebase.

    71k GitHub starsUsed in 1 repo~4.5k tokens
    Agent WorkflowsAuto-check passed
  • Writing Plans

    geeksblabla/stateofdev.ma

    A skill your agent uses when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file…

    163 GitHub starsUsed in 57 repos~661 tokens
    Agent WorkflowsAuto-check passed
  • Subagent Driven Development

    Asvarox/allkaraoke

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    261 GitHub starsUsed in 37 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Planning With Files

    jd-opensource/JoySafeter

    Implements Manus-style file-based planning for complex tasks.

    313 GitHub starsUsed in 19 repos~1.8k tokens
    Agent WorkflowsAuto-check: notes

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Scope Guard

What does Scope Guard do?

Scores feature worthiness and enforces branch-size limits against overengineering. Scope Guard is an agent skill from athola/claude-night-market. Scores feature worthiness and enforces branch-size limits against overengineering.

When should I use Scope Guard?

Scope Guard fits situations like: evaluating whether a feature belongs in the current scope; tasks that involve Planning.

How do I install Scope Guard in Claude Code?

Run `npx skills add athola/claude-night-market --skill scope-guard -a claude-code`. Or copy the skill folder (plugins/imbue/skills/scope-guard in athola/claude-night-market) into .claude/skills/scope-guard in your project. Claude Code loads it when a task matches its description.

How do I install Scope Guard in Codex?

Run `npx skills add athola/claude-night-market --skill scope-guard -a codex`. Or copy the skill folder (plugins/imbue/skills/scope-guard in athola/claude-night-market) into .agents/skills/scope-guard in your project. Codex loads it when a task matches its description.

Can I use Scope Guard in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill scope-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scope-guard, .gemini/skills/scope-guard, .github/skills/scope-guard and .opencode/skills/scope-guard in your project.

What does Scope Guard need to run?

SKILL.md names no scripts, command-line tools or credentials: Scope Guard is instructions for the agent only.

Does Scope Guard access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Scope Guard safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scope Guard use?

Scope Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scope Guard use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Scope Guard?

Skills that share tags, products or a category with Scope Guard: Executing Plans Inline (obra/superpowers, 297k stars), Interview Me (addyosmani/agent-skills, 103k stars), OpenSpec Guided Onboarding (Fission-AI/OpenSpec, 71k stars) and Writing Plans (geeksblabla/stateofdev.ma, 163 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scope Guard?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.