一键导入
canon-requirements
Use when you need a bounded requirements run in Canon before code, architecture, or execution drift starts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need a bounded requirements run in Canon before code, architecture, or execution drift starts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | canon-requirements |
| description | Use when you need a bounded requirements run in Canon before code, architecture, or execution drift starts. |
available-nowdefault visibility: prominentStart a real Canon requirements run from your AI assistant without making the user memorize the raw CLI.
RISKZONEOptional:
OWNER when the user wants to override Git-derived ownership explicitlycanon is on PATH. If missing, point to the install guide..canon/ exists. If missing, point to $canon-init.canon-input/ as read-only source material. Do not rewrite, normalize, append to, or otherwise modify the user's input files during preflight, clarification, generation, critique, or summary.canon-input/requirements.md or canon-input/requirements/ as the canonical authored-input locations for this mode.canon-input/requirements/ so preflight and clarity inspect the full authored requirements surface instead of a single file.--input-text instead of materializing a repo file automatically.--input from the active editor file, open tabs, recent .canon/ artifacts, or any other path under .canon/.OWNER is optional. If omitted, Canon should try repository-local or global Git identity before asking for explicit owner input.$canon-inspect-clarity with MODE=requirements and the full authored input surface so Canon runs canon inspect clarity --mode requirements --input <INPUT_PATH> [<INPUT_PATH> ...] and surfaces Canon-backed missing-context findings and targeted clarification questions before starting the run.canon inspect risk-zone --mode requirements --input <INPUT_PATH> to infer a provisional pair, explain the Canon rationale and confidence, and ask the user to confirm or override before invoking Canon.low confidence, present it as provisional and invite override rather than treating it as final.low-impact, bounded-impact, or systemic-impact.green, yellow, or red.Canon does not invent the requirements body for you. Canon governs, validates, and persists the packet. You (the assistant) MUST author the real requirements body from the bounded source material BEFORE calling canon run --mode requirements.
Do this every time:
canon-input/requirements.md or a folder-backed packet under canon-input/requirements/. The authored body MUST include all of the following H2 sections with concrete content tied to the source you just read:
## Problem — the user-visible or operator-visible problem and why it matters now.## Outcome — what should be true if this bounded slice succeeds.## Constraints — hard delivery, compatibility, compliance, performance, or operational constraints.## Non-Negotiables — explicit rules that cannot be relaxed in this slice.## Options — the credible bounded options still on the table.## Recommended Path — the currently recommended option and why it wins for this slice.## Tradeoffs — the important costs or downsides attached to the recommendation.## Consequences — what follows if the recommendation is accepted.## Scope Cuts — explicit exclusions for this slice. Prefer this canonical heading.## Deferred Work — follow-on work that remains intentionally outside this slice.## Decision Checklist — the concrete decisions or confirmations required before downstream planning.## Open Questions — unresolved items that still need explicit handling.## Scope Cuts. ## Out of Scope is accepted only as a compatibility alias for already-authored material and is not the preferred heading for new briefs.## Missing Authored Body naming the missing canonical heading instead of fabricating filler.$canon-inspect-clarity or ask targeted questions before invoking Canon rather than submitting an empty brief.canon run --mode requirements --risk <RISK> --zone <ZONE> [--owner <OWNER>] (--input <INPUT_PATH> | --input-text <INPUT_TEXT>).canon/runs/<RUN_ID>/artifacts/requirements/working-brief.md while keeping canon-input/ read-only.continue, refine, or same run, supplies a RUN_ID, or chooses Canon's explicit continuation path.$canon-status for the compact summary and canon inspect refinement --run <RUN_ID> when the user needs the working-brief path, clarification records, readiness delta, or lineage.After preflight succeeds and the real Canon run exists, the assistant is responsible for turning the requirements packet from templated stubs into a grounded, reviewable artifact set.
canon-input/requirements/, treat the directory as one
authored packet and read it recursively instead of narrowing to one child
file..canon/artifacts/<RUN_ID>/requirements/ exists and the packet stays
attached to a real run id.canon-input/ as read-only source material throughout generation,
clarification, critique, and summary..canon/artifacts/<RUN_ID>/requirements/.The Canon requirements packet IS the Product Requirements Document (PRD) for
this bounded scope. The materialized artifact set under
.canon/artifacts/<RUN_ID>/requirements/ must read end-to-end as a
self-contained PRD.
The PRD must cover, at minimum:
Mapping rules:
.canon/artifacts/<RUN_ID>/requirements/ must be
able to understand the product intent without reopening canon-input/.Author the packet as a product lead writing a bounded PRD for the people who must decide whether to proceed with this slice.
## Missing Authored Body;
never invent missing PRD content just to make the packet sound complete..canon/artifacts/<RUN_ID>/requirements/.Use clarification only when the missing information changes the packet materially. Do not ask generic discovery questions once the input is already bounded enough for requirements mode.
and, plus, or stacked subclauses
inside one question.give source refs, extract from the docs, or should I infer this.Present questions as a numbered list. For each question render exactly:
N. <one-sentence question>
Affects: <artifact file> > <section name>
Why it matters: <one line explaining what this answer changes in the packet>
Context: <up to two lines quoting or paraphrasing the relevant input fragment, or "no input coverage" if the documents are silent>
Options:
a) <concrete option grounded in the input or in plausible domain practice>
b) <a different concrete option>
c) <a third option when the space is naturally trichotomous>
d) Other / free text
Default if skipped: <what you will write in the artifact if the user defers, e.g. "leave as Open Question">
Status: Required | Optional
Rules on options:
tell me more or extract from docs.
If you cannot enumerate plausible answers, the question is underspecified -
either rewrite it more narrowly or drop it.Other / free text.Some chat hosts render structured question prompts (Copilot Chat input forms, Codex multi-question panels, Claude rich inputs). When the host exposes a rich-input affordance, prefer it over plain prose:
Why it matters plus Context as the secondary or
hint text so the user sees them as inline guidance, tooltip, description, or
subtitle.Options block when one is
available, so the user can click instead of typing.Why it matters to one short line and Context to at most two short
lines so they fit a tooltip or hint area.Write .canon/artifacts/<RUN_ID>/requirements/ai-provenance.md as a compact
audit trail for the AI-authored packet. Include:
Clarification Loop section with the counts: presented, Required
answered, Required unresolved, Optional answered or deferred, and
substantive clarifications by section.canon/artifacts/<RUN_ID>/requirements/ and .canon/artifacts/<RUN_ID>/requirements/ai-provenance.md, never back into canon-input/.canon/ is missing, point to $canon-init.canon-input/, stop, acknowledge the boundary error, restore the workflow to read-only input handling, and continue by writing only to Canon-managed run outputs.--owner <OWNER> explicitly or tell the user to configure git user.name and git user.email.RISK, use guided fixed choices with the exact allowed values low-impact, bounded-impact, and systemic-impact.ZONE, use guided fixed choices with the exact allowed values green, yellow, and red.--input-text content and do not restate already valid ownership metadata.$canon-inspect-artifacts only as optional drill-down.$canon-inspect-clarity and its canon inspect clarity --mode requirements --input <INPUT_PATH> [<INPUT_PATH> ...] contract over generic follow-up questions.$canon-inspect-evidence when the user needs provenance, policy rationale, or denied invocation detail behind the packet.$canon-status to re-check the overall run state only after inspection or follow-up work.$canon-init$canon-inspect-clarity$canon-status$canon-inspect-invocations$canon-inspect-evidenceUse when you need a governed Canon review of a real diff or pull-request range instead of a loose chat summary.
Use when a repository does not have Canon runtime state yet and you need to initialize .canon before any governed workflow.
Use when you need a governed Canon policy-shaping run to shape a new or modified policy with mandatory impact evaluation.
Use when you need a governed backlog run that decomposes bounded upstream decisions into delivery epics and slices.
Use when you need a governed Canon architecture run to record decisions, tradeoffs, and risk-gated approvals.
Use when you need a governed change run in a live codebase where invariants and existing behavior matter.