Skip to content
/

spec-kit-command-cursor (madebyaris)

spec-kit-command-cursor · madebyaris/spec-kit-command-cursor · ★ 182 · last commit 2026-05-01

Cursor-native SDD toolkit with async background subagent trees, parallel DAG execution with file-conflict detection, checkpoint-resume, and downstream spec propagation.

Best whenParallel agent execution requires explicit file-ownership declarations (touchedFiles) to prevent race conditions — workflow orchestration must know which fil…
Skip ifUsing Cursor's built-in /multitask for SDD roadmap work, Spawning more than maxParallelImplementers subagents simultaneously
vs seeds
spec-kit(GitHub) dramatically: 17 commands vs 9, adds 6 background/foreground subagents, 5 auto-invoked skills, 2 Cursor hooks, …
Primitive shape 30 total
Commands 17 Skills 5 Subagents 6 Hooks 2
00

Summary

spec-kit-command-cursor — Summary

spec-kit-command-cursor (madebyaris) is a Spec-Driven Development toolkit for Cursor IDE (v5.1) that ships 18 slash commands, 6 background/foreground subagents, 5 skills, and a hooks file — making it the most component-rich single framework in the batch. It introduces several architectural innovations unique in this corpus: async background subagents with a parent-that-continues model, subagent trees (orchestrator → implementers → verifiers), file-conflict detection via sdd.touchedFiles declarations to prevent parallel-edit collisions, checkpoint-based resume (execution-checkpoint.json) for interrupted parallel runs, and downstream propagation (marking stale docs when specs change via /evolve). The framework uses Cursor-specific features including .cursor/hooks.json (2 hooks: subagentStop, stop), .cursor/agents/ (subagent definitions), .cursor/skills/ (5 skill packs), and .cursor/sandbox.json (granular network access). It can be distributed as a Cursor Marketplace plugin via .cursor-plugin/. Version 5.1, 182 stars, active as of May 2026.

Differs from seeds: Most similar to superpowers in its subagent-driven development pattern, but explicitly targets Cursor's async agent runtime rather than Claude Code's Task tool. Compared to spec-kit (GitHub), this adds 6 subagents, 5 skills, 2 hooks, parallel execution with DAG scheduling, and deep-research capability — all absent from the seed. Compared to kiro, it replicates the three-phase spec workflow (requirements/design/tasks) but replaces Kiro's IDE-native hooks with Cursor's hook system. No MCP dependency.

01

Overview

spec-kit-command-cursor — Overview

Origin

Created by madebyaris (Aris) for Cursor IDE. Explicitly frames itself as a Cursor-native spec-driven development system (v5.1, optimized for Cursor 3.2+ agent runtime). 182 GitHub stars, 1 contributor. First public release adapted spec-kit concepts for Cursor's command format; v5.1 adds async subagents, parallel DAG execution, checkpoints, and the Cursor 3.2 Agents Window worktree integration.

Philosophy (From README)

"Spec-Driven Development for Cursor IDE. Create specifications before code. Plan-approve-execute for all operations."

"Async Subagents — Background subagents (is_background: true) let the parent agent continue working while long tasks run."

"Subagent Tree — Subagents spawn their own subagents: orchestrator → implementers → verifiers."

"Deep Research — Multi-pass external investigation with web search, documentation deep-dives, real-world validation, and confidence scoring (/research --deep)."

Key Design Choices

  1. Async background agents: sdd-implementer and sdd-orchestrator run as background subagents, allowing the parent Cursor session to continue other work while tasks execute.

  2. Subagent tree pattern: sdd-orchestrator (background) spawns sdd-implementer (background) per task, which then spawns sdd-verifier (foreground) for post-implementation completeness checks. Three tiers of agents.

  3. File conflict detection: Tasks declare sdd.touchedFiles — the orchestrator checks for overlapping file sets before dispatching parallel batches, preventing two agents from editing the same file simultaneously.

  4. Checkpoint + resume: execution-checkpoint.json tracks completed tasks so /execute-parallel --resume can restart after interruption without re-running completed work.

  5. Downstream propagation: /evolve marks downstream documents as stale when a spec changes, preventing agents from implementing based on outdated design docs.

  6. Hooks for observability: .cursor/hooks.json fires subagentStop and stop hooks that log session and subagent completion events to files, providing an audit trail.

  7. Cursor Marketplace plugin packaging: .cursor-plugin/plugin.json makes the framework distributable as a Cursor IDE plugin.

