home / skills / jpicklyk / task-orchestrator / pre-plan-workflow

This skill helps teams plan with MCP awareness by validating existing work, schemas, and gates before entering plan mode.

npx playbooks add skill jpicklyk/task-orchestrator --skill pre-plan-workflow

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
3.3 KB
---
name: pre-plan-workflow
description: Internal workflow for plan mode — checks MCP for existing work, note schemas, and gate requirements to set the definition floor before planning begins. Triggered automatically when entering plan mode for any non-trivial implementation task.
user-invocable: false
---

# Pre-Plan Workflow — Definition Floor

When entering plan mode, use the MCP to set the **definition floor** before writing your plan.

The definition floor is the baseline of existing work, documentation requirements, and gate constraints that the plan must account for.

**If MCP is unreachable:** Proceed with planning based on conversation context. Note in the plan that MCP state could not be verified — existing work may overlap. Re-check after MCP reconnects.

## Step 1: Check Existing MCP State

Call the health check to see what's already tracked:

```
get_context()
```

**If active or stalled items exist:**
- Identify items related to the current request — avoid planning work that duplicates what's already tracked
- For each relevant active item, call `get_context(itemId=...)` to inspect:
  - **Note schema** — which notes are expected for this item's tags
  - **Gate status** — which required notes are filled vs. missing, and whether the item can advance
  - **Guidance pointer** — authoring guidance for the first unfilled required note

**If no items exist (clean slate):**
- The definition floor is simply "no existing MCP state to account for"
- Proceed with planning, but still check Step 2 for schema awareness

## Step 2: Discover Note Schema Requirements

Read `.taskorchestrator/config.yaml` in the project root (this is a file read, not an MCP call):

- If the file exists, list the discovered schemas and their required notes per phase
- Each schema key (e.g., `feature-implementation`, `bug-fix`) is a tag that items can carry to activate gate enforcement
- Required queue-phase notes define what documentation must exist before work starts
- Required work-phase notes define what must be captured during implementation
- Use `guidancePointer` values from `get_context(itemId=...)` on existing items to understand how to author each note

If no config file exists, the project has no note schemas — items will be schema-free with no gate enforcement. Proceed with planning normally.

**Use schemas to inform the plan:** When a schema applies, each planned task should:
- Note which schema tag will be applied at materialization (e.g., `tags: "feature-implementation"`)
- Account for required notes — plan sections should naturally produce content that maps to required note keys
- Respect dependency ordering — which tasks block others (these become `BLOCKS` edges)

## Step 3: Plan with MCP Awareness

Structure the plan knowing it will be materialized into MCP items after approval:

- Each planned task should map to **one work item** with clear boundaries — a single unit of work a subagent can own
- Account for **dependency ordering** — which tasks block others (these become `BLOCKS` edges)
- Consider the **hierarchy** — a root container item with child task items is the standard pattern

## After Plan Approval

Once the plan is approved, the post-plan hook will guide you through materialization and implementation dispatch. Do not materialize before approval.

Overview

This skill pre-plans the definition floor when entering plan mode for non-trivial implementation tasks. It inspects the Model Context Protocol (MCP) for existing work, reads local note schema configuration, and establishes gate requirements so the plan accounts for prior state and required documentation. The result is a planning baseline that avoids duplication and enforces the project’s note and gate expectations.

How this skill works

On plan-mode entry it first calls the MCP health/context endpoint to discover active or stalled items and their note schemas, gate statuses, and guidance pointers. It then reads the local .taskorchestrator/config.yaml to discover schema keys and required notes per phase. Using that information it sets the definition floor — which existing items, required notes, and gating constraints the plan must respect — and shapes tasks so they map cleanly to MCP work items and dependency edges. If MCP is unreachable, it records the uncertainty in the plan and proceeds using conversation context, with a reminder to re-check MCP after reconnection.

When to use it

  • Automatically triggered when entering plan mode for any non-trivial implementation task
  • When you need to avoid planning work that duplicates existing tracked items
  • Before creating a multi-task plan that will be materialized into MCP items
  • When project note schemas or gating rules must be respected during planning
  • When dependency ordering and item hierarchy must be established prior to materialization

Best practices

  • Always run the MCP context check first and inspect guidancePointer on relevant items
  • Read .taskorchestrator/config.yaml to learn required note keys and which tags activate gates
  • Annotate planned tasks with the schema tag that will be applied at materialization
  • Design each planned task as a single, ownable MCP work item with clear boundaries
  • Express dependency ordering explicitly so blocked/unblocked relationships become BLOCKS edges in MCP

Example use cases

  • Planning a new feature where previous work items may already cover part of the implementation
  • Preparing a bug-fix plan that must include required QA and repro notes defined by a schema
  • Coordinating a multi-agent rollout where tasks must be created as distinct MCP items with BLOCKS edges
  • Entering plan mode when network to MCP is flaky — proceed but flag that MCP state wasn’t verified
  • Creating a root container item with child task items for a complex implementation

FAQ

What if MCP is down when I enter plan mode?

Proceed with planning using conversation context and explicitly note that MCP state could not be verified. Re-check MCP after it reconnects and reconcile duplicates or overlaps.

What if no .taskorchestrator/config.yaml exists?

Treat the project as schema-free with no gate enforcement. Plan normally but consider adding a config if you want required-note gates enforced for future runs.