agentleFS
PiloTracerPiloTracer/pilo.ai.logicbison/skills/plan-master/skill.md

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

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
  1. Distinctive:

    Never: write application code, migrations, or docker changes unless the user explicitly requests implementation in the same message.

    line 21
  2. Very specific:

    Every mode ends with a Completion checklist - each item pass | fail | skip with evidence.

    line 27
  3. Very specific:

    Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output.

    line 28
  4. Very specific:

    Document clarity: every generated document follows the Document clarity contract — Status + Needs header, separate Decisions/Open questions …

    line 29
  5. Distinctive:

    Traceability: no major requirement without a chain: Business goal → Requirement → Architecture component → Execution task → Validation/test …

    line 30
  6. Very specific:

    If plan-master-ready is no, stop - run @plan-foundation certify first.

    line 49
  7. Very specific:

    Run before greenfield, continue, or revise (not before status, show *(alias: task)*, or integrity when plan-foundation invoked integrity on …

    line 61
  8. Very specific:

    Read {HANDOFF} § Repository state (or gate snapshot) for Plan-master-ready: <date> or run @plan-foundation status and read …

    line 65
  9. Very specific:

    If no and user did not supply complete structured YAML with foundation_docs: and explicit same-message confirmation that foundation was …

    line 66
  10. Distinctive:

    If yes → proceed to the mode protocol.

    line 78
  11. Distinctive:

    Do not run greenfield questionnaires when the user asked for status, integrity, or show only.

    line 135
  12. Very specific:

    If YAML is missing, derive from README.md, P0 initial scope ({PLANS_ROOT}/foundation/*-01-*-initial-scope.md), {HANDOFF}, and foundation …

    line 155
  13. Distinctive:

    When authoring or revising a plan, this skill is responsible for:

    line 195
  14. Distinctive:

    Reporting drift: if an existing plan file deviates from the standard's section list.

    line 199
  15. Distinctive:

    After every major phase, answer yes/no with evidence:

    line 205
  16. Very specific:

    Prefer proven stack from REPLACE:TECH_STACK_DOC and ADRs.

    line 226
  17. Distinctive:

    Document mode tradeoffs in Decision log.

    line 243
  18. Distinctive:

    Read plan header + Execution Roadmap + Registries.

    line 252
  19. Distinctive:

    No owner blockers in HANDOFF/NEXT that gate broad multi-milestone execution (project may document M1-only waivers).

    line 264
  20. Distinctive:

    If master plan missing → implementation-ready: no - run greenfield.

    line 266
  21. Distinctive:

    Run Prerequisite gate PG1 (and PG2 continue row).

    line 314
  22. Distinctive:

    Run integrity subset for completed phase.

    line 318
  23. Very specific:

    If Phase 5 complete (integrity pass or documented waivers) and user approved → set plan Approved.

    line 319
  24. Distinctive:

    Run Prerequisite gate PG1 (and PG2 greenfield row).

    line 326
  25. Very specific:

    Create {PLANS_ROOT}/full/YYYYMMDD-full-plan.md with header Draft.

    line 328
  26. Distinctive:

    Do not mark Approved until P5 pass (or documented waivers).

    line 330
  27. Very specific:

    Update HANDOFF Repository state only if user asks or session-control close runs.

    line 331
  28. Distinctive:

    If master plan missing → no - run greenfield.

    line 349
  29. Distinctive:

    Read-only. No writes to plan or HANDOFF.

    line 369
  30. Very specific:

    If a task ID was given (M{N}-T{N}): return that task's full record.

    line 375
  31. Very specific:

    If only a milestone was given (M{N}): return the full task table for that milestone.

    line 376
  32. Distinctive:

    If the task ID does not exist in the plan → say so explicitly.

    line 395
  33. Very specific:

    If the plan does not exist → recommend @plan-master greenfield.

    line 396

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

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 | skip with evidence.
  • Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output; approvals under **Needs your approval:** citing path: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

SkillRoleWhen
plan-foundationOrchestrator: P0–P6 gates, ADRs, SPECs, HANDOFF, planning registriesRuns first; invokes plan-master for integrity at P3+ and after P6
plan-masterIntelligence layer: architecture quality, integrity, traceability, master roadmapAfter foundation exists or with explicit YAML input
session-controlSession bookendsOptional on start/close of planning sessions
Feature SPECsPer-feature whatReferenced 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

  1. Read {HANDOFF} § Repository state (or gate snapshot) for Plan-master-ready: <date> or run @plan-foundation status and read Plan-master-ready: line.
  2. 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.

  1. 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)

ModeAdditional check
greenfieldNo *-full-plan.md or user explicitly asked to replace; if Approved plan exists without revise → recommend revise instead
continueLatest *-full-plan.md exists (Draft or partial)
probeLatest *-full-plan.md exists (Draft or partial); if none → run greenfield first to create the Draft, then probe
reviseLatest *-full-plan.md exists
integrityFoundation 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 saysVerbNotes
@plan-master statusstatusRead-only: plan exists? phase progress? integrity snapshot
plan-master continuecontinueResume next incomplete planning phase
plan-master greenfieldgreenfieldNew plan from YAML/minimal input
plan-master probeprobeAdaptive plan-completeness interrogation; fills gaps before integrity
plan-master integrityintegrityPhase 5 only - contradiction and fitness review
plan-master revise - <reason>reviseUpdate existing plan; bump version note in plan header
plan-master greenfield - startup | enterprise | ai-native | ultra-scalegreenfieldApply Advanced mode
plan-master show M1-T3showRead-only: full record for one task (description, files, FR/NFR, status)
plan-master show M2showRead-only: full task table for milestone M2

Aliases:

  • master plan, implementation roadmap, build roadmap, whole system plan → continue if plan file exists, else greenfield.
  • task is the legacy alias of show - both work (@plan-master task M1-T3 ≡ @plan-master show M1-T3).

Goal text: anything after - (not mode keywords).


Step 0 - Pick a mode

ModeAction
statusStatus protocol
continueContinue protocol
greenfieldGreenfield protocol
probeProbe protocol - adaptive plan-completeness loop; fills human-answerable gaps before integrity
integrityPhase 5 - Verification report only. Can be invoked standalone (@plan-master integrity) or from plan-foundation continue P3+/P6.
reviseRead 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-scale

If 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):

FileIDsPurpose
{PLANS_ROOT}/ASSUMPTIONS.mdA1…Confirmed / inferred / rejected / unresolved
{PLANS_ROOT}/RISK_REGISTRY.mdR1…Architectural, ops, security, compliance, agent risks
{PLANS_ROOT}/UNKNOWNS.mdU1…Open questions; owner; blocks gate/ADR

Inside the master plan artifact, maintain append-only:

SectionPurpose
Decision logD1…; date; choice; alternatives rejected
Traceability matrixGoal → 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:

  1. Conforming the artifact to that standard (every gate below references it).
  2. Refusing to mark Approved until the standard's § 4 approval gate is satisfied.
  3. 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:

QuestionIf 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_DOC and ADRs.
  • For external integration: cite .work/docs/integration/ + MANIFEST.txt when present; do not invent endpoints.
  • Request clarification when uncertain; do not invent XSD fields or annex rules.

Advanced modes

Apply one mode (default: balanced).

ModeOptimize for
startupSpeed, low cost, rapid iteration; accept more manual ops
enterpriseCompliance, auditability, governance, formal gates
ai-nativeAgent orchestration, task granularity, cross-validation
ultra-scaleThroughput, distribution, failure domains

Document mode tradeoffs in Decision log.


Status protocol

  1. Resolve project name (README → HANDOFF → .cursorrules).
  2. Confirm plan-master-ready in HANDOFF (or run @plan-foundation certify first).
  3. Find latest {PLANS_ROOT}/full/*-full-plan.md (by date prefix).
  4. Read plan header + Execution Roadmap + Registries.
  5. Evaluate Implementation-ready (this skill owns this gate).
  6. Output Status report format.

Implementation-ready

Answer implementation-ready: yes only when all are true:

  1. plan-master-ready still valid (HANDOFF date; re-run foundation certify if foundation changed).
  2. Master plan {PLANS_ROOT}/full/YYYYMMDD-full-plan.md exists with Status: Approved (or owner waiver in HANDOFF).
  3. Plan integrity pass or documented waivers.
  4. Global acceptance criteria and validation gates (plan §20–21) reviewed.
  5. 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

  1. Run Prerequisite gate PG1 (and PG2 continue row).
  2. Run abbreviated status.
  3. Find first phase not done.
  4. Complete that phase per workflow; update plan artifact.
  5. Run integrity subset for completed phase.
  6. If Phase 5 complete (integrity pass or documented waivers) and user approved → set plan Approved; sync one line to NEXT.md recommended next.
  7. 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

  1. Run Prerequisite gate PG1 (and PG2 greenfield row).
  2. Collect Initial input.
  3. Create {PLANS_ROOT}/full/YYYYMMDD-full-plan.md with header Draft.
  4. Walk P0→P6; present one phase INTERACTION at a time when owner input required.
  5. Do not mark Approved until P5 pass (or documented waivers).
  6. Update HANDOFF Repository state only if user asks or session-control close 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):

ParameterValue
Coverage mapMaster coverage map (M-D1…M-D7) in reference.md
Exit gateImplementation-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 …

  1. Locate {PLANS_ROOT}/full/YYYYMMDD-full-plan.md (latest by date prefix).
  2. Navigate to §19 Incremental Execution Roadmap → milestone M{N}.
  3. If a task ID was given (M{N}-T{N}): return that task's full record.
  4. If only a milestone was given (M{N}): return the full task table for that milestone.
  5. 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`)
  1. If the task ID does not exist in the plan → say so explicitly; do not invent content.
  2. If the plan does not exist → recommend @plan-master greenfield.
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.