Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add protect-my-hair/nucleus-marketplace --skill host-tool-setupgit clone --depth 1 https://github.com/protect-my-hair/nucleus-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/host-tool-setup)<a href="https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/host-tool-setup"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/host-tool-setup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/host-tool-setup"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/host-tool-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01540 |
| Opus 5 | $0.00018 | $0.00770 |
| Sonnet 5 | $0.00007 | $0.00308 |
| Haiku 4.5 | $0.00004 | $0.00154 |
Grade A, and why
host-tool-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Host Tool Setup
用于宿主工具初始化。它独立于 target-repo-setup:目标仓库初始化成功不代表宿主工具已安装或可用;计划已生成,不代表工具已安装。
使用原则
SKILL.md负责路由、边界和人读口径;详细安装依据放在references/tool-installation.md。- 确定性 runtime 只负责
inspect、plan、确认校验、本机状态报告、verify和result.json。 install、configure-mcp、activate、index、rollback只写 guidance-only 报告,指向安装 reference;它们不是自动安装器,不写用户级配置。- 工具缺失时进入安装引导,不把 setup 判成失败。
- 计划已生成不代表工具已安装;确认继续也不代表工具可用。
- guidance-only 报告是中间证据,不是终点;如果宿主工具仍缺失或未验证,当前 agent 不得结束本轮 setup 回复。
- 真实安装、MCP 配置、Serena 初始化 / 激活和 GitNexus 索引由当前 agent 按
references/host-tool-install-session.md与references/tool-installation.md先完成host-tool-plan-review.subagentPreReview并确认材料可提交人工审查,再向用户确认后执行。 - 到达
host-tool-plan-review前,必须按 workflow 的subagentPreReview调度独立 reviewer 子代理;未取得“材料可提交人工审查”预审结论时,不得请求人工确认安装计划。
最短操作顺序
- 运行
inspect,只读检查 PATH、Codex / Claude Code 配置标记和目标仓库证据目录。 - 运行
plan,生成.nucleus/runs/<workflowRunId>/host-tool-setup/host-tool-plan.json和host-tool-plan.md。 - 读取
references/host-tool-install-session.md和references/tool-installation.md,根据 inspect 结果判断 GitNexus、Serena、Context7 需要哪种安装或配置引导。 - 如需执行审批后动作,先运行
approval --approval <approval.json>。审批事实必须包含匹配的planHash和精确approvedScopes。 install、configure-mcp、activate、index、rollback会写引导报告;AI 按 reference 引导用户选择安装方式、配置位置和验证步骤。- 如果
summary.md或result.json仍显示缺工具,当前 agent 必须先完成host-tool-plan-review.subagentPreReview并确认材料可提交人工审查,再继续安装确认和执行;不能把报告路径交给用户后结束。 - 用户确认后,由当前 agent 执行安装、用户级配置、Serena 初始化 / 激活、GitNexus 索引等动作;该确认前必须已完成
host-tool-plan-review.subagentPreReview并确认材料可提交人工审查。 - 运行
verify获取真实只读验证结果;缺工具或缺配置证据时返回 blocked。 - 运行
build-result,先读summary.md,机器事实源是result.json;未通过时继续安装会话,直到 verify 通过或用户明确拒绝。
子命令
运行 python3 scripts/host_tool_setup.py list-subcommands 查看完整能力。
- 真实只读能力:
inspect、plan、verify、build-result。 - 确认门控引导能力:
approval、install、configure-mcp、activate、index、rollback。
审批范围
稳定 scope:
host-tool-install:gitnexushost-tool-install:serenahost-tool-install:context7host-mcp-config:codex:gitnexushost-mcp-config:claude:gitnexushost-mcp-config:codex:serenahost-mcp-config:claude:serenahost-mcp-config:codex:context7host-mcp-config:claude:context7host-tool-activate:serenahost-tool-index:gitnexushost-tool-verify
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 437 B
- assets/codex-hooks.json 843 B
- assets/codex-session-start-hook.py 3.4 KB runs code
- assets/host-tool-plan-template.md 643 B
- references/approval-scopes.md 1.0 KB
- references/codex-entry-hook.md 3.4 KB
- references/host-tool-install-session.md 4.1 KB
- references/human-result.md 1.2 KB
- references/tool-installation.md 8.1 KB
- references/workflow-contract.md 1.6 KB
- scripts/host_tool_setup.py 45 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 78 lines · 37 tokens per session scan A 99eb23c4cf72
host-tool-setup is a skill published in the GitHub repository protect-my-hair/nucleus-marketplace (162 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,540 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…