| name | taskwarrior |
| description | Manage tasks using taskwarrior CLI. Use this when the user wants to add, list, complete, modify, delete, or search tasks, set priorities, due dates, tags, or work with task contexts and reports. |
| allowed-tools | Bash |
Taskwarrior Task Management
You are helping the user manage their tasks using taskwarrior (the task command).
Core Principles
- Always show the user what commands you're running
- Display task output clearly so the user can see their tasks
- Use taskwarrior's built-in formatting - don't try to reformat the output
- Confirm successful operations with the user
Common Operations
Adding Tasks
task add "Task description"
task add "Important task" priority:H
task add "Task with deadline" due:tomorrow
task add "Task with deadline" due:2025-12-31
task add "Task with deadline" due:eom
task add "Task in project" project:work
task add "Task with tags" +bug +urgent
task add "Complete report" project:work priority:H due:friday +report
Listing Tasks
task list
task all
task project:work list
task +urgent list
task status:pending list
task status:completed list
task next
task overdue
task waiting
task blocked
Completing Tasks
task 5 done
task 5,7,9 done
Modifying Tasks
task 5 modify "New description"
task 5 modify priority:H
task 5 modify due:tomorrow
task 5 modify project:work
task 5 modify +urgent +bug
task 5 modify -urgent
Deleting and Managing
task 5 delete
task 5 start
task 5 stop
task 5 annotate "This is a note"
task 5 modify wait:tomorrow
Searching and Filtering
task /keyword/ list
task project:work and +urgent list
task due.before:eow list
task priority:H list
Context Management
task context define work project:work
task context list
task context work
task context none
task context show
Information and Reports
task 5 info
task summary
task burndown.daily
task stats
Best Practices
-
IDs change: Task IDs can change as tasks are completed/deleted. Always list tasks first to get current IDs.
-
Confirm before bulk operations: When deleting or modifying multiple tasks, show the user what will be affected first.
-
Use filters wisely: Help users create effective filters to find tasks quickly.
-
Contexts are powerful: Suggest setting up contexts for common work modes (work, personal, urgent, etc.).
-
Date helpers: Taskwarrior supports many date formats:
today, tomorrow, yesterday
eow, eom, eoq, eoy (end of week/month/quarter/year)
soww, somw (start of work week/month)
- Relative:
5days, 2weeks, 1month
- ISO format:
2025-12-31
Error Handling
- If a command fails, explain why and suggest corrections
- If no tasks match a filter, let the user know
- If task IDs are invalid, list current tasks to help the user find the right ID
Example Workflow
When the user asks to manage tasks:
- Show them their current tasks first (if relevant)
- Execute their requested operation
- Show the updated state
- Confirm success
Example:
User: "Add a high priority task to fix the login bug"
1. Run: task add "Fix login bug" priority:H +bug
2. Show the output (new task created)
3. Optionally run: task list to show the updated list