host-fetch
方便在受限沙箱中安全请求外部资源,适合调试与调查场景。
会产生跨边界的网络请求委托,若 host 授权不严可能被利用做数据外泄或 SSRF。
在 box 内无法出网时,把单次 GET/HEAD 请求委托写入 host-bridge,由 host 代为获取。
当沙箱(sbx)虚拟机因出网被封无法直接访问网页时,把一次性的 GET/HEAD 请求委托给宿主机去抓取。箱内写入结构化请求,宿主在人工放行后用 SSRF-safe 的抓取核心去取回内容,箱里通过监控自动拾取结果。特点是只做单次、安全受控的代理抓取,抓到的正文以 artifact 文件回传且不直接内联到宿主上下文,箱端出网限制依然生效。
▸ 展开 SKILL.md 英文原文
From inside an sbx box, delegate a single web GET/HEAD to the host when the box's own egress is blocked (sbx network policy 403 / DNS unreachable). Writes a structured fetch request to `.claude/host-bridge/fetch-req-<box>-<topic>-<seq>.md`, the host grants it with `/host-fetch-grant` (the user-triggered SSRF/injection gate), the host fetches with the SSRF-safe core `scripts/internal/host-fetch.js`, and the box auto-picks up the result via a persistent Monitor. The fetched body is never inlined into host output (the host model must not read attacker-controlled content) — it is always written to an artifact file the box reads over the bind mount. Box egress stays locked down (no `sbx policy allow` is issued) — the host makes the one-off fetch under a human gate. Use when a box hits 403/blocked fetching a URL and needs the host to retrieve it. Mentions: box が 403 で取れない / host で取ってきて / host に fetch を代行 / net fetch delegation.
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-fetch/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/host-fetch/SKILL.md"# host-fetch box (sbx microVM) の中で web からデータを取りたいが、**box の egress が sbx network policy で塞がれていて 403 / 到達不能**なとき、host 側に GET/HEAD 1 本を代理取得させる skill。box は `.claude/host-bridge/fetch-req-<box>-<topic>-<seq>.md` に**構造化 fetch request** を Write し、host で user が `/host-fetch-grant` を叩くと SSRF-safe core (`scripts/internal/host-fetch.js`) が取得して ans を返し、box は persistent Monitor で auto-pickup する。 `/host-ask`(host 事実の調査) の**姉妹 verb**で、こちらは「host の直結 network で 1 URL を取得して返す」action verb。transport は共有 `scripts/internal/host-bridge.sh` を使う。 ## 設計思想 (なぜ policy allow でなく fetch 代行か) box が 403 になる正攻法の恒久 fix は host での `sbx policy allow network <domain>`(box が直接その先へ届くようになる) だが、本 skill は**それをしない**。box egress を絞ったま