add-component
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Internal, hook-triggered when a plan is approved: materializes MCP items from the plan and dispatches implementation.
Claude Code
$ npx -y skills add jpicklyk/task-orchestrator --skill post-plan-workflow --agent claude-code
Codex
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a codex -y
Cursor
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a cursor -y
Gemini CLI
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a gemini-cli -y
GitHub Copilot
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a github-copilot -y
OpenCode
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a opencode -y
Windsurf
$ npx skills add jpicklyk/task-orchestrator --skill post-plan-workflow -a windsurf -y
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
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.
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.
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.
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.
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
Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Compatibility assessment for items with the needs-api-compat-review trait. Evaluates the tool surface (served over both MCP and…
End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…
SQLite migration assessment for items with the needs-migration-review trait. Evaluates schema changes, table recreation patterns,…
Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…
Assessment of plugin skill and hook changes needed after MCP or config changes. Evaluates skill references, hook context,…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration