case

case is a command for coding agents from TestAny-io/testany-agent-skills. It costs 17 tokens per session (767 once invoked), scanned A, original, MIT.

A command for registering and managing Testany cases. A case is a reusable package containing one automated testing step, its metadata, and its scripts.

In plain words
What is it for?
Use it to upload a case package or script, edit metadata and settings, view a case, add existing labels, or run a readiness check.
Why use it?
It gives prepared test packages a known place and configuration in Testany. It also checks whether a case is ready before it is used in a pipeline.

Command

Part of the testany-bot plugin — 10 skills, 8 commands 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 commands/testany-io/testany-agent-skills/case
Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/case.svg)](https://agentmods.dev/commands/testany-io/testany-agent-skills/case)
Your own site
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/case"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/case.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 767 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.1 $0.00017 $0.00767
Opus 5 $0.00009 $0.00383
Sonnet 5 $0.00003 $0.00153
Haiku 4.5 $0.00002 $0.00077

Measured 6d ago against content hash 80059edec3b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

case 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 6d 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.md · 86 lines

What it actually says

Testany Platform Case 注册与管理

将已准备好的 Testany platform case package 注册到平台,并管理 metadata、脚本和生命周期。

使用方式

$ARGUMENTS

核心动作

  • 注册 case package:创建 shell case,补齐 metadata,并上传 ZIP
  • 更新配置:修改 case metadata、可见性、labels、运行配置
  • 上传脚本:上传或更新测试脚本 ZIP 包
  • 查看用例:获取 case 详情和脚本
  • 管理标签:为 case 添加分类标签
  • dry run 验证:验证 case 是否 ready

示例

/case 把这些 ZIP 和 metadata 注册成 Testany cases
/case 更新 A1B2C3D4 的环境变量
/case 上传脚本到 A1B2C3D4
/case dry run A1B2C3D4
/case 给 A1B2C3D4 添加 regression 标签

重要边界

  • case 是 Testany 平台上的原子自动化步骤包
  • 如果你只有传统测试场景,还没有拆解结果和脚本,请先用 /case-writing
  • Testany 不支持直接执行单条 case
  • 如果要真正执行,注册完 case 后还需要 /pipeline

Case Labels (用例标签)

case_labels 用于对测试用例进行分类和过滤。重要:标签必须在系统中预先存在才能使用。

获取可用标签

在为用例设置标签前,先调用 testany_list_labels 获取系统中已有的标签列表:

testany_list_labels
testany_list_labels keyword="regression"  # 按关键字过滤

创建新标签

如果需要的标签不存在,先调用 testany_create_label 创建:

testany_create_label name="my-new-label"

标签命名规则:

  • 长度 1-255 字符
  • 不能包含特殊字符:", %, /, \, *
  • 不能使用保留名称:root, testcaselibrary, test case library

为用例设置标签

创建或更新用例时,使用 case_labels 字段指定标签(必须是已存在的标签):

testany_update_case key="A1B2C3D4" case_labels=["regression", "api-test"]
testany_bulk_update_cases keys=["A1B2C3D4", "B2C3D4E5"] case_labels=["smoke"]
testany_bulk_append_cases keys=["A1B2C3D4"] case_labels=["nightly"]  # 追加标签

常见工作流

  1. 添加新标签到用例

    • testany_list_labels 检查标签是否存在
    • 如不存在,testany_create_label 创建
    • 最后 testany_update_casetestany_bulk_append_cases 设置标签
  2. 批量更新标签

    • testany_bulk_update_cases替换所有标签
    • testany_bulk_append_cases追加新标签到现有标签
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. 6d ago First seen · 86 lines · 17 tokens per session scan A 80059edec3b4

Subscribe to this mod's changes

case is a command published in the GitHub repository TestAny-io/testany-agent-skills (80 stars, last pushed 8d ago), licensed MIT. It adds 17 tokens to every session and 767 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.