Marketplace managing-task-lifecycle
Use when starting, pausing, completing, or transitioning task status in the development workflow.
git clone https://github.com/aiskillstore/marketplace
T=$(mktemp -d) && git clone --depth=1 https://github.com/aiskillstore/marketplace "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/bpsai/managing-task-lifecycle" ~/.claude/skills/aiskillstore-marketplace-managing-task-lifecycle && rm -rf "$T"
skills/bpsai/managing-task-lifecycle/SKILL.mdPairCoder Task Lifecycle
Decision Tree: Which Command to Use?
Is Trello connected? (check: bpsai-pair trello status) │ ├── YES → Use `ttask` commands (primary) │ ├── Start: bpsai-pair ttask start TRELLO-XX │ ├── Complete: bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done" │ └── Block: bpsai-pair ttask block TRELLO-XX --reason "..." │ └── NO → Use `task update` commands ├── Start: bpsai-pair task update TASK-XXX --status in_progress ├── Complete: bpsai-pair task update TASK-XXX --status done └── Block: bpsai-pair task update TASK-XXX --status blocked
Rule of thumb: If you see TRELLO-XX IDs, use
ttask. If you only have TASK-XXX IDs, use task update.
CRITICAL: Always Use CLI Commands
Task state changes MUST go through the CLI to trigger hooks (Trello sync, timers, state updates).
Never just edit task files or say "marking as done" - run the command.
Automatic Hooks
When you change task status via CLI, these hooks fire automatically:
On task update --status in_progress
:
task update --status in_progress
- Begins time trackingstart_timer
- Moves card to "In Progress"sync_trello
- Updates state.md current focusupdate_state
On task update --status done
:
task update --status done
- Stops timer, records durationstop_timer
- Records token usage and costsrecord_metrics
- Tracks sprint velocityrecord_velocity
- Moves card to "Deployed/Done"sync_trello
- Updates state.mdupdate_state
- Identifies newly unblocked taskscheck_unblocked
On task update --status blocked
:
task update --status blocked
- Moves card to "Issues/Tech Debt"sync_trello
- Updates state.mdupdate_state
You don't need to manually update Trello, start/stop timers, or refresh state.md - hooks handle it.
Starting a Task
bpsai-pair task update TASK-XXX --status in_progress
This will:
- Update task file status
- Move Trello card to "In Progress" list
- Start timer (when implemented)
- Update state.md current focus
During Work (Progress Updates)
bpsai-pair ttask comment TASK-XXX "Completed API endpoints, starting tests"
This adds a comment to the Trello card without changing status. Use for:
- Milestone updates
- Noting decisions
- Progress visibility for team
Completing a Task
For Trello Projects (Recommended)
Use
ttask done - it handles everything in one command:
bpsai-pair ttask done TRELLO-XX --summary "What was accomplished" --list "Deployed/Done"
This single command will:
- ✓ Move Trello card to "Deployed/Done" list
- ✓ Auto-check ALL acceptance criteria items
- ✓ Add completion summary to card
- ✓ Update local task file status
- ✓ Trigger all completion hooks (timer, metrics, state.md)
You do NOT need to also run
- task update --status done
ttask done handles it.
For Non-Trello Projects
Use
task update:
bpsai-pair task update TASK-XXX --status done
This will:
- Update task file status
- Trigger completion hooks (timer, metrics, state.md)
Common Mistakes
| Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
Using only on Trello projects | Doesn't check AC on Trello card | Use instead |
| Using both commands on Trello projects | Unnecessary duplication | Just use |
Using on non-Trello projects | Commands won't work | Use |
Quick Reference
Local Task Commands (task
)
taskUse these for status changes - they trigger all hooks.
| Action | Command |
|---|---|
| Start task | |
| Complete task | |
| Block task | |
| Show next task | |
| Auto-assign next | |
| List all tasks | |
| Show task details | |
Trello Card Commands (ttask
)
ttaskUse these for direct Trello operations.
| Action | Command |
|---|---|
| List Trello cards | |
| Show card details | |
| Start card | |
| Complete card | |
| Check acceptance item | |
| Add progress comment | |
| Block card | |
| Move card to list | |
When to Use task
vs ttask
taskttaskFor Trello-connected projects (preferred):
| Scenario | Command |
|---|---|
| Starting a task | |
| Progress updates | |
| Completing a task | |
| Blocking a task | |
For non-Trello projects:
| Scenario | Command |
|---|---|
| Starting a task | |
| Completing a task | |
| Blocking a task | |
Key insight:
ttask commands handle both Trello AND local state. You don't need to run task update after ttask done - it handles everything.
Task Status Values
| Status | Meaning | Trello List |
|---|---|---|
| Not started | Backlog / Planned |
| Currently working | In Progress |
| Waiting on something | Issues / Blocked |
| Ready for review | Review |
| Completed | Deployed / Done |
Workflow Checklist
When Starting a Task
- Run:
bpsai-pair task update TASK-XXX --status in_progress - Verify Trello card moved
- Read the task file for implementation plan
- Begin work
During Work
- Add progress comments:
bpsai-pair ttask comment TASK-XXX "status update" - Commit frequently with task ID in message
When Completing a Task
For Trello projects:
- Ensure tests pass:
pytest -v - Find card ID:
bpsai-pair ttask list - Complete:
bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done" - Update state.md with what was done
- Commit changes with task ID in message
For non-Trello projects:
- Ensure tests pass:
pytest -v - Complete:
bpsai-pair task update TASK-XXX --status done - Update state.md with what was done
- Commit changes with task ID in message
Validation Scripts
Use these scripts to validate before completion:
Validate Task File Format
python .claude/skills/managing-task-lifecycle/scripts/validate_task_status.py TASK-XXX
Checks: frontmatter, required fields, valid status, acceptance criteria section.
Check Completion Readiness
python .claude/skills/managing-task-lifecycle/scripts/check_completion.py TASK-XXX
Runs: task file validation, tests, linting, git status.
Validation loop: Run → fix issues → re-run until all checks pass.
Trello Sync Commands
# Check Trello connection status bpsai-pair trello status # Sync plan to Trello (creates/updates cards) bpsai-pair plan sync-trello PLAN-ID # Force refresh from Trello bpsai-pair trello refresh
Full CLI Reference
See reference/all-cli-commands.md for complete command documentation.