name: bf-task-execute description: "Part of the Blueprintflow methodology. Use when a reviewed task.md is ready to start or resume, or task work must advance toward acceptance."
Task Execute
Orchestrate one reviewed task from start to accepted task closure. Keep the task as one worktree, one branch, and one PR.
Direct Invocation Guard
If using-plueprint is not active, STOP here. Load using-plueprint with the user's input; do nothing else in this skill until it routes back.
Trigger
Use when either path applies:
| Path | Required state |
|---|---|
| Start a new task | milestone.md records TASK_SET_READY with LGTM breakdown review, marks the task READY, docs/tasks/<phase>/<milestone>/<task>/task.md exists, and no active task exists |
| Resume an existing concrete task | docs/tasks/<phase>/<milestone>/<task>/task.md exists; milestone.md marks the task READY, TASKING, READY_FOR_IMPL, IMPLEMENTING, or ACCEPTING; the task is unblocked by dependency order |
Concrete task work or resume must be needed.
Outputs
| Output | Owner skill |
|---|---|
| Worktree, branch, PR lifecycle, Active Task Resume creation/update | bf-git-workflow |
spec.md, stance.md, acceptance.md, optional content-lock.md |
bf-task-fourpiece |
design.md and four-role design review for code tasks |
bf-implementation-design |
| Code/docs changes, tests, current-doc sync | Assigned role coordinators and helpers |
| Implementation loop and local test evidence | references/implementation-loop.md |
| PR review and merge gate | bf-pr-review-flow |
| Coarse active work state in the milestone-level next ledger | bf-task-execute |
| Accepted-task cleanup, Active Task Resume removal, milestone next-task, closure, and next-ledger decision | bf-milestone-progress |
Steps
- Run
bf-task-state-standardif resume state is missing or inconsistent. - Read
milestone.md,docs/tasks/README.md, and the cited next-blueprint anchors. - Verify
milestone.mdrecordsTASK_SET_READY, LGTM breakdown review, and Security LGTM when any task is sensitive. Stop and return tobf-milestone-breakdownif the reviewed-boundary gate is missing or NOT_LGTM. - Select exactly one
READY, unblocked, dependency-valid task. If the user or Teamlead named a task, verify that same task isREADY, unblocked, and dependency-valid; otherwise stop and return tobf-milestone-progressor the blocker owner. - Read the selected task's existing
task.md. Stop if it is missing, stale, blocked, or too large for one PR; return tobf-milestone-breakdownorbf-milestone-progressto repair task boundaries. - Start or resume the worktree using
bf-git-workflow. - Set the milestone-level next ledger
WorktoIMPLEMENTING; keepMilestone pathpointed at the milestone folder. Put active task recovery only indocs/tasks/README.md,milestone.md, and the task folder. - Create or repair task baseline docs using
bf-task-fourpiece. - For code tasks, run
bf-implementation-designand require four-role design review before coding; recordREADY_FOR_IMPLonly indocs/tasks. - Dispatch implementation work through the owning role coordinator using references/implementation-loop.md; Teamlead does not implement. Record task implementation state only in
docs/tasks. - Check
docs/currentimpact withbf-current-doc-standardwhen the project uses current docs. - Run
bf-verificationfor the task surfaces. Required acceptance evidence must be complete before PR open; review may re-run or add evidence, not fill missing required evidence. - Open the task PR through
bf-git-workflow; review and merge-gate it throughbf-pr-review-flow. When the task enters review/acceptance, recordACCEPTINGonly indocs/tasks. - After merge and acceptance evidence, hand off to
bf-milestone-progressfor accepted-task recording, Active Task Resume cleanup, next task selection, milestone closure, or Phase exit readiness.
Do not mark the task ACCEPTED, set next ledger Work to COMPLETED, remove Active Task Resume, or promote current in this skill. Those are milestone-level follow-up decisions owned by bf-milestone-progress and bf-blueprint-iteration.
State Transitions
READY -> TASKING -> READY_FOR_IMPL -> IMPLEMENTING -> ACCEPTING -> ACCEPTED
Skip READY_FOR_IMPL only for non-code tasks with an explicit N/A in progress.md.
Checks
- Task selection uses an existing reviewed
task.md. - Milestone breakdown status is
TASK_SET_READYwith required LGTM review before task execution starts. - Do not create or rewrite task boundaries during task execution.
- Task scope does not exceed
task.md. - Every implementation change maps to
spec.mdandacceptance.md. - Code tasks have reviewed
design.mdbefore coding. - PR body acceptance and test plan have no unchecked items before merge.
- Security review is present for code or sensitive tasks.
- Acceptance evidence follows
bf-verificationoutput for every changed surface. docs/blueprint/current/is updated only after acceptance, not during planning.
Anti-patterns
- Starting implementation directly from
READYwithout four-piece baseline. - Creating
task.mdduring task execution instead of returning tobf-milestone-breakdownfor boundary repair. - Treating
bf-git-workflowas the whole task execution flow. - Opening separate PRs for spec, design, implementation, or closure.
- Leaving Active Task Resume stale after
bf-milestone-progressreconciles accepted-task state. - Starting the next task before
bf-milestone-progressrecords the decision.
How to invoke
follow skill bf-task-execute