target-repo-setup

target-repo-setup is a skill for Claude Code, Codex from protect-my-hair/nucleus-marketplace. It costs 41 tokens per session (1,334 once invoked), scanned A, original, MIT.

A setup workflow for preparing a product repository for Nucleus V2, a coding-agent system that uses documented rules, review steps, and evidence files.

In plain words
What is it for?
Running read-only checks, creating setup plans and candidate files, and—after approval—adding Nucleus rules and default specification templates.
Why use it?
It identifies repository problems and keeps setup changes from being applied before the required reviews and approvals.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the nucleus plugin — 27 skills, 1 agent, 1 hook shipped together

Good fit Running read-only checks, creating setup plans and candidate files, and—after approval—adding Nucleus rules and default specification templates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/protect-my-hair/nucleus-marketplace/target-repo-setup
Install

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.

Any agent
npx skills add protect-my-hair/nucleus-marketplace --skill target-repo-setup
Clone the repo
git clone --depth 1 https://github.com/protect-my-hair/nucleus-marketplace

Made for: Claude Code, Codex.

Or install nucleus, the plugin that ships this one along with the rest of its 27 skills, 1 agent, 1 hook.

Wrote 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.

agentmods badge for target-repo-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/target-repo-setup/github.svg)](https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/target-repo-setup)
Your own site
<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.

agentmods 80×15 button for target-repo-setup

Your own site · 80×15
<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>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 6bd67a31e782, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/target_repo_setup.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/nucleus/skills/target-repo-setup/SKILL.md · 68 lines

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 保持英文机器契约。

最短操作顺序

  1. 执行目标仓库只读检查(run-preflight),原始报告写到目标仓库外部。
  2. 归一化只读检查结果(normalize-preflight);未审批时只写 .nucleus/runs/<workflowRunId>/**
  3. 生成初始化计划、规则块候选差异、docs/specs/** 规范模板候选和模板候选产物(build-plancheck-boundarybuild-candidates)。
  4. 生成运行结果包(build-result):先读 .nucleus/runs/<workflowRunId>/summary.md,机器事实源仍是 .nucleus/runs/<workflowRunId>/result.json
  5. 缺少人工审批事实时停在 NEEDS_HUMAN_REVIEW;只有审批事实有效时,才能写 AGENTS.md 的 Nucleus 管理规则块、允许目录和缺失的默认 docs/specs/** 规范模板。
  6. 正式特性/测试骨架不由初始化步骤默认选择路径;必须由目标仓库特性树评审给出明确目标路径(targetPath)后,才允许单独执行提升命令。
  7. 如需检查、安装、配置或激活宿主工具,单独使用 $host-tool-setup;本 Skill 的成功不代表宿主工具可用。

对人交付口径

运行结束后必须先读 .nucleus/runs/<workflowRunId>/summary.mdresult.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-preflightnormalize-preflightbuild-plancheck-boundarybuild-candidatesbuild-result
  • 审批后初始化写入:resolve-approvalwrite-managed-blockinit-assets
  • 评审后正式写入:promote-feature-skeletonpromote-test-skeleton

边界

  • 目标是目标产品仓库,不是 Nucleus 插件仓库。
  • SKILL.mdscripts/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/**。命中时登记风险并阻塞确认。

Read the full file on GitHub · 68 lines

Changes

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.

  1. 12d ago First seen · 68 lines · 41 tokens per session scan A 6bd67a31e782

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

microsoft/ai-agents-for-beginners · 200 tokens

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…

vercel/next.js · 95 tokens

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.

microsoft/vscode · 53 tokens

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…

microsoft/vscode · 71 tokens

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…

vercel/next.js · 83 tokens