Read spec.org and generate CLAUDE.md following the fixed-point kernel constraints (axiom before line 10, confirmation gate, failure handler, instrumentation). Use after spec.org exists.
Before generating, check current state:
spec.org does not exist: stop with error "no spec.org found."CLAUDE.md already exists:
/review-prompt for full review or pass --force to
regenerate." Stop unless $ARGUMENTS contains --force.docs/meta-prompt-v0.md exists but CLAUDE.md does not: something
went wrong mid-generation. Restore from v0 and run /review-prompt.Read spec.org completely. Extract and produce CLAUDE.md.
These four elements MUST appear. They survive all levels of abstraction:
Axiom placement: The foundational axiom MUST appear before line 10.
Confirmation gate: "Before writing any code, output a one-paragraph summary of what you understand [PROJECT] to be, who its primary user is, and what its primary output is."
Failure handler: "If an acceptance test fails, stop. Document what failed, what you tried, and what the blocker is. Do not proceed to the next step. Surface the failure as a CPRR refutation candidate."
Instrumentation requirement: "Each conjecture requires a corresponding measurement hook in the implementation."
From spec.org, extract:
## Your Role <- always "coding agent"
## Foundational Axiom <- BEFORE LINE 10
## Confirmation Gate <- always same text
## What You Are Building <- 2-3 bullets from spec
## Explicit Anti-Goals <- named products + mechanical failures
## Key Design Decisions <- from spec
## [Named Constraint Section] <- promoted architectural constraint
## Build Order <- with failure handler
## [Core Domain Model] <- table/enum from spec
## Open Conjectures <- C-001 through C-NNN
## Instrumentation Requirement <- always same text
## Research Context <- links, no low-relevance
## Stack Preferences <- from spec
## Acceptance: End-to-End Test <- synthetic + testable assertions
After generating, save as docs/meta-prompt-v0.md and run /review-prompt.