一键导入
checkpoint
Capture a complete, durable checkpoint of the current PRP work so a fresh context window can resume with zero loss via /continue-prp.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture a complete, durable checkpoint of the current PRP work so a fresh context window can resume with zero loss via /continue-prp.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Safely upgrade this Cortex repo to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Safely upgrade this Cortex workspace to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Maintainer auto-check for the Cortex source repo. Invoke this PROACTIVELY and automatically WHENEVER files under templates/ have been added, edited, deleted, renamed, or restructured — and before committing template changes — to classify the change as ADDITIVE (handled by the runner's reconciliation) or MIGRATION-NEEDED (breaking/structural), and scaffold a migrations/NNN-*.md if one is required. Do not wait to be asked. For use INSIDE the template source repo only; it is never shipped to user projects.
Run a full project health check across context-engineering, the knowledge base, and docs to surface gaps, drift, and inconsistencies.
Validate implementation progress of a PRP against its original requirements, auditing completed, current, and remaining phases.
Validate a generated PRP structure against its source requirements to catch gaps and misalignments before execution begins.
| name | checkpoint |
| description | Capture a complete, durable checkpoint of the current PRP work so a fresh context window can resume with zero loss via /continue-prp. |
| argument-hint | <prp-path> |
| disable-model-invocation | true |
Capture a complete, durable checkpoint of the CURRENT work on this PRP so a brand-new context window — one with NONE of this conversation — can resume with zero loss by running:
/continue-prp $ARGUMENTS
You (the agent) have the full conversation context right now. That context is about to be lost. Your one job in this command: write everything that matters into the PRP's durable tracking docs + the project status, so the next agent picks up exactly where we are — same next action, same decisions, same gotchas — without re-deriving anything.
If
$ARGUMENTSis empty, infer the active PRP from this conversation (the PRP folder/file you've been working in) and use that path. State which path you chose.
A checkpoint is a handoff to a stranger. After writing it, ask yourself: "If I forgot this entire conversation and only had these files, could I continue flawlessly?" If not, the checkpoint is incomplete — add what's missing. Be specific and concrete over tidy.
Do NOT end the work, write a final summary, or change git state. This is a pause, not a
completion. Do NOT paste secrets (tokens/DSNs/keys) — reference where they live
(.env.local, CI/host env) instead.
Look at $ARGUMENTS:
.md / is a single file → Simple PRP (built from context-engineering/PRPs/templates/prp_base.md) → go to STEP 3B.context-engineering/PRPs/templates/prp_complex.md) → go to STEP 3A.Before touching any file, mentally gather the following. Pull from the live conversation, not just what's already written down — the whole point is to durably capture what's only in your head:
Keep a running todo (TodoWrite) if helpful, but remember: the todo list does NOT survive the window — only the files do. Everything above must land in files.
$ARGUMENTS/_STATUS.md → current phase number/name + status.$ARGUMENTS/phase-N-<slug>/). Its TEST-CASES.md,
COMPLETED.md, FIXES.md are where most of the checkpoint goes.COMPLETED.md — append any newly completed tasks/sub-work + the full set of files
created/modified this session (so the eventual HANDOFF/diff misses nothing).FIXES.md — log every fix from STEP 2 #3 not already present (symptom → root cause →
solution → files table → verification). Use the existing fix-numbering.TEST-CASES.md — update the Test Execution Tracker rows (pass/fail/in-progress + concrete
notes), then write/replace a ## 🔁 RESUME STATE block at the end containing:
— <absolute date>, checkpoint N),/continue-prp $ARGUMENTS._STATUS.mdCurrent Phase, Status (keep it the in-progress phase — do NOT advance; a checkpoint is
mid-phase), Last Updated (absolute date + "checkpoint N"), and the Quick Status list. Point the
status text at the phase TEST-CASES.md → 🔁 RESUME STATE.context-engineering/_STATUS.md: refresh this feature's In Progress entry
(Phase/Status/Last Updated + a one-paragraph current-state summary) and the top-of-file
"Last Updated" line (prepend the new summary; demote the previous one to **Prior:**).→ go to STEP 4.
A simple PRP is one .md file. The checkpoint lives inside that file.
Ensure a status header exists just under the title; create it if missing:
**Status:** In Progress — checkpoint <N> (<absolute date>)
**Feature Input:** {keep existing if present}
**Last Updated:** <absolute date>
**Resume:** see "🔁 CHECKPOINT — RESUME STATE" at the bottom of this file, then `/continue-prp <this file path>`
Mark each row pass/fail/in-progress with concrete notes (same rigor as STEP 2 #1).
Insert or replace a single section titled exactly ## 🔁 CHECKPOINT — RESUME STATE, containing
everything from STEP 2:
## 🔁 CHECKPOINT — RESUME STATE (<absolute date>, checkpoint <N>)
### Done & verified this session
- ...(specific, with evidence)...
### Fixes applied this session
- <symptom> → <root cause> → <solution> → files: `...`; verify by: ...
### Decisions (do not re-litigate)
- <user decision> (<date>) — intentional.
### NEXT ACTION (do this first)
- <the single, self-contained next step + the result that confirms success>
### Remaining work (ordered)
1. ...
### Environment / gotchas / IDs to reuse
- ...(tool quirks, account/test IDs, where secrets live, validation status: typecheck/lint/build/tests)...
### To continue
Run `/continue-prp <this file path>`.
Preserve history: if a prior checkpoint section exists, keep its essential not-yet-superseded facts (demote to a short "prior checkpoint" note) — don't blow away still-relevant context.
If this simple PRP appears in context-engineering/_STATUS.md (In Progress or Pending), refresh
its line + the top "Last Updated". If it's not tracked there, skip (don't invent an entry unless
the work is clearly multi-session — then add a brief In-Progress entry).
→ go to STEP 4.
========================================
CHECKPOINT SAVED — {complex|simple} PRP
========================================
Path: $ARGUMENTS
Wrote/updated:
- {list the files you touched}
Next action captured: {one-line summary of the NEXT ACTION}
You can close this window now. To resume in a fresh window:
/continue-prp $ARGUMENTS
========================================
.env.local / host env instead.