sdd-workflow

sdd-workflow is a cursor rule for coding agents from Hundia/autospec. It costs 0 tokens per session (822 once invoked), scanned A, original, MIT.

Rules for Spec-Driven Development, a way of working where written specifications and documentation guide the code. It defines the project's key files, backlog statuses, and required workflow.

In plain words
What is it for?
Use it to check project specifications before coding, create or update backlog tickets, follow the documented architecture, and keep implementation aligned with the source documents.
Why use it?
It keeps implementation tied to documented goals, architecture, data models, and API contracts, while ensuring every change is tracked.

Cursor rule

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.

agentmods
npx agentmods add rules/hundia/autospec/sdd-workflow
Clone the repo
git clone --depth 1 https://github.com/Hundia/autospec

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 sdd-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/hundia/autospec/sdd-workflow.svg)](https://agentmods.dev/rules/hundia/autospec/sdd-workflow)
Your own site
<a href="https://agentmods.dev/rules/hundia/autospec/sdd-workflow"><img src="https://agentmods.dev/badge/rules/hundia/autospec/sdd-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 822 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00822
Opus 5 $0.00000 $0.00411
Sonnet 5 $0.00000 $0.00164
Haiku 4.5 $0.00000 $0.00082

Measured today against content hash 354c65a8e2b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdd-workflow 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 today.

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.

examples/ai-support-ops/skills/cursor/rules/sdd-workflow.mdc · 100 lines

How it starts

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

SDD Workflow Rules

This project uses Spec-Driven Development (SDD) — specs and docs are the source of truth, code follows.

Key Files

File Purpose
specs/backlog.md Sprint backlog — all tickets, statuses, priorities
specs/01-project-overview.md Project vision, goals, constraints
specs/02-roles.md Role definitions (PM, Architect, Dev, QA)
specs/03-user-stories.md User stories and acceptance criteria
specs/04-architecture.md System architecture and patterns
specs/05-data-models.md Data models and schemas
specs/06-api-surface.md API endpoints and contracts
specs/10-sdd-methodology.md SDD methodology reference

Backlog-First Development

Every fix, feature, or change MUST be tracked in specs/backlog.md:

  1. Check if a ticket already exists for the work
  2. If not, add one with the correct format (see update-backlog.mdc)
  3. Set status to 🔄 In Progress when starting
  4. Set status to ✅ Done when complete

Status Emojis

  • 🔲 Not started
  • 🔄 In progress
  • 🧪 In QA / testing
  • ✅ Done
  • ⏸️ Blocked / paused

Docs-First Rule

Before modifying any code:

  1. Read relevant docs/ files for the subsystem you are changing
  2. Read the relevant spec file (specs/02-06, specs/10)
  3. Implement the change
  4. Update docs/ to reflect your changes (living documentation)

Documentation directories:

  • docs/viewer/ — Viewer app (React)
  • docs/cli/ — CLI tool (Node/TypeScript)
  • docs/methodology/ — SDD philosophy and patterns
  • docs/deployment/ — CI/CD and GitHub Pages
  • docs/environments/ — IDE and terminal setup

Code Conventions

  • TypeScript with strict mode enabled
  • Zod for runtime validation and schema definitions
  • Architecture: repository → service → controller layering
  • Frontend: React + Tailwind CSS + Zustand for state
  • Testing: Vitest for unit/integration tests

Commit Format

type(scope): description

Types: feat, fix, docs, refactor, test, chore, style Scopes: cli, viewer, specs, docs, skills, agents

Read the full file on GitHub · 100 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. today First seen · 100 lines · 0 tokens per session scan A 354c65a8e2b1

Subscribe to this mod's changes

sdd-workflow is a cursor rule published in the GitHub repository Hundia/autospec (4 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 822 tokens. 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-09-03.