一键导入
canon-migration
Use when you need a governed migration packet for an existing system with explicit compatibility, sequencing, and fallback posture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need a governed migration packet for an existing system with explicit compatibility, sequencing, and fallback posture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | canon-migration |
| description | Use when you need a governed migration packet for an existing system with explicit compatibility, sequencing, and fallback posture. |
available-nowdefault visibility: discoverable-standardExpose the delivered Canon migration workflow as a governed run started from your AI assistant.
$canon-architecture or $canon-system-shaping first.$canon-change.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.--system-context existing for this skill.canon-input/ as read-only source material.canon-input/migration.md or canon-input/migration/ as the canonical authored-input locations for this mode.canon-input/migration/, treat brief.md as the authoritative migration brief and any sibling notes as carried-forward context; the current brief still needs to restate the bounded transition surface directly.--input-text instead of materializing a repo file automatically.--input from the active editor file, open tabs, recent .canon/ artifacts, or published packets.$canon-architecture, $canon-system-shaping, or $canon-change instead of inventing migration detail.low-impact, bounded-impact, or systemic-impact.green, yellow, or red.Canon does not invent the migration body for you. Canon governs, validates,
and persists the packet. You (the assistant) MUST author the real migration
content from the bounded source material BEFORE calling
canon run --mode migration.
Do this every time, even when the user only handed you a short rollout note:
canon-input/migration/brief.md (or use --input-text for a one-shot inline brief). The file MUST include all of the following H2 sections, populated with concrete content tied to the source you just read:
## Current State## Target State## Transition Boundaries## Guaranteed Compatibility## Temporary Incompatibilities## Coexistence Rules## Options Matrix## Ordered Steps## Parallelizable Work## Cutover Criteria## Rollback Triggers## Fallback Paths## Re-Entry Criteria## Adoption Implications## Verification Checks## Residual Risks## Release Readiness## Migration Decisions## Tradeoff Analysis## Decision Evidence## Recommendation## Why Not The Others## Ecosystem Health## Deferred Decisions## Approval Notes## Missing Authored Body marker when required sections are absent, and gate the result through exploration, architecture, migration-safety, risk, and readiness checks.If you cannot author a credible migration body because compatibility or fallback is still too vague, say so directly and redirect to $canon-architecture, $canon-system-shaping, or $canon-change instead of submitting an empty brief.
Author the packet as a migration lead comparing rollout paths for operators, reviewers, and approvers.
canon run --mode migration --system-context existing --risk <RISK> --zone <ZONE> [--owner <OWNER>] (--input <INPUT_PATH> | --input-text <INPUT_TEXT>)gate:risk approval first; once approved, the packet can complete without a separate execution-resume path.canon publish <RUN_ID> keeps publishing only the visible migration packet by default, even when the packet is recommendation-only.canon publish <RUN_ID> --adr when the operator wants one durable ADR at tech-docs/adr/ADR-XXXX-<slug>.md derived from the governed migration packet.--to changes the packet destination only; the ADR registry remains fixed under tech-docs/adr/.## Missing Authored Body, missing-context markers, or downgrade language, preserve those honesty signals when describing the ADR output.continue, resume, or same run, or supplies a RUN_ID.$canon-status for the compact summary and canon inspect refinement --run <RUN_ID> when the user needs the advisory continuation state Canon persisted for the run..canon/runs/<RUN_ID>/artifacts/migration/working-brief.md exists for this mode unless Canon emits that surface in a future slice.recommendation-only).canon/artifacts/<RUN_ID>/migration/ paths when Canon emitted themAction Chips: when the host supports chips, preserve the full objects Canon already returned in mode_result.action_chips; do not collapse them to label-only bullets. In text-only hosts, render each chip's text_fallback instead. Must be the last element of the response; do not place any text after this section.canon is missing, show the supported install path from README..canon/ is missing, point to $canon-init.$canon-architecture or $canon-system-shaping instead of guessing compatibility or fallback detail.$canon-change instead of pretending the migration packet is the execution plan.AwaitingApproval, surface the exact approval target Canon produced and keep the packet recommendation-only.source-target-map.md, compatibility-matrix.md, sequencing-plan.md, fallback-plan.md, and migration-verification-report.md.$canon-inspect-artifacts first.$canon-inspect-evidence when the user needs lineage, approvals, or policy rationale.$canon-approve when a systemic or red-zone migration packet is ready for explicit risk approval.$canon-change when the next real step is bounded live-codebase change planning.$canon-architecture when the real gap is still compatibility or boundary design rather than rollout sequencing.$canon-status$canon-inspect-artifacts$canon-inspect-evidence$canon-approve$canon-change$canon-architecturecanon-input/migration.mdcanon-input/migration/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.