planr-spec · git:20260914.622ce31 · 2026-09-14 · sha256 e398052f18942980
planr-spec git:20260914.622ce31A
Immutable. This exact content never changes and is served at /api/v1/blob/e398052f18942980.
--- name: planr-spec description: Shape vague product or engineering intent into a clear, measurable Protocol-compatible specification grounded in the current repository. Use when requirements need clarification before planning or implementation. license: MIT --- # Planr Spec Shape vague product or engineering intent into a decision-complete specification inside this active coding session. Do not invoke a planning CLI or another model process. ## Ground the specification Read the request, repository instructions, ADRs, product documentation, existing planning artifacts, relevant implementation code and tests, stack configuration, design inputs, database context, and current behavior. Infer facts the repository already answers. When a missing decision materially changes scope or observable behavior, use the host's structured question interface. Ask no more than three short, mutually exclusive questions at once and put the recommended option first. If the host lacks that interface, ask one concise chat question. Do not present a long prose questionnaire. When native agents are available, use the specification role to consolidate the contract and dispatch database or designer roles only when their lens affects the decision. Otherwise perform those lenses sequentially in the active agent. ## Author directly Read [the specification contract](references/specification-contract.md). Write the specification to the repository's active planning layout, using a project-global monotonic `SPEC-NNN` ID. Inspect the repository's existing sequence and planning files before choosing it; never reuse a deleted ID. Requirements and acceptance criteria must be observable. Put non-goals under out-of-scope boundaries. Record concrete repository paths and verification signals when they are known. Keep unresolved questions out of the saved contract when a repository-backed default exists. Validate the completed artifact before returning. If a helper is unavailable, perform the same deterministic checks directly; never fall back to a model-backed CLI. ## Return - **Outcome:** what the specification now defines. - **Artifact:** the saved path, or `not saved` for an explicitly inline result. - **Decisions:** locked decisions and grounded defaults. - **Open question:** only a decision that still changes the product; omit when none remains. - **Next:** a copy-ready host-native `planr-plan` invocation for the saved spec.