| name | execution-workflow |
| description | Execute deterministic story plans through dependency-aware workflow state transitions, PR/card lifecycle discipline, and critique-gated completion. Use when implementing an existing multi-story plan artifact. |
Execution Workflow
Use this skill after planning is complete and you need to execute an existing plan through issues, board cards, PRs, and merges.
Canonical lifecycle
Use this lifecycle for every story and transition:
blocked -> todo -> research -> implement -> validate -> critique -> done
Workflow contract
- Treat the plan as the canonical source of truth.
- Validate that each story block has required machine-parseable fields before execution:
- Story key
- Dependencies
- Numbered implementation steps
- Acceptance checks
- Rollback/mitigation notes
- Resolve and use the exact accepted plan artifact path provided by planning handoff (or an explicit path I provide) before starting execution; do not infer default paths.
- If no explicit plan artifact path is available, stop and request it before execution.
- Do not rewrite story specs during execution; if plan fields are missing, inconsistent, or non-actionable, trigger the drift protocol and request a targeted planning update.
- Keep story execution in topological dependency order.
Execution topology
- Build execution lanes from plan-provided dependencies and concurrency boundaries:
- Parallelize only stories marked as independent by the plan.
- Serialize shared mutable-state writes (for example, merge order or board-status updates).
- Preserve the plan's vertical integration checkpoints:
- Do not start downstream expansion before each checkpoint is end-to-end verifiable.
- Annotate each executing story as one of:
- Sequential (critical path)
- Parallelizable lane
- Merged-with sibling (single PR covering multiple stories)
Kanban lifecycle
- Track each story as an issue/card using the canonical lifecycle defined above.
- Use blocked status only with an explicit blocker reason and unblock condition.
- Keep issue/card status synchronized at each transition.
- Apply the critique gate at the
critique state before any transition to done.
Critique Gate
- Follow the canonical critique gate defined in
AGENTS.md.
- Apply the gate for every
critique -> done transition, not only at conversation end.
- When critique fails, move the story to
research with documented findings and next-cycle actions.
- Count each failed critique as one cycle for that story.
- If a story reaches 5 failed critique cycles without passing, move it to
blocked with an explicit blocker reason and unblock condition.
PR and verification discipline
- Keep one PR per story spec, or one PR per approved merged-story spec.
- Include explicit issue-closing references in the PR body for all covered stories.
- Verify acceptance checks before merge and preserve evidence in the story artifact trail.
Drift protocol
- If execution discovers missing, inconsistent, or non-actionable plan fields, move the affected story to blocked immediately.
- Record the exact drift details and the minimum plan patch needed to resume execution.
- Treat a missing or ambiguous plan artifact path as drift and block execution until the explicit path is provided.
- Do not silently improvise or rewrite the plan during execution; surface drift details to me or the orchestrator and load the
planning skill to produce a targeted plan patch, then resume from blocked once the patch lands.
Output shape
When asked to produce an execution workflow, return:
- Story execution state map using the canonical lifecycle states, plus failed critique cycle count per story.
- Exact plan artifact path in use for this execution cycle.
- Dependency-aware next-action queue for stories in
todo and research.
- Lane and merge plan for active stories (sequential, parallel, merged).
- Blockers and drift findings with required planning patches.
- Per-story acceptance, critique, and merge gate status.