continue-codex-work
Continues interrupted OpenAI Codex work only after read-codex-history verifies the selected rollout identity and complete fork/compaction lineage. Use when the user provides a Codex Session ID, asks to pick up a prior Codex run, says Codex was interrupted, fused, compacted, or stuck, or wants the current Agent to take over without `codex resume`. Restores the original business outcome, unfulfilled requests, user corrections, proven prior assets, current workspace truth, and the next action that directly advances the goal. Do not use when Codex itself natively resumed this same conversation and its prior turns or compaction state are already present in the current context.
1How It Works & Mechanism
Triage at entry gate: If Codex natively resumed and brought the turns/compaction state of the same session back into the current context, neither this skill nor read-codex-history should be called; proceed directly based on the preserved context and verify the workspace. Use this skill only when a new/different agent context must take over an old rollout or when the user provides a different Session ID.
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: Enforce a verified Codex read receipt: Call read-codex-history to obtain a full chrono briefing, which must include prompt-ledger/state-index/rollout sources, exact session_meta.id match, root-to-child fork lineage and inherited byte boundaries, selected user/assistant turns, compaction, end reason, pending calls, 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: Reconstruct an isomorphic 7-field continuation contract; when a child session contains only 'continue/fork', inherit tasks from the verified parent snapshot—local cues are not standalone objectives.
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 reality: Inspect AGENTS.md/CLAUDE.md in the target project, check cwd/branch/working tree/external states, and verify whether recorded patch/commit/push/download/job/agent outputs actually landed; for transient failures (usage limit/service error), check if the original process recovered on its own before deciding to redo.
rollouts record attempted actions too.
Step 4: Execution and gates: Next direct action + feedback loop; ask before branching: 'If this succeeds, which original unfulfilled result becomes smaller?'; prohibit codex resume/--continue; do not overwrite unrelated changes.
Do not run `codex resume` or `codex --continue`.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | codex(宿主 CLI,禁止 resume/--continue) |
| skill | read-codex-history(同仓兄弟技能,读本地 Codex 会话库) |
4Recommended Governance & Evidence
- 本地工作目录: File I/O and artifact output: (Executed by the agent as part of normally authorized current project work—the skill itself contains no write directives; read receipt and contract are mandatory before changes)
5Second-Pass Verification
- [ok] 无脚本/无网络/无凭证 — 目录仅 SKILL.md,无任何命令执行/网络/凭证读取指令
- [ok] 引用的兄弟技能存在 — read-codex-history 与 continue-claude-code-work 均在 daymade-claude-code/ 下
- [ok] Entry gate 自洽 — ‘deciding fact is whether current conversation is host-restored continuation of same Session, not whether process restarted’ 前后无矛盾
- [ok] fail-closed 条件有可操作性 — mismatched rollout/missing child/ambiguous copy/missing parent/broken byte boundary 均为可判定条件
- [ok] 不夸大能力 — 宣称只做‘external takeover 续接’,原生 resume 场景被显式排除——与 SKILL 内容一致
6Verdict & Scenarios
5f48ef1a57b0b2b3…