box-session-resume-grant
为需要人工审查授权的会话恢复流程提供受控执行路径。
会运行 host 侧脚本并注入/执行会话数据,存在执行命令与权限风险。
在 host 端执行 box 内 /box-session-resume 写入的 resume 请求,注入 transcript 并回写结果。
在宿主机上执行 box 发来的 resume 请求:读 host-bridge 下的请求文件,人工核对后运行内部脚本把 transcript 注入目标,并把结果写回、打上完成标记。用在 box→host 委托恢复会话时,由宿主端的人来放行与注入。
▸ 展开 SKILL.md 英文原文
On the host side, grant (execute) a box session resume request that a box-internal /box-session-resume wrote to .claude/host-bridge/resume-req-<box-name>-<seq>.md. Reads the request, displays the operation (which session → which dest) for the human to eyeball, runs scripts/internal/box-session-resume.sh on the host (where sbx can reach the boxes) to inject the transcript into the destination, then writes the result to resume-ans-<box-name>-<seq>.md and touches a done sentinel so the box-side Monitor auto-picks it up. The host-side, user-triggered half of the box→host resume delegation — the human running this is the injection gate. Counterpart of /box-session-resume's box-delegate mode (mirrors /host-answer, but executes a state change rather than read-only investigation). Use when the user says a box wrote a resume request and wants the host to grant it, mentions resume grant / box の resume 依頼を実行 / resume を host で代行.
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-resume-grant/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-resume-grant/SKILL.md"# box-session-resume-grant box 内の `/box-session-resume` (box-delegate モード) が `.claude/host-bridge/resume-req-<box-name>-<seq>.md` に書いた resume 依頼を、host 側で**実行 (grant)** する skill。host で `scripts/internal/box-session-resume.sh` を走らせて transcript を dest に inject し、結果を `resume-ans-<box-name>-<seq>.md` に書いて done sentinel を touch する (box 側 Monitor が auto-pickup)。 `/box-session-resume` の box-delegate モードの **host 側カウンターパート**。`/host-ask`↔`/host-answer` と同じ bridge 機構だが、**read-only 調査の `/host-answer` と違い状態変更 (transcript を dest box に書く) を実行する**。そのため **human がこの skill を能動 invoke すること自体が injection gate** で、実行前に依頼内容を表示して human が異常を見て中断できるようにする。 ## 前提条件 - **host 側で実行** (box 内では sbx が無く意味がない)。`echo $SANDBO