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 jianchen08/Agent-os-open --skill skill-test-infragit clone --depth 1 https://github.com/jianchen08/Agent-os-openWrote 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-test-infra)<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/skill-test-infra"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/skill-test-infra/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-test-infra"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/skill-test-infra.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.00035 | $0.00641 |
| Opus 5 | $0.00017 | $0.00320 |
| Sonnet 5 | $0.00007 | $0.00128 |
| Haiku 4.5 | $0.00003 | $0.00064 |
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 4d 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.
What it actually says
测试基础设施
本技能是流程指引,不是逐条打勾清单:按场景判断使用,遇不适用情况保持裁量,不机械执行。
描述
提供端到端测试所需的基础能力脚本,供 container_verification_agent 编排下的 L3 执行者调用。
脚本
log_interceptor.py
日志拦截 + 按规则提取匹配。
调用方式:
# 拦截运行时日志并按规则提取
python scripts/log_interceptor.py --log-file <日志文件路径> --rules <规则JSON文件> [--output <输出路径>]
# 实时拦截(启动后在后台监听,捕获指定进程的输出)
python scripts/log_interceptor.py --follow --log-file <日志文件路径> --rules <规则JSON文件> [--output <输出路径>]
规则文件格式(JSON):
{
"rules": [
{"name": "api_error", "pattern": "ERROR.*api.*\\d{3}", "level": "ERROR"},
{"name": "task_complete", "pattern": "task.*completed.*id=([\\w]+)", "extract_groups": true}
]
}
db_snapshot.py
数据库快照对比(操作前后 diff)。
调用方式:
# 创建快照
python scripts/db_snapshot.py create --tables <表名,逗号分隔> --output <快照输出路径>
# 对比两个快照
python scripts/db_snapshot.py diff --before <快照1路径> --after <快照2路径> [--output <对比结果输出路径>]
side_effect_mock.py
通知/消息等副作用 mock 和验证。
调用方式:
# 启动 mock 服务,记录所有副作用
python scripts/side_effect_mock.py serve --port <端口> [--output <记录输出路径>]
# 验证已记录的副作用是否符合预期
python scripts/side_effect_mock.py verify --record <记录文件路径> --expect <预期JSON文件> [--output <验证报告路径>]
使用场景
- 端到端测试中拦截日志,验证关键事件是否触发
- 数据库操作前后快照对比,验证数据变更是否符合预期
- Mock 外部通知服务,验证副作用(消息推送、邮件发送等)是否正确触发
依赖
- Python 3.10+
- 标准库(json, re, sqlite3, argparse, http.server 等)
- 无额外第三方依赖
What ships with it
3 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.
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.
- 4d ago Changed · +2 lines ac0a1642a845
- 9d ago First seen · 71 lines · 35 tokens per session scan A b904ae8e0500
测试基础设施 is a skill published in the GitHub repository jianchen08/Agent-os-open (5 stars, last pushed 5d ago), licensed Apache-2.0. It adds 35 tokens to every session and 641 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-31.
Other skills, from other repositories
pytest-suite
Write or extend the backend test suite following this project's conventions. Use when adding tests for a new service/route/repository, when coverage is missing, or when asked to test a feature. Knows the mocked-session + httpx AsyncClient setup so tests run with no database.
test-generation
Generate a test strategy and starter test stubs for given modules across unit, integration, and e2e layers (pytest/jest/playwright). Trigger on: generate tests, test plan, test strategy, coverage plan, test scaffolding.
react-testing
Frontend testing standards using Vitest, React Testing Library, and Playwright. Use when writing UI tests.
agent-production-validator
Agent skill for production-validator - invoke with $agent-production-validator.
agent-tester
Agent skill for tester - invoke with $agent-tester.
building-pydantic-ai-agents
Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydanticai, or asks to build an AI agent, add tools/capabilities, defer capability loading, stream output, define agents…