Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/jianchen08/Agent-os-opennpx agentmods add skills/jianchen08/agent-os-open/skill-acceptance-test-authoringWrote 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/jianchen08/agent-os-open/skill-acceptance-test-authoring)<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/skill-acceptance-test-authoring"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/skill-acceptance-test-authoring/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/jianchen08/agent-os-open/skill-acceptance-test-authoring"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/skill-acceptance-test-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00169 | $0.04040 |
| Opus 5.5 | $0.00068 | $0.01616 |
| Sonnet 5.5 | $0.00034 | $0.00808 |
| Haiku 4.5 | $0.00017 | $0.00404 |
Grade A, and why
验收测试起草 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 13d 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 — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.
验收测试起草(Acceptance Test Authoring)
本技能是流程指引,不是逐条打勾清单:按场景判断使用,遇不适用情况保持裁量,不机械执行。 本件给独立起草方用:起草方与实现方异构(不同基座模型 / 不同会话上下文 / 不共享提示历史),且看不到本轮实现与实现方自述——避免反向适配。签发权与 diff 确认权留人类。
〇、定位与边界
| 项 | 内容 |
|---|---|
| 谁写 | 独立起草方(AI 或人类),与实现方异构 |
| 写什么 | 签发级验收测试:行为断言 + 边界 + 异常 + 并发/时序(需求涉及才要)+ 契约测试 |
| 不写什么 | 不写实现;不写"辅助单测"(那是实现方自产,不作验收证据);不改需求措辞 |
| 交给谁 | 审查方复检 → 人类签发冻结 → 编码方只读执行 |
| 配套件 | skills/skill-requirement-battle/SKILL.md(需求冻结侧产物:AC 清单 / 状态机 / 边界场景 / 签发记录 / 预绑定范围表) |
起草方的输入只有三样:冻结的需求(AC + 状态机 + 边界场景)、前置契约、上一版测试代码。禁止看实现代码与实现方自述理由。
一、可渲染约定(书写规范,不是另一层文档)
人类读的是从测试代码自动渲染出的规格页(意图 / 关键示例 / 边界覆盖 / 失败报告),不是手写规格文档——手写页会漂移。因此测试代码本身必须满足可渲染约定。
1.1 命名约定
测试名必须包含需求ID + 场景描述:
test_REQ_042_注册3天首单满100_优惠20
- 需求ID 原样出现在测试名里(
REQ-042/AC-007依冻结版本口径),使状态矩阵能从测试结果自动推导。 - 场景描述写场景本身("注册3天首单满100"),不写"正常情况"这类无信息词。
- 同一需求下的多条测试用场景描述区分,不靠编号后缀凑数。
1.2 结构约定:四段式
测试代码按 输入数据 / 执行 / 输出断言 / 副作用断言 四段组织,数据段用结构化对象而非散落在断言里:
def test_REQ_042_注册3天首单满100_优惠20():
# --- 输入数据 ---
ctx = build_context(register_days_ago=3, order_amount=100)
# --- 执行 ---
result = apply_discount(ctx)
# --- 输出断言 ---
assert result.discount == 20
assert result.final_amount == 80
# --- 副作用断言 ---
assert db_snapshot_of_orders() == expected_order_record(discount=20)
- 输入数据段必须是结构化对象(fixture / builder / 参数字典),散落在各条断言里的字面量不可渲染、不可复用。
- 副作用段缺失时显式写"无副作用"并说明理由(不留空白让人猜是不是漏写)。
1.3 场景分组
同一需求下的测试按 正常路径 / 边界 / 异常 / 并发 分组,渲染页按组折叠。用 pytest 时用 class 分组或 marker 分组,命名保持可渲染:
class TestREQ042正常路径: ...
class TestREQ042边界: ...
class TestREQ042异常: ...
class TestREQ042并发: ...
1.4 失败报告约定(人类化,不出裸堆栈)
断言失败时输出:场景名 / 输入 / 期望 / 实际 / 相关需求ID / 失败断言位置。禁止只抛裸堆栈或裸 pytest 默认消息。
def test_REQ_042_注册3天首单满100_优惠20():
ctx = build_context(register_days_ago=3, order_amount=100)
result = apply_discount(ctx)
assert result.discount == 20, describe(
scenario="注册3天首单满100_优惠20",
requirement_id="REQ-042",
input={"register_days_ago": 3, "order_amount": 100},
expected={"discount": 20},
actual={"discount": result.discount},
location="apply_discount.discount",
)
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.
- 13d ago First seen · 238 lines · 169 tokens per session scan A 0ae8aeb6467f
验收测试起草 is a skill published in the GitHub repository jianchen08/Agent-os-open (8 stars, last pushed 8d ago), licensed Apache-2.0. It adds 169 tokens to every session and 4,040 once invoked, about $0.0007 per session on Opus 5.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-11-17.
验收测试起草 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 验收测试起草jianchen08/Agent-os-open | Skill | 8 | 8d ago | Apache-2.0 | A | 169 | Claude Code, Codex |
| background-taskvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 62 | Claude Code |
| agent-toolvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 66 | Claude Code |
| frontend-featurevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 64 | Claude Code |
| rag-knowledgevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 76 | Claude Code |
| alembic-migrationvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 56 | Claude Code |
| channel-botvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 3d ago | MIT | A | 53 | Claude Code |