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 echoVic/boss-skill --skill test-strategygit clone --depth 1 https://github.com/echoVic/boss-skillWrote 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/echovic/boss-skill/test-strategy)<a href="https://agentmods.dev/skills/echovic/boss-skill/test-strategy"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/test-strategy/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/echovic/boss-skill/test-strategy"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/test-strategy.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.00034 | $0.03472 |
| Opus 5.5 | $0.00014 | $0.01389 |
| Sonnet 5.5 | $0.00007 | $0.00694 |
| Haiku 4.5 | $0.00003 | $0.00347 |
Grade A, and why
qa/test-strategy 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 14d 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 — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.
测试策略与测试金字塔
测试金字塔原则
/\
/ \
/ E2E \ ← ~10%:端到端用户流程【必须编写】
/--------\
/ 集成测试 \ ← ~20%:组件/服务/API 交互
/--------------\
/ 单元测试 \ ← ~70%:函数/组件/服务逻辑
/--------------------\
E2E 测试是强制要求
每个项目必须编写 E2E 测试,最少覆盖:
- 创建流程
- 编辑流程
- 删除流程
- 列表展示
- 核心业务流程
前端 vs 后端测试分布
| 层级 | 前端测试 | 后端测试 | 方法论 |
|---|---|---|---|
| 单元测试 | 组件渲染、Hooks、工具函数 | Service 层、业务逻辑、工具类 | qa/unit-testing |
| 集成测试 | 组件交互、状态管理、API 调用 | API 端点、数据库操作、服务间调用 | qa/integration-testing |
| 接口测试 | - | RESTful/GraphQL 接口功能、边界、安全、契约 | qa/api-testing |
| E2E 测试 | UI 用户流程 | API 完整流程、跨服务调用 | qa/e2e-playwright |
详细方法论请加载对应 skill:单元测试见
qa/unit-testing,接口测试见qa/api-testing,集成测试见qa/integration-testing,E2E 见qa/e2e-playwright。
测试类型决策树
面对一个需求/变更时,按以下流程决定写哪些测试:
变更是否涉及用户可见 UI 或完整业务流程?
├─ 是 → 必须写 E2E(qa/e2e-playwright)
└─ 否 → 继续判断
变更是否涉及多个模块/服务协作?
├─ 是 → 必须写集成测试(qa/integration-testing)
└─ 否 → 继续判断
变更是否暴露 API 端点?
├─ 是 → 必须写接口测试(qa/api-testing)
└─ 否 → 继续判断
变更是否包含纯函数/组件逻辑?
└─ 是 → 必须写单元测试(shared/tdd)
规则:
- 单一函数逻辑 → 单元测试即可
- 跨函数/跨模块 → 单元 + 集成
- 暴露 API → 单元 + 接口 + 集成
- 用户可见流程 → 全部四层
风险驱动的测试优先级
按风险等级决定测试投入和执行顺序:
| 风险等级 | 判定标准 | 测试要求 | 执行优先级 |
|---|---|---|---|
| P0 - 致命 | 核心业务流程、支付、认证、数据丢失 | 单元 + 集成 + E2E + 安全测试 | 最先执行,必须全绿 |
| P1 - 高 | 主要功能、数据一致性、权限控制 | 单元 + 集成 + E2E | 高优先 |
| P2 - 中 | 次要功能、UI 展示、非核心逻辑 | 单元 + 集成 | 中优先 |
| P3 - 低 | 边缘功能、文案、样式 | 单元测试(可选) | 最后执行 |
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.
- 14d ago Changed · -3 lines e61b28d25b2f
- 18d ago Changed · +5 lines d28d90b7873a
- 1mo ago Changed · +268 lines · +1 tokens per session 05d30ff45b89
- 2mo ago Changed · +2 lines fcd3f7c79870
- 3mo ago First seen · 78 lines · 33 tokens per session scan A cc3763c4dd93
qa/test-strategy is a skill published in the GitHub repository echoVic/boss-skill (631 stars, last pushed 4d ago), licensed MIT. It adds 34 tokens to every session and 3,472 once invoked, about $0.0001 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-08-30.
qa/test-strategy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| qa/test-strategyechoVic/boss-skill | Skill | 631 | 4d ago | MIT | A | 34 | Claude Code |
| dsh-ci-test-reliabilityqufei1993/skills-hub | Skill | 1.9k | 5d ago | MIT | A | 76 | Codex |
| test-runnerPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 59 | Claude Code |
| testingevanca/flutter-ai-rules | Skill | 678 | 21d ago | MIT | A | 33 | Claude Code |
| designing-testsCloudAI-X/claude-workflow-v2 | Skill | 1.4k | 1mo ago | MIT | A | 48 | Claude Code |
| Codeception TestingPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 42 | Claude Code, Codex |
| JMeter Load TestingPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 32 | Claude Code, Codex |