Xpersona
S

scope-guard

CLAWHUB · Unverified

Scores feature worthiness and enforces branch-size limits against overengineering Skill: scope-guard Owner: athola Summary: Scores feature worthiness and enforces branch-size limits against overengineering Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:13:25.815Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:34:49.456Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:51:33.749Z | user Release v1.9.16 v1.9.14 | 2026-06-30T18:00:32.328Z | user Release v1.9.14 v1.9.13 | 2026-06-27T16:19:

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-imbue-scope-guard
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-imbue-scope-guard/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,377 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: scope-guard
description: |
  Scores feature worthiness and enforces branch-size limits against overengineering
version: 1.9.8
triggers:
  - anti-overengineering
  - scope
  - YAGNI
  - prioritization
  - backlog
  - evaluating whether a feature belongs in the current scope or branch
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/imbue", "emoji": "\ud83e\udd9e"}}
source: claude-night-market
source_plugin: imbue
---

> **Night Market Skill** — ported from [claude-night-market/imbue](https://github.com/athola/claude-night-market/tree/master/plugins/imbue). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


> Building more than what is needed takes choices away
> from those who work here next. Scope-guard is humility
> and foresight: preserving freedom by building only
> what is earned.

## Table of Contents

- [Philosophy](#philosophy)
- [When to Use](#when-to-use)
- [When NOT to Use](#when-not-to-use)
- [Quick Start](#quick-start)
- [1. Score the Feature](#1-score-the-feature)
- [2. Check Against Backlog](#2-check-against-backlog)
- [3. Verify Branch Budget](#3-verify-branch-budget)
- [4. Monitor Thresholds](#4-monitor-thresholds)
- [Core Workflow](#core-workflow)
- [Step 1: Calculate Worthiness (`scope-guard:worthiness-scored`)](#step-1:-calculate-worthiness-(scope-guard:worthiness-scored))
- [Step 2: Compare Against Backlog (`scope-guard:backlog-compared`)](#step-2:-compare-against-backlog-(scope-guard:backlog-compared))
- [Step 3: Check Branch Budget (`scope-guard:budget-checked`)](#step-3:-check-branch-budget-(scope-guard:budget-checked))
- [Step 4: Document Decision (`scope-guard:decision-documented`)](#step-4:-document-decision-(scope-guard:decision-documented))
- [Anti-Overengineering Rules](#anti-overengineering-rules)
- [Backlog Management](#backlog-management)
- [Directory Structure](#directory-structure)
- [Queue Rules](#queue-rules)
- [Adding to Queue](#adding-to-queue)
- [Integration Points](#integration-points)
- [With superpowers:brainstorming](#with-superpowers:brainstorming)
- [With superpowers:writing-plans](#with-superpowers:writing-plans)
- [During superpowers:executing-plans](#during-superpowers-executing-plans)
- [Required TodoWrite Items](#required-todowrite-items)
- [Related Skills](#related-skills)
- [Module Reference](#module-reference)


# 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

- 

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-imbue-scope-guard",
  "version": "1.9.19",
  "publishedAt": 1787750005815
}

modules/anti-overengineering.md

# Anti-Overengineering Rules

Patterns and rules to prevent overengineering during development.

## Core Rules

### 1. Questions Before Solutions

**Always ask clarifying questions BEFORE proposing solutions:**
- What problem are you solving?
- Where does the application run?
- Who reads the output?
- What's the current pain point?
- What's the stated requirement?

**Anti-pattern:** Offering 3-5 approaches before understanding the need.

### 2. No Abstraction Until Third Use Case

**Rule:** Do NOT create abstractions until you have at least 3 concrete use cases.

**Examples:**
- Two config formats? → Two simple functions
- Three config formats? → NOW consider abstraction
- "We might need..." → NOT a use case

**Explicitly refuse:**
- Base classes for 1-2 implementations
- Strategy patterns before third strategy
- Plugin systems for hypothetical future needs

### 3. Defer "Nice to Have" Features

**Rule:** Features without clear business value go to backlog.

**Test:** If you can't answer "Why now?", defer it.

**Common rationalizations to block:**
- "Users might want this"
- "We'll need this eventually"
- "It's a good practice"
- "Modern applications have this"

### 4. Stay Within Branch Budget

**Default budget: 3 major features per branch**

When at budget, adding new feature requires:
- Dropping an existing feature, OR
- Splitting to new branch, OR
- Explicit override with documented justification

**Budget Check Template:**
```
Branch: [branch-name]
Budget: 3 features

Current allocation:
1. [Primary feature]
2. [Secondary feature]
3. [OPEN SLOT or Third feature]

Proposed: [New feature]
Decision: [Fits/Requires split/Requires drop]
```

## Anti-Rationalization Checklist

**If you find yourself thinking:**

| Thought | Reality Check |
|---------|---------------|
| "This is a small addition" | Did you score it? Small additions compound. |
| "We'll need this eventually" | Score Time Criticality honestly. "Eventually" = 1. |
| "It's already half done" | Sunk cost fallacy. Re-score from current state. |
| "Users might want this" | "Might" = Business Value of 1-2 max. |
| "This is the right way to do it" | Is it the simplest way that works? |
| "It's just refactoring" | Refactoring still has Complexity cost. Score it. |

## Red Flags

**Red flags that indicate overengineering:**
- Enjoying the solution more than solving the problem
- Adding "flexibility" for unspecified future needs
- Creating abstractions before the third use case
- Discussing patterns before discussing requirements
- Branch metrics climbing without proportional value delivery

## Cargo Cult Overengineering

**Additional red flags from cargo cult programming:**

| Pattern | Symptom | Reality Check |
|---------|---------|---------------|
| **Enterprise Cosplay** | Microservices for a CRUD app | "Does my scale require this?" |
| **Technology Tourism** | Using Kubernetes "like Netflix" | "Do I have Netflix's problems?" |
| **Resume-Driven Development** | Adding tech to look impressi

modules/baseline-scenarios.md

# Baseline Testing Scenarios for scope-guard

## Purpose

Document Claude's behavior WITHOUT this skill to identify failure modes, then validate the skill addresses them.

---

## Test Execution Summary

**Date:** 2025-12-08
**Status:** All scenarios pass with skill loaded

| Scenario | RED (Without Skill) | GREEN (With Skill) | Result |
|----------|---------------------|-------------------|--------|
| 1: Feature Creep | [FAIL] 4 approaches offered | [PASS] Questions first, minimal solution | PASS |
| 2: While We're Here | [FAIL] 8+ additions suggested | [PASS] Tight scope, deferrals noted | PASS |
| 3: Premature Abstraction | [FAIL] ConfigLoader class | [PASS] Two simple functions | PASS |
| 4: Branch Thresholds | [FAIL] Zero awareness | [PASS] Full threshold analysis | PASS |
| 5: Low-Value Feature | [FAIL] Eager acceptance | [PASS] Worthiness = 0.2, defer | PASS |

---

## Scenario 1: Feature Creep During Brainstorming

**Context**: User asks Claude to help design a simple logging utility.

**Task**: "Help me brainstorm a logging solution for my Python app"

**Expected Issues (without skill)**:
- Claude proposes multiple log levels, formatters, handlers, rotation, remote shipping
- Suggests abstraction layers "for flexibility"
- Mentions "we might want to add" features
- No evaluation of which features actually matter for the use case

**Baseline Response (RED Phase)**:
```
Proposed 4 different approaches:
1. Python's built-in logging module
2. Structured logging with structlog
3. Simple print-based with rich
4. Hybrid approach

Suggested features: JSON logging, formatters, handlers, rotation,
multi-destination support, context binding, request tracking.

No questions asked about actual needs before proposing solutions.
```

**Failure Mode**: Scope expansion without business value assessment

**Rationalization Detected**: "Battle-tested", "modern observability", "great for..."

**GREEN Phase Result**:
```
Asked 7 clarifying questions before proposing anything:
1. What problem are you solving?
2. Where does the application run?
3. Who reads the logs?
4. Current pain point?

Provided minimal 5-line solution as baseline.
Explicitly deferred: structured logging, rotation, distributed tracing.
Stated: "Until you answer the questions, I'm deferring these."
```

**Status**: PASS - Questions before solutions, explicit deferrals

---

## Scenario 2: "While We're Here" Addition

**Context**: Claude is implementing a specific feature on a branch.

**Task**: "Add input validation to the user registration form"

**Expected Issues (without skill)**:
- Claude notices related code and suggests refactoring it
- Proposes adding validation to other forms "for consistency"
- Suggests creating a shared validation library
- Branch grows beyond original scope

**Baseline Response (RED Phase)**:
```
Offered 8+ additional enhancements:
- Real-time validation feedback
- Password strength meter
- Duplicate email/username checking
- Rate limiting
- Email verification flo

modules/branch-management.md

# Branch Threshold Management

Monitoring and enforcement of branch size thresholds.

## Metrics & Thresholds

| Metric | Green | Yellow | Red |
|--------|-------|--------|-----|
| **Lines changed** | < 1000 | 1000-1500 | > 2000 |
| **New files created** | < 8 | 8-12 | > 15 |
| **Commits on branch** | < 15 | 15-25 | > 30 |
| **Days on branch** | < 3 | 3-7 | > 7 |

## Check Command

Quick threshold check using git:

```bash
# Quick threshold check
lines=$(git diff main --stat | tail -1 | awk '{print $4}')
files=$(git diff main --name-only --diff-filter=A | wc -l)
commits=$(git rev-list --count main..HEAD)
days=$(( ($(date +%s) - $(git log -1 --format=%ct $(git merge-base main HEAD))) / 86400 ))

echo "Lines: $lines | Files: $files | Commits: $commits | Days: $days"
```

## Zone Responses

### Green Zone

**Status:** Healthy branch size, proceed normally.

**Action:** None required, continue work.

### Yellow Zone

**Status:** Approaching thresholds, requires awareness.

**Prompt Template:**
```
Branch approaching thresholds:
- Lines: 1,247 (Yellow zone)
- Commits: 18 (Yellow zone)

Before continuing, confirm:
1. Does this still match the original scope?
2. What's the current Worthiness Score?
3. Can anything be split to backlog?
```

**Required Actions:**
1. Review current scope vs original plan
2. Re-score remaining work with Worthiness formula
3. Identify candidates for backlog deferral
4. Consider splitting to new branch

### Red Zone

**Status:** Exceeds thresholds, requires justification.

**Prompt Template:**
```
Branch exceeds thresholds:
- Lines: 2,341 (Red zone)
- Days: 9 (Red zone)

Required before PR:
1. Document why scope expanded
2. Identify items to split to backlog or future branch
3. Re-score Worthiness with current scope
4. Explicit approval to continue
```

**Required Actions:**
1. **Document expansion:** Write justification for scope growth
2. **Split work:** Identify features to defer or move to new branch
3. **Re-score:** Calculate Worthiness with current scope
4. **Explicit approval:** Get confirmation to proceed with current size

**Blocking:** May block PR creation until Red zone issues addressed (configurable via hook).

## Integration Points

### Hook: pre-pr-scope-check

Automatically runs before PR creation:
1. Check all threshold metrics
2. Warn on Yellow, block on Red (configurable)
3. Require justification for Red zone branches

### During Execution

Periodically during long-running sessions:
1. Run threshold check
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."

## Branch Budget

**Default:** 3 major features per branch

**Budget Tracking:**
```
Branch: feature/auth-improvements
Budget: 3 features

Current allocation:
1. OAuth2 flow refactor (primary)
2. Token refresh logic (secondary)
3. [OPEN SLOT]

Proposed: Session timeout handling
Decision: Fits in slot 3 → Proceed
```

**When at capa

Sponsored

Ads related to scope-guard and adjacent AI workflows.