test-scenarios

test-scenarios is a skill for Claude Code from killvxk/pm-skills-zh. It costs 58 tokens per session (871 once invoked), scanned A, original, MIT.

A guide for turning user stories into detailed test scenarios. A test scenario describes the goal, starting conditions, user role, steps, edge cases, and expected results.

In plain words
What is it for?
Use it to write QA test cases, test plans, acceptance tests, and verification steps for a feature or user story.
Why use it?
It makes feature checks clear and repeatable for quality-assurance teams. It reduces the chance of missing invalid inputs, boundary cases, or required system states.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pm-execution plugin — 15 skills, 10 commands shipped together

Good fit Use it to write QA test cases, test plans, acceptance tests, and verification steps for a feature or user story.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killvxk/pm-skills-zh/test-scenarios
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.

Any agent
npx skills add killvxk/pm-skills-zh --skill test-scenarios
Clone the repo
git clone --depth 1 https://github.com/killvxk/pm-skills-zh

Made for: Claude Code.

Or install pm-execution, the plugin that ships this one along with the rest of its 15 skills, 10 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-scenarios

README.md
[![agentmods](https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/test-scenarios/github.svg)](https://agentmods.dev/skills/killvxk/pm-skills-zh/test-scenarios)
Your own site
<a href="https://agentmods.dev/skills/killvxk/pm-skills-zh/test-scenarios"><img src="https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/test-scenarios/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-scenarios

Your own site · 80×15
<a href="https://agentmods.dev/skills/killvxk/pm-skills-zh/test-scenarios"><img src="https://agentmods.dev/badge/skills/killvxk/pm-skills-zh/test-scenarios.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 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.00058 $0.00871
Opus 5 $0.00029 $0.00436
Sonnet 5 $0.00012 $0.00174
Haiku 4.5 $0.00006 $0.00087

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

Security

Grade A, and why

test-scenarios 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 12d 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.

pm-execution/skills/test-scenarios/SKILL.md · 87 lines

What it actually says

测试场景

根据用户故事创建综合测试场景,包含测试目标、初始条件、用户角色、分步测试操作和预期结果。

适用场景: 编写 QA 测试用例、创建测试计划、定义验收测试场景,或验证用户故事的实现。

参数:

  • $PRODUCT:产品或系统名称
  • $USER_STORY:需要测试的用户故事(标题和验收标准)
  • $CONTEXT:额外的测试背景或约束条件

Step-by-Step Process(分步流程)

  1. 审阅用户故事及验收标准
  2. 定义测试目标 - 需要验证的具体行为
  3. 确立初始条件 - 系统状态、数据准备、配置要求
  4. 识别用户角色 - 谁来执行测试操作
  5. 创建测试步骤 - 逐步分解交互操作
  6. 定义预期结果 - 每个步骤后的可观察结果
  7. 考虑边界情况 - 无效输入、边界条件
  8. 输出详细测试场景 - 供 QA 团队执行

Scenario Template(场景模板)

测试场景: [清晰的场景名称]

测试目标: [本测试验证的内容]

初始条件:

  • [所需的系统状态]
  • [所需的数据或配置]
  • [用户设置或权限]

用户角色: [执行测试的人]

测试步骤:

  1. [第一个操作及其预期结果]
  2. [第二个操作及可观察结果]
  3. [第三个操作及系统行为]
  4. [完成操作及最终状态]

预期结果:

  • [可观察结果 1]
  • [可观察结果 2]
  • [可观察结果 3]

Example Test Scenario(测试场景示例)

测试场景: 在商品详情页查看最近浏览的商品

测试目标: 验证「最近浏览」区域是否正确显示,并排除当前商品。

初始条件:

  • 用户已登录或已启用浏览器历史记录
  • 用户在当前会话中已查看过至少 2 件商品
  • 用户当前所在的商品页面不属于之前浏览过的商品

用户角色: 在线购物者

测试步骤:

  1. 进入任意商品详情页 → 页面底部应出现包含之前浏览商品的区域
  2. 滚动至页面底部 → 「最近浏览」区域可见,显示商品卡片
  3. 验证商品缩略图 → 图片、标题和价格均正确显示
  4. 检查当前商品 → 当前商品不在最近浏览列表中
  5. 点击商品卡片 → 用户跳转至对应商品详情页

预期结果:

  • 最近浏览区域仅在用户浏览过至少 1 件商品后才显示
  • 区域显示 4-8 张包含完整信息的商品卡片
  • 当前商品被排除在列表之外
  • 每张卡片显示"X 分钟/小时前浏览"时间戳
  • 点击卡片可跳转至正确的商品详情页
  • 性能:区域在 2 秒内加载完成

Output Deliverables(输出交付物)

  • 针对每条验收标准的完整测试场景
  • 与用户故事意图对齐的清晰测试目标
  • 详细的分步测试操作
  • 每个步骤后可观察的预期结果
  • 边界情况和错误场景覆盖
  • 可供 QA 团队执行和记录的完整测试文档
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. 12d ago First seen · 87 lines · 58 tokens per session scan A 48fc0ad1164f

Subscribe to this mod's changes

test-scenarios is a skill published in the GitHub repository killvxk/pm-skills-zh (159 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 871 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens