5.1 KiB
description
| description |
|---|
| Start working on a specific task by ID. Automatically sets status, guides implementation, and offers seamless transition to next task upon completion. |
Work on Task
Start focused work on a specified task, manage its lifecycle, and transition smoothly to the next task.
Arguments
$ARGUMENTS- Task identifier (e.g., "task-4", "4", "42")
Instructions
Phase 1: Task Initialization
-
Parse the task identifier from
$ARGUMENTS:- Accept formats:
task-4,4,task-42,42 - Normalize to task ID (extract number if prefixed)
- Accept formats:
-
Load the task:
backlog task <id> -
Verify task is workable:
- Check status is "To Do" or already "In Progress"
- Check all dependencies are "Done"
- If blocked, report blockers and suggest working on them first
-
Set task to "In Progress" (if not already):
backlog task edit <id> --status "In Progress" -
Present task context to user:
- Display title, description, acceptance criteria
- Show implementation plan if exists
- List any prior implementation notes
- Highlight what "done" looks like
Phase 2: Implementation Work
-
Begin implementation based on:
- Task description and acceptance criteria
- Implementation plan (if provided)
- Project context and codebase patterns
-
During work, track progress:
- Check off acceptance criteria as completed:
backlog task edit <id> --check-ac <criterion-number> - Append implementation notes for future reference:
backlog task edit <id> --append-notes $'What was done:\n- Item 1\n- Item 2'
- Check off acceptance criteria as completed:
-
If discovering new work:
- Create subtasks for scope creep
- Update dependencies as needed
- Keep original task focused
Phase 3: Task Completion
When all acceptance criteria are met:
-
Verify completion:
- Review all acceptance criteria are checked
- Confirm implementation matches requirements
- Run relevant tests if applicable
-
Mark task as Done:
backlog task edit <id> --status "Done" -
Add completion notes:
backlog task edit <id> --append-notes $'Completed: <summary of what was done>'
Phase 4: Transition
After completing the task, perform the following:
-
Offer context compaction:
Ask the user:
"Task is complete. Would you like me to compact the conversation context before continuing to the next task? This helps maintain performance for longer sessions."
If yes: Use
/compactto summarize and compress the conversation context. -
Identify the next task:
backlog task list --status "To Do" --sort prioritySelect the next task based on:
- Highest priority first
- Dependencies satisfied (blockers completed)
- Related to just-completed work (if applicable)
-
Present next task recommendation:
"The next recommended task is task-: