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 target-repo-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/target-repo-setup)<a href="https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/target-repo-setup"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/target-repo-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/target-repo-setup"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/target-repo-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.00041 | $0.01334 |
| Opus 5 | $0.00020 | $0.00667 |
| Sonnet 5 | $0.00008 | $0.00267 |
| Haiku 4.5 | $0.00004 | $0.00133 |
Grade A, and why
target-repo-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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Target Repo Setup
用于目标产品仓库的 Nucleus V2 初始化。它是 Skill package 入口,确定性本地能力由 scripts/target_repo_setup.py 的显式子命令执行。人读说明先使用中文动作;CLI 子命令、JSON 字段和 approval scope 保持英文机器契约。
最短操作顺序
- 执行目标仓库只读检查(
run-preflight),原始报告写到目标仓库外部。 - 归一化只读检查结果(
normalize-preflight);未审批时只写.nucleus/runs/<workflowRunId>/**。 - 生成初始化计划、规则块候选差异、
docs/specs/**规范模板候选和模板候选产物(build-plan、check-boundary、build-candidates)。 - 生成运行结果包(
build-result):先读.nucleus/runs/<workflowRunId>/summary.md,机器事实源仍是.nucleus/runs/<workflowRunId>/result.json。 - 缺少人工审批事实时停在
NEEDS_HUMAN_REVIEW;只有审批事实有效时,才能写AGENTS.md的 Nucleus 管理规则块、允许目录和缺失的默认docs/specs/**规范模板。 - 正式特性/测试骨架不由初始化步骤默认选择路径;必须由目标仓库特性树评审给出明确目标路径(targetPath)后,才允许单独执行提升命令。
- 如需检查、安装、配置或激活宿主工具,单独使用
$host-tool-setup;本 Skill 的成功不代表宿主工具可用。
对人交付口径
运行结束后必须先读 .nucleus/runs/<workflowRunId>/summary.md 和 result.json,再按 references/human-interaction.md 输出结论。最终回复不能只列状态(status)、检查项(gate)或工具状态;必须明确“已经完成什么、还没有做什么、需要用户决定什么、下一步怎么做”。
人审前子代理预审
到达 setup plan review 或 template candidate review 前,必须按 workflow 的 subagentPreReview 调度独立 reviewer 子代理;未取得“材料可提交人工审查”预审结论时,不得请求人工审批或评审通过。
本地子命令
运行 python3 scripts/target_repo_setup.py list-subcommands 查看完整能力。当前实现:
- 只读检查和运行证据:
run-preflight、normalize-preflight、build-plan、check-boundary、build-candidates、build-result。 - 审批后初始化写入:
resolve-approval、write-managed-block、init-assets。 - 评审后正式写入:
promote-feature-skeleton、promote-test-skeleton。
边界
- 目标是目标产品仓库,不是 Nucleus 插件仓库。
SKILL.md、scripts/、references/、assets/是 Claude Code / Codex 共享的 Skill 主体。agents/openai.yaml只是 Codex-only optional metadata;Claude Code 不应依赖它执行本 Skill。- 标准过程路径是
.nucleus/**,测试过程证据路径是.nucleus/tests/**。 - 正式开发规范事实源位于
docs/specs/**;初始化只在init-assets审批后写缺失的默认规则模板,已有文件不覆盖,后续补充必须走目标仓库评审。 - 正式产品能力写入只面向
docs/features/**和tests/**,且必须经过 review gate。 docs/requirement/**是受保护需求事实源;普通 setup 和普通开发不得写。- legacy risk path 只读探测:
.autocode/**、.claude/notepads/**、docs/bugfix/**。命中时登记风险并阻塞确认。
What ships with it
18 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 428 B
- assets/docs-specs-readme-template.md 2.1 KB
- assets/feature-leaf-template.md 609 B
- assets/managed-block-agents.md 1.6 KB
- assets/requirement-boundary-readme-candidate.md 578 B
- assets/spec-rule-design-system-style.md 1.5 KB
- assets/spec-rule-ui-design-conformance.md 1.8 KB
- assets/spec-rule-verification-evidence.md 1.5 KB
- assets/test-attribution-template.md 573 B
- references/approval-and-result.md 1.2 KB
- references/blocker-matrix.md 1.4 KB
- references/human-interaction.md 2.9 KB
- references/managed-block.md 719 B
- references/nucleus-result.schema.json 9.5 KB
- references/repo-asset-boundaries.md 1.1 KB
- references/terminology.md 1.9 KB
- references/workflow-contract.md 1.6 KB
- scripts/target_repo_setup.py 66 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 · 68 lines · 41 tokens per session scan A 6bd67a31e782
target-repo-setup is a skill published in the GitHub repository protect-my-hair/nucleus-marketplace (162 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 1,334 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…