qa/test-strategy

qa/test-strategy is a skill for Claude Code from echoVic/boss-skill. It costs 34 tokens per session (3,472 once invoked), scanned A, original, MIT.

A testing strategy based on the testing pyramid: many small unit tests, fewer integration tests, and a smaller set of end-to-end tests that follow real user journeys. It also defines checks for security, boundaries, permissions, and business consistency.

In plain words
What is it for?
Use it to plan unit, integration, and end-to-end coverage for frontend and backend projects. It helps test create, edit, delete, listing, authentication, authorization, invalid input, security risks, and core business flows.
Why use it?
It reduces the chance that tests only cover isolated code while missing failures across the application. It gives teams a structured way to decide what to test and what evidence is needed before release.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Part of the boss plugin — 39 skills, 10 commands, 10 agents, 8 hooks shipped together

Good fit Use it to plan unit, integration, and end-to-end coverage for frontend and backend projects. It helps test create, edit, delete, listing, authentication, authorization, invalid input, security risks, and core business flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/boss-skill/test-strategy
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 echoVic/boss-skill --skill test-strategy
Clone the repo
git clone --depth 1 https://github.com/echoVic/boss-skill

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 39 skills, 10 commands, 10 agents, 8 hooks.

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 qa/test-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/boss-skill/test-strategy/github.svg)](https://agentmods.dev/skills/echovic/boss-skill/test-strategy)
Your own site
<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.

agentmods 80×15 button for qa/test-strategy

Your own site · 80×15
<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>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,472 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.00034 $0.03472
Opus 5.5 $0.00014 $0.01389
Sonnet 5.5 $0.00007 $0.00694
Haiku 4.5 $0.00003 $0.00347

Measured 14d ago against content hash e61b28d25b2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skill/skills/qa/test-strategy/SKILL.md · 350 lines

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 - 低 边缘功能、文案、样式 单元测试(可选) 最后执行

Read the full file on GitHub · 350 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. 14d ago Changed · -3 lines e61b28d25b2f
  2. 18d ago Changed · +5 lines d28d90b7873a
  3. 1mo ago Changed · +268 lines · +1 tokens per session 05d30ff45b89
  4. 2mo ago Changed · +2 lines fcd3f7c79870
  5. 3mo ago First seen · 78 lines · 33 tokens per session scan A cc3763c4dd93

Subscribe to this mod's changes

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.

Related

qa/test-strategy compared with skills from other repositories

qa/test-strategy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qa/test-strategyechoVic/boss-skillSkill6314d agoMITA34Claude Code
dsh-ci-test-reliabilityqufei1993/skills-hubSkill1.9k5d agoMITA76Codex
test-runnerPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA59Claude Code
testingevanca/flutter-ai-rulesSkill67821d agoMITA33Claude Code
designing-testsCloudAI-X/claude-workflow-v2Skill1.4k1mo agoMITA48Claude Code
Codeception TestingPramodDutta/qaskillsSkill2531mo agoMITA42Claude Code, Codex
JMeter Load TestingPramodDutta/qaskillsSkill2531mo agoMITA32Claude Code, Codex