一键导入
forge-resume
Use when a user asks to continue, resume, pick up prior loop work, or inspect previous loop state
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a user asks to continue, resume, pick up prior loop work, or inspect previous loop state
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when executing plans through specialized subagents with evidence-gated review loops
Use when work needs an explicit delivery contract, iterative repair, bounded autonomy, or resume-safe state
Use when work needs codebase orientation, impact analysis, existing-pattern discovery, or risk scouting before planning or implementation
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Use when implementation direction depends on unresolved product/design choices, multiple viable approaches, or owner approval on a design.
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
| name | forge:resume |
| hidden | true |
| description | Use when a user asks to continue, resume, pick up prior loop work, or inspect previous loop state |
A loop's state lives in forge-check checkpoints, not chat memory. When a new
session needs to continue work a previous session started, reconstruct the state
from the checkpoint and resume from where it stopped.
Core principle: Resume is evidence-driven — you rebuild state from the written checkpoint, never from your recollection of what the prior session "probably" did.
Run forge:resume when the user says anything like:
If the user gives a brand-new task with no resume signal, do NOT run resume — start a fresh loop instead. Resume is opt-in, never automatic on every session.
Find the latest checkpoint:
forge-check(operation="latest")
Read the returned file. The meaningful content is the JSON object in the
details body (per forge:loop Memory Checkpoints schema).
Parse the schema. Extract and restate to the user:
goal — what the loop is deliveringrubric — each criterion and its current status (pending/pass/fail/blocked)discovery — files, impact surface, risk already mappedbudget — max_fix_iterations, used_fix_iterations, remainingroute / autonomy_policy / max_goal_steps — preserve Forge's outer Goal policy when presentcurrent_task and next_action — where it stoppedblockers and residual_risksReconstruct and confirm. Present the rebuilt state in 5-8 lines. For a
checkpoint with route: goal whose autonomy_policy permits continuation,
the user's explicit resume signal is already the continuation approval: do not
ask a duplicate "continue?" question. Otherwise ask via forge:ask whether to
continue from next_action. If no user is available, continue from
next_action directly (autonomous override).
Resume the loop. Hand the rebuilt state into forge:loop as a
"spec/plan already exists" case (per loop's "When To Start A Loop" and "Loop Contract" sections): Goal and Rubric
come from the checkpoint, Budget resumes with the current used count, and
the next step is next_action. Do NOT re-run discovery or re-plan unless
the checkpoint's discovery is stale (files changed) or next_action says to.
Handle missing or malformed checkpoints. If latest returns nothing, say
so and start fresh. If the JSON is missing fields the loop needs (goal, rubric,
next_action), state exactly which fields are missing before proceeding — do
not invent them. Treat missing next_action as "blocked: resume context
incomplete" and ask the user.
used carries over, so a loop near exhaustion
stays near exhaustion.route: goal policy and its remaining max_goal_steps;
it does not silently convert Goal into unbounded background execution.forge:verify per the loop.forge-check checkpoints (written by forge:loop).forge:loop (as a "spec already exists" resume case).forge:reflect (which writes a retrospective after a loop ends;
resume reads the running state, reflect reads the closing one).If another skill has a stricter rule, follow the stricter rule.