Skip to content
Back to skills

Pre Plan Workflow

ASecurity

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.

  • 215 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned November 25, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Pre Plan Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pre Plan Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpicklyk-pre-plan-workflow/badge)](https://www.skillsdirectory.com/skills/jpicklyk-pre-plan-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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):

```to-call
{"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:

```to-call
{"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:

```to-call
{"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").

**Load note-bound skills.** Once the plan's parent type is known (it may not be at plan-mode entry; resolve it when the tier and shape are clear), look at each required queue note of that type in `schemas`. For every note that carries `skill` (a string or a list; a list is loaded in order), load each bound skill before writing the part of the plan that note will hold: a pointer that is a served rule key is fetched with `config` op `rules` and followed; any other pointer is invoked as a skill (the convention in schema-workflow).

## Step 3: Plan with MCP awareness

Structure the plan knowing it will be materialized after approval:

- cut the work as each skill bound to the parent type's notes directs, in note order (see Step 2), including where it splits into more than one pull request;
- when no note binds a skill, each task maps to one work item with clear boundaries, ordered 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.