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 test-generation-executiongit 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/test-generation-execution)<a href="https://agentmods.dev/skills/protect-my-hair/nucleus-marketplace/test-generation-execution"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/test-generation-execution/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/test-generation-execution"><img src="https://agentmods.dev/badge/skills/protect-my-hair/nucleus-marketplace/test-generation-execution.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.01372 |
| Opus 5 | $0.00018 | $0.00686 |
| Sonnet 5 | $0.00007 | $0.00274 |
| Haiku 4.5 | $0.00004 | $0.00137 |
Grade A, and why
test-generation-execution 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 — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Generation and Execution
前置:使用本 Skill 前,先按
using-nucleus完成 Nucleus 入口识别(Claude Code 会话由插件 SessionStart hook 自动注入该纪律)。
本 Skill 用于 Nucleus V2 的测试资产生成与测试执行 baseline。它安装在 Claude Code、Codex 等 coding agent 内部使用,不是 PMS 后端,也不是独立服务。
核心原则
测试资产写入和测试命令执行必须先有明确人工审批事实;approval JSON、测试报告和 result package 只能记录证据,不能替代宿主任务、人工审批或质量放行。
缺少 test-asset-write-approval 明确审批事实,不得写正式 tests/**。
缺少 test-command 明确审批事实,不得执行任何测试命令。
请求测试资产写入审批或测试命令审批前,必须先按对应 subagentPreReview 调度独立 reviewer 子代理;未取得“材料可提交人工审查”预审结论时,不得请求人工审批。
测试报告、summary 或 result 不能替代测试资产审批、测试命令审批、人工 review、缺陷创建、PR/MR 审查、合入或发布事实。
Checklist
启动本 Skill 后,必须先为以下每一项创建宿主 todo/task,并按顺序执行;Codex 使用计划 / 任务工具,Claude Code 使用 TodoWrite 或等价宿主 todo。每完成、阻塞、等待审批或需要复核一项,都必须逐项更新状态。
- 读取测试上下文:读取
.nucleus/context/<workflowRunId>.json、primary feature 和 feature development plan;缺关键输入时ALERT_AND_BLOCK。 - 创建宿主任务包:把本 checklist 同步成当前会话的宿主 todo/task;未同步前不得生成测试资产或执行命令。
- 生成测试资产候选:只生成
test-asset-candidate.*,不得直接写正式tests/**。 - 呈现候选并等待写入审批:向用户或 PMS 呈现 planned test paths、归属特性和变更范围;缺
test-asset-write-approval时 STOP。 - 校验测试归属:确认候选和审批覆盖所有 planned test paths,并校验
Nucleus.featurePath归属。 - 呈现测试命令并等待审批:说明 unit / api / integration baseline 命令、cwd 和 argv;缺
test-command时 STOP。 - 执行 baseline 测试:只执行已审批且命中 allowlist 的测试命令,并写
.nucleus/tests/<workflowRunId>/**report。 - 写入结果证据:构建
.nucleus/runs/<workflowRunId>/result.json;测试报告和 result 不能替代宿主任务、人工审批或质量放行。
边界
- 只支持
unit、api、integration三类 baseline 测试。 generate写正式tests/**前必须读取test-asset-write-approval.json,且 approval 覆盖所有 planned test paths。run只读取test-command.json作为 approval fact,命令必须命中 baseline test runner allowlist,并使用shell=False执行。- 测试报告只写
.nucleus/tests/<workflowRunId>/**。 - result package 只写
.nucleus/runs/<workflowRunId>/result.json。 - 失败或阻塞时
defectArtifacts=[],不得创建缺陷或写docs/requirement/**/defects/**。 - 不 commit、push、创建 PR/MR、merge、release。
- UI/E2E/Playwright 真实执行不属于 baseline。
What ships with it
9 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 888 B
- assets/nucleus-test-asset-candidate.schema.json 5.2 KB
- assets/nucleus-test-run-report.schema.json 4.3 KB
- assets/test-asset-candidate-template.json 1.0 KB
- assets/test-asset-candidate-template.md 455 B
- references/blocker-matrix.md 980 B
- references/report-schema.md 639 B
- references/test-boundary.md 827 B
- scripts/test_generation_execution.py 44 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 · 100 lines · 37 tokens per session scan A 81cb5ba91c1e
test-generation-execution 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,372 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
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
nw-fp-clojure
Clojure language-specific patterns, data-first modeling, REPL-driven development, and spec.
mobiai-ios-testing
Use when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.
junit-5-skill
Generates production-grade JUnit 5 unit and integration tests in Java. Covers assertions, parameterized tests, lifecycle hooks, mocking with Mockito, and nested tests. Use when user mentions "JUnit", "JUnit 5", "@Test", "assertEquals", "Assertions", "Java unit test". Triggers on: "JUnit", "@Test", "assertEquals"…
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.