box-session-context

仓库创建 2026年6月25日最近提交 20 天前SkillHot 收录 20 天前
▸ 精选理由

填补 box‑primary 模式下 host 无法直接读会话记录的空白,便于 HOTL 监控。

▸ 风险提示

会读取容器内会话 transcript,可能暴露敏感对话与数据。

这个 Skill 做什么

从 sbx 容器中提取 Claude Code 会话的 transcript 并在 host 端作为参考上下文呈现。

把运行在 sbx(Docker Sandboxes)箱子里 Claude Code 会话的 transcript 抠出来,放到宿主机当参考上下文查看,常用于 HOTL 监控时通过 statusLine 的 session_id 去读箱内记录。它其实是对内置脚本的轻包装,填补了宿主机级 session-context 读不到箱内 ~/.claude/projects/ 的结构性空白。这样就能在 host 端直接复现和检查箱里发生的对话。

▸ 展开 SKILL.md 英文原文

Pulls a Claude Code session transcript from inside an sbx (Docker Sandboxes) box and presents it as reference context on the host. Use when the host needs to inspect a session that ran inside a box — the typical case is HOTL monitoring where the statusLine of a box-internal session shows a session_id and the host wants to read that session's transcript. A thin wrapper over scripts/internal/box-session-context.sh (leaf-layer skill per rules/skills.md); fills the structural gap that the user-scope session-context skill only reads ~/.claude/projects/ on the host. Use when the user mentions box session, box transcript, HOTL transcript, sbx session, 箱の session, box の中の transcript.

Skill 开发管理会话上下文transcriptsbxClaude Code
0
Stars
15
Forks
17
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-context/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/box-session-context/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# box-session-context

sbx (Docker Sandboxes) の box 内で動いた Claude Code session の transcript jsonl を host に取り出して context として参照する。本リポは **box-primary 運用** で box 内の session が host の `~/.claude/projects/` に現れず、user-scope `session-context` skill (host 専用) では読めない構造的な穴を埋める。CLAUDE.md `## 開発フロー` の「HOTL 監視 (statusLine の session id → host から transcript)」がまさに本 skill の用途。

`scripts/internal/box-session-context.sh` を呼ぶ薄い wrapper (leaf 層、[rules/skills.md](../../../rules/skills.md))。A2A のロジックは持たず、transcript 取り出し + 提示のみに集中する。

本 skill は**参照専用**。session の続きを host / 別 box で実行したい (真 resume) なら [`/box-session-resume`](../box-session-resume/SKILL.md) を使う。

## 前提条件

- **host で sbx が使える** (本 skill は host 専用、box の中からは
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有