/spdd-reasons-canvas

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

A prompt generator that turns business requirements into a structured REASONS-Canvas document covering requirements, data, approach, structure, operations, rules, and safeguards.

In plain words
What is it for?
Use it to prepare implementation prompts for features such as user registration, authentication, or other business requirements.
Why use it?
It gives an unclear or incomplete requirement a consistent structure before implementation begins. Requirements can come from text or referenced files and folders.

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 to prepare implementation prompts for features such as user registration, authentication, or other business requirements.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gszhangwei/open-spdd/spdd-reasons-canvas"><img src="https://agentmods.dev/badge/commands/gszhangwei/open-spdd/spdd-reasons-canvas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,050 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.00021 $0.04050
Opus 5 $0.00010 $0.02025
Sonnet 5 $0.00004 $0.00810
Haiku 4.5 $0.00002 $0.00405

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

Security

Grade A, and why

/spdd-reasons-canvas 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 11d 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-reasons-canvas.md · 469 lines

How it starts

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

Generate implementation-ready structured prompts using the built-in REASONS-Canvas framework (Requirements, Entities, Approach, Structure, Operations, Norms, Safeguards).

Input: Business context/requirement description after /spdd-reasons-canvas

Input can be provided in two ways:

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

Examples:

# Text description
/spdd-reasons-canvas Implement user registration functionality, supporting email verification and mobile phone binding

# File reference
/spdd-reasons-canvas @requirements/user-registration.md

# Combined (text + file reference)
/spdd-reasons-canvas @requirements/user-registration.md additionally requires support for third-party OAuth login

# Multiple file references
/spdd-reasons-canvas @requirements/user-registration.md @docs/api-spec.yaml

Steps

  1. Validate and consolidate business context

    a. If business context is missing, use the AskUserQuestion tool (open-ended, no preset options) to ask:

    • "Please provide the business context or requirement description (you can use text, @file references, or both)"

    IMPORTANT: Do NOT proceed without business context 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 (.md, .txt, .yaml, .json, etc.)
    • 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 - maintain full context integrity

    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. Read relevant codebase context

    • Search for related existing implementations
    • Read relevant entity classes, services, controllers
    • Understand current architecture patterns
    • Identify existing data structures and APIs
  3. Apply the REASONS-Canvas Framework

    Generate fully-populated content for each of the 7 stages using the built-in construction guidance:


    R - Requirements

    Objective: Extract core problem essence and fundamental goals

    Output Format:

    ## Requirements
    [Use concise verb phrases to describe the essence of requirements]
    

    Construction Guidance:

    • Essence Extraction: Abstract what fundamental problem to solve and what value to create for whom
    • Boundary Definition: Clarify the applicable scope and limitations
    • Value Focus: Highlight business value and user benefits
    • Use Verb Phrases: "Implement...", "Create...", "Design..."
    • Avoid Feature Stacking: Don't list specific functions, abstract essential problems

    Quality Standards:

    • Core requirements summarizable in one sentence
    • Reflect business value rather than technical implementation
    • Clear problem boundaries and constraints

    E - Entities

    Objective: Build clear business entity relationship models

    Output Format:

    ## Entities
    ```mermaid
    classDiagram
    direction TB
    
    class [CoreEntity] {
        +[AttributeType] [attributeName]
        +[Method]()
    }
    
    class [RelatedEntity] {
        +[AttributeType] [attributeName]
    }
    
    class [RequestDTO] {
        +[AttributeType] [attributeName]
    }
    
    class [ResponseDTO] {
        +[AttributeType] [attributeName]
    }
    
    [CoreEntity] "[cardinality]" -- "[cardinality]" [RelatedEntity] : [relationshipDesc]
    [RequestDTO] --> [CoreEntity] : creates
    [CoreEntity] --> [ResponseDTO] : maps to
    ```
    

    Construction Guidance:

    • Entity Identification: Identify core business entities, supporting entities, DTO objects
    • Attribute Modeling: Define key attributes using "type+name" format
    • Relationship Modeling: Clarify relationship types (1:1, 1:N, N:M) and business semantics
    • Interface Design: Include key methods and static factory methods
    • Data Flow: Reflect complete flow of request→processing→response

Read the full file on GitHub · 469 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. 11d ago First seen · 469 lines · 21 tokens per session scan A 555afd8351f1

Subscribe to this mod's changes

/spdd-reasons-canvas is a command published in the GitHub repository gszhangwei/open-spdd (769 stars, last pushed 20d ago), licensed MIT. It adds 21 tokens to every session and 4,050 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.