test-strategy-writer

test-strategy-writer is a command for Claude Code from TestAny-io/testany-agent-skills. It costs 27 tokens per session (406 once invoked), scanned A, original, MIT.

A command for writing a test strategy: a plan for what to test, where to test it, what environments and data are needed, and what counts as ready or complete. It uses product, API, design, and safety documents as its inputs.

In plain words
What is it for?
Use it to define test goals, quality risks, included and excluded areas, test levels, environments, monitoring, entry and exit rules, regression coverage, and traceability checks.
Why use it?
It turns broad requirements into a testable scope without prematurely writing individual test cases. It also makes risks, dependencies, and exclusions visible for review.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the testany-eng plugin — 21 skills, 21 commands shipped together

Good fit Use it to define test goals, quality risks, included and excluded areas, test levels, environments, monitoring, entry and exit rules, regression coverage, and traceability checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/testany-io/testany-agent-skills/test-strategy-writer
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.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills

Made for: Claude Code.

Or install testany-eng, the plugin that ships this one along with the rest of its 21 skills, 21 commands.

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 test-strategy-writer

README.md
[![agentmods](https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/test-strategy-writer/github.svg)](https://agentmods.dev/commands/testany-io/testany-agent-skills/test-strategy-writer)
Your own site
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/test-strategy-writer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/test-strategy-writer/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 test-strategy-writer

Your own site · 80×15
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/test-strategy-writer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/test-strategy-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 406 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.
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.00027 $0.00406
Opus 5 $0.00014 $0.00203
Sonnet 5 $0.00005 $0.00081
Haiku 4.5 $0.00003 $0.00041

Measured 11d ago against content hash 77f4684ab4ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

test-strategy-writer 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 11d 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.

plugins/testany-eng/commands/test-strategy-writer.md · 43 lines

What it actually says

Test Strategy Writer

启动测试策略撰写流程。基于 PRD、API Contract、HLD 与 Guardrails,产出可审查、可执行的独立测试策略。

使用方式

提供上游文档路径:

$ARGUMENTS

在研发流程中的位置

PRD → API Contract → HLD → [Test Strategy Writer] → Test Strategy → Test Strategy Reviewer → LLD

输出范围

  • test-strategy-profile-v1TRACEABILITY-METADATA block
  • 测试目标与质量风险
  • In-scope / Out-of-scope
  • 独立测试层分配
  • 环境、数据、依赖与观测策略
  • 入口/出口标准
  • 自动化与回归策略
  • 开发内建验证前置条件

核心原则

  • 只写怎么测:不写详细 test case
  • 风险驱动:高风险能力优先建模
  • 基线对齐:承接 PRD/API/HLD/Guardrails
  • 执行现实:环境和依赖必须可落地
  • 边界清晰:不负责 unit、code-level integration、provider-side contract 的设计
  • 脚本自检:写完后先跑 trace-lint,再用 trace-build-rtm 联合 PRD 检查追溯闭环

请提供 PRD、API Contract、HLD 路径开始撰写。Guardrails 如存在请一并提供。

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. 11d ago First seen · 43 lines · 27 tokens per session scan A 77f4684ab4ee

Subscribe to this mod's changes

test-strategy-writer is a command published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 406 once invoked, about $0.0001 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.