Skip to content
Agent Orchestration
Skill

/schema-workflow

Internal, invoked from the orchestration context: drives a schema-typed MCP item through its gate-enforced phases, filling required notes.

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

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

SKILL.md

schema-workflow.SKILL.md
name: schema-workflow
description: "Internal, invoked from the orchestration context: drives a schema-typed MCP item through its gate-enforced phases, filling required notes."
user-invocable: false

Schema Workflow

Drive a work item through its gate-enforced lifecycle. The skill is schema-driven: note requirements and authoring guidance are read from the item's resolved schema at runtime, never assumed. Shapes are in [`_generated/call-shapes.md`](../_generated/call-shapes.md); ids below are 8-hex shorts (a full UUID is also accepted). Read every answer through the envelope: `ok`, then `data.results[0]` (`ok` or `error`) and `data.summary {ok, failed}`. When a write element fails, the call-level `error` is only `partial_failure` (no detail, no fix): read `code`, `kind` (retry class), `detail` and `fix` from `data.results[0].error`. A read (`select`) call reports its failure in the call-level `error`.

**Applies to** any item whose `type` resolves to a schema under its pin (`config` `effective` lists the declared types). An item whose type resolves to no schema is schema-free and advances without gates.

**Director mode.** In director mode (the session state entered by `/task-orchestrator:director`, or the hardened `director` agent) a director never drives an item through its phases: hand it to the run's coordinator (`SendMessage`) or to ONE background `Agent` (`run_in_background: true`, `model` set). A background agent dispatched by a director is not in director mode: it runs the steps below.

Entry point

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

| Field | Meaning | |---|---| | `item.role` | queue, work, review, blocked or terminal. Absent for a lifecycle-free item | | `schema[]` | every schema note: `key`, `role`, `required`, `exists`, `filled`, and `seat` when the schema is seat-aware (keys only) | | `gateStatus.canAdvance` | whether `start` would pass right now (claim ownership and seat enforcement excluded) | | `gateStatus.missing` / `missingBySeat` | required notes of the current phase not yet filled, and by whom | | `gateStatus.blockedBy` | first failing gate: `table`, `dependency`, `note` or `lease`; present only when `canAdvance` is false | | `guidanceKey` | first unfilled required note; resolve its text with the schema read below | | `skillPointer` | pointer named by that note (its first skill entry): a pointer that is a served rule key is fetched with `config` op `rules` and followed; any other pointer is a skill to invoke, before filling. `skillPointers` lists every skill when there are two or more (invoke in order); `skillMode: "method-on-diff"` means apply the skill's method to the diff of the files you own, not to the skill's own default target | | `dispatch` | `{agent?, model?, effort?}` for the item's current role | | `transitions` | each allowed trigger and the role it leads to |

  • `item.role` of `terminal`: nothing to do. `blocked`: use `/status-progression`; for a pending decision follow its [decisions rule](../status-progression/references/decisions.md) (answer first, resume only when `resumable`).
  • **Schema-free:** the schema read answers `{schemaFree: true}`. Tell the user "No schema for this item's type; use `/manage-schemas` to configure gates". The item still advances freely.
  • **Lifecycle-free** (role absent): never advanced; its notes are optional. Any `advance` trigger fails `invalid_transition` with `fromRole: none`.

Resolve authoring text (guidance, description, skill) for the notes:

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

Phase progression loop

Each phase: **fill the required notes, then advance.**

Step 1 - Find the missing notes

Read `gateStatus.missing`. If it is empty and `canAdvance` is true, go to Step 3.

Step 2 - Fill the notes

For the note named by `guidanceKey`, follow its resolved `guidance`; if `skillPointer` is set, handle it (each of `skillPointers`, in order, when present) first and use its output: a pointer that is a served rule key is fetched with `config` op `rules` and followed; any other pointer is invoked as a skill. If `guidanceKey` is absent, use the note's `description`. Write the body as distilled prose; route verbatim artifacts (test output, diffs, logs) through `bodyFromFile`.

{"tool": "notes_write", "op": "upsert", "args": {"itemId": "4b7d0e19", "key": "implementation-notes", "role": "work", "body": "Added the retry policy; one deviation, see below."}}

When you already know several bodies, send them in one `notes_write` call (an `upsert` element each). Re-read `context` only when you need the next `guidanceKey`. A note whose `role` differs from the schema's role fails `schema_violation`. A `schema_pinned_conflict` means the item's pin lacks a key the current config requires: `repin` it (`items_write` `repin`), then retry.

Step 3 - Advance

{"tool": "advance", "op": "transition", "args": {"itemId": "4b7d0e19", "trigger": "start"}}

Read `data.results[0]`:

| Field | Check | |---|---| | `newRole` | the phase entered (`previousRole` is also present) | | `cascades` | parents re-evaluated: `{itemId, previousRole, targetRole, applied, blocked?}`; when blocked, `reason` and `missing[]` (gate), `contended[]` (resource) or `blockers[]` (dependency) | | `unblocked` | items that were waiting on this one | | `expectedNotes` | note keys the new phase expects; fill these next | | `dispatch` | the profile for `newRole` |

A failed transition is `ok: false` with call-level `partial_failure`; the reason is `data.results[0].error.code`:

  • `gate_blocked`: `data.results[0].error.detail.missing[]` names the notes still unfilled. Fill them (Step 2) and retry; no need to re-read first. Also read `detail.violations[].gate` in that same error: `missing` and `violations` may both be present, and a review-pending or independence violation is not cleared by filling
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 schema-workflow.

Which coding agents can use schema-workflow?
schema-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.