ClaudeCode_Playwright_Demo: Command for Claude Code

.claude/commands/generate_testcases_from_requirements.md

generate_testcases_from_requirements is a command for Claude Code from anhtester/ClaudeCode_Playwright_Demo. It costs 20 tokens per session (768 once invoked), scanned A, original, MIT.

A quick workflow that creates manual test cases from existing software requirements. It checks normal, negative, boundary, and unusual inputs, including validation for each form field.

In plain words
What is it for?
Use it for simple modules with well-defined requirements. It can cover input partitions, boundary values, rule combinations, and workflow state changes, with output in Vietnamese.
Why use it?
It turns clear requirements into an initial test set in one pass, reducing the manual effort of deciding what scenarios to cover. Complex or unclear requirements can be moved to a fuller testing process.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is anhtester/ClaudeCode_Playwright_Demo's own configuration. It tells Claude Code how to work on ClaudeCode_Playwright_Demo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ClaudeCode_Playwright_Demo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anhtester/ClaudeCode_Playwright_Demo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anhtester/ClaudeCode_Playwright_Demo/main/.claude/commands/generate_testcases_from_requirements.md
Clone the repo
git clone --depth 1 https://github.com/anhtester/ClaudeCode_Playwright_Demo

Made for: Claude Code.

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 generate_testcases_from_requirements

README.md
[![agentmods](https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/generate_testcases_from_requirements.svg)](https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_testcases_from_requirements)
Your own site
<a href="https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_testcases_from_requirements"><img src="https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/generate_testcases_from_requirements.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 768 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.00020 $0.00768
Opus 5 $0.00010 $0.00384
Sonnet 5 $0.00004 $0.00154
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

generate_testcases_from_requirements 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 8d 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.

.claude/commands/generate_testcases_from_requirements.md · 65 lines

How it starts

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

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill rbt_manual_testing (tại .agent/skills/rbt_manual_testing/SKILL.md) trước khi bắt đầu thực hiện tác vụ này. Sử dụng Mode QUICK của skill.

Workflow: Sinh Manual Test Cases Nhanh từ Requirements

Workflow này sử dụng Mode QUICK của skill rbt_manual_testing để sinh test cases nhanh từ requirements đã sẵn có.

⚠️ Nguyên tắc

  • Mode: QUICK (1 lượt duy nhất, không chờ user giữa chừng)
  • Phù hợp cho module đơn giản, requirements đã rõ ràng
  • Nếu phát hiện requirements quá phức tạp hoặc mơ hồ → tự động chuyển sang FULL RBT và thông báo user
  • Tất cả output bằng Tiếng Việt

Các bước thực hiện

  1. Đọc và hiểu requirements được user cung cấp
  2. Xác định các luồng chính: Happy Path, Negative Path, Boundary Cases, Edge Cases
  3. Áp dụng kỹ thuật thiết kế test case tự động:
    • Equivalence Partitioning (EP)
    • Boundary Value Analysis (BVA)
    • Decision Table (nếu có nhiều rules)
    • State Transition (nếu có workflow)
  4. Validation chuyên biệt từng trường (Field-Level Validation):
    • Liệt kê tất cả input fields trên form/UI
    • Sinh validation TCs riêng cho TỪNG trường theo đặc tính riêng (text, email, phone, date, number, dropdown, file upload, password...)
    • Áp dụng Bảng Field-Level Validation trong skill rbt_manual_testing để chọn validation phù hợp
    • KHÔNG gộp validation nhiều trường vào 1 test case
  5. Sinh test cases đầy đủ fields:
    • TC ID (format: [DỰ_ÁN]_[MODULE]_TC_[SỐ])
    • Module
    • Test Scenario / Test Case Title
    • Pre-conditions
    • Test Steps (đánh số)
    • Expected Results (đánh số tương ứng)
    • Test Data (phải cụ thể, không placeholder)
    • Priority (Critical / High / Medium / Low)
  6. Xuất ra bảng Markdown chuẩn

Bảng Output

| TC ID | Module | Test Scenario | Pre-Condition | Test Steps | Test Data | Expected Result | Priority |

Quy tắc quan trọng

  • Test Data phải cụ thể: [email protected], không phải "email hợp lệ"
  • Phải bao gồm cả Positive, Negative, Boundary, và Edge cases
  • Mỗi trường input phải có validation TCs riêng (không gộp nhiều trường vào 1 TC)
  • TC ID theo format thống nhất do user quy ước hoặc mặc định [DỰ_ÁN]_[MODULE]_TC_[SỐ]
  • Nếu quá nhiều TCs → chia thành Part 1, Part 2 và hỏi user

Read the full file on GitHub · 65 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. 8d ago First seen · 65 lines · 20 tokens per session scan A f23bf2b8ce56

Subscribe to this mod's changes

generate_testcases_from_requirements is a command published in the GitHub repository anhtester/ClaudeCode_Playwright_Demo (2 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 768 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-31.