host-answer

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

解决容器内无法访问的主机级信息查询问题

▸ 风险提示

会访问主机文件系统与服务,可能暴露或修改敏感信息

这个 Skill 做什么

在主机上处理 box 写入的请求并调查主机可见事实后写回答案文件

在宿主机上读取 box 写过来的 ask 文件,调查请求里需要的宿主机可见事实(比如其他项目、端口占用、mount 外的文件或 host-only 服务),把调查结果写成 paste-ready 的 ans 文件并写入一个 .done 哨兵文件以确保 box 端安全拾取。适合在 host 端代为查询 box 看不到的信息时使用。特别之处是保证答案体写完后再触发完成信号,避免竞态和不完整读取的问题。

▸ 展开 SKILL.md 英文原文

On the host side, read the latest ask file from `.claude/host-bridge/ask-<box-name>-<topic>-<seq>.md` written by a box-internal `/host-ask`, investigate the requested host-side facts (other compose projects, host port occupiers, host fs outside the box mount, host-local services), write a paste-ready answer to `.claude/host-bridge/ans-<box-name>-<topic>-<seq>.md`, then touch a done sentinel `ans-<box-name>-<topic>-<seq>.md.done` so the box-side `/host-ask` auto-pickup polling can detect completion race-free (sentinel is created after the ans body write completes, guaranteeing the body is fully flushed when the sentinel appears). Counterpart of `/host-ask` (box-from-host bridge). Use when the user says a box session has written an ask and needs host investigation.

开发编程主机桥接主机调查答案回写通用
0
Stars
15
Forks
17
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-answer/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-answer/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# host-answer

box 内の `/host-ask` が `.claude/host-bridge/ask-<box-name>-<topic>-<seq>.md` に書いた問い合わせを host で読み、host 側で調査して `.claude/host-bridge/ans-<box-name>-<topic>-<seq>.md` に paste-ready answer を Write する skill。

`/host-ask` の counterpart (box-from-host bridge)。box 内では見えない host 情報 (他 project の compose / 既存 container / port 占有者 / mount 外の host fs / host-local service) を host claude が代理調査して box に返す経路。

## 前提条件

- **host 側で実行** する skill (box 内では意味がない)
- repo root (もしくは `.claude/host-bridge/` が見える cwd) で起動
- 対応する box session が同 repo 上で動いており、`/host-ask` で ask file を Write 済み

## 使い方

引数 = `<box-name> [<topic>]`

- `<box-name>`: box の `$SANDBOX_VM_ID` env と同値 (例: `coding-agent-playbook-4632ea`)
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有