From acdc
Use when the user asks Claude to continue, resume, or take over work from a Codex session by session name or session id (UUID or UUID prefix). Examples include "continue the codex session called feature-x" or "/resume-codex-session 019dc08e". Do not use for ordinary Claude resume commands or when the user only asks about Claude's own session history.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acdc:resume-codex-sessionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When Claude takes over work from a Codex session, reconstruct the current state by reading both the Codex storage and the actual working directory. Do not hand off based on only the last few conversation lines.
When Claude takes over work from a Codex session, reconstruct the current state by reading both the Codex storage and the actual working directory. Do not hand off based on only the last few conversation lines.
Determine the query.
feature-x) or a session id (UUID or UUID prefix, e.g. 019dc08e). Optionally a working-directory or project hint from the user.codex feature-x means feature-x.Find session candidates.
uv run python <skill-dir>/scripts/find_codex_session.py <session-name-or-id>
uv run python <skill-dir>/scripts/find_codex_session.py <session-name-or-id> --cwd-hint <expected-path>
uv run python <skill-dir>/scripts/find_codex_session.py <session-name-or-id> --json # structured output for programmatic picking
uv is missing, fall back to python3, then python. If none are available, tell the user "Python 3 required — install from python.org" and stop.~/.codex/session_index.jsonl and rglob ~/.codex/sessions/**/*<session-id>*.jsonl.--help for the full flag reference (precedence rules, score weights, edge cases).Pick the most likely candidate.
updated_at.Locate the rollout and auxiliary files.
SESSION_ID=<found-session-id>
find ~/.codex/sessions -name "*${SESSION_ID}*.jsonl" -print
find ~/.codex/shell_snapshots -name "*${SESSION_ID}*" -print
ROLLOUT=<found-rollout-jsonl>
uv run python <skill-dir>/scripts/summarize_codex_rollout.py "$ROLLOUT" --tail 0 --max-events 40 # head: goal, session_meta, initial turns
uv run python <skill-dir>/scripts/summarize_codex_rollout.py "$ROLLOUT" --tail 120 # tail: recent state
uv run python <skill-dir>/scripts/summarize_codex_rollout.py "$ROLLOUT" --from-line <N> --max-events 80 # pivot: specific error/rename line
--limit caps chars per event (default 700). If a tool output looks truncated mid-diff or mid-error, re-run the same window with --limit 2000 to see it in full.rg -n --only-matching for line numbers and short matches, then open only small surrounding windows. Never print entire JSONL matches.session_meta or the latest turn_context), run:git status --short
git log --oneline -15
git worktree list
Before changing any files, build a short handoff summary:
Only resume work from a verified state.
CLAUDE.md, AGENTS.md, or this skill.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub awithi-co/acdc --plugin acdc