Agent Skills › daymade/claude-code-skills › continue-codex-work

continue-codex-work

GitHub

接管中断的 Codex 会话,通过验证历史记录恢复未完成任务。适用于提供 Session ID、提示中断/合并或要求接手等场景。

daymade-claude-code/continue-codex-work/SKILL.md daymade/claude-code-skills

Trigger Scenarios

用户指定 Codex Session ID 要求继续 Codex 运行中断、融合或卡住时 要求在不使用 codex resume 的情况下接手任务

Install

npx skills add daymade/claude-code-skills --skill continue-codex-work -g -y
More Options

Non-standard path

npx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-claude-code/continue-codex-work -g -y

Use without installing

npx skills use daymade/claude-code-skills@continue-codex-work

指定 Agent (Claude Code)

npx skills add daymade/claude-code-skills --skill continue-codex-work -a claude-code -g -y

安装 repo 全部 skill

npx skills add daymade/claude-code-skills --all -g -y

预览 repo 内 skill

npx skills add daymade/claude-code-skills --list

SKILL.md

Frontmatter
{
    "name": "continue-codex-work",
    "description": "Continues interrupted Codex work only after read-codex-history verifies rollout identity and fork\/compaction lineage — restores the original outcome, unfulfilled requests, and the next action. Use when given a Codex Session ID, asked to pick up a prior Codex run, told Codex was interrupted, fused, compacted or stuck, or asked to take over without `codex resume`. Not for a conversation Codex already natively resumed.",
    "argument-hint": "[session-id]"
}

Continue Codex Work

Continue means finish the still-unfulfilled business task. Reading history is a mandatory evidence phase, not the deliverable.

Entry gate: external takeover, not native resume

Current situation Action
Codex itself natively resumed this same conversation, and the restored turns or compaction state are already in the current context Do not invoke this Skill or read-codex-history. Continue directly from the retained context, then verify current workspace and external state before changing anything.
A new/different Agent context must take over an earlier Codex rollout, or the user identifies another Session ID whose continuity is not already present here Use this Skill. Step 1's verified history receipt remains mandatory.

A restart is not enough to choose the second row. The deciding fact is whether the current conversation is the host-restored continuation of the same Session, not whether a Codex process was restarted.

Step 1: Obtain a verified Codex read receipt

Invoke daymade-claude-code:read-codex-history for the exact Session ID and request the full chronological Session evidence briefing. If the ID is unknown, use that Skill's inventory or bounded search first.

The receipt must state:

  • prompt-ledger, state-index, and rollout sources used;
  • selected session_meta.id and whether it exactly matches the requested ID;
  • root-to-child fork lineage and exact inherited byte boundaries;
  • selected and inherited chronological user/assistant turns;
  • compacted context, latest plan, end reason, unresolved calls, files, and gaps.

Fail closed on a mismatched rollout, missing child rollout, ambiguous physical copy, missing parent, broken byte boundary, or continuation cue with no recoverable parent objective. Never continue from the “closest” file.

Step 2: Rebuild the continuation contract

Before the first project-changing tool call, fill this internal contract from the read receipt and current-state verification:

Field Evidence required
Original business outcome Earliest still-governing human request across inherited and selected timelines
Current explicit request Latest human request that is not only a continuation cue
Already completed Current independent verification, not old Agent narration
Still unfulfilled Requested result without completion evidence
User corrections / do-not-repeat Human messages rejecting a route, assumption, or output
Proven assets and successful routes Existing code, documents, Skills, outputs, commands, and prior successful experiments
Next direct action One action whose success visibly reduces the unfulfilled business result

If the child contains only “继续,” “continue,” or /fork, inherit the task from the verified parent snapshot. A local cue is not a standalone goal.

Step 3: Reconcile with current reality

  1. Read the current target project's AGENTS.md/CLAUDE.md.
  2. Confirm cwd, branch, working tree, relevant files, and external state.
  3. Verify that recorded patches, commits, pushes, downloads, jobs, or Agent outputs actually landed; rollouts record attempted actions too.
  4. Retrieve and reuse prior successful assets before creating a replacement.
  5. For transient failures such as usage limits or service errors, verify whether the original process later resumed and finished before duplicating work.

