plan-master
Skill0 starsChanged 5 months agoMITView on GitHub
Create or maintain a complete, implementation-ready software development plan with traceability, risk registry, phased execution, and integrity validation. Use when the user asks for plan-master, master implementation plan, implementation roadmap, execution roadmap, whole-system build plan, or legacy phrases "full plan" / "full-plan" skill. Requires foundation artifacts or explicit greenfield input. Never writes application code.
- Reads credentials
In this repository22 other files it gives its agents.
- ai-directorSkill
- code-implementationSkill
- code-repairSkill
- code-verifySkill
- concept-runSkill
- db-migrationSkill
- deploy-basicSkill
- deploy-filesSkill
- dev-stackSkill
- docsSkill
- feature-specSkill
- infra-terraformSkill
- plan-foundationSkill
- plan-repairSkill
- plan-syncSkill
- plan-verifySkill
- process-routerSkill
- project-bootstrapSkill
- project-query-setupSkill
- session-controlSkill
- tauri-developmentSkill
- x-directorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. About 0 are common, 18 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Never: write application code, migrations, or docker changes unless the user explicitly requests implementation in the same message.
- Very specific: line 27
Every mode ends with a Completion checklist - each item pass | fail | skip with evidence.
- Very specific: line 28
Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output.
- Very specific: line 29
Document clarity: every generated document follows the Document clarity contract — Status + Needs header, separate Decisions/Open questions …
- Distinctive: line 30
Traceability: no major requirement without a chain: Business goal → Requirement → Architecture component → Execution task → Validation/test …
- Very specific: line 49
If plan-master-ready is no, stop - run @plan-foundation certify first.
- Very specific: line 61
Run before greenfield, continue, or revise (not before status, show *(alias: task)*, or integrity when plan-foundation invoked integrity on …
- Very specific: line 65
Read {HANDOFF} § Repository state (or gate snapshot) for Plan-master-ready: <date> or run @plan-foundation status and read …
- Very specific: line 66
If no and user did not supply complete structured YAML with foundation_docs: and explicit same-message confirmation that foundation was …
- Distinctive: line 78
If yes → proceed to the mode protocol.
- Distinctive: line 135
Do not run greenfield questionnaires when the user asked for status, integrity, or show only.
- Very specific: line 155
If YAML is missing, derive from README.md, P0 initial scope ({PLANS_ROOT}/foundation/*-01-*-initial-scope.md), {HANDOFF}, and foundation …
- Distinctive: line 195
When authoring or revising a plan, this skill is responsible for:
- Distinctive: line 199
Reporting drift: if an existing plan file deviates from the standard's section list.
- Distinctive: line 205
After every major phase, answer yes/no with evidence:
- Very specific: line 226
Prefer proven stack from REPLACE:TECH_STACK_DOC and ADRs.
- Distinctive: line 243
Document mode tradeoffs in Decision log.
- Distinctive: line 252
Read plan header + Execution Roadmap + Registries.
- Distinctive: line 264
No owner blockers in HANDOFF/NEXT that gate broad multi-milestone execution (project may document M1-only waivers).
- Distinctive: line 266
If master plan missing → implementation-ready: no - run greenfield.
- Distinctive: line 314
Run Prerequisite gate PG1 (and PG2 continue row).
- Distinctive: line 318
Run integrity subset for completed phase.
- Very specific: line 319
If Phase 5 complete (integrity pass or documented waivers) and user approved → set plan Approved.
- Distinctive: line 326
Run Prerequisite gate PG1 (and PG2 greenfield row).
- Very specific: line 328
Create {PLANS_ROOT}/full/YYYYMMDD-full-plan.md with header Draft.
- Distinctive: line 330
Do not mark Approved until P5 pass (or documented waivers).
- Very specific: line 331
Update HANDOFF Repository state only if user asks or session-control close runs.
- Distinctive: line 349
If master plan missing → no - run greenfield.
- Distinctive: line 369
Read-only. No writes to plan or HANDOFF.
- Very specific: line 375
If a task ID was given (M{N}-T{N}): return that task's full record.
- Very specific: line 376
If only a milestone was given (M{N}): return the full task table for that milestone.
- Distinctive: line 395
If the task ID does not exist in the plan → say so explicitly.
- Very specific: line 396
If the plan does not exist → recommend @plan-master greenfield.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
plan-master
Produce a production-grade, implementation-ready development plan: architecturally sound, incrementally executable, operationally realistic, and safe for lower-level coding agents.
Tool-agnostic (Cursor, Claude Code, opencode, Codex). Pairs with: plan-foundation (prerequisite for mature repos), session-control, {ITERATION_CARRIER}, .cursorrules, feature SPECs under {FEATURE_SPEC_ROOT}/.
Canonical path: .ai/skills/plan-master/skill.md · Invocation examples: reference.md
Hard rules:
- Never write application code, migrations, or docker changes unless the user explicitly requests implementation in the same message.
- Never fabricate APIs, framework capabilities, infrastructure, or compliance rules - label Unverified and ask.
- Never silently skip major ambiguities; record in Unknowns registry and ask or block the gate.
- Never duplicate foundation content - reference existing ADRs, SPECs, foundation docs under
{PLANS_ROOT}/foundation/; extend only where gaps exist. - Never edit files marked archived or do not edit in HANDOFF.
- Never paste secrets from
.env,credentials/, or tokens into plans or chat. - Every mode ends with a Completion checklist - each item
pass|fail|skipwith evidence. - Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output; approvals under
**Needs your approval:**citingpath:L<n>; questions numbered under**Needs your answer:**; exactly one**Next step:**command; one line when nothing is needed (Form A). Decisions and questions never mixed; empty sections omitted. - Document clarity: every generated document follows the Document clarity contract — Status + Needs header, separate Decisions/Open questions lists, one
## Next action, no placeholder scaffolding left behind. - Traceability: no major requirement without a chain: Business goal → Requirement → Architecture component → Execution task → Validation/test → Acceptance criterion.
Relationship to other skills
| Skill | Role | When |
plan-foundation | Orchestrator: P0–P6 gates, ADRs, SPECs, HANDOFF, planning registries | Runs first; invokes plan-master for integrity at P3+ and after P6 |
plan-master | Intelligence layer: architecture quality, integrity, traceability, master roadmap | After foundation exists or with explicit YAML input |
session-control | Session bookends | Optional on start/close of planning sessions |
| Feature SPECs | Per-feature what | Referenced by execution tasks; not replaced by plan-master |
Shared registries (maintained by plan-foundation; extended by plan-master - do not duplicate):
{PLANS_ROOT}/ASSUMPTIONS.md{PLANS_ROOT}/RISK_REGISTRY.md{PLANS_ROOT}/UNKNOWNS.md
If plan-master-ready is no, stop - run @plan-foundation certify first. plan-master greenfield requires plan-foundation certification (P0–P6 + integrity on foundation artifacts).
implementation-ready is certified by this skill (status mode) after the master plan is Approved - do not conflate with plan-master-ready (plan-foundation certifies that).
Registry: Full matrix - .ai/skills/SKILL_DEPENDENCIES.md.
Symmetric verify/repair: @plan-verify master orchestrates this skill's status + integrity; gaps → @plan-repair master or @plan-master revise - <reason>.
Prerequisite gate (mutating modes)
Run before greenfield, continue, or revise (not before status, show (alias: task), or integrity when plan-foundation invoked integrity on foundation artifacts only).
PG1 - Plan-master-ready
- Read
{HANDOFF}§ Repository state (or gate snapshot) forPlan-master-ready: <date>or run@plan-foundation statusand read Plan-master-ready: line. - If no and user did not supply complete structured YAML with
foundation_docs:and explicit same-message confirmation that foundation was completed out-of-band → stop with the blocked-report shape:
## @plan-master <command> - blocked (prerequisite)
**Required:** `plan-master-ready: yes` (from `@plan-foundation certify`)
**Detected:** `plan-master-ready: no`
**Run first:** `@plan-foundation status` → `@plan-foundation continue` → `@plan-foundation certify plan-master-ready` → re-invoke `@plan-master <command>`End the blocked report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.
- If yes → proceed to the mode protocol.
Anti-pattern: Drafting or extending *-full-plan.md when PG1 fails. Do not use "waivers in Assumptions" to bypass plan-master-ready - only HANDOFF-documented plan-master-ready date or certify pass unlocks mutating plan-master modes.
Blocked-report shape
Per SKILL_DEPENDENCIES.md § Blocked report shape - header: ## @plan-master <command> - blocked (prerequisite).
PG2 - Mode-specific (after PG1 passes)
| Mode | Additional check |
| greenfield | No *-full-plan.md or user explicitly asked to replace; if Approved plan exists without revise → recommend revise instead |
| continue | Latest *-full-plan.md exists (Draft or partial) |
| probe | Latest *-full-plan.md exists (Draft or partial); if none → run greenfield first to create the Draft, then probe |
| revise | Latest *-full-plan.md exists |
| integrity | Foundation artifacts and/or master plan exist for the requested scope |
| status / show | - (read-only; PG1 not required) |
Parse invocation
Normalize the user message to verb + optional modifiers + optional goal text (after -).
| User says | Verb | Notes |
@plan-master status | status | Read-only: plan exists? phase progress? integrity snapshot |
plan-master continue | continue | Resume next incomplete planning phase |
plan-master greenfield | greenfield | New plan from YAML/minimal input |
plan-master probe | probe | Adaptive plan-completeness interrogation; fills gaps before integrity |
plan-master integrity | integrity | Phase 5 only - contradiction and fitness review |
plan-master revise - <reason> | revise | Update existing plan; bump version note in plan header |
plan-master greenfield - startup | enterprise | ai-native | ultra-scale | greenfield | Apply Advanced mode |
plan-master show M1-T3 | show | Read-only: full record for one task (description, files, FR/NFR, status) |
plan-master show M2 | show | Read-only: full task table for milestone M2 |
Aliases:
master plan,implementation roadmap,build roadmap,whole system plan→ continue if plan file exists, else greenfield.taskis the legacy alias ofshow- both work (@plan-master task M1-T3≡@plan-master show M1-T3).
Goal text: anything after - (not mode keywords).
Step 0 - Pick a mode
| Mode | Action |
| status | Status protocol |
| continue | Continue protocol |
| greenfield | Greenfield protocol |
| probe | Probe protocol - adaptive plan-completeness loop; fills human-answerable gaps before integrity |
| integrity | Phase 5 - Verification report only. Can be invoked standalone (@plan-master integrity) or from plan-foundation continue P3+/P6. |
| revise | Read existing plan → apply delta → re-run Phase 5 subset |
show (alias: task) | Show protocol - read-only; show task record(s) by M{N}-T{N} or milestone |
Do not run greenfield questionnaires when the user asked for status, integrity, or show only.
Initial input (greenfield or supplement)
Accept structured YAML in chat or a file path (e.g. {PLANS_ROOT}/plan-master-input.yaml):
project:
description:
requirements: [] # functional
non_functional: [] # optional; skill will expand if omitted
foundation_docs: [] # paths: HANDOFF, {PLANS_ROOT}/foundation/*-04-*.md, DOCS_TECH_STACK, etc.
constraints: []
target_users: []
additional_notes:
advanced_mode: # optional: startup | enterprise | ai-native | ultra-scaleIf YAML is missing, derive from README.md, P0 initial scope ({PLANS_ROOT}/foundation/*-01-*-initial-scope.md), {HANDOFF}, and foundation artifacts.
Registries
Canonical files (created by plan-foundation P0; updated by both skills):
| File | IDs | Purpose |
{PLANS_ROOT}/ASSUMPTIONS.md | A1… | Confirmed / inferred / rejected / unresolved |
{PLANS_ROOT}/RISK_REGISTRY.md | R1… | Architectural, ops, security, compliance, agent risks |
{PLANS_ROOT}/UNKNOWNS.md | U1… | Open questions; owner; blocks gate/ADR |
Inside the master plan artifact, maintain append-only:
| Section | Purpose |
| Decision log | D1…; date; choice; alternatives rejected |
| Traceability matrix | Goal → req → ADR → SPEC → task → test → acceptance |
Link to canonical registries; do not fork duplicate assumption/risk/unknown lists in the plan body.
Planning workflow (Phases 0–6)
Execute in order. At each phase gate, run Continuous integrity rules before proceeding.
Execute P0→P6 in order; at each gate run Continuous integrity rules.
Per-phase objectives, must-include lists, grill prompts, and gate criteria: reference.md § Planning workflow phases 0–6 (detailed).
Mandatory sections (artifact contract)
The plan file structure - 25 H2 sections, header metadata, milestone schema, task record schema, approval gate - is defined in standards/20260519-MASTER_PLAN_STANDARD.md. Do not restate the contract here.
When authoring or revising a plan, this skill is responsible for:
- Conforming the artifact to that standard (every gate below references it).
- Refusing to mark Approved until the standard's § 4 approval gate is satisfied.
- Reporting drift if an existing plan file deviates from the standard's section list.
Continuous integrity rules
After every major phase, answer yes/no with evidence:
| Question | If no → |
| Architecture aligned with project goals? | Revise Phase 1–2 |
| Unverified assumptions remain? | Add to Unknowns; ask or waive |
| Unnecessary complexity introduced? | Simplify; log decision |
| Scalability risks identified? | Risk registry |
| Operational risks identified? | Risk registry |
| Security concerns addressed? | Phase 2/12 update |
| Agents can execute tasks safely? | Phase 6 decomposition |
| Requirements traceable to tasks? | Fix matrix |
| Hidden dependencies? | Phase 4 update |
| Unresolved ambiguities? | Block gate or waiver |
Hallucination prevention
- Label: Confirmed (file path + snippet or test command + exit code), Inference, Unverified, Estimate.
- Confirmed without cite → downgrade to Inference in review; do not ship code on uncited Confirmed claims.
- Prefer proven stack from
REPLACE:TECH_STACK_DOCand ADRs. - For external integration: cite
.work/docs/integration/+MANIFEST.txtwhen present; do not invent endpoints. - Request clarification when uncertain; do not invent XSD fields or annex rules.
Advanced modes
Apply one mode (default: balanced).
| Mode | Optimize for |
| startup | Speed, low cost, rapid iteration; accept more manual ops |
| enterprise | Compliance, auditability, governance, formal gates |
| ai-native | Agent orchestration, task granularity, cross-validation |
| ultra-scale | Throughput, distribution, failure domains |
Document mode tradeoffs in Decision log.
Status protocol
- Resolve project name (README → HANDOFF →
.cursorrules). - Confirm plan-master-ready in HANDOFF (or run
@plan-foundation certifyfirst). - Find latest
{PLANS_ROOT}/full/*-full-plan.md(by date prefix). - Read plan header + Execution Roadmap + Registries.
- Evaluate Implementation-ready (this skill owns this gate).
- Output Status report format.
Implementation-ready
Answer implementation-ready: yes only when all are true:
- plan-master-ready still valid (HANDOFF date; re-run foundation certify if foundation changed).
- Master plan
{PLANS_ROOT}/full/YYYYMMDD-full-plan.mdexists with Status: Approved (or owner waiver in HANDOFF). - Plan integrity pass or documented waivers.
- Global acceptance criteria and validation gates (plan §20–21) reviewed.
- No owner blockers in HANDOFF/NEXT that gate broad multi-milestone execution (project may document M1-only waivers).
If master plan missing → implementation-ready: no - run greenfield. If Draft → no until Approved.
Not the same as: M1 platform skeleton when foundation certified plan-master-ready and NEXT recommends it.
Status report format
## Plan-master status - <Project>
**As of:** <date> · **Mode:** status (read-only)
### Summary
- **Plan-master-ready (foundation):** yes | no - from HANDOFF; if no, stop
- **Plan artifact:** <path or none>
- **Plan status:** Draft | Approved | …
- **Implementation-ready:** yes | no - **scored here only**
- **Integrity (last run):** pass | fail | not run
- **Recommended next:** <approve plan | continue plan | begin M1 per roadmap>
### Phase progress
| Phase | Status | Evidence |
|-------|--------|----------|
| P0 … P6 | done/partial/not started | section headings / gates |
### Traceability coverage
- FR count / traced %
- Gaps: <list>
### Top risks and unknowns
- <from plan registries>
### Owner blockers
- <from NEXT.md / HANDOFF>
### Completion checklist
| # | Check | Result | Evidence |
|---|-------|--------|----------|
| 1 | Mode detected | pass | status |
| 2 | Foundation/plan read | pass/fail | paths |
| … | | | |End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md. Any approval/question implied by Recommended next or Owner blockers must ALSO appear in the closing handoff block (enumerated, with path:line), not only in those sections.
Continue protocol
- Run Prerequisite gate PG1 (and PG2 continue row).
- Run abbreviated status.
- Find first phase not
done. - Complete that phase per workflow; update plan artifact.
- Run integrity subset for completed phase.
- If Phase 5 complete (integrity pass or documented waivers) and user approved → set plan Approved; sync one line to
NEXT.mdrecommended next. - Output completion checklist report - end it with the Operator handoff close (Form A
Next: …or Form B**Needs your approval:**/**Needs your answer:**/**Next step:**) per SKILL_DEPENDENCIES.md.
Greenfield protocol
- Run Prerequisite gate PG1 (and PG2 greenfield row).
- Collect Initial input.
- Create
{PLANS_ROOT}/full/YYYYMMDD-full-plan.mdwith header Draft. - Walk P0→P6; present one phase INTERACTION at a time when owner input required.
- Do not mark Approved until P5 pass (or documented waivers).
- Update HANDOFF Repository state only if user asks or
session-controlclose runs.
End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.
Probe protocol
The interactive front-end to integrity: where integrity detects contradictions automatically, probe asks the owner to resolve human-answerable gaps (vague NFR targets, unmapped FRs, ownerless mitigations) and records the answers into the plan + registries. Run probe first, then integrity. Engine: .ai/skills/probe-protocol.md (loop, scoring, ledger - not restated here).
Coverage profile (caller contract):
| Parameter | Value |
| Coverage map | Master coverage map (M-D1…M-D7) in reference.md |
| Exit gate | Implementation-ready (+ Phase 5 integrity pass) |
| Answer implementation-ready: yes only when all ten conditions hold (plan-master-ready, Approved plan, integrity, acceptance gates, no broad blockers). Full list: reference.md § Status report format (detailed) (Implementation-ready). |
If master plan missing → no - run greenfield. If Draft → no until Approved.
Not the same as: M1 skeleton when foundation certified plan-master-ready.
Status report format
Mandatory status report template and phase progress table: reference.md § Status report format (detailed).
- Marking Approved with open unknowns blocking high-risk work (without waiver)
- Running greenfield / continue / revise when plan-master-ready: no (see § Prerequisite gate)
- Editing archived decision prompts during plan cleanup
- Claiming plan complete without checklist evidence
- Burying operator actions/questions in prose instead of the closing Operator handoff block
Show protocol
(Legacy alias: task. Both invocations resolve here.)
Read-only. No writes to plan or HANDOFF.
Trigger: @plan-master show M{N}-T{N} · @plan-master show M{N} · (legacy) @plan-master task …
- Locate
{PLANS_ROOT}/full/YYYYMMDD-full-plan.md(latest by date prefix). - Navigate to §19 Incremental Execution Roadmap → milestone M{N}.
- If a task ID was given (
M{N}-T{N}): return that task's full record. - If only a milestone was given (
M{N}): return the full task table for that milestone. - Output:
## plan-master show - {M{N}-T{N} | M{N} all tasks}
**Plan:** {path} · **Milestone:** M{N} - {name}
| ID | Description | Files | FR/NFR | Complexity | Status |
|----|-------------|-------|--------|------------|--------|
| M{N}-T{N} | … | … | … | … | … |
**Acceptance criteria** (task-level):
- …
**Governing SPEC rules:**
- R{N}: … (from `{FEATURE_SPEC_ROOT}/<context>/SPEC`)- If the task ID does not exist in the plan → say so explicitly; do not invent content.
- If the plan does not exist → recommend
@plan-master greenfield. - End the output with the Operator handoff close (Form A
Next: …or Form B**Needs your approval:**/**Needs your answer:**/**Next step:**) per SKILL_DEPENDENCIES.md.
Strategic recommendations (include in plan output)
The plan SHOULD recommend:
- Periodic architecture reviews (quarterly or per milestone)
- Cross-model verification for high-risk / security tasks
- Milestone audits before merge to
main - Implementation retrospectives
- Security review before production integration credentials
- Load testing before scale-up
- Staged deployments and progressive hardening
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

