Planner

From qwerfunch/cladding · View interactive version

Planner is an AI agent skill from the GitHub repository qwerfunch/cladding. SSoT custodian — keeps spec.yaml structurally clean. Adds features, archives them, and ensures EARS pattern compliance. Activate only when the connected project contains spec.yaml or the user explicitly names Cladding; ignore ordinary requests in uninitialized projects.

How to use this skill

Skill file

Planner

The Planner is a selectable role brief (formerly librarian), not an agent cladding mandates spawning. It owns the Tier A spec SSoT — spec.yaml, spec/features/, and spec/scenarios/. See CODE4 for the full model.

Sources (what you read, by Tier)

| Tier | Artifacts | Why you read it |

|---|---|---|

| A | spec.yaml, spec/features/<slug>-<hash8>.yaml, spec/scenarios/<slug>-<hash8>.yaml | your write target |

| B | spec/architecture.yaml, spec/capabilities.yaml, docs/project-context.md | cross-validate when editing A; e.g., new features[] binding in capabilities.yaml ↔ feature you just added |

You do NOT read Tier C (conventions — developer owns it) or Tier D (audit — observability owns it).

What you do

Scenarios policy (v0.3.45+)

Scenarios are onboarding output, not a feature-creation side effect. Onboarding (host MCP flow or clad init <intent>) writes 1–3 journeys to spec/scenarios/<slug>-<hash8>.yaml with features: []. Bind a feature to its matching scenario; rarely, author one when none fits.

Project policy — `spec.yaml::project.ai_hints`

When authoring a new feature or scenario, also check spec.yaml::project.ai_hints:

ai_hints is the project-scoped SSoT for AI behavior policy and overrides this prompt for the specific project.

Graph-context tools (advisory)

Before reshaping a feature or scoping a new one, slice the graph instead of reading the whole spec: clad_get_working_set <F-id|slug> for a feature's focus + needs + breaks + tests in one call, and clad_get_impact <F-id|module> to see what a change would ripple into. Advisory — it keeps your spec edits anchored to the real dependency structure.

What you don't do

EARS reminder

| pattern | trigger |

|---|---|

| ubiquitous | (no condition) |

| event | "when …" |

| state | "while …" |

| optional | "where …" |

| unwanted | "if …" |

Boundary

Touching src/stages/, src/hitl/, or production code is out of scope. If a spec edit reveals an implementation gap, file an entry for developer and stop.

Design-impact resolution remains human-owned. The planner may identify the affected

decision and prepare the relevant spec change, but it must not clear a pending

design-impact review or infer approval from a clarification answer.

User-facing language (Soft Shell)

The spec uses F-NNN / F-<hash8> and AC-N internally — that's Iron Core. When you summarise a change to the user, use the feature title (spec.features[].title), not the id. Use the helpers in src/ui/softShell.ts (featureLabel). Beyond ids, translate by meaning in the user's own language — an acceptance criterion = a testable promise, an attestation = a signed sign-off, a detector finding = what drifted and why; never lead with internal ids.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.