Antipatterns Named

  • Using /execute-parallel when simple single-agent execution is sufficient
  • Spawning more than maxParallelImplementers (default 4) simultaneously
  • Using Cursor's built-in /multitask for SDD roadmap work (recommended for independent prompts only)
02

Architecture

spec-kit-command-cursor — Architecture

Distribution

  • Cursor commands pack installed by cloning and copying to .cursor/
  • Also distributable as Cursor Marketplace plugin via .cursor-plugin/
  • Language: Shell/JavaScript (hooks); Markdown (commands, skills, agents)
  • Install: git clone + cp -r .cursor/ <project>/.cursor/

Directory Tree

.cursor/
  commands/
    _shared/agent-manual.md
    brief.md
    research.md
    specify.md
    plan.md
    tasks.md
    generate-prd.md
    sdd-full-plan.md
    implement.md
    execute-task.md
    execute-parallel.md
    evolve.md
    refine.md
    upgrade.md
    audit.md
    generate-rules.md
    pecut-all-in-one.md
  agents/
    sdd-explorer.md
    sdd-planner.md
    sdd-implementer.md
    sdd-verifier.md
    sdd-reviewer.md
    sdd-orchestrator.md
  skills/
    sdd-research/SKILL.md
    sdd-planning/SKILL.md
    sdd-implementation/SKILL.md
    sdd-audit/SKILL.md
    sdd-evolve/SKILL.md
  hooks.json
  hooks/
    sdd-log-subagent-stop.py
    sdd-log-session-stop.py
  sandbox.json
  worktrees.json
  rules/

.sdd/
  config.json          # settings.maxParallelImplementers etc.
  guidelines.md
  templates/
  FULL_PLAN_EXAMPLES.md
  ROADMAP_FORMAT_SPEC.md
  TEAM_SETUP_GUIDE.md
  archive/

.cursor-plugin/
  plugin.json          # Cursor Marketplace plugin manifest

specs/
  active/
    {task-id}/
      feature-brief.md
      spec.md
      plan.md
      tasks.md
  todo-roadmap/
    {project-id}/
      roadmap.json
      dag.json
      execution-checkpoint.json
      tasks/{task-id}.json

Required Runtime

  • Cursor IDE 3.2+
  • Python 3 (for hooks: sdd-log-subagent-stop.py, sdd-log-session-stop.py)

Target AI Tools

Cursor IDE (primary). Commands use .cursor/ format.

03

Components

spec-kit-command-cursor — Components

Slash Commands (17 in .cursor/commands/ + _shared/)

Planning Commands

Command Purpose Output
/brief [task-id] [desc] 30-min quick feature brief feature-brief.md
/research [topic] [--deep] Pattern investigation; deep mode: multi-pass web + docs research.md
/specify Detailed requirements spec spec.md
/plan Technical architecture plan.md
/tasks Task breakdown tasks.md
/generate-prd Full PRD via Socratic questions full-prd.md
/sdd-full-plan [proj] [desc] Complete project roadmap roadmap.json + tasks/

Execution Commands

Command Purpose
/implement Execute with todo tracking
/execute-task [id] Single task from roadmap
/execute-parallel [proj] [--resume/--until-finish] Parallel DAG execution via async subagents

Maintenance Commands

Command Purpose
/evolve Update specs + mark stale downstream docs
/refine Iterate specs through discussion
/upgrade Brief → full SDD planning upgrade
/audit Compare implementation vs specs
/generate-rules Auto-generate coding rules
/pecut-all-in-one All-in-one planning + execution

Subagents (6, in .cursor/agents/)

Subagent Model Mode Purpose
sdd-explorer inherit foreground, readonly Codebase discovery
sdd-planner inherit foreground Architecture design
sdd-implementer inherit background Code generation (async)
sdd-verifier inherit foreground Post-impl completeness check
sdd-reviewer inherit foreground, readonly Pre-merge quality review
sdd-orchestrator inherit background Parallel task coordination with DAG

Skills (5, in .cursor/skills/)

Skill Auto-Invoke When
sdd-research Technical approach unclear
sdd-planning Spec exists, need plan
sdd-implementation Plan ready for execution
sdd-audit Code review requested
sdd-evolve Discoveries during development

Hooks (2, from .cursor/hooks.json)

Event Script
subagentStop python3 .cursor/hooks/sdd-log-subagent-stop.py (10s timeout)
stop python3 .cursor/hooks/sdd-log-session-stop.py (10s timeout)

Config Files

File Purpose
.sdd/config.json settings.maxParallelImplementers (default 4)
.cursor/sandbox.json Granular network access controls
.cursor/worktrees.json Worktree configuration for Cursor 3.2 Agents Window
05

Prompts

spec-kit-command-cursor — Prompts

Excerpt 1: /brief Command — Structured Analysis Protocol

Source: .cursor/commands/brief.md

Prompting technique: Role definition + phase separation (readonly analysis before writing); clarifying questions before output; explicit "present plan before creating files" rule.

## Role

Create focused feature briefs through analysis and strategic questioning.

**What you do:**
- Analyze feature description and extract requirements
- Ask clarifying questions when information is missing
- Search codebase for existing patterns
- Present plan before creating files

**Output:** `specs/active/[task-id]/feature-brief.md`

## Instructions

### Phase 1: Analysis (Readonly)

**Step 3: Assess information completeness**

Ask clarifying questions if ANY of these are unclear:
- What problem does this solve?
- Who are the primary users?
- What are the must-have vs nice-to-have features?
- Are there technical constraints or preferences?

Excerpt 2: /execute-parallel — Parallel DAG with File Conflict Detection

Source: .cursor/commands/execute-parallel.md

Prompting technique: Explicit conflict detection rule with set-overlap logic; parallelism limit from config; batch-wave iteration.

**Step 3: Plan execution batches**

Group tasks into parallel batches based on:
- Dependency satisfaction (all deps done)
- **File conflict detection:** For implementation tasks, check `sdd.touchedFiles` on each task.
  If two ready tasks have overlapping `touchedFiles` (e.g. both include `package.json` or `src/auth/**`),
  they must run in **separate batches** (sequential). Tasks with disjoint file sets can run in parallel.
- Estimated effort (prefer similar-sized tasks in same batch)

**Conflict detection rule:** Two tasks conflict if their `touchedFiles` arrays share any path or if one path is
a prefix of another (e.g. `src/auth` and `src/auth/login.ts`). When in doubt, run sequentially.

**Step 4: Parallelism limits**
- **Max parallel implementers:** 3–5 (default: 4). Read from `.sdd/config.json` settings.maxParallelImplementers.
- When more tasks are ready than the limit, run in waves.
- Do not spawn more than `maxParallelImplementers` in a single batch.

Excerpt 3: Hooks Definition — Audit Log via subagentStop

Source: .cursor/hooks.json

Prompting technique: Event-driven Python hook execution for lightweight audit logging without agent involvement.

{
  "version": 1,
  "hooks": {
    "subagentStop": [
      {
        "command": "python3 .cursor/hooks/sdd-log-subagent-stop.py",
        "timeout": 10
      }
    ],
    "stop": [
      {
        "command": "python3 .cursor/hooks/sdd-log-session-stop.py",
        "timeout": 10
      }
    ]
  }
}
09

Uniqueness

spec-kit-command-cursor — Uniqueness and Positioning

Differs from Seeds

Most similar to superpowers in its multi-tier subagent pattern, but explicitly Cursor-native rather than Claude Code cross-platform. Compared to kiro (seed), this replicates the three-phase spec workflow but replaces Kiro's IDE-native hooks with Cursor's hooks.json system and adds a parallel DAG executor. Compared to spec-kit (GitHub), this framework is vastly more complex: 17 commands (vs 9), 6 subagents (vs 0), 5 skills (vs 9 skills but different architecture), 2 hooks (vs 18), and introduces async background agents, file-conflict detection, and checkpoint-resume — all absent from the seed. The parallel-fan-out orchestration with sdd.touchedFiles conflict detection is unique in the entire batch and would only appear in a framework designed for genuinely parallel, multi-file code generation.

Distinctive Positioning

  1. File-conflict detection in parallel dispatch: sdd.touchedFiles declarations and set-overlap checking before batch construction — prevents two implementer agents from editing package.json simultaneously.
  2. Checkpoint + resume: Interrupted parallel runs can resume from execution-checkpoint.json without re-running completed tasks.
  3. Downstream propagation via /evolve: Stale-marking of docs when specs change prevents agents from implementing based on outdated plans.
  4. Deep research mode with confidence scoring: /research --deep performs multi-pass web investigation with a confidence rating — more sophisticated than basic web search.
  5. Background async agents: is_background: true on implementers lets the Cursor parent session stay responsive, approaching a true daemon-like execution model.

Observable Failure Modes

  1. Cursor-only lock-in: Deep reliance on Cursor-specific features (is_background, Agents Window, .cursor/ path) makes migration to Claude Code or Codex non-trivial.
  2. 1 contributor, no team adoption evidence: Sophisticated orchestration patterns (DAG, file conflict, checkpoint) that have not been battle-tested at scale.
  3. Worktree optional, hooks required: The Python hook scripts require Python 3 in PATH — missing Python silently skips audit logging.
  4. Roadmap.json format complexity: The ROADMAP_FORMAT_SPEC.md + dag.json structure is non-trivial to generate correctly by hand; errors in task dependencies may cause deadlock.
04

Workflow

spec-kit-command-cursor — Workflow

Phases and Artifacts

Phase Command Artifact
1. Brief /brief task-id desc specs/active/{id}/feature-brief.md
1a. Research (opt) /research topic [--deep] specs/active/{id}/research.md
2. Requirements /specify specs/active/{id}/spec.md
3. Plan /plan specs/active/{id}/plan.md
4. Tasks /tasks specs/active/{id}/tasks.md
4a. Full Roadmap /sdd-full-plan specs/todo-roadmap/{id}/roadmap.json + task files
5. Implement /execute-parallel [--resume] Code changes
6. Verify subagent (sdd-verifier) Completeness check
7. Review subagent (sdd-reviewer) Quality gate

Parallel Execution (execute-parallel)

From /execute-parallel command:

  1. Load roadmap (progressive: batch-by-batch for 20+ task roadmaps)
  2. Identify ready tasks (status=todo, all deps=done)
  3. Check sdd.touchedFiles for conflicts → group into non-conflicting batches
  4. Dispatch up to maxParallelImplementers (default 4) background sdd-implementer subagents simultaneously
  5. Each implementer spawns a sdd-verifier after completion
  6. Write checkpoint to execution-checkpoint.json after each batch
  7. Loop: load next batch until done or --until-finish

Subagent Tree Pattern

sdd-orchestrator (background)
├── sdd-implementer task 1 (background) → sdd-verifier
├── sdd-implementer task 2 (background) → sdd-verifier
└── sdd-implementer task 3 (background) → sdd-verifier

Approval Gates

Gate Type
After brief freetext-clarify
After spec freetext-clarify
After plan freetext-clarify
After tasks freetext-clarify
Reviewer gate (pre-merge) adversarial-subagent

Downstream Propagation (/evolve)

When a spec is updated, /evolve marks downstream documents (plan, tasks) as stale with staleness annotations. Agents that encounter stale docs receive a warning before executing.

Deep Research Mode

/research topic --deep performs multi-pass investigation:

  1. Web search for current state + patterns
  2. Documentation deep-dive
  3. Real-world validation
  4. Confidence scoring Result: research.md with confidence score.
06

Memory Context

spec-kit-command-cursor — Memory and Context

State Storage

File-based:

File Content
specs/active/{id}/feature-brief.md Feature brief
specs/active/{id}/spec.md Requirements spec
specs/active/{id}/plan.md Technical plan
specs/active/{id}/tasks.md Task list
specs/active/{id}/research.md Research output
specs/todo-roadmap/{project}/roadmap.json Project-level DAG + task metadata
specs/todo-roadmap/{project}/tasks/{id}.json Per-task spec with sdd.touchedFiles
specs/todo-roadmap/{project}/execution-checkpoint.json Parallel execution state for --resume

Persistence Level

project — all state under specs/.

Context Compaction

Progressive loading for large roadmaps: orchestrators read only dag.roots, dag.parallelGroups, and current-batch tasks rather than full roadmap. Implementers receive only task-relevant context.

Cross-Session Handoff

Yes — execution-checkpoint.json provides explicit resume state for interrupted execute-parallel runs. All spec files persist across sessions.

Audit Log

The subagentStop and stop hooks write session logs via Python scripts (sdd-log-subagent-stop.py, sdd-log-session-stop.py). These logs provide an agent activity trail.

07

Orchestration

spec-kit-command-cursor — Orchestration

Multi-Agent

Yes — 6 subagents with distinct roles; orchestrator spawns implementers + verifiers.

Orchestration Pattern

parallel-fan-out (via execute-parallel) with hierarchical subagent tree (orchestrator → implementers → verifiers). Sequential execution also available (execute-task).

Multi-Model

No — all agents use inherit model (whatever Cursor is configured with).

Isolation Mechanism

git-worktree.cursor/worktrees.json configures Cursor 3.2 Agents Window worktrees for isolated checkout per agent task (optional; not mandatory for all workflows).

Subagent Definition Format

skill-md — agents defined as markdown files in .cursor/agents/; skills as markdown files in .cursor/skills/.

Execution Mode

interactive-loop for spec phase; continuous-ralph for execute-parallel with --until-finish.

Prompt Chaining

Yes — each phase reads prior artifacts. Downstream propagation via /evolve explicitly marks stale docs.

Max Concurrent Agents

4 (default; configurable via .sdd/config.json settings.maxParallelImplementers).

Consensus Mechanism

None — reviewer is a single-pass quality gate, not a quorum.

Cross-Tool Portability

Single-tool (Cursor IDE with Cursor-specific features: is_background, Agents Window, .cursor/ path conventions).

08

Ui Cli Surface

spec-kit-command-cursor — UI, CLI, and Surface

CLI Binary

None — no dedicated CLI.

Cursor IDE Integration

  • All commands as .cursor/commands/*.md (Cursor slash commands)
  • Subagents as .cursor/agents/*.md
  • Skills as .cursor/skills/*/SKILL.md
  • Hooks as .cursor/hooks.json + Python hook scripts
  • Sandbox controls as .cursor/sandbox.json (network access)
  • Worktree configuration as .cursor/worktrees.json (Agents Window)

Cursor Marketplace Plugin

  • .cursor-plugin/plugin.json makes the framework installable as a Cursor IDE plugin
  • Enables single-click install for teams

Observability

  • Audit log: Yes — subagentStop and stop hooks write Python-generated logs
  • Replay capability: No
  • Checkpoint file: execution-checkpoint.json provides task completion state for resume

Dashboard / Web UI

None.

Related frameworks

same archetype · same primary tool · same memory type

Claude-Flow / Ruflo ★ 55k

Eliminates single-agent context limits and sequential bottlenecks by orchestrating fault-tolerant swarms of specialized AI agents…

Hermes Agent (NousResearch) ★ 168k

Self-improving personal AI agent with closed learning loop, 7 terminal backends, and messaging gateway — not tied to any AI…

OpenCode ★ 165k

Terminal-first AI coding agent with multi-model routing, native desktop app, and a typed .opencode/ configuration system for…

OpenHands ★ 75k

Open-source AI software development platform (open-source Devin alternative) with Docker sandbox isolation, 77.6% SWE-bench…

DeerFlow ★ 70k

Long-horizon superagent that researches, codes, and creates by orchestrating parallel sub-agents with isolated contexts in Docker…

oh-my-openagent (omo) ★ 60k

Multi-provider AI agent orchestration for OpenCode: escape vendor lock-in by routing Sisyphus (Claude/Kimi/GLM) and Hephaestus…