Skip to main content

Plan documentation context — template

Tier: Public
Status: Authoring template for Cursor .plan.md and multi-phase execution plans
Audience: plan authors (human or frontier agent), non-frontier executors

Copy the section below into feature plans. Use repo-relative markdown links so links render on GitHub and the future docs site.


Documentation context (required)

RoleDocument
Governing RFCRFC-0007 — §12 implementation closure
Horizontal surfacecanonical-document-rendering-surface.md
Module surfacecanonical-mrp-module-surface.md §11
Reference consumerPIM PR7 — canonical-pim-module-surface.md §8.3
Build log patternmrp-crp-wave-5-ai-planning-advisor-build-log.md
Plugin rules22-typescript-contracts-runtime-validation.mdc, 45-public-endpoint-verification.mdc, 48-rfc-companion-documentation-gate.mdc
Non-frontier trapsNON-FRONTIER-EXECUTOR-FITNESS-TRACKER.md §10
RunbookDEVELOPMENT.md — container npm, rendering stack (Gotenberg + Redis)

Rules:

  • Cite § numbers for long RFCs and surface docs.
  • Cite plugin rules by filename (witness contract in CURSOR-PLUGINS.md).
  • For file paths in executor instructions, use canonical absolute paths per 97-plans-must-include-canonical-absolute-paths.mdc.
  • When the plan adds documentTemplates, include updating canonical-document-rendering-surface.md §2 in the same wave.

Worked example: Cursor plan mrp_crp_wave_6_9475516e.plan.md (author-local; not in-repo — retrofit section).


Local verification before push (required)

Copy and strike rows that do not apply to this plan. At plan completion, add matching YAML todos (see rule 49-plan-documentation-context.mdc).

Executor rule: run pertinent rows before push — not every GHA workflow. T0/T1 during implementation; T2 before push.

Change surface (this plan)Before done (T0/T1)Before push (T2)GHA workflow(s)
Docs / README onlynpx @umbraculum/ci-parity run --jobs docs-readmesdocs-readmes.yml
TS/JS lint surfacenpm run verify:from-diff or named slicenpx @umbraculum/ci-parity run --jobs lintweb-lint.yml
TS typecheck surfacescoped slice + build-package-in-docker.sh as needednpx @umbraculum/ci-parity run --jobs typechecktypecheck.yml
services/api/**, OpenAPI, contracts routesnpm run verify:openapici-parity pertinent jobs + skill api-integration-tests-pre-pushapi.yml + ci-parity
packages/** dist / SDKcheck-packages-dist-up-to-date.shnpx @umbraculum/ci-parity run --jobs sdk-publish-prep (when SDK batch)packages-dist-check.yml, publish-sdk-batch.yml
Full unknown mixed diffnpm run verify:from-diffnpm run verify:pre-pushall ci-parity + API reminder

Skills: verify-slice-runbook, scoped-package-build-in-docker, ci-parity-local-reproduction, api-integration-tests-pre-push, docker-npm-volumes-runbook.

Plan YAML todos (required at plan completion):

todos:
- id: verify-t1-openapi
content: "T1: npm run verify:openapi (or verify:from-diff)"
- id: verify-t2-ci-parity
content: "T2: npx @umbraculum/ci-parity run --jobs lint,typecheck"
- id: verify-t2-api
content: "T2: api-integration-tests-pre-push when services/api/** changed"