Create, list, and load multi-session chain links that capture work context for later continuation. Use when you want to save current progress, resume a project from a prior session, or inspect chain history. Triggers: chain link, chain load, chain list, save context, resume work, continue later, session handoff.
Capture durable, structured summaries of work so a later session can resume without re-discovery. Provide three subcommands under one skill: link, load, and list.
Invoke with a subcommand:
$chain-system link <chain-name>
$chain-system load <chain-name>
$chain-system list
If the chain name is missing for link or load, ask the user for it.
Default to .claude/chains to remain compatible with the existing Claude chain-system plugin. If the user explicitly wants Codex-only storage, switch to .codex/chains and confirm.
linkCreate a new chain link summarizing the current work.
Steps:
mkdir -p .claude/chains/<chain-name>.date '+%Y-%m-%d-%H%M'..claude/chains/<chain-name>/<timestamp>-<slug>.mdUse the same file format each time so load can extract summary and next step reliably.
loadLoad the most recent chain link for a named chain.
Steps:
ls .claude/chains/<chain-name>/*.md 2>/dev/null | sort -r | head -1list.ls .claude/chains/<chain-name>/*.md 2>/dev/null | sort -r | head -5listList all chains with counts and most recent link.
Steps:
ls -d .claude/chains/*/ 2>/dev/nullls .claude/chains/<chain-name>/*.md 2>/dev/null | wc -l)ls .claude/chains/<chain-name>/*.md 2>/dev/null | sort -r | head -1)link to start one.