decisions

decisions is a command for Claude Code from MartyBonacci/specswarm. It costs 74 tokens per session (3,865 once invoked), scanned A, original, MIT.

A command that collects the important strategic choices for a feature into one decision sheet before task planning begins.

In plain words
What is it for?
Scanning a feature plan for unresolved choices, combining and prioritising questions, asking the user for answers, writing decision-sheet.md, and adding the decisions to plan.md.
Why use it?
It reduces repeated interruptions by asking the needed questions up front and recording the answers where later planning and implementation can use them.

Command for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; positional $N argument.

Part of the ss plugin — 10 skills, 34 commands, 6 agents, 4 hooks shipped together

Good fit Scanning a feature plan for unresolved choices, combining and prioritising questions, asking the user for answers, writing decision-sheet.md, and adding the decisions to plan.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/martybonacci/specswarm/decisions
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.

Clone the repo
git clone --depth 1 https://github.com/MartyBonacci/specswarm

Made for: Claude Code.

Or install ss, the plugin that ships this one along with the rest of its 10 skills, 34 commands, 6 agents, 4 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 decisions

README.md
[![agentmods](https://agentmods.dev/badge/commands/martybonacci/specswarm/decisions/github.svg)](https://agentmods.dev/commands/martybonacci/specswarm/decisions)
Your own site
<a href="https://agentmods.dev/commands/martybonacci/specswarm/decisions"><img src="https://agentmods.dev/badge/commands/martybonacci/specswarm/decisions/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 decisions

Your own site · 80×15
<a href="https://agentmods.dev/commands/martybonacci/specswarm/decisions"><img src="https://agentmods.dev/badge/commands/martybonacci/specswarm/decisions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,865 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.00074 $0.03865
Opus 5.5 $0.00030 $0.01546
Sonnet 5.5 $0.00015 $0.00773
Haiku 4.5 $0.00007 $0.00386

Measured 3mo ago against content hash efbe2d974ba8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

decisions 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 3mo 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.

plugins/ss/commands/decisions.md · 343 lines

How it starts

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

SpecSwarm Decision Pre-Batching

The biggest Marty-time reducer in the v7.x toolchain. Mid-chunk strategic-decision interrupts cost ~15–25 interactions across /ss:tasks + /ss:implement. This command collapses them into ONE front-loaded touchpoint by:

  1. Deterministically scanning plan.md for candidate decisions
  2. Dispatching the decision-miner subagent to dedup/prioritize/polish into 0–8 well-formed questions
  3. Asking Marty all of them via 1-2 AskUserQuestion calls (4-question limit per call)
  4. Writing decision-sheet.md (canonical record + provenance)
  5. Appending a "Pre-Batched Decisions" section to plan.md so /ss:tasks and /ss:implement see the answers without code changes

After this command runs successfully, the chunk should execute autonomously through /ss:tasks → /ss:implement with minimal further interrupts (only true edge cases the miner missed).

Phase 1: Resolve feature

PLUGIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# shellcheck disable=SC1091
source "${PLUGIN_DIR}/lib/features-location.sh"
# shellcheck disable=SC1091
source "${PLUGIN_DIR}/lib/decisions/scan-plan.sh"
# shellcheck disable=SC1091
[ -f "${PLUGIN_DIR}/lib/notify.sh" ] && source "${PLUGIN_DIR}/lib/notify.sh"

FEATURE_NUM=""
SCAN_ONLY=false
DRY_RUN=false

while [ $# -gt 0 ]; do
  case "$1" in
    --scan-only) SCAN_ONLY=true; shift ;;
    --dry-run)   DRY_RUN=true;   shift ;;
    -h|--help)
      cat <<EOF
Usage: /ss:decisions [FEATURE_NUM] [options]

Pre-batch strategic decisions for a feature.

Options:
  --scan-only   Print deterministic candidates only (no agent, no questions)
  --dry-run     Scan + agent (writes decision-sheet.draft.md); skip questions + plan.md mutation

Examples:
  /ss:decisions
  /ss:decisions 002
  /ss:decisions --scan-only
  /ss:decisions --dry-run
EOF
      exit 0
      ;;
    *)
      if [ -z "$FEATURE_NUM" ]; then FEATURE_NUM="$1"; fi
      shift
      ;;
  esac
done

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)

# Resolve feature (same cascade as /ss:retrospective)
if [ -z "$FEATURE_NUM" ]; then
  BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
  FEATURE_NUM=$(echo "$BRANCH" | grep -oE '^[0-9]{3}' || echo "")
fi
if [ -z "$FEATURE_NUM" ]; then
  get_features_dir "$REPO_ROOT"
  FEATURE_NUM=$(find "$FEATURES_DIR" -maxdepth 1 -type d -name '[0-9][0-9][0-9]-*' 2>/dev/null \
    | sort | tail -1 | xargs -n1 basename 2>/dev/null \
    | grep -oE '^[0-9]{3}' || echo "")
fi
if [ -z "$FEATURE_NUM" ]; then
  echo "❌ No feature number provided and no feature dirs found." >&2
  exit 2
fi
if ! find_feature_dir "$FEATURE_NUM" "$REPO_ROOT"; then
  echo "❌ Feature $FEATURE_NUM not found." >&2
  exit 2
fi
FEATURE_ID=$(basename "$FEATURE_DIR")
PLAN_PATH="${FEATURE_DIR}/plan.md"

if [ ! -f "$PLAN_PATH" ]; then
  echo "❌ plan.md not found at $PLAN_PATH. Run /ss:plan first." >&2
  exit 2
fi

FOUNDATION="${REPO_ROOT}/.specswarm"
TECH_STACK="${FOUNDATION}/tech-stack.md"
CONSTITUTION="${FOUNDATION}/constitution.md"
QUALITY_STANDARDS="${FOUNDATION}/quality-standards.md"

echo "🔍 Decisions for $FEATURE_ID"
echo "  plan.md:          $PLAN_PATH"
echo "  tech-stack.md:    $([ -f "$TECH_STACK" ] && echo "$TECH_STACK" || echo "(absent — version-anchor check skipped)")"
echo "  constitution:     $([ -f "$CONSTITUTION" ] && echo "$CONSTITUTION" || echo "(absent — constitution callout check skipped)")"
echo "  quality-standards:$([ -f "$QUALITY_STANDARDS" ] && echo " $QUALITY_STANDARDS" || echo " (absent — prior-commitments check skipped)")"
echo ""

Read the full file on GitHub · 343 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. 3mo ago First seen · 343 lines · 74 tokens per session scan A efbe2d974ba8

Subscribe to this mod's changes

decisions is a command published in the GitHub repository MartyBonacci/specswarm (67 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 3,865 once invoked, about $0.0003 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-08-30.

Related

decisions compared with commands from other repositories

decisions next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
decisionsMartyBonacci/specswarmCommand67yesterdayMITA74Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code