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…
Completes or cancels many items at once, closing out a feature subtree or cleaning up old work; use when a user says: close out this feature, complete everything under X, cancel this workstream, clean up old items, bulk complete, finish this feature, or archive completed work.
Claude Code
$ npx -y skills add jpicklyk/task-orchestrator --skill batch-complete --agent claude-code
Codex
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a codex -y
Cursor
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a cursor -y
Gemini CLI
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a gemini-cli -y
GitHub Copilot
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a github-copilot -y
OpenCode
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a opencode -y
Windsurf
$ npx skills add jpicklyk/task-orchestrator --skill batch-complete -a windsurf -y
name: batch-complete description: "Completes or cancels many items at once, closing out a feature subtree or cleaning up old work; use when a user says: close out this feature, complete everything under X, cancel this workstream, clean up old items, bulk complete, finish this feature, or archive completed work." argument-hint: "[optional: root item id or title to complete]"
Close a feature subtree, cancel an abandoned workstream or clean up stale items in one call, with a preview first and a report of exactly what applied, was skipped or failed. Shapes are in [`_generated/call-shapes.md`](../_generated/call-shapes.md) (`items_write` `complete_tree`); semantics are in `current/docs/api-reference.md` ("complete_tree"). Ids below are 8-hex shorts and any id field also takes the full UUID. The tool is orchestration-profile only.
Director mode is the session state entered by `/task-orchestrator:director` (or by running as the hardened `director` agent). Nothing here runs inline except run control: closing a whole run is `runs_write` `close` on the director profile. Closing or cancelling items is delegated: `SendMessage` the run's coordinator when the items are members of an open or paused run, otherwise dispatch ONE background `Agent` (`run_in_background: true`, `model` set) that runs the steps below. The agent reports the counts `applied`, `skipped` and `failed` and the ids of any failed item, never note bodies. A background agent dispatched by a director is not in director mode: it runs the steps below.
Resolve `$ARGUMENTS` to an id with a search; if several match, show them via `AskUserQuestion`.
{"tool": "items_read", "select": "search", "args": {"query": "Auth System", "kinds": ["item"], "limit": 5}}With no argument, classify the request from the conversation:
If the scope is still unclear, ask: "Which item (or items) do you want to complete? Give a root id, a title fragment or a list of ids."
`complete_tree` runs every item through the normal transition path, so an item that belongs to an open or paused run is subject to that run's seat rules. List the root's runs (one status per call), then read each run's frontier; a non-terminal member is in `ready`, `inFlight` or `waiting`:
{"tool": "runs_read", "select": "list", "args": {"rootId": "ce064d2c", "status": "open"}}{"tool": "runs_read", "select": "list", "args": {"rootId": "ce064d2c", "status": "paused"}}{"tool": "runs_read", "select": "frontier", "args": {"runId": "7c41e0a2"}}If any target (or any descendant of a `rootId` scope) is a non-terminal member, ask with `AskUserQuestion`:
3 targets belong to a live run. How would you like to proceed? 1. Exclude the members - use itemIds of the non-members (leave the root out when a member sits under it) 2. Hand it to the run's coordinator - it passes its coordinator token as top-level seatToken 3. Close the run first (runs_write close: coordinator, director or human) 4. Abort
Run members whose schema has no seats are protected only by this check; the server will not refuse them. A call from a `kind: human` credential is never seat-refused either.
{"tool": "items_read", "select": "overview", "args": {"itemId": "98d452e9"}}`data.childCounts` is the direct children by role (zero roles omitted; lifecycle-free items are counted under no role and `complete_tree` leaves them out). Show a preview labelled by the trigger (`complete` or `cancel`):
Impact preview - "Auth System Feature" [trigger: complete] queue: 3 items (will be completed) work: 1 item (active - will be force-completed) review: 1 item (active - will be force-completed) terminal: 2 items (already done - will be skipped)
`childCounts` covers direct children only; for a deeper tree read `items_read` `list` with `ancestorId` and count by role. For an `itemIds` scope, `items_read` `get` each item (use `list` for 10 or more).
If any item is in work or review, warn that active work will be force-completed (gates still apply) and ask:
2 items are active (work or review). How would you like to proceed? 1. Proceed - complete everything including active items 2. Cancel instead - trigger cancel (bypasses note gates) 3. Abort - leave everything as it is
Wait for the answer and record the trigger.
Add a `blocked` row to the preview. Under `complete`, blocked items fail `invalid_transition` (resume them first). Under `cancel`, list each `awaiting_decision` item with its `decisionId` (`items_read` `blocked` with `ancestorId`, or `get` per id) and warn that the decision stays open after the cancel; have it answered or withdrawn first (`withdraw`: the raiser or the run's coordinator token):
{"tool": "items_read", "select": "blocked", "args": {"ancestorId": "98d452e9"}}blocked: 2 items (complete: invalid_transition; cancel: 1 awaiting a decision that stays open)
Skip this if `cancel` was chosen: it bypasses note gates (not claim ownership). For `complete` the definitive check runs at execution; a pre-check just surfaces problems early. Read each child's state:
{"tool": "items_read", "select": "context", "args": {"itemId": "4b7d0e19"}}`complete` checks the required notes of every phase, so `gateStatus.missing` for the current phase understates what is needed; the `schema[]` entries with `required: true` and `filled: false` are the full list. Display warnings, then ask:
`
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