Step 4: Execute the business task

Perform the next direct action and close its feedback loop. Reviews, Skill work, infrastructure cleanup, format polish, and extra safety machinery remain subordinate unless they directly unblock the original result or the user explicitly promoted them.

Before every material branch, ask: “If this succeeds, which original unfulfilled result becomes smaller?” No answer means the branch is not continuation work.

Do not run codex resume or codex --continue. Do not overwrite unrelated changes.

Step 5: Report against the contract

  • Recovered goal: exact Session lineage and original business outcome.
  • Executed: actions and independent verification.
  • Now complete: contract rows actually closed.
  • Remaining: unresolved rows and exact blockers.
  • Not repeated: relevant rejected routes deliberately avoided.

Context recovery, parser success, a green review, or a finished subprocess is not by itself successful continuation. The user's business result is the completion unit.

Version History

  • c6903aa Current 2026-09-28 12:34

    精简技能描述以符合长度规范,并优化触发条件说明。

  • 98c21cf 2026-08-28 22:48

    修复跳过原生同会话恢复的逻辑,确保跨上下文接管时保留历史恢复,而宿主恢复的对话可直接继续。

  • e00a2ec 2026-08-20 11:26

Same Skill Collection

auto-repo-setup/SKILL.md
bilibili-source/SKILL.md
capture-screen/SKILL.md
cli-demo-generator/SKILL.md
cloudflare-troubleshooting/SKILL.md
codex-image-gallery/SKILL.md
competitors-analysis/SKILL.md
data-visualization-discipline/SKILL.md
daymade-audio/asr-transcribe-to-text/SKILL.md
daymade-audio/audio-router/SKILL.md
daymade-audio/meeting-minutes-taker/SKILL.md
daymade-audio/stepfun-asr/SKILL.md
daymade-audio/stepfun-tts/SKILL.md
daymade-audio/transcript-fixer/SKILL.md
daymade-claude-code/agent-web-search-setup/SKILL.md
daymade-claude-code/claude-code-hooks/SKILL.md
daymade-claude-code/claude-code-ops-router/SKILL.md
daymade-claude-code/claude-code-ping-start-5h-quota/SKILL.md
daymade-claude-code/claude-export-txt-better/SKILL.md
daymade-claude-code/claude-skills-troubleshooting/SKILL.md
daymade-claude-code/claude-switch-models-setup/SKILL.md
daymade-claude-code/claude-usage-analyst/SKILL.md
daymade-claude-code/continue-claude-code-work/SKILL.md
daymade-claude-code/continue-claude-work/SKILL.md
daymade-claude-code/lark-cli-router/SKILL.md
daymade-claude-code/local-conversation-history/SKILL.md
daymade-claude-code/marketplace-dev/SKILL.md
daymade-claude-code/prior-work-retrieval/SKILL.md
daymade-claude-code/read-claude-code-history/SKILL.md
daymade-claude-code/read-claude-web-conversation/SKILL.md
daymade-claude-code/read-codex-history/SKILL.md
daymade-claude-code/statusline-generator/SKILL.md
daymade-claude-code/tech-selection/SKILL.md
daymade-claude-code/terminal-screenshot/SKILL.md
daymade-codex/codex-1m-context-window-setup/SKILL.md
daymade-codex/codex-image-gallery/SKILL.md
daymade-codex/design-style-picker/SKILL.md
daymade-codex/interaction-design-board/SKILL.md
daymade-codex/local-codex/SKILL.md
daymade-docs/docs-router/SKILL.md
daymade-docs/docx-creator/SKILL.md
daymade-docs/excel-automation/SKILL.md
daymade-docs/mermaid-tools/SKILL.md
daymade-docs/pdf-creator/SKILL.md
daymade-docs/ppt-creator/SKILL.md
daymade-docs/read-docx-review/SKILL.md
daymade-financial/ashare-news-fetcher/SKILL.md
daymade-financial/benchmark-due-diligence/SKILL.md
daymade-financial/bigdata-skill/SKILL.md

Metadata

Files
0
Version
c6903aa
Hash
fd8f136a
Indexed
2026-08-20 11:26

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 02:01
浙ICP备14020137号-1