# spec-kit-command-cursor
**Repository Path**: zengfr/spec-kit-command-cursor
## Basic Information
- **Project Name**: spec-kit-command-cursor
- **Description**: No description available
- **Primary Language**: TypeScript
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-11-08
- **Last Updated**: 2025-12-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# π SDD Cursor Commands
[](https://github.com/madebyaris/spec-kit-command-cursor/stargazers)
[](https://github.com/madebyaris/spec-kit-command-cursor/network/members)
[](https://opensource.org/licenses/MIT)
[](http://makeapullrequest.com)
**A game-changing Spec-Driven Development (SDD) toolkit for Cursor IDE**
*Transform chaotic feature ideas into structured, production-ready implementations*
[π Quick Start](#-quick-start) β’ [π Documentation](#-the-three-core-commands) β’ [π― Examples](#-example-workflow) β’ [π€ Contributing](#-contributing)
---
## π Table of Contents
- [π― What is Spec-Driven Development?](#-what-is-spec-driven-development)
- [β¨ Key Features](#-key-features)
- [π Quick Start](#-quick-start)
- [π The Three Core Commands](#-the-three-core-commands)
- [π Project Structure](#-project-structure)
- [π― Example Workflow](#-example-workflow)
- [π‘ Best Practices](#-best-practices)
- [π§ Configuration](#-configuration)
- [π€ Team Collaboration](#-team-collaboration)
- [π Advanced Usage](#-advanced-usage)
- [π Benefits](#-benefits)
## π― What is Spec-Driven Development?
> **Stop coding blindly. Start building with purpose.**
Spec-Driven Development is a revolutionary methodology that emphasizes creating detailed, executable specifications **before** writing a single line of code. This approach ensures that:
- π― **Requirements are crystal clear** before implementation begins
- ποΈ **Technical decisions are well-planned** and documented
- π **Development tasks are structured** and manageable
- π€ **Team collaboration** is enhanced through shared understanding
- π **Delivery is faster** with fewer iterations and scope changes
### π¨ PLAN Mode Integration (New!)
All SDD commands now integrate with **Cursor's PLAN mode** for enhanced control and visibility:
```
Every Command: User Request β Analysis β Present Plan β Approve β Execute
```
**What This Means:**
- ποΈ **See before create** - Review what will be generated before any files are made
- β
**Approve or modify** - Change the approach before execution
- π§ **Learn the reasoning** - Understand AI's thinking and decisions
- π‘οΈ **Safety first** - No surprise file changes or modifications
- π― **Better quality** - More thoughtful, deliberate specifications
**Cursor 2.1 Enhancements:**
- π― **Interactive Questions** - Questions appear in interactive UI (faster workflow)
- π **Plan Search** - Use β+F to search within generated plans
- π **AI Code Reviews** - Automatic code review after implementation (issues in sidepanel)
- β‘ **Instant Grep** - All codebase searches are instant (faster research)
- π **Background Planning** - Create plans in background while working
- π₯ **Multi-Agents** - Execute up to 8 tasks in parallel
- π€ **Voice Mode** - Control commands with your voice
**Example Flow:**
1. You run `/brief checkout-flow Quick checkout for guest users`
2. AI analyzes requirements and existing patterns
3. AI presents a plan showing brief structure, research approach, and what will be created
4. **Questions appear in interactive UI** (Cursor 2.1+) - answer directly
5. You review plan (use β+F to search if needed)
6. You approve (or request changes)
7. AI executes, creating the feature brief as planned
8. **AI Code Review** automatically checks code (Cursor 2.1+)
9. Result: `specs/active/checkout-flow/feature-brief.md` created with full visibility
## β¨ Key Features
|
### π¨ **Smart Command System** (SDD 2.5)
- **Primary**: `/brief` - 30-minute planning β start coding (80% of features)
- **Living Docs**: `/evolve` - Keep specs aligned during development
- **Advanced**: Full SDD 2.0 workflow for complex features (20% of cases)
- **Escalation**: `/upgrade` - Convert brief to full planning when needed
### ποΈ **Professional Templates**
- Comprehensive specification templates
- Technical planning frameworks
- Task breakdown structures with effort estimation
|
### π€ **Collaboration-First Design**
- Multi-developer workflow support
- Progress tracking and status updates
- Review workflows with feedback integration
### β‘ **Token-Optimized Architecture**
- Minimal `.mdc` rules (78% token reduction)
- Command-based system for zero overhead
- Cost-efficient AI interactions
|
## π― When to Use SDD 2.0
### **Choose Your Starting Point**
### **π Perfect for SDD 2.5 (Brief)** - Quick Features & Iterations
π **Scenario**: Adding user avatar upload to existing app
**Why Perfect:** Familiar technology, single team, clear requirements, low risk
**Brief Focus:** 30-minute planning β start coding immediately β evolve during development
---
### **β
Also Great** - PRD + External Research
π **Scenario**: Have requirements, need implementation approach
**Why Good:** Product requirements defined, research external solutions, study best practices
**Research Focus:** Industry analysis, competitor study, technology comparisons
---
### **ποΈ Needs Full SDD 2.0** - Complex & High-Risk Features
ποΈ **Scenario**: Payment processing with PCI compliance
**Why Full SDD:** Multiple teams, regulatory requirements, architectural changes, high business risk
**Full Workflow:** Comprehensive research β detailed specs β complete planning β structured tasks
---
### π‘ **Key Insight**
**SDD 2.5** (Brief): Perfect for 80% of features - rapid development with essential planning
**SDD 2.0** (Full): For 20% of complex features requiring comprehensive coordination
---
## π¨ PLAN Mode: Enhanced Workflow
All SDD commands now use **Cursor's PLAN mode** - a deliberate, plan-approve-execute pattern that gives you full control.
### How It Works
Every command follows a 4-phase workflow:
```mermaid
graph LR
A[1. Analysis] --> B[2. Create Plan]
B --> C[3. User Approves]
C --> D[4. Execute]
D --> E[5. Document]
```
**Phase 1: Analysis (Readonly)**
- AI reads relevant files and context
- Asks clarifying questions if needed
- No file modifications yet
**Phase 2: Present Plan**
- Shows what will be created/modified
- Explains reasoning and approach
- Previews structure and content
- Waits for your approval
**Phase 3: Execute**
- Creates or modifies files as planned
- Follows approved approach exactly
- Maintains quality standards
**Phase 4: Document**
- Updates tracking files
- Records decisions made
- Sets up for next phase
### Example: `/brief` with PLAN Mode
**Traditional approach (old):**
```bash
/brief checkout-flow Quick checkout for guests
β Boom! feature-brief.md created immediately
β Hope it's what you wanted...
```
**With PLAN Mode (new):**
```bash
/brief checkout-flow Quick checkout for guests
AI: "Let me analyze this..."
β Checks existing patterns
β Identifies missing info
β Asks: "Should guests be able to save cart for later?"
AI: "Here's my plan:"
β Will create: specs/active/checkout-flow/feature-brief.md
β Structure: Problem, Users, Requirements, Approach, Next Actions
β Research: Will examine existing checkout patterns (15 min)
β Key requirements: Guest checkout, cart persistence, session handling
You: "Looks good, but also add abandoned cart recovery"
AI: "Updated plan, creating now..."
β Creates feature-brief.md with your additions
β Full visibility, full control
```
### Benefits by User Type
**For Solo Developers:**
- π Catch issues before implementation
- π Learn from AI's reasoning process
- π― Ensure requirements are understood correctly
- β‘ Modify approach before wasting time
**For Teams:**
- π₯ Review plans collaboratively before approval
- π Shared understanding of what will be created
- π‘οΈ Risk reduction through oversight
- π Clear audit trail of decisions
**For Project Managers:**
- ποΈ Visibility into planning approach
- β
Approval gate before work begins
- π Better estimation through plan review
- π― Alignment with business goals
### PLAN Mode Across All Commands
| Command | What Plan Shows | Why It Matters |
|---------|----------------|----------------|
| `/brief` | Brief structure, research scope, requirements outline | Ensures 30-min planning is focused on right things |
| `/evolve` | Before/after changes, changelog entry, impact | Prevents accidental overwrites of important context |
| `/research` | Search strategy, areas to examine, time allocation | Focuses research on most valuable patterns |
| `/specify` | Spec structure, requirements preview, user stories | Catches missing requirements early |
| `/plan` | Architecture approach, tech decisions, design rationale | Validates technical direction before deep planning |
| `/tasks` | Task breakdown strategy, effort estimates, dependencies | Ensures comprehensive coverage of all work |
| `/implement` | Todo-list preview, execution order, file changes | Shows implementation roadmap before coding |
| `/upgrade` | Brief expansion strategy, new documents, content mapping | Prevents information loss during escalation |
### Customizing Plans
You can modify any plan before approval:
```bash
AI: "Plan: I'll create 5 user stories focusing on happy path..."
You: "Add error scenarios and edge cases too"
AI: "Updated plan with error handling user stories..."
β Proceeds with enhanced plan
```
### Tips for Using PLAN Mode
1. **Review plans thoroughly** - This is your chance to course-correct
2. **Ask questions** - If plan is unclear, ask for clarification
3. **Request changes** - Don't approve if something seems off
4. **Learn from plans** - Understand AI reasoning for better collaboration
5. **Use iteratively** - Plans get better as AI learns your preferences
### π Learn More About PLAN Mode
- **[Quick Start Guide](.sdd/PLAN_MODE_QUICKSTART.md)** - Get started with PLAN mode in 5 minutes
- **[Detailed Examples](.sdd/PLAN_MODE_EXAMPLES.md)** - Real scenarios and walkthroughs for each command
- **[Implementation Summary](.sdd/PLAN_MODE_INTEGRATION_SUMMARY.md)** - Technical details of the integration
- **[Cursor 2.1 Enhancements](.sdd/CURSOR_2.1_ENHANCEMENTS.md)** - New features and improvements
- **[Team Setup Guide](.sdd/TEAM_SETUP_GUIDE.md)** - Set up SDD commands for your team
---
## πΊοΈ Full Project Planning (NEW!)
Plan entire applications and systems from A to Z with comprehensive roadmaps!
### The All-in-One Planning Command
Use `/sdd-full-plan` (or `/pecut-all-in-one`) to create complete project roadmaps with:
```bash
# Create full project roadmap
/sdd-full-plan blog-platform Full-featured blog with CMS and analytics
# Or use the memorable alias
/pecut-all-in-one ecommerce-platform Multi-vendor marketplace
```
### What You Get
**π Kanban Board Structure:**
- To Do, In Progress, Review, Done columns
- Epic-level organization
- Task hierarchy (Epic β Task β Subtask)
- Dependency management
**π― Smart Complexity Detection:**
- **Simple** (< 3 weeks): 3-5 tasks, Brief approach
- **Medium** (3-8 weeks): 8-12 tasks, Mixed SDD
- **Complex** (8-20 weeks): 15-20 tasks, Full SDD 2.0
- **Enterprise** (20+ weeks): 20+ tasks, Multi-phase
**π SDD Integration:**
- Each task maps to appropriate SDD command
- Tasks link to `specs/active/` for implementation
- Progress tracked in roadmap and specs
- Execute tasks with `/execute-task`
**π¨ VSCode Extension Ready:**
- Compatible with Taskr Kanban
- JSON format ready for custom extensions
- Visual kanban board in markdown
### Example: Building a Blog Platform
```bash
/sdd-full-plan blog-platform Full-featured blog with CMS, user management, comments, and analytics
```
**AI Creates:**
```
specs/todo-roadmap/blog-platform/
βββ roadmap.json # Kanban board data
βββ roadmap.md # Human-readable view
βββ tasks/
β βββ epic-001.json # Research & Foundation
β βββ epic-002.json # Core Blog Features
β βββ task-002-1.json # User Authentication
β βββ ...
βββ execution-log.md # Execution tracking
```
**Roadmap Includes:**
- π 5 Epics (Research, Core, Engagement, Admin, Deployment)
- π― 20 Tasks organized by phase
- β±οΈ 240 hour estimate
- π 6-week timeline
- π SDD command mappings
### Executing Tasks
```bash
# Execute first epic
/execute-task epic-001
# AI automatically:
# 1. Determines it's a research phase
# 2. Runs: /research epic-001 [description]
# 3. Creates: specs/active/epic-001/research.md
# 4. Updates: roadmap.json status
# 5. Logs: execution-log.md
# Continue with next task
/execute-task task-001-1
```
### Visual Roadmap (roadmap.md excerpt)
```markdown
## π
Kanban Board
### π΅ To Do (15)
- Epic 1: Research & Foundation
- Task 1-1: Research CMS patterns (8h)
- Task 1-2: Define architecture (16h)
- Task 1-3: Create specification (16h)
- Epic 2: Core Blog Features
- Task 2-1: User authentication (24h)
- Task 2-2: Post creation (32h)
### π‘ In Progress (3)
- Task 1-1: Research CMS patterns
### π£ Review (2)
- Task 0-1: Initial setup
### π’ Done (0)
```
### Benefits
β
**Complete Project View** - See entire project at a glance
β
**Structured Planning** - Epic β Task β Subtask hierarchy
β
**Dependency Management** - Automatic blocking and unblocking
β
**Progress Tracking** - Visual kanban board
β
**SDD Integration** - Each task uses appropriate SDD command
β
**Team Coordination** - Assignee tracking and status updates
β
**VSCode Ready** - Extension-compatible JSON format
### When to Use Full Planning
**Use `/sdd-full-plan` when:**
- ποΈ Planning entire application or system
- π Need visual roadmap with kanban board
- π₯ Managing multi-developer team
- π― Want structured task hierarchy
- β±οΈ Timeline > 3 weeks
- π Require dependency tracking
**Use `/brief` when:**
- β‘ Quick feature addition
- π€ Single developer
- π Timeline < 3 weeks
- π¨ Well-understood scope
### Learn More
- **[Full Plan Command Docs](.cursor/commands/sdd-full-plan.md)** - Complete documentation
- **[Roadmap Format Spec](.sdd/ROADMAP_FORMAT_SPEC.md)** - JSON schema and structure
- **[Full Plan Examples](.sdd/FULL_PLAN_EXAMPLES.md)** - Detailed examples at all complexity levels
- **[Cursor 2.1 Features](.sdd/CURSOR_2.1_ENHANCEMENTS.md)** - Leverage latest Cursor features
- **[Team Commands](.sdd/TEAM_SETUP_GUIDE.md)** - Set up team-wide SDD commands
---
## π Cursor 2.1 Features
SDD system now leverages powerful Cursor 2.1 capabilities:
### π― Interactive Question UI
**What It Does:**
Questions appear in interactive interface instead of text chat.
**SDD Benefits:**
- β‘ Faster question answering
- π¨ Better UX
- π± Mobile-friendly
- π― Clear question visibility
**Usage:**
When running any SDD command, questions appear automatically in interactive UI. Answer directly for faster workflow.
### π Plan Search (β+F)
**What It Does:**
Search within generated plans using β+F (Cmd+F / Ctrl+F).
**SDD Benefits:**
- π Fast navigation in large plans
- π Find specific sections quickly
- β±οΈ Save time reviewing plans
- π Better plan readability
**Usage:**
1. Generate plan with any SDD command
2. Press β+F
3. Search for keywords, file paths, or sections
4. Navigate efficiently
**Pro Tips:**
- Search for "What will be created" to see file changes
- Search for file paths to find specific files
- Use regex for advanced searches
### π AI Code Reviews
**What It Does:**
Automatically reviews code changes and shows issues in sidepanel.
**SDD Integration:**
- Integrated into `/implement` workflow
- Automatic review after implementation
- Fix bugs directly in editor
- Security and performance checks
**Workflow:**
```
/implement user-auth-system
β Code implemented
β AI automatically reviews
β Issues appear in sidepanel
β Click to review and fix
β Apply fixes directly
```
**Review Checklist:**
- [ ] All requirements met
- [ ] Code follows project patterns
- [ ] No security vulnerabilities
- [ ] Performance optimized
- [ ] Tests included
### β‘ Instant Grep
**What It Does:**
All grep commands are now instant.
**SDD Benefits:**
- β‘ Faster `/research` command
- π Real-time pattern discovery
- π Better research efficiency
- π― Multiple parallel searches
**Usage:**
The `/research` command now leverages instant grep for faster codebase exploration.
### π Background Planning
**What It Does:**
Create plans in background while continuing to work.
**SDD Integration:**
- Useful for complex `/sdd-full-plan` projects
- Don't wait for plan generation
- Compare multiple plan options
- Better for enterprise projects
**Usage:**
Enable background planning in Cursor settings. Plans generate while you work, notification when ready.
### π₯ Multi-Agents (8 Parallel)
**What It Does:**
Execute up to 8 agents in parallel on single prompt.
**SDD Integration:**
- Execute multiple independent roadmap tasks simultaneously
- Faster completion
- No file conflicts (isolated environments)
- Better team utilization
**Usage:**
```bash
# Execute 3 independent tasks in parallel
/execute-task task-001 # Agent 1
/execute-task task-002 # Agent 2
/execute-task task-003 # Agent 3
```
**Safety:**
- Each agent has isolated copy
- No file conflicts
- Merge results when complete
### π₯ Team Commands
**What It Does:**
Define custom commands in dashboard, shared across team.
**SDD Integration:**
- SDD commands can be team-wide
- Consistent workflow
- Centralized management
- Easy onboarding
**Setup:**
1. Go to Cursor dashboard
2. Define SDD commands
3. Share with team
4. Commands available to all automatically
**Benefits:**
- π₯ Team-wide consistency
- π Centralized updates
- π― Standardized workflow
- π Easy onboarding
See [Team Setup Guide](.sdd/TEAM_SETUP_GUIDE.md) for complete instructions.
### π€ Voice Mode
**What It Does:**
Control Agent with your voice.
**SDD Integration:**
- Voice control for all SDD commands
- Hands-free workflow
- Accessibility improvement
**Usage:**
```
Voice: "Create a brief for user notifications"
AI: [Runs /brief command]
Voice: "Execute task epic-001"
AI: [Runs /execute-task epic-001]
```
---
## π Documentation
### Getting Started
- **[Quick Start](#-quick-start)** - Install and start using
- **[PLAN Mode Quick Start](.sdd/PLAN_MODE_QUICKSTART.md)** - PLAN mode in 5 minutes
### Commands
- **[Command Reference](#-sdd-commands)** - All SDD commands
- **[Generate Rules](.cursor/commands/generate-rules.md)** - Auto-generate coding rules
- **[Full Planning](.cursor/commands/sdd-full-plan.md)** - Complete roadmaps
### Advanced
- **[PLAN Mode Examples](.sdd/PLAN_MODE_EXAMPLES.md)** - Detailed walkthroughs
- **[Cursor 2.1 Features](.sdd/CURSOR_2.1_ENHANCEMENTS.md)** - Latest enhancements
- **[Team Setup](.sdd/TEAM_SETUP_GUIDE.md)** - Team command setup
- **[Roadmap Format](.sdd/ROADMAP_FORMAT_SPEC.md)** - JSON schema
- **[Full Plan Examples](.sdd/FULL_PLAN_EXAMPLES.md)** - Complexity examples
### Methodology
- **[SDD Guidelines](.sdd/guidelines.md)** - Complete methodology
- **[Implementation Guide](.sdd/IMPLEMENTATION_GUIDE.md)** - Execution rules
---
## π Quick Start
### 1. Install the System
Clone this repository to transform your development workflow:
```bash
git clone https://github.com/madebyaris/spec-kit-command-cursor.git
cd spec-kit-command-cursor
```
### 2. Configure Cursor
π **Zero configuration required!** The `.cursor/commands/*.md` files contain the SDD command definitions, and `.cursor/rules/*.mdc` provides minimal system context. Cursor automatically recognizes these commands when you open the project.
> **π‘ Pro Tip:** SDD 2.0 works best with existing projects or when you have a PRD/requirements document to guide research.
### 3. Start Building with Purpose
Transform any feature idea using the proven SDD workflow:
```bash
# π Default: 30-minute planning then start coding (80% of features)
/brief user-auth-system JWT authentication with login/logout functionality
# Start coding immediately after 30-minute brief!
# π Update specs as you discover things during development
/evolve user-auth-system Added password strength validation based on security review
# ποΈ For complex features: Use full SDD 2.0 workflow (20% of features)
/research payment-system β /specify β /plan β /tasks β /implement
```
> **π That's it!** 30 minutes of planning β start building immediately!
## π SDD Commands
### **π Primary Workflow (80% of features)**
| Command | Purpose | Time | Output |
|---------|---------|------|--------|
| π `/brief` | Idea β 30min Plan | 30 min | Feature brief ready for coding |
| π `/evolve` | Update during development | 2-5 min | Living documentation updates |
### **π Full Project Planning (NEW)**
| Command | Purpose | Time | Output |
|---------|---------|------|--------|
| πΊοΈ `/sdd-full-plan` | Complete A-Z Roadmap | 15-60 min | Full project kanban board |
| π― `/pecut-all-in-one` | Alias for sdd-full-plan | 15-60 min | Complete roadmap |
| β‘ `/execute-task` | Run roadmap task | Variable | Execute with SDD commands |
### **ποΈ Advanced Workflow (20% of complex features)**
| Command | Purpose | Time | Output |
|---------|---------|------|--------|
| π `/research` | Investigate β Context | 60 min | Patterns & findings |
| π― `/specify` | Ideas β Requirements | 90 min | Detailed specification |
| ποΈ `/plan` | Requirements β Technical design | 120 min | Implementation plan |
| π `/tasks` | Design β Actionable tasks | 60 min | Development roadmap |
| β‘ `/implement` | Plan β Code | Variable | Todo-list & execution |
### **π Escalation**
| Command | Purpose | When | Output |
|---------|---------|------|--------|
| β¬οΈ `/upgrade` | Brief β Full SDD | Complexity discovered | Complete planning suite |
### **βοΈ Rule Generation**
| Command | Purpose | Time | Output |
|---------|---------|------|--------|
| π `/generate-rules` | Auto-generate coding rules | 5-10 min | Comprehensive rule files |
### π `/research` - Investigate Existing Patterns
> **"Good artists copy, great artists steal (and improve)"**
**Purpose:** Investigate existing codebase patterns and gather comprehensive context before specification.
**Usage:**
```bash
/research
```
**Examples:**
```bash
# Existing project: Research internal patterns
/research user-auth-system JWT authentication with existing patterns
# PRD-based: Research external solutions
/research payment-system Stripe vs PayPal integration patterns for subscription SaaS
```
**π What it creates:**
- π `specs/active/user-auth-system/feature-brief.md` (single document)
- π― Problem statement & success metrics
- π Quick pattern research & technology decisions
- π Essential requirements & user stories
- ποΈ Implementation approach & next actions
- β±οΈ **Ready to code in 30 minutes!**
### π `/evolve` - Living Documentation Updates
> **"Keep specs aligned with reality as you code"**
**Purpose:** Update feature briefs continuously during development to maintain alignment between specs and implementation.
**Usage:**
```bash
/evolve
```
**Example:**
```bash
/evolve user-auth-system Added password strength validation after security review
```
**π What it creates:**
- π Updates existing `feature-brief.md` with new information
- π Adds changelog entries with reasoning
- π― Maintains spec-implementation alignment
- β‘ **Takes 2-5 minutes during development**
## ποΈ Advanced Mode: Full SDD 2.0 (20% of complex features)
For features requiring comprehensive planning (multiple teams, architectural changes, high risk):
### β¬οΈ `/upgrade` - Brief to Full Planning
> **"Seamlessly scale up when complexity emerges"**
**Purpose:** Convert lightweight brief to comprehensive SDD 2.0 planning when complexity is discovered.
**Usage:**
```bash
/upgrade
```
**Example:**
```bash
/upgrade checkout-flow Discovered PCI compliance and multi-payment provider needs
```
**β¬οΈ What it creates:**
- ποΈ Expands brief into full SDD 2.0 suite
- π research.md, spec.md, plan.md, tasks.md
- π Preserves all existing decisions
- π **Scales planning when needed**
### π― `/specify` - Detailed Requirements (Advanced)
> **"Comprehensive specifications for complex features"**
**Purpose:** Transform vague feature ideas into detailed, testable requirements.
**Usage:**
```bash
/specify
```
**Example:**
```bash
/specify user-auth-system Implement JWT-based authentication system with login/logout
```
**β¨ What it creates:**
- π `specs/active/user-auth-system/spec.md`
- π Comprehensive requirements document
- π€ User stories with acceptance criteria
- π Success metrics and edge cases
- β
Quality assurance checklist
### ποΈ `/plan` - Generate Technical Plans
> **"Architecture is the foundation of great software"**
**Purpose:** Convert specifications into detailed technical implementation strategy.
**Usage:**
```bash
/plan
```
**Prerequisites:** π Must have existing `spec.md` file
**Example:**
```bash
/plan user-auth-system
```
**π What it creates:**
- ποΈ `plan.md` with system architecture
- βοΈ Technology stack recommendations
- ποΈ Database schema and API contracts
- π Security and performance considerations
- π Integration points and dependencies
### π `/tasks` - Create Implementation Tasks
> **"A journey of a thousand miles begins with a single step"**
**Purpose:** Break down technical plans into actionable development tasks.
**Usage:**
```bash
/tasks
```
**Prerequisites:** ποΈ Must have existing `plan.md` file
**Example:**
```bash
/tasks user-auth-system
```
**π What it creates:**
- β
`tasks.md` with prioritized task breakdown
- π Implementation phases and dependencies
- β±οΈ Effort estimates and success criteria
- π Progress tracking template
- π― Definition of done for each task
### β‘ `/implement` - Execute Implementation
> **"The best plan is worthless without execution"**
**Purpose:** Execute the planned implementation with maximum efficiency and continuous flow.
**Usage:**
```bash
/implement
```
**Prerequisites:** ποΈ Must have existing `plan.md` file
**Example:**
```bash
/implement user-auth-system
```
**β‘ What it creates:**
- β
`todo-list.md` with comprehensive execution plan
- π Continuous implementation flow
- π Progress tracking and updates
- π― Pattern reuse strategy
- π» Implementation artifacts and code
## π Project Structure
```
your-project/
βββ .sdd/ # SDD system configuration
β βββ config.json # Settings and preferences
β βββ guidelines.md # Development process guide
β βββ templates/ # Document templates
β β βββ spec-template.md
β β βββ plan-template.md
β β βββ tasks-template.md
β βββ utils.js # Helper utilities (optional)
βββ specs/ # All feature specifications
β βββ 00-overview.md # Project overview
β βββ index.md # Feature status dashboard
β βββ active/ # Features in development
β β βββ feat-001-user-auth/
β β β βββ spec.md # Requirements
β β β βββ plan.md # Technical plan
β β β βββ tasks.md # Implementation tasks
β β β βββ progress.md # Development tracking
β β βββ feat-002-photo-gallery/
β βββ completed/ # Delivered features
β βββ backlog/ # Future features
βββ src/ # Your actual code
βββ .cursor/ # Cursor configuration
β βββ commands/ # Command definitions
β β βββ specify.md # /specify command
β β βββ plan.md # /plan command
β β βββ tasks.md # /tasks command
β βββ rules/ # Minimal system rules
β βββ sdd-system.mdc # SDD overview (token-efficient)
βββ README.md # This file
```
## π§ Configuration
### Customizing Templates
Edit templates in `.sdd/templates/` to match your project needs:
```markdown
# Example customization in spec-template.md
## Project-Specific Section
- **Team Lead**: {{TEAM_LEAD}}
- **Sprint**: {{CURRENT_SPRINT}}
- **Epic**: {{EPIC_REFERENCE}}
```
### Adjusting Settings
Modify `.sdd/config.json` for your workflow:
```json
{
"settings": {
"defaultFeaturePrefix": "feat-",
"autoNumberFeatures": true,
"requireReviews": true,
"collaborationMode": true
},
"workflow": {
"phases": ["specify", "plan", "tasks", "implement", "review", "complete"]
}
}
```
## π― Example Workflow
> **See SDD in action! From idea to implementation in minutes.**
π¬ Scenario 1: Adding Feature to Existing App
### π‘ **Step 1: Start with a Feature Idea**
*"I want to add a user rating system to my existing e-commerce app"*
### π― **Step 2: Create the Specification**
```bash
/specify user-ratings Allow users to rate items on 1-5 scale with optional comments and display average ratings
```
**β¨ Result:** Creates comprehensive specification
```
π specs/active/feat-003-user-ratings/
βββ π spec.md # Complete requirements with user stories & acceptance criteria
```
### ποΈ **Step 3: Generate the Technical Plan**
```bash
/plan user-ratings
```
**π Result:** Creates detailed implementation strategy
```
π specs/active/feat-003-user-ratings/
βββ π spec.md
βββ ποΈ plan.md # Architecture, tech stack, database schema, APIs
```
### π **Step 4: Break Down into Tasks**
```bash
/tasks user-ratings
```
**π Result:** Creates actionable development roadmap
```
π specs/active/feat-003-user-ratings/
βββ π spec.md
βββ ποΈ plan.md
βββ β
tasks.md # Prioritized tasks with dependencies & estimates
```
### π― **Step 5: Start Development**
Follow the tasks in priority order, updating `progress.md` as you go:
```markdown
## π Current Status: In Progress
- [x] Database schema design β
- [x] API endpoints β
- [x] Frontend rating component β
- [ ] π Integration testing (In Progress)
- [ ] β³ Performance optimization (Pending)
```
**π Result:** Feature delivered on time, on spec, with no surprises!
π Scenario 2: PRD-Based Development
### π **Step 1: Start with Requirements Document**
*"We have a PRD for a real-time chat system for our SaaS platform"*
### π **Step 2: Research External Solutions**
```bash
/research chat-system WebSocket vs Socket.io vs Pusher for real-time messaging in SaaS
```
**β¨ Result:** Creates comprehensive research
```
π specs/active/chat-system/
βββ π research.md # Competitor analysis, technology comparison, best practices
```
### π― **Step 3: Create Specification**
```bash
/specify chat-system Real-time messaging with typing indicators and file sharing
```
**π Result:** Creates detailed specification
```
π specs/active/chat-system/
βββ π research.md
βββ π spec.md # Requirements informed by research findings
```
### ποΈ **Step 4: Generate Technical Plan**
```bash
/plan chat-system
```
**π Result:** Creates implementation strategy
```
π specs/active/chat-system/
βββ π research.md
βββ π spec.md
βββ ποΈ plan.md # Architecture using researched technologies
```
### π **Step 5: Break Down Tasks**
```bash
/tasks chat-system
```
### β‘ **Step 6: Execute Implementation**
```bash
/implement chat-system
```
**π Result:** Chat system built using researched best practices and proven patterns!
---
### π **From Chaos to Clarity in 4 Commands**
| Before SDD | After SDD |
|------------|-----------|
| π΅ Unclear requirements | π― Crystal clear specifications |
| π€ Guessing architecture | ποΈ Well-planned technical design |
| π Vague development tasks | β
Actionable roadmap with estimates |
| π Endless scope changes | π― Focused delivery with minimal rework |
## π‘ Best Practices
### π **Pro Tips for SDD Mastery**
### π― **For Specifications (`/specify`)**
**π¨ Think User-First**
- Be specific about user needs & business value
- Include edge cases & error scenarios
- Define measurable success criteria
- Focus on "what" and "why", not "how"
**β¨ Pro Tip:** *Ask "What problem are we solving?" before writing code*
---
### ποΈ **For Plans (`/plan`)**
**π Design for Success**
- Justify technology choices based on requirements
- Consider scalability & future growth
- Address security & performance early
- Plan for testing & deployment from day one
**β¨ Pro Tip:** *Architecture decisions made now save hours later*
---
### π **For Tasks (`/tasks`)**
**β‘ Execute with Precision**
- Keep tasks small (1-2 days max)
- Define clear dependencies between tasks
- Include testing tasks for each feature
- Estimate effort realistically
**β¨ Pro Tip:** *Small tasks = big wins and faster feedback loops*
### π― **The SDD Golden Rules**
| Rule | Why It Matters | Impact |
|------|----------------|---------|
| π **Spec before code** | Prevents scope creep | π 20% faster delivery |
| ποΈ **Plan before build** | Reduces technical debt | π§ 50% fewer refactors |
| β
**Tasks before work** | Improves team coordination | π€ Better collaboration |
## π€ Team Collaboration
### Multi-Developer Workflow
1. **Assign ownership** of specs, plans, and tasks
2. **Use progress.md** for status updates
3. **Review and iterate** on specifications
4. **Track dependencies** between features
### Status Tracking
Update feature status in `progress.md`:
```markdown
## Current Status: In Progress
- [x] Database schema design
- [x] API endpoints
- [ ] Frontend components (50% complete)
- [ ] Testing suite
```
### Code Reviews
Use `reviews.md` to track review feedback:
```markdown
## Review Comments
- Security: Add input validation (Fixed β
)
- Performance: Optimize database queries (In Progress)
- UI: Improve mobile responsiveness (Pending)
```
## π Troubleshooting
### Common Issues
**"Feature not found" error:**
- Check feature name spelling
- Ensure feature exists in `specs/active/`
**"Missing dependencies" error:**
- Run commands in order: `/specify` β `/plan` β `/tasks`
- Check that required files exist
**Template processing errors:**
- Verify template files exist in `.sdd/templates/`
- Check template syntax for variables
### Getting Help
1. **Check guidelines**: Read `.sdd/guidelines.md`
2. **Review examples**: Look at existing features in `specs/active/`
3. **Validate structure**: Ensure directory structure matches expected format
## π Advanced Usage
### Custom Commands
Extend the system by adding new command files to `.cursor/commands/`:
```markdown
# /review Command
Generate code review checklist based on specifications.
## Usage
```
/review [feature-name]
```
## Purpose
Create comprehensive code review checklist based on feature specification and plan.
```
### Integration with Tools
- **Git hooks**: Automatically update status on commits
- **CI/CD**: Validate implementations against specifications
- **Project management**: Sync with Jira, Linear, etc.
### Analytics
Track your SDD usage:
- Time savings from better planning
- Reduction in scope changes
- Quality improvements through structured approach
## π Benefits
### π **Transform Your Development Process**
### π **Measurable Improvements**
| Metric | Before SDD | After SDD | Improvement |
|--------|------------|-----------|-------------|
| β±οΈ **Development Time** | Baseline | Optimized | π **20% Faster** |
| π **Scope Changes** | Frequent | Minimal | π **80% Reduction** |
| π **Bugs in Production** | High | Low | π― **60% Fewer** |
| π€ **Team Alignment** | Poor | Excellent | β **95% Satisfaction** |
---
### π **Real-World Impact**
**π― For Developers:**
- β
Clear roadmap reduces decision fatigue
- π§ Less time spent guessing requirements
- π Faster implementation with better focus
- πͺ Higher confidence in deliverables
**π₯ For Teams:**
- π€ Improved communication & collaboration
- π Better project visibility for stakeholders
- π― Reduced rework and technical debt
- π Higher quality deliverables
### π° **ROI Calculator**
*Average 40-hour feature development:*
| Phase | Time Saved | Value |
|-------|-------------|--------|
| π Planning | 8 hours | $800 |
| π» Development | 6 hours | $600 |
| π Rework | 12 hours | $1200 |
| **π Total Savings** | **26 hours** | **$2600** |
---
## π **Ready to Transform Your Development Process?**
|
### π **Get Started**
```bash
git clone https://github.com/madebyaris/spec-kit-command-cursor.git
```
[π Read the docs](#-quick-start)
|
### β **Show Support**
Star this repo if SDD helps you!
[](https://github.com/madebyaris/spec-kit-command-cursor/stargazers)
|
### π€ **Contribute**
Help make SDD even better!
[π§ Submit a PR](https://github.com/madebyaris/spec-kit-command-cursor/pulls)
|
---
### π **Try Your First SDD Command Right Now!**
```bash
# π Start with lightweight 30-minute brief (most features)
/brief hello-world Create a simple hello world feature to test the SDD workflow
# ποΈ For complex features, use full SDD 2.0 workflow
/research payment-system β /specify β /plan β /tasks β /implement
```
## π Contributing
We β€οΈ contributions! Here's how you can help:
- π **Report bugs** - Found an issue? [Open an issue](https://github.com/madebyaris/spec-kit-command-cursor/issues)
- π‘ **Suggest features** - Have ideas? [Start a discussion](https://github.com/madebyaris/spec-kit-command-cursor/discussions)
- π§ **Submit PRs** - Code improvements welcome!
- π **Improve docs** - Help others learn SDD
- β **Star this repo** - Show your support!
### Recent Improvements
- β
[Issue #1](https://github.com/madebyaris/spec-kit-command-cursor/issues/1): Token usage optimized (65-89% reduction)
- β
SDD 2.5: Lightweight 30-minute planning approach
- β
Living documentation with `/evolve` command
## π License
MIT License - see [LICENSE](LICENSE) file for details.
## π Acknowledgments
- Inspired by [GitHub's Spec-Kit](https://github.com/github/spec-kit)
- Built for the amazing [Cursor IDE](https://cursor.com) community
- Special thanks to all contributors and early adopters!
---
**Made with β€οΈ by [Aris](https://github.com/madebyaris)**
[β¬οΈ Back to top](#-sdd-cursor-commands)