# 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
[![GitHub stars](https://img.shields.io/github/stars/madebyaris/spec-kit-command-cursor?style=social)](https://github.com/madebyaris/spec-kit-command-cursor/stargazers) [![GitHub forks](https://img.shields.io/github/forks/madebyaris/spec-kit-command-cursor?style=social)](https://github.com/madebyaris/spec-kit-command-cursor/network/members) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](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! [![GitHub stars](https://img.shields.io/github/stars/madebyaris/spec-kit-command-cursor?style=social)](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)