Skip to content
Agent Orchestration
Skill

/post-plan-workflow

Internal, hook-triggered when a plan is approved: materializes MCP items from the plan and dispatches implementation.

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

$ npx -y skills add jpicklyk/task-orchestrator --skill post-plan-workflow --agent claude-code

SKILL.md

post-plan-workflow.SKILL.md
name: post-plan-workflow
description: "Internal, hook-triggered when a plan is approved: materializes MCP items from the plan and dispatches implementation."
user-invocable: false

Post-Plan Workflow - Materialize and Implement

Plan approval is the green light for the full pipeline. Run all three phases without stopping; the one expected stop is the turn that ends when a run-wave Method A launch hands control to its async notification (Phase 2, Route). Shapes are in [`_generated/call-shapes.md`](../_generated/call-shapes.md); ids below are 8-hex shorts.

Phase 1: Materialize

Finish materialization **before** any implementation begins.

**Prefer the stashed plan.** The `plan-capture` hook stashes the approved plan as a plan document when ExitPlanMode fires and reports the slug in its context (`plan stashed as plan document '<slug>' (root <rootId>)`). Confirm it and read it:

{"tool": "docs_read", "select": "list", "args": {"rootId": "9f3a1c22", "kind": "plan"}}

A plan with no `adoptedBy` is still pending. `docs_read` `get` with `kind: "plan"` and the `slug` returns the body. Quote or anchor its sections instead of retyping them; with no stashed document (stdio setups, hook failed open) use the plan text in context.

1. **Create the items** with one `create_tree` call (all-or-nothing, so there is no partial state to repair). Every item needs a declared `type` (read `config effective` `types`; see create-item Step 4); `traits` and `tags` are arrays. Anchor the root under the project: set `parentId` to the project rootId (or a category container beneath it) when known. Dedup first, once per new root or feature (children inherit): one unscoped `items_read` `search` (`kinds: ["item"]`, `limit: 5`); unscoped on purpose so legacy depth-0 and other-root items show. Show close matches as one FYI line and keep going; never auto-link, auto-skip or auto-cancel.

{"tool": "items_write", "op": "create_tree", "args": {"root": {"title": "Add retry layer", "type": "feature-implementation"}, "parentId": "9f3a1c22", "docRef": {"slug": "retry-layer"}, "children": [{"ref": "t1", "title": "Backoff policy", "type": "feature-task", "noteAnchors": [{"noteKey": "task-scope", "role": "queue", "anchor": "backoff-policy"}]}, {"ref": "t2", "title": "Retry tests", "type": "feature-task"}], "deps": [{"from": "t1", "to": "t2"}]}}

`docRef` plus `noteAnchors` cut plan sections into notes and the root adopts the document; `notes[]` writes explicit bodies. The result is `{ok, id, version, items, deps, notes}` and carries no `expectedNotes`.

2. **Dependencies.** A `blocks` edge (the `deps` array, or `deps_write` later) is for a semantic dependency only: the dependent cannot start meaningfully until the other item is done.

  • Give each edge a `Depends on <short>: <reason>` line on the dependent's spec note (write it once `items[]` gives the ids).
  • Items that only share files in one shared-worktree run get NO edge; the per-file lock serializes same-file edits. The later writing seat's prompt names the sibling and the file on a `SHARED WITH <short>: <paths>.` line, so it does not change what the sibling wrote. Record each shared file as `Shared file, lock-serialized: <path> (with <short>)` in both items' scopes.
  • Qualifications: this holds in shared-worktree mode only; an edge that unblocks at review or terminal costs a separate run, because the dependent cannot enter the run until the blocker reaches that role; per-item worktree mode still defers on overlap.

3. **Fill queue notes.** Read the schema (a create returns no `expectedNotes`):

{"tool": "items_read", "select": "schema", "args": {"itemId": "4b7d0e19", "fields": ["guidance"]}}

`data` is `{schemaFree: true}` for a schema-free item. Otherwise fill each required queue note (`feature-summary`, `task-scope`, ...) from the plan, in one `notes_write` call with an `upsert` element per note. Keep pre-filling planner-stage notes: run-wave adopts them under the planner seat after assign (`run-ops --phase adopt-notes`), so a later run does not recreate them by hand.

  • **`feature-implementation` root:** fill each note per its own guidance (`items_read` `schema`, `fields: ["guidance"]`).
  • **Docs for a changed behaviour.** When a child changes what a script, hook, tool or command does, its spec note names the docs that describe it: either edit them in that item, or name the sibling that owns them.
  • **Test owner flag.** Detect seats from the `items_read` `schema` answer (`seats`). For each seat-aware item that lists no test-author seat and whose spec note names test files or test commands, show one FYI line: `test owner: <short> lists tests without a test-author seat - apply a trait that declares one (preferred) or drop the tests; run-wave stops a seat-aware item after its planner (a seat-less item is not stopped; its implementer gets a TESTS ARE YOURS line instead)`. Never add the trait automatically.

4. **Verify the graph.** Confirm every id in `items[]` exists:

{"tool": "items_read", "select": "overview", "args": {"itemId": "4b7d0e19"}}

Do not dispatch implementation agents until materialization is complete; they need the item ids to report progress.

Phase 2: Implement

Route: run-wave or hand-dispatch

Hand off to `/task-orchestrator:run-wave` only when ALL four conditions hold. Each is a concrete probe:

1. **Two or more unblocked leaf items.** At least two leaves (no children) were materialized and none appears in the blocked list:

{"tool": "items_read", "select": "blocked", "args": {"ancestorId": "4b7d0e19"}}

2. **A rootId resolves** (project or personal), in run-wave Step 1's order: session context (`Active project:` or `Personal root:` line), then `project.rootId` from the file on that context's `Config:` line, then `.taskorchestrator/config.yaml`. 3. **Queue notes are filled.** For each leaf, `items_read` `context` with its `itemId` shows no m

Read more
@jpicklyk
Ships withtask-orchestrator

Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.

21430 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
214
Star history of jpicklyk/task-orchestrator on GitHub, a chart by star-history.com

Other skills on task-orchestrator.

implement

implement

End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…

perf-review

perf-review

Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about post-plan-workflow.

Which coding agents can use post-plan-workflow?
post-plan-workflow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.