Skip to content
Agent Orchestration
Skill

/batch-complete

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.

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

$ npx -y skills add jpicklyk/task-orchestrator --skill batch-complete --agent claude-code

SKILL.md

batch-complete.SKILL.md
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]"

batch-complete - Bulk Complete or Cancel Items

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

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.

Step 1 - Identify scope

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:

  • **Feature subtree:** "everything under X" - find X and use `rootId`.
  • **Specific items:** the user lists names or ids - collect each id and use `itemIds`.
  • **Cleanup:** old or stale items - search by title or filter `items_read` `list` (`role`, `modifiedBefore`), collect the ids and use `itemIds`.

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."

Run-membership check

`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.

Step 2 - Preview impact

{"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)

Step 3 - Gate pre-check

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:

`

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.

openclaw6d395k
@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…

orca4d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

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

paperclip5d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

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

@ruvnet@ruvnetInstall Skill

Questions about batch-complete.

Which coding agents can use batch-complete?
batch-complete 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.