case-writing

case-writing is a command for Claude Code from TestAny-io/testany-agent-skills. It costs 26 tokens per session (407 once invoked), scanned A, original, MIT.

A command that turns traditional test scenarios into Testany platform cases, including metadata, scripts, and uploadable ZIP packages. It supports API, user-interface, end-to-end, Java, and Postman-based tests.

In plain words
What is it for?
Use it to create Testany cases for API checks, browser flows, login or checkout scenarios, payment endpoints, and Java tests, especially from an approved test specification.
Why use it?
It breaks broad test scenarios into cases that Testany can register and run, while recording how later automation work should continue.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the testany-bot plugin — 10 skills, 8 commands shipped together

Good fit Use it to create Testany cases for API checks, browser flows, login or checkout scenarios, payment endpoints, and Java tests, especially from an approved test specification.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/testany-io/testany-agent-skills/case-writing
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-bot, the plugin that ships this one along with the rest of its 10 skills, 8 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 case-writing

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

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

Measured 9d ago against content hash 702dd7416531, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

case-writing 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 9d 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-bot/commands/case-writing.md · 44 lines

What it actually says

Testany Platform Case 编写

将传统测试场景拆解为 Testany platform cases,并生成可注册的 metadata、脚本和 ZIP 包。

使用方式

$ARGUMENTS

核心动作

  • 场景拆解:先判断一个传统测试场景要拆成几个 Testany platform cases
  • case package 生成:为每个 platform case 生成 metadata、脚本和 ZIP
  • automation design 输出:明确后续是否需要 testany-pipeline
  • 上游优先级:优先读取 approved Test Spec 中的 Testany Automation Handoff

支持的 Executor

  • PyRes (Python) - 推荐,适合 API 测试
  • Postman - 无需编程,快速 API 验证
  • Playwright - UI/E2E 测试
  • Maven/Gradle - Java 项目测试

示例

/case-writing 写一个测试用户登录 API 的 Python 测试
/case-writing 生成 Playwright E2E 测试,测试购物车结算流程
/case-writing 创建 Postman Collection 测试支付接口
/case-writing 写一个 Java 测试,验证订单创建 API
/case-writing 根据 approved test spec 里的 Testany Automation Handoff 生成可上传到 Testany 的多个 cases

输出

  • platform case inventory
  • Testany-compatible 测试脚本
  • 可直接上传的 ZIP 包
  • 面向 testany-pipeline 的 decomposition / handoff 摘要
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. 9d ago First seen · 44 lines · 26 tokens per session scan A 702dd7416531

Subscribe to this mod's changes

case-writing is a command published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 407 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.