test-case-generator

Generate, execute, and plan structured test cases from UC, SRS, SQL, and API sources.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/manhthien2005/PM_REVIEW --skill test-case-generator-manhthien2005
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-case-generator
Source: https://github.com/manhthien2005/PM_REVIEW/tree/main/tooling/.windsurf-template/shared/skills/TEST_CASE_GEN
Command: npx skills add https://github.com/manhthien2005/PM_REVIEW --skill test-case-generator-manhthien2005

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually writing comprehensive test cases from requirements documents is slow and error-prone, and tracking execution results across API and UI layers is tedious. This Skill automates test case generation from project sources and executes tests with structured result tracking. ## Core Features & Use Cases - Test Case Generation: Derives positive, negative, boundary, and security test cases from Use Case flows, business rules, SQL constraints, and API validators, outputting standardized Markdown files. - Automated Test Execution: Runs L1 API tests via curl and L2 UI smoke tests via browser automation, updating status, actual results, tester, and timestamps in-place. - Test Plan Orchestration: Scans existing test case files in a module and produces an AI-executable test plan with execution order, layer assignment, and duration estimates. - Use Case: Ask the AI to generate test cases for the LOGIN function of the AUTH module; it reads UC001, the users table schema, and auth controller code, then writes 20+ categorized test cases to a structured Markdown file ready for execution. ## Quick Start Ask the AI to generate test cases for a specific function, for example: generate test cases for the LOGIN function of the AUTH module on the admin platform.

Frequently Asked Questions about test-case-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate test cases from use case documents?▼

Provide the module and function name, and the Skill reads the relevant UC file, SQL schema, and API code to derive test cases. It covers main flows, alternative flows, business rules, boundary values, and security scenarios, writing them to a structured Markdown file.

How to execute API test cases automatically with curl?▼

In EXECUTE mode, the Skill classifies each test case into layers and runs L1 API tests using curl commands with HTTP status verification. It supports JWT token chaining, rate limit tests, and SQL injection payloads, then updates results in-place.

What test layers does automated test execution support?▼

Three layers are supported: L1 API tests via curl for HTTP status and response validation, L2 UI smoke tests via browser automation for form submission and navigation, and L3 manual tests which are flagged as SKIP for human testers.

Can AI generate a test plan for an entire module?▼

Yes, TEST_PLAN mode scans all existing test case files in a module folder, determines execution order based on dependencies, assigns test layers, and estimates duration. If no test case files exist, you must run generation mode first.

Why are some test cases marked SKIP during execution?▼

Test cases classified as L3, such as performance, visual regression, or long-session tests, cannot be executed automatically and are marked SKIP with a note requiring manual testing. Blocked tests also occur when the server is unreachable or test data is missing.

What are the limitations of automated UI smoke testing?▼

UI smoke tests only cover happy-path flows like page loads, form submits, and redirects. They cannot perform visual regression, responsive layout checks, network interception, or multi-tab scenarios, which remain manual testing responsibilities.