/spdd-story

/spdd-story is a command for Claude Code, Cursor from gszhangwei/open-spdd. It costs 27 tokens per session (4,634 once invoked), scanned A, original, MIT.

A command that turns a high-level feature request into small development stories focused on user and business needs. INVEST is a checklist for making stories independent, focused, valuable, and testable.

In plain words
What is it for?
Use it with written requirements or a file reference to create independently deliverable stories, each scoped to roughly one to five days and containing business-language acceptance criteria.
Why use it?
It removes ambiguity from requirements by defining each story's scope and expected result. Technical design and implementation are left for later steps in the workflow.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). Also seen: names the AskUserQuestion tool.

Good fit Use it with written requirements or a file reference to create independently deliverable stories, each scoped to roughly one to five days and containing business-language acceptance criteria.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gszhangwei/open-spdd/spdd-story
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/gszhangwei/open-spdd

Made for: Claude Code, Cursor.

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 /spdd-story

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gszhangwei/open-spdd/spdd-story"><img src="https://agentmods.dev/badge/commands/gszhangwei/open-spdd/spdd-story.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,634 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.00027 $0.04634
Opus 5 $0.00014 $0.02317
Sonnet 5 $0.00005 $0.00927
Haiku 4.5 $0.00003 $0.00463

Measured 10d ago against content hash 556854d05dd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

/spdd-story 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 10d 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.

.cursor/commands/spdd-story.md · 442 lines

How it starts

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

Decompose high-level feature requirements into structured, business-focused development stories. Each story is independently deliverable, scoped to 1-5 days of work, and includes concrete acceptance criteria written in business language. Stories are split according to the INVEST principle and serve as input for the SPDD workflow (/spdd-analysis/spdd-reasons-canvas/spdd-generate). This command focuses on the "What" and "For whom" — technical analysis and implementation details are left to downstream SPDD phases.

Input: The argument after /spdd-story is a business requirement description or file reference.

Input can be provided in two ways:

  1. Text description: Direct text describing the feature or requirement
  2. File/folder reference: Using @ to reference files or folders containing requirements

Examples:

# File reference
/spdd-story @requirements/team-management-feature.md

# Text description
/spdd-story Implement team management API with CRUD operations, member management, and role-based access control

# Combined
/spdd-story @requirements/team-management.md additionally needs invitation flow and audit logging

Steps

  1. Validate and consolidate business input

    a. If no input provided, use the AskUserQuestion tool (open-ended, no preset options) to ask:

    "Please provide the business requirement document or description for story generation (you can use text, @file references, or both)."

    IMPORTANT: Do NOT proceed without business input.

    b. If input contains @ file/folder references:

    • Read ALL referenced files completely using the Read tool
    • For folder references, read all relevant files within the folder
    • Consolidate all file contents into a unified business context

    c. Combine all context sources:

    • Merge text descriptions with file contents
    • Preserve the complete information from all sources — do NOT summarize or truncate

    d. Context Integrity Check:

    • Verify all @ references were successfully read
    • If any file cannot be read, report the error and ask user to provide alternative
    • Confirm the consolidated context contains sufficient information to proceed
  2. Scan existing stories for context

    Do NOT explore the codebase — that is /spdd-analysis's responsibility. Only gather enough context to avoid duplication and determine numbering.

    a. List existing stories:

    • List files in requirements/ directory (if exists)
    • Read existing stories to understand numbering conventions and scope boundaries

    b. Identify coverage gaps:

    • Note which features and operations are already covered by existing stories
    • Ensure new stories do not duplicate or conflict with existing ones

    c. Determine next available story number:

    • Extract the highest [User-story-N] number from existing filenames
    • New stories start from N+1
  3. Abstract task analysis and INVEST evaluation

    Before creating any stories, analyze the feature at an abstract level.

    a. Identify the abstract task:

    ### Abstract Task: "[Feature Name]"
    
    **Analysis Dimensions**:
    - **Core Responsibility**: [What is the primary purpose of this feature]
    - **Primary Operations**: [List the main operations: create, query, update, delete, list, etc.]
    - **Key Constraints**: [Data uniqueness, permissions, associations, business rules]
    - **Technical Complexity**: [Low/Medium/High — standard CRUD, complex business logic, etc.]
    - **Business Complexity**: [Low/Medium/High — multiple query scenarios, cascading effects, etc.]
    

    b. INVEST compliance check:

    ### INVEST Evaluation:
    - ✅/❌ **Independent**: [Can this be developed, tested, and deployed independently?]
    - ✅/❌ **Negotiable**: [Can design details be discussed with the team?]
    - ✅/❌ **Valuable**: [Does this provide clear business value?]
    - ✅/❌ **Estimable**: [Can the team accurately estimate the effort?]
    - ✅/❌ **Small**: [Can it be completed in 1-2 sprints?]
    - ✅/❌ **Testable**: [Are there clear acceptance criteria?]
    
    **Conclusion**: [Needs splitting / Ready as-is]
    

Read the full file on GitHub · 442 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. 10d ago First seen · 442 lines · 27 tokens per session scan A 556854d05dd6

Subscribe to this mod's changes

/spdd-story is a command published in the GitHub repository gszhangwei/open-spdd (740 stars, last pushed 19d ago), licensed MIT. It adds 27 tokens to every session and 4,634 once invoked, about $0.0001 per session on Opus 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.