Skip to content
Agent Orchestration
Skill

/pre-plan-workflow

Internal, hook-triggered when entering plan mode: reads existing MCP items and the declared schemas so the plan accounts for tracked work and gate requirements.

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

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

SKILL.md

pre-plan-workflow.SKILL.md
name: pre-plan-workflow
description: "Internal, hook-triggered when entering plan mode: reads existing MCP items and the declared schemas so the plan accounts for tracked work and gate requirements."
user-invocable: false

Pre-Plan Workflow - Definition Floor

On entering plan mode, set the **definition floor** before writing the plan: the baseline of existing work, note requirements and gates the plan must account for. Shapes are in [`_generated/call-shapes.md`](../_generated/call-shapes.md); ids below are 8-hex shorts and any id field also takes the full UUID.

**If MCP is unreachable:** plan from conversation context, note in the plan that MCP state could not be verified (existing work may overlap), and re-check after it reconnects.

Step 1: Check existing MCP state

Resolve the scope from the SessionStart context: a `## Project Scope` section carries a project rootId (scopes reads); a `## Personal Scope` section carries a personal root (anchors only, reads stay unscoped). With no session context, read `project.rootId` from `.taskorchestrator/config.yaml` (a file read).

Health check, scoped to the project when a rootId is known (omit `ancestorId` otherwise):

{"tool": "items_read", "select": "context", "args": {"ancestorId": "9f3a1c22"}}

`data` is `{active, blocked, stalled, claimSummary}`; `stalled` lists active items with unfilled required notes (`missing[]`, `guidanceKey`, `skillPointer`). If active, blocked or stalled items relate to the request, avoid planning duplicate work and inspect each one:

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

Read `schema[]` (each note's `exists` and `filled`), `gateStatus` (`canAdvance`, `missing`, `blockedBy`) and `guidanceKey`; resolve the authoring guidance with `items_read` `schema` and `fields: ["guidance"]`. With nothing tracked, the floor is simply "no existing state"; still do Step 2.

Step 2: Discover declared schemas

Read the resolved config, not the file:

{"tool": "config", "op": "effective", "args": {"rootId": "9f3a1c22"}}

`config` is an ops tool, so the answer is `data.results[0]`: `types` lists the declared types, `schemas` their notes per phase (required queue notes must exist before work starts; required work notes are captured during implementation), and `traits` the declared traits, each an object with a `name`. Each type key is what an item sets as `type`; a create must pass a declared `type`. If the config tool is unavailable, read `.taskorchestrator/config.yaml` as an offline fallback (types are the keys under `work_item_schemas:`). With no declared schemas, items are schema-free and nothing is gated.

Use the result to inform the plan. Each planned task should:

  • name the declared `type` it will be created with (for example `feature-task`);
  • produce content that maps onto that type's required note keys;
  • list its dependencies by reason, so post-plan can wire only the semantic ones (see post-plan-workflow, "Dependencies").

Step 3: Plan with MCP awareness

Structure the plan knowing it will be materialized after approval:

  • each task maps to one work item with clear boundaries, a unit one subagent can own;
  • a root container item with child task items is the standard shape;
  • order tasks by real dependency, not by file overlap.

Continue with plan mode

The prerequisite is done. Proceed with plan mode's normal workflow: explore, design, write the plan. Once it is approved the post-plan hook guides materialization. Do not materialize before approval.

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 pre-plan-workflow.

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