/beads-superpowers:stress-testfrom beads-superpowers
Interrogates designs, plans, and decisions with adversarial scrutiny. Explores every branch of the decision tree, provides recommended answers, and forces explicit agreement or pushback.
Ships in beads-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Announce at start: "I'm using the stress-test skill to interrogate this design."
Stress-test a design, plan, or decision by walking down every branch of the decision tree. For each question, provide your own recommended answer — don't just ask, propose. This forces the user to either agree explicitly or articulate why their approach is better.
This is NOT brainstorming (which creates designs) or verification (which checks implementations). This is the gap between them: "Is this design actually solid before we commit to building it?"
| Trigger | Context |
|---|---|
| After brainstorming | Stress-test the design spec before writing a plan |
| After writing-plans | Stress-test the plan before execution begins |
| User says "grill me" | On-demand for any document, decision, or approach |
| Before a major architectural decision | Ensure alternatives were genuinely considered |
# Create a stress-test bead
bd create "Stress-test: <topic>" -t chore -p 2 \
--description="Adversarial review of <artifact>. Branches to interrogate: <count>"
bd update <id> --claim
Read the design, plan, or decision document thoroughly. If no document exists, ask the user to describe the approach. Explore the codebase for context — answer your own questions from code when possible rather than asking the user.
Restore point (Mode A only): If the target artifact has uncommitted changes, commit or stash them before starting — this preserves a clean restore point before inline edits begin. In the normal flow (brainstorming → stress-test), the artifact is already committed.
Done when: the target is understood well enough to enumerate its decision branches, and (Mode A) the artifact sits at a clean restore point.
Identify every decision branch in the target:
Done when: every branch category above has been checked against the target, including the mandatory Security & risk branch.
For each branch, present your question and recommendation as text, then use your structured question tool for the response.
Per-branch flow:
{
"questions": [{
"question": "<1-sentence summary of the branch being interrogated>",
"header": "Stress test",
"options": [
{"label": "Agree", "description": "Accept the recommendation and move to the next branch"},
{"label": "Disagree", "description": "I have a different view — let me explain"},
{"label": "Discuss further", "description": "I want to explore this branch more before deciding"}
],
"multiSelect": false
}]
}
Response handling:
Branch tracking: After each branch resolves, emit a status line:
✓ Resolved: 3/7 branches (2 agreed, 1 modified)
Remaining: Error handling, Scale, Rollback, Testing strategy
Rules:
Done when: every mapped branch is marked resolved and the status line reads N/N.
After all branches are resolved, write the findings. The output mode depends on context.
Mode detection:
.internal/specs/ or .internal/plans/ file.{
"questions": [{
"question": "I see `<file>`. Should I edit it inline with findings, or produce a separate stress-test report?",
"header": "Output mode",
"options": [
{"label": "Edit inline (Mode A)", "description": "Apply changes directly to the source document and append a results summary"},
{"label": "Separate report (Mode B)", "description": "Write findings to .internal/stress-tests/ without modifying the source"}
],
"multiSelect": false
}]
}
Mode A — Existing artifact (spec, plan, design doc in .internal/):
## Stress Test Results section at the bottom of the source document:## Stress Test Results: <topic>
### Resolved Decisions
- [Decision 1]: [Resolution and rationale]
- [Decision 2]: [Resolution and rationale]
### Changes Made
- [Any modifications to the original design/plan]
### Deferred / Parking Lot
- [Items explicitly deferred for later]
### Confidence Assessment
- Overall: High/Medium/Low
- Areas of concern: [Any remaining worries]
Alternatively, record as a bd note on the parent bead if the source doc shouldn't be modified further.
Mode B — Standalone stress test (no existing artifact):
.internal/stress-tests/YYYY-MM-DD-<topic>.md with the full findings template above.User's preferred editor: !echo ${VISUAL:-${EDITOR:-not-configured}}
# Open in user's preferred editor, with platform fallbacks
if [ -n "$VISUAL" ]; then
"$VISUAL" "<findings-file-path>"
elif [ -n "$EDITOR" ]; then
"$EDITOR" "<findings-file-path>"
elif command -v open >/dev/null 2>&1; then
open "<findings-file-path>"
else
xdg-open "<findings-file-path>" 2>/dev/null
fi
# If none available: just report the path
Done when: findings exist in the applicable form — Mode A's Results section appended (or a bd note recorded), or Mode B's report file created.
After documenting findings, run a single self-critique pass. This is internal reasoning — not shown to the user. Only the consequences (new or re-opened branches) are visible.
Self-critique questions:
Resolution:
Visible consequence: If reflexion adds or re-opens branches, emit an update via the branch tracking status line:
✓ Resolved: 7/7 branches (5 agreed, 2 modified)
[Reflexion added 2 new branches]
✓ Resolved: 9/9 branches (7 agreed, 2 modified)
Termination rule: Reflexion runs exactly once. One self-critique pass, address what it finds, then proceed to Phase 5. No recursive reflexion.
Done when: the one self-critique pass has run and its coverage, depth, and missed-angle findings are resolved.
⚠️ Run the open command as a standalone Bash call — never chain it after bd commands in the same invocation (e.g., bd close <id> && open file.md). The combination hangs.
bd close <id> --reason "Stress-test complete: N branches resolved, M changes made, confidence: <level>"
After the work is settled, present the Capture gate — mandatory every time; Skip is the default (most work leaves nothing worth keeping):
{
"questions": [{
"question": "Worth keeping anything from this?",
"header": "Capture",
"options": [
{"label": "Skip", "description": "Nothing here outlasts the work itself (usually the case)"},
{"label": "Record the decision", "description": "Pick this if the choice is hard to undo, non-obvious in hindsight, and had real trade-offs — so future-you knows why"},
{"label": "Remember the lesson", "description": "A specific, evidence-backed lesson worth reusing in later sessions"},
{"label": "Both", "description": "A lasting decision and a lesson worth reusing"}
],
"multiSelect": false
}]
}
Route on the answer. Record the decision / Both → this writes an ADR, so first confirm it clears the bar (hard-to-reverse AND surprising-without-context AND genuine trade-off); if it doesn't, say so and capture it as a memory instead (the lighter record) — unless the user confirms they want the full ADR. Write the ADR (docs/decisions/ADR-NNNN-<kebab>.md, sections Context/Decision/Rationale/Consequences, update docs/decisions/INDEX.md), then file a type=decision knowledge-bead so the decision stays retrievable: printf '%s' "<distilled 0.5-2.5KB decision summary — context, decision, consequences>" | bd create "<one-line summary>" -t decision -l kb,adr-process,<topic> --defer 2099-01-01 --metadata "$(jq -nc --arg d "<ADR-path>" '{doc:$d}')" --body-file - --silent (run the secret/PII scan on the summary first — flag for removal, never write a secret into a bead). Remember the lesson / Both → bd remember "<kind>: <durable, evidence-backed insight>". Skip → nothing.
Done when: bd close has run with evidence and the Capture gate has been presented and routed (including Skip).
| Shortcut | Reality |
|---|---|
| "I asked 3 questions, that's enough" | Cover ALL major branches — count the decision tree, not the questions |
| "This is a simple project" | Simple projects have the most unexamined assumptions |
| "We already brainstormed this" | Brainstorming proposes; stress-testing challenges |
| "I don't want to slow things down" | Catching a flaw now saves 10x the time later |
| "They clicked Agree fast, so this is going well" | Speed ≠ depth — fast agreement might mean they're not reading your recommendation carefully. Don't reduce rigor. |
| "It's a reasonable trade-off" | Name the downside and its blast radius. A material-risk trade-off is surfaced to the user, never waved through — and a security regression is never acceptable. |
| "Security's out of scope for this design" | Security is in scope for every design. If a branch touches auth, data, input, or secrets, interrogate it. |
Never:
Always:
Called by:
Pairs with:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dollardill/beads-superpowers --plugin beads-superpowers21 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/document-releaseUse when implementation on a branch is complete and it is about to be merged or PR'd — or when finishing-a-development-branch reaches its docs-audit gate — and after code changes are committed, to ensure all project documentation accurately reflects shipped code. Covers README, ARCHITECTURE, CONTRIBUTING, CHANGELOG, CLAUDE.md, TODOS, and VERSION files. Triggers on "update docs", "sync documentation", "post-ship docs", "document release", "documentation audit"./executing-plansUse when you have a written implementation plan to execute in a separate session with review checkpoints/finishing-a-development-branchUse when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup/getting-up-to-speedOrients on an unfamiliar or stale codebase at the start of a session, after compaction, or whenever the project state is unclear. Loads beads context, deep-dives the codebase, and produces a structured 'current state' summary. Triggers on phrases like "catch me up", "where are we", "orient me", "what's the state of this project", "bring me up to speed", "load context", "session orientation".Other plugins' skills for the same job