fix: apply @rtuin suggestions

This commit is contained in:
Ralph Khreish
2025-03-28 15:25:31 +01:00
parent ad3a58ba3e
commit 71fe603e03
2 changed files with 35 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ To enable enhanced task management capabilities directly within Cursor using the
4. Configure with the following details: 4. Configure with the following details:
- Name: "Task Master" - Name: "Task Master"
- Type: "Command" - Type: "Command"
- Command: "npx -y task-master-mcp" - Command: "npx -y --package task-master-ai task-master-mcp"
5. Save the settings 5. Save the settings
Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience. Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience.

View File

@@ -136,7 +136,7 @@ To enable enhanced task management capabilities directly within Cursor using the
4. Configure with the following details: 4. Configure with the following details:
- Name: "Task Master" - Name: "Task Master"
- Type: "Command" - Type: "Command"
- Command: "npx -y task-master-mcp" - Command: "npx -y --package task-master-ai task-master-mcp"
5. Save the settings 5. Save the settings
Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience. Once configured, you can interact with Task Master's task management commands directly through Cursor's interface, providing a more integrated experience.
@@ -469,7 +469,7 @@ task-master fix-dependencies
### Add a New Task ### Add a New Task
```bash ````bash
# Add a new task using AI # Add a new task using AI
task-master add-task --prompt="Description of the new task" task-master add-task --prompt="Description of the new task"
@@ -517,7 +517,7 @@ npm install -g task-master-ai
# OR install locally within your project # OR install locally within your project
npm install task-master-ai npm install task-master-ai
``` ````
### Initialize a new project ### Initialize a new project
@@ -611,11 +611,13 @@ Please use the task-master parse-prd command to generate tasks from my PRD. The
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master parse-prd scripts/prd.txt task-master parse-prd scripts/prd.txt
``` ```
This will: This will:
- Parse your PRD document - Parse your PRD document
- Generate a structured `tasks.json` file with tasks, dependencies, priorities, and test strategies - Generate a structured `tasks.json` file with tasks, dependencies, priorities, and test strategies
- The agent will understand this process due to the Cursor rules - The agent will understand this process due to the Cursor rules
@@ -629,6 +631,7 @@ Please generate individual task files from tasks.json
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master generate task-master generate
``` ```
@@ -648,6 +651,7 @@ What tasks are available to work on next?
``` ```
The agent will: The agent will:
- Run `task-master list` to see all tasks - Run `task-master list` to see all tasks
- Run `task-master next` to determine the next task to work on - Run `task-master next` to determine the next task to work on
- Analyze dependencies to determine which tasks are ready to be worked on - Analyze dependencies to determine which tasks are ready to be worked on
@@ -657,12 +661,14 @@ The agent will:
### 2. Task Implementation ### 2. Task Implementation
When implementing a task, the agent will: When implementing a task, the agent will:
- Reference the task's details section for implementation specifics - Reference the task's details section for implementation specifics
- Consider dependencies on previous tasks - Consider dependencies on previous tasks
- Follow the project's coding standards - Follow the project's coding standards
- Create appropriate tests based on the task's testStrategy - Create appropriate tests based on the task's testStrategy
You can ask: You can ask:
``` ```
Let's implement task 3. What does it involve? Let's implement task 3. What does it involve?
``` ```
@@ -670,6 +676,7 @@ Let's implement task 3. What does it involve?
### 3. Task Verification ### 3. Task Verification
Before marking a task as complete, verify it according to: Before marking a task as complete, verify it according to:
- The task's specified testStrategy - The task's specified testStrategy
- Any automated tests in the codebase - Any automated tests in the codebase
- Manual verification if required - Manual verification if required
@@ -683,6 +690,7 @@ Task 3 is now complete. Please update its status.
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master set-status --id=3 --status=done task-master set-status --id=3 --status=done
``` ```
@@ -690,16 +698,19 @@ task-master set-status --id=3 --status=done
### 5. Handling Implementation Drift ### 5. Handling Implementation Drift
If during implementation, you discover that: If during implementation, you discover that:
- The current approach differs significantly from what was planned - The current approach differs significantly from what was planned
- Future tasks need to be modified due to current implementation choices - Future tasks need to be modified due to current implementation choices
- New dependencies or requirements have emerged - New dependencies or requirements have emerged
Tell the agent: Tell the agent:
``` ```
We've changed our approach. We're now using Express instead of Fastify. Please update all future tasks to reflect this change. We've changed our approach. We're now using Express instead of Fastify. Please update all future tasks to reflect this change.
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master update --from=4 --prompt="Now we are using Express instead of Fastify." task-master update --from=4 --prompt="Now we are using Express instead of Fastify."
``` ```
@@ -715,36 +726,43 @@ Task 5 seems complex. Can you break it down into subtasks?
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master expand --id=5 --num=3 task-master expand --id=5 --num=3
``` ```
You can provide additional context: You can provide additional context:
``` ```
Please break down task 5 with a focus on security considerations. Please break down task 5 with a focus on security considerations.
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master expand --id=5 --prompt="Focus on security aspects" task-master expand --id=5 --prompt="Focus on security aspects"
``` ```
You can also expand all pending tasks: You can also expand all pending tasks:
``` ```
Please break down all pending tasks into subtasks. Please break down all pending tasks into subtasks.
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master expand --all task-master expand --all
``` ```
For research-backed subtask generation using Perplexity AI: For research-backed subtask generation using Perplexity AI:
``` ```
Please break down task 5 using research-backed generation. Please break down task 5 using research-backed generation.
``` ```
The agent will execute: The agent will execute:
```bash ```bash
task-master expand --id=5 --research task-master expand --id=5 --research
``` ```
@@ -754,6 +772,7 @@ task-master expand --id=5 --research
Here's a comprehensive reference of all available commands: Here's a comprehensive reference of all available commands:
### Parse PRD ### Parse PRD
```bash ```bash
# Parse a PRD file and generate tasks # Parse a PRD file and generate tasks
task-master parse-prd <prd-file.txt> task-master parse-prd <prd-file.txt>
@@ -763,6 +782,7 @@ task-master parse-prd <prd-file.txt> --num-tasks=10
``` ```
### List Tasks ### List Tasks
```bash ```bash
# List all tasks # List all tasks
task-master list task-master list
@@ -778,12 +798,14 @@ task-master list --status=<status> --with-subtasks
``` ```
### Show Next Task ### Show Next Task
```bash ```bash
# Show the next task to work on based on dependencies and status # Show the next task to work on based on dependencies and status
task-master next task-master next
``` ```
### Show Specific Task ### Show Specific Task
```bash ```bash
# Show details of a specific task # Show details of a specific task
task-master show <id> task-master show <id>
@@ -795,18 +817,21 @@ task-master show 1.2
``` ```
### Update Tasks ### Update Tasks
```bash ```bash
# Update tasks from a specific ID and provide context # Update tasks from a specific ID and provide context
task-master update --from=<id> --prompt="<prompt>" task-master update --from=<id> --prompt="<prompt>"
``` ```
### Generate Task Files ### Generate Task Files
```bash ```bash
# Generate individual task files from tasks.json # Generate individual task files from tasks.json
task-master generate task-master generate
``` ```
### Set Task Status ### Set Task Status
```bash ```bash
# Set status of a single task # Set status of a single task
task-master set-status --id=<id> --status=<status> task-master set-status --id=<id> --status=<status>
@@ -821,6 +846,7 @@ task-master set-status --id=1.1,1.2 --status=<status>
When marking a task as "done", all of its subtasks will automatically be marked as "done" as well. When marking a task as "done", all of its subtasks will automatically be marked as "done" as well.
### Expand Tasks ### Expand Tasks
```bash ```bash
# Expand a specific task with subtasks # Expand a specific task with subtasks
task-master expand --id=<id> --num=<number> task-master expand --id=<id> --num=<number>
@@ -842,6 +868,7 @@ task-master expand --all --research
``` ```
### Clear Subtasks ### Clear Subtasks
```bash ```bash
# Clear subtasks from a specific task # Clear subtasks from a specific task
task-master clear-subtasks --id=<id> task-master clear-subtasks --id=<id>
@@ -854,6 +881,7 @@ task-master clear-subtasks --all
``` ```
### Analyze Task Complexity ### Analyze Task Complexity
```bash ```bash
# Analyze complexity of all tasks # Analyze complexity of all tasks
task-master analyze-complexity task-master analyze-complexity
@@ -875,6 +903,7 @@ task-master analyze-complexity --research
``` ```
### View Complexity Report ### View Complexity Report
```bash ```bash
# Display the task complexity analysis report # Display the task complexity analysis report
task-master complexity-report task-master complexity-report
@@ -884,6 +913,7 @@ task-master complexity-report --file=my-report.json
``` ```
### Managing Task Dependencies ### Managing Task Dependencies
```bash ```bash
# Add a dependency to a task # Add a dependency to a task
task-master add-dependency --id=<id> --depends-on=<id> task-master add-dependency --id=<id> --depends-on=<id>
@@ -899,6 +929,7 @@ task-master fix-dependencies
``` ```
### Add a New Task ### Add a New Task
```bash ```bash
# Add a new task using AI # Add a new task using AI
task-master add-task --prompt="Description of the new task" task-master add-task --prompt="Description of the new task"