A comprehensive workflow rule for Cursor IDE that transforms rough feature ideas into detailed specifications, designs, and implementation plans using a systematic spec-driven development approach.
Spec-driven development is a methodology that breaks down complex feature development into three systematic phases:
- Requirements Gathering - Transform ideas into structured user stories and acceptance criteria
- Design Documentation - Create comprehensive technical designs with architecture and components
- Implementation Planning - Generate actionable task lists for code implementation
- Systematic Workflow: Guided three-phase process from idea to implementation
- EARS Format Requirements: Uses Easy Approach to Requirements Syntax for clear acceptance criteria
- Research Integration: Conducts necessary research during design phase
- Task-Driven Implementation: Generates specific, actionable coding tasks
- Iterative Feedback: Requires explicit user approval before progressing between phases
- Todo Integration: Tracks progress using Cursor's todo system
-
Clone this repository to your project directory:
git clone https://github.com/yourusername/cursor-spec-workflow-rule.git cd cursor-spec-workflow-rule
-
Copy the rule file to your project's Cursor rules directory:
mkdir -p .cursor/rules cp .cursor/rules/spec-workflow.mdc .cursor/rules/
-
The rule will be automatically loaded by Cursor when you restart the IDE.
-
Initiate the workflow by describing your feature idea to Cursor:
I want to create a spec for [your feature idea]
-
Requirements Phase: The AI will:
- Generate an initial requirements document at
.cursor/specs/{feature-name}/requirements.md
- Create user stories and EARS-format acceptance criteria
- Ask for your approval before proceeding
- Generate an initial requirements document at
-
Design Phase: After requirements approval:
- Conducts necessary research
- Creates a comprehensive design document at
.cursor/specs/{feature-name}/design.md
- Includes architecture, components, data models, and testing strategy
-
Implementation Phase: After design approval:
- Generates an actionable task list at
.cursor/specs/{feature-name}/tasks.md
- Creates numbered, checkbox-format coding tasks
- Each task references specific requirements
- Generates an actionable task list at
Once your spec is complete, you can execute individual tasks:
- Open the
tasks.md
file for your feature - Click "Start task" next to any task item
- The AI will implement that specific task based on your requirements and design
- Review the implementation before proceeding to the next task
The workflow creates the following structure:
.cursor/
specs/
{feature-name}/
requirements.md # User stories and acceptance criteria
design.md # Technical design and architecture
tasks.md # Implementation task checklist
- Transforms rough ideas into structured requirements
- Uses user story format: "As a [role], I want [feature], so that [benefit]"
- Creates EARS-format acceptance criteria
- Requires explicit user approval before proceeding
- Conducts research on best practices and existing patterns
- Creates comprehensive technical design
- Includes architecture, components, interfaces, data models
- Addresses error handling and testing strategies
- Converts design into actionable coding tasks
- Prioritizes test-driven development
- Creates incremental, manageable steps
- References specific requirements for each task
- One Task at a Time: Focus on completing individual tasks rather than rushing through multiple tasks
- Iterative Feedback: Provide feedback during each phase to ensure accuracy
- Review Documents: Carefully review each generated document before approval
- Task Execution: Execute tasks in order for best results
- Cursor IDE with rule support
- Project workspace with write permissions
Feel free to submit issues and enhancement requests. Contributions are welcome!
This project is open source and available under the MIT License.