case

case is a command for Claude Code from TestAny-io/testany-agent-skills. It costs 17 tokens per session (962 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 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 upload a case package or script, edit metadata and settings, view a case, add existing labels, or run a readiness check.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/case/github.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/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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 962 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.00017 $0.00962
Opus 5.5 $0.00007 $0.00385
Sonnet 5.5 $0.00003 $0.00192
Haiku 4.5 $0.00002 $0.00096

Measured 1mo ago against content hash 8d6801d9a11b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testany Platform Case 注册与管理

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

使用方式

$ARGUMENTS

按 整体目标交接 携带真实 key 与验证状态继续已授权的后续目标;注册/上传许可不等于执行许可。

核心动作

按 交付验证 先检本地包,变更后读回配置和脚本状态;上传失败保留真实 case key,不自动重建或回滚删除。

  • 注册 case package:创建 shell case,补齐 metadata,并上传 ZIP
  • 更新配置:修改 case metadata、可见性、labels、运行配置
  • 上传脚本:上传或更新测试脚本 ZIP 包
  • 查看用例:获取 case 详情和脚本
  • 管理标签:为 case 添加分类标签
  • dry run 验证:按本轮明确许可执行脚本验证,不从注册、上传或补字段自动推导许可

示例

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

重要边界

  • case 是 Testany 平台上的原子自动化步骤包
  • 如果你只有传统测试场景,还没有拆解结果和脚本,请先用 /case-writing
  • 常规编排执行以 pipeline 为单位;case dry run 是单独的验证入口,不替代编排验证
  • 只要求配置就交付配置与「未执行」;明确授权且目标/副作用已知时可直接完成一次验证,不重复确认
  • 查询既有 dry run 不新开执行;等待遵守 有界等待合同,超时不等于远程取消,不自动重试

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_case 或 testany_bulk_append_cases 设置标签
  2. 批量更新标签:

    • testany_bulk_update_cases 会替换所有标签
    • testany_bulk_append_cases 会追加新标签到现有标签

Read the full file on GitHub · 91 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. 1mo ago Changed · +5 lines 8d6801d9a11b
  2. 1mo 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 (82 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 962 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.