qa/test-strategy

qa/test-strategy is a skill for Claude Code, Codex from echoVic/boss-skill. It costs 33 tokens per session (783 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 CodeCodex

Part of the boss-skill plugin — 28 skills, 7 commands, 9 agents, 8 hooks shipped together

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.

agentmods
npx agentmods add skills/echovic/boss-skill/test-strategy
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, Codex.

Or install boss-skill, the plugin that ships this one along with the rest of its 28 skills, 7 commands, 9 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00033 $0.00783
Opus 5 $0.00016 $0.00392
Sonnet 5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00078

Measured 4d ago against content hash cc3763c4dd93, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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

What it actually says

测试策略与测试金字塔

测试金字塔原则

          /\
         /  \
        / E2E \          ← ~10%:端到端用户流程【必须编写】
       /--------\
      /  集成测试  \       ← ~20%:组件/服务/API 交互
     /--------------\
    /    单元测试     \    ← ~70%:函数/组件/服务逻辑
   /--------------------\

E2E 测试是强制要求

每个项目必须编写 E2E 测试,最少覆盖:

  • 创建流程
  • 编辑流程
  • 删除流程
  • 列表展示
  • 核心业务流程

前端 vs 后端测试分布

层级 前端测试 后端测试
单元测试 组件渲染、Hooks、工具函数 Service 层、业务逻辑、工具类
集成测试 组件交互、状态管理、API 调用 API 端点、数据库操作、服务间调用
E2E 测试 UI 用户流程 API 完整流程、跨服务调用

QA Attack Protocol

  • 重放核心用户路径:证明核心用户路径真实可用
  • 捕获真实 payload 与服务端响应:验证请求 payload、服务端响应和 schema 一致性
  • 攻击认证授权:覆盖匿名、授权、非授权、过期、越权
  • 攻击数据边界:empty state、pagination、第二页、旧数据、illegal enum、long input、double submit
  • 攻击业务一致性:核对界面展示与服务端业务常量一致
  • 验证产物类功能:验证核心产物、记录或状态存在、可展示、可继续用于下游流程
  • 标记未验证路径:若核心用户路径只由 Mock 或桩数据证明,必须标记为未验证,不能作为发布证据

安全测试

测试类型 测试内容 示例
SQL 注入 参数化查询验证 ' OR '1'='1
XSS 输出转义验证 <script>alert(1)</script>
CSRF Token 验证 跨站请求测试
认证 Token 有效性 过期/伪造 Token
授权 权限边界 越权访问测试
输入验证 边界值/格式 超长/特殊字符

性能测试

指标 前端目标 后端目标
首屏加载 < 3s -
API P50 - < 100ms
API P99 - < 500ms
并发用户 - ≥ 100
内存泄漏
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. 4d 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 (553 stars, last pushed 4d ago), licensed MIT. It adds 33 tokens to every session and 783 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.