box-session-resume
便于在隔离环境与主机间无缝延续开发会话
会修改 ~/.claude 会话数据,可能覆盖或泄露本地会话记录
在 host 与 sbx box 之间迁移并恢复 Claude 会话为同一 session
把在 sbx(Docker Sandbox)里跑的 Claude Code session 搬到宿主或另一个 box 上续跑,使其保持为同一 session。会自动定位 session,把对话 transcript 注入目标机器的 ~/.claude/projects/<encoded>/ 下并打印可执行的 resume 命令;在 box 内会通过 host-bridge 写请求并需要用户授权。适合在不同机器间迁移并继续同一对话历史时使用。
▸ 展开 SKILL.md 英文原文
Moves a Claude Code session that ran inside an sbx (Docker Sandboxes) box so it can be resumed elsewhere — on the host or in another box — as the SAME session via `claude --resume`. Auto-locates where the session currently lives, injects the transcript into the destination's ~/.claude/projects/<encoded>/ under the original UUID name, and prints the resume command. Environment-aware: on the host it runs the resume directly; inside a box (host-only work it cannot do itself) it delegates to the host via the host-bridge by writing a request that the user grants with /box-session-resume-grant. One entry point: paste the session_id, optionally name a destination box (omit = host on the host / the current box inside a box). Companion to box-session-context (reference-only). Replaces the old box-session-handoff. A leaf-layer skill per rules/skills.md wrapping scripts/internal/box-session-resume.sh. Use when the user wants to take over / continue / hand off / resume a box session, mentions box
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-resume/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-resume/SKILL.md"# box-session-resume sbx (Docker Sandboxes) の box 内で動いた Claude Code session を、**別の場所 (host または別 box) で同一 session として `claude --resume` 再開できる状態にする** skill。session の所在を自動特定し、dest の `~/.claude/projects/<encoded>/` に元 UUID 名で transcript を inject して resume コマンドを返す。 `/box-session-context` (参照専用) が「読んで要約して停止」なのに対し、本 skill は**作業継続**: dest で当該 session の続きから動かす。旧 `/box-session-handoff` (host 引き取り専用) を置換し、**入口 1 つで box→host / box→別 box / host→box を賄う**。`scripts/internal/box-session-resume.sh` を駆動する leaf 層 ([rules/skills.md](../../../rules/skills.md))。 ## 2 つの実行モード (環境で自動分岐) 転送の実体は host でしか動かない (sbx で複数 box に到達する必要があるため)。本 skill は**起動環境を検出して**、host なら直接実行・box なら host へ委譲する (`codex-review`↔`a2a-revie