一键导入
canon-discovery
Use when you need a governed Canon discovery run to bound a problem space before requirements or delivery planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need a governed Canon discovery run to bound a problem space before requirements or delivery planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use 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.
| name | canon-discovery |
| description | Use when you need a governed Canon discovery run to bound a problem space before requirements or delivery planning. |
available-nowdefault visibility: discoverable-standardStart a real Canon discovery run from your AI assistant without making the user memorize the raw CLI.
$canon-requirements.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/discovery.md or canon-input/discovery/ as the canonical authored-input locations for this mode.--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=discovery so Canon runs canon inspect clarity --mode discovery --input <INPUT_PATH> and surfaces Canon-backed missing-context findings and targeted clarification questions before starting the run.To start the discovery run I need the Canon risk level, the Canon zone, and the path to the discovery brief.canon inspect risk-zone --mode discovery --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.--input for the discovery run.Canon does not invent the discovery body for you. Canon governs, validates, and persists the packet. You (the assistant) MUST author the real discovery body from the exploratory source material BEFORE calling canon run --mode discovery.
Do this every time:
canon-input/discovery.md or a folder-backed packet under canon-input/discovery/. The authored body MUST include all of the following H2 sections with concrete content tied to the source you just read:## Problem Domain## Repo Surface## Immediate Tensions## Downstream Handoff## Unknowns## Assumptions## Validation Targets## Confidence Levels## In-Scope Context## Out-of-Scope Context## Translation Trigger## Options## Constraints## Recommended Direction## Next-Phase Shape## Pressure Points## Blocking Decisions## Open Questions## Recommended Owner## Missing Authored Body naming the missing canonical heading instead of fabricating generic filler.$canon-inspect-clarity or ask targeted questions before invoking Canon rather than submitting an empty brief.Author the packet as an exploratory research lead seeding an Opportunity Solution Tree and Jobs-To-Be-Done flavored brief for downstream product and engineering framing.
## Problem Domain and ## Immediate Tensions to name the desired
outcome, the blocked job, and the tension preventing progress.## Options, ## Recommended Direction, and ## Next-Phase Shape to
present credible opportunity or solution branches without pretending one
branch is already committed.## Validation Targets, ## Confidence Levels, and ## Assumptions as
the assumption-test spine of the packet.canon run --mode discovery --risk <RISK> --zone <ZONE> [--owner <OWNER>] (--input <INPUT_PATH> | --input-text <INPUT_TEXT>).canon/runs/<RUN_ID>/artifacts/discovery/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 discovery packet from templated stubs into a grounded, reviewable artifact set.
canon-input/discovery/, treat the directory as one authored packet and read it recursively before generation..canon/artifacts/<RUN_ID>/discovery/ exists and the packet stays attached to a real run id.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/artifacts/<RUN_ID>/discovery/..canon/artifacts/<RUN_ID>/discovery/.When the authored input is structurally present but materially ambiguous on points that would force the assistant to invent content, ask targeted clarification questions before generation rather than papering over the gap.
and, or, or comma-separated sub-questions.Each question must follow this shape:
- Question: <one-sentence question>
- Affects: <artifact or section it changes>
- Why it matters: <one short line on what changes if unanswered>
- Context: <≤2 lines from authored input, or `no input coverage`>
- Options:
a) <concrete option>
b) <concrete option>
c) <concrete option>
d) Other (free-form)
- Default if skipped: <explicit default>
- Status: Required | Optional
Question line as the main prompt and surface Why it matters and Context as secondary or tooltip text rather than dumping the full block inline.Write .canon/artifacts/<RUN_ID>/discovery/ai-provenance.md describing how the
packet was produced. It must include:
Clarification Loop section with: number of questions presented, number of Required questions answered, number of Required questions left unresolved, number of Optional questions answered or deferred, and the number of substantive clarifications that drove material changes per artifact section..canon/artifacts/... paths when Canon emitted them$canon-status, $canon-inspect-artifacts, or $canon-inspect-evidence only when they are directly relevant to the current run outcome.canon/artifacts/<RUN_ID>/discovery/ and .canon/artifacts/<RUN_ID>/discovery/ai-provenance.md, never back into canon-input/.canon/ is missing, point to $canon-init.--owner <OWNER> explicitly or tell the user to configure git user.name and git user.email.RISK, use the exact allowed values low-impact, bounded-impact, and systemic-impact.ZONE, use the exact allowed values green, yellow, and red.--input-text content and do not restate already valid ownership metadata.AwaitingApproval, surface the exact target Canon produced and do not imply the run is complete.canon-input/, stop, restore the file from the user's last saved version, and report the rollback before continuing.$canon-inspect-clarity and its canon inspect clarity --mode discovery --input <INPUT_PATH> contract over generic follow-up questions.$canon-inspect-artifacts first.$canon-inspect-artifacts as drill-down.$canon-inspect-evidence only when the user needs invocation lineage, approval rationale, or deeper runtime detail.$canon-approve only after the user has reviewed the emitted packet or explicitly wants to record approval.$canon-status first and use $canon-resume only if Canon still leaves the run incomplete.$canon-requirements$canon-inspect-clarity$canon-status$canon-inspect-artifacts$canon-inspect-evidence$canon-approve$canon-resume