Skip to content
Development
Skill

/scope-guard

Scores feature worthiness and enforces branch-size limits against overengineering. Use when evaluating whether a feature belongs in the current scope or branch.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill scope-guard --agent claude-code

SKILL.md

scope-guard.SKILL.md
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
dependencies: []
tools: []
usage_patterns:
- feature-evaluation
- scope-validation
- threshold-monitoring
- backlog-management
complexity: intermediate
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](modules/decision-framework.md) for details.

**Thresholds:**

  • **> 2.0** → Implement now
  • **1.0 - 2.0 (inclusive)** → 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](modules/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](modules/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](modules/github-integration.md) Steps 1-3 2. Mark `scope-guard:github-issue-created` complete 3. **Create Discussion** - See [github-integration.md](modules/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](modules/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

Adding to Queue

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

| 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. Li

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about scope-guard.

Which coding agents can use scope-guard?
scope-guard installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.