Setting up Cursor AI Integration

Task Master is designed to work seamlessly with Cursor AI, providing a structured workflow for AI-driven development.

Initial Task Generation

In Cursor’s AI chat, instruct the agent to generate tasks from your PRD:

Please use the task-master parse-prd command to generate tasks from my PRD. The PRD is located at scripts/prd.txt.

The agent will execute:

task-master parse-prd scripts/prd.txt

This will:

  • Parse your PRD document
  • Generate a structured tasks.json file with tasks, dependencies, priorities, and test strategies
  • The agent will understand this process due to the Cursor rules

Generate Individual Task Files

Next, ask the agent to generate individual task files:

Please generate individual task files from tasks.json

The agent will execute:

task-master generate

This creates individual task files in the tasks/ directory (e.g., task_001.txt, task_002.txt), making it easier to reference specific tasks.