api-to-testcase-generator

api-to-testcase-generator is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 182 tokens per session (2,377 once invoked), scanned A, original, MIT.

A tool that turns API descriptions into test cases. APIs are interfaces that let programs communicate, and the input can include OpenAPI files, Postman collections, code, curl commands, or plain-language endpoint descriptions.

In plain words
What is it for?
Use it to create tests for REST endpoints in Python, JavaScript or TypeScript, Java, Go, Postman, load-testing tools, or `.http` files.
Why use it?
It helps cover normal requests, invalid input, edge cases, errors, and boundary values without designing every test manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create tests for REST endpoints in Python, JavaScript or TypeScript, Java, Go, Postman, load-testing tools, or .http files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/api-to-testcase-generator
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 LambdaTest/agent-skills --skill api-to-testcase-generator
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

Made for: Claude Code, Codex.

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 api-to-testcase-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-to-testcase-generator/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/api-to-testcase-generator)
Your own site
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-to-testcase-generator"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-to-testcase-generator/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 api-to-testcase-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/api-to-testcase-generator"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/api-to-testcase-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 145
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 155
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 160
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 219
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00182 $0.02377
Opus 5.5 $0.00073 $0.00951
Sonnet 5.5 $0.00036 $0.00475
Haiku 4.5 $0.00018 $0.00238

Measured 3mo ago against content hash 217df0ab6faf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-to-testcase-generator scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

when the user shares an OpenAPI file, Swagger YAML/JSON, Postman collection, curl commands, or
api-skill/api-to-testcase-generator/SKILL.md · 274 lines

How it starts

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

API-to-Test Case Generator

Converts API definitions into production-ready test suites covering happy paths, edge cases, error handling, and boundary conditions.


Supported Input Formats

Format Example
OpenAPI 3.x YAML/JSON openapi: 3.0.0
Swagger 2.0 swagger: "2.0"
Postman Collection v2.x JSON export from Postman
Raw curl commands curl -X POST https://...
Plain English description "POST /users creates a user with name and email"
HTTP request/response examples Paste raw request + response
Code (route handlers / controllers) Express.js, FastAPI, Spring, etc.

Supported Test Frameworks

Language Frameworks
Python pytest + requests or httpx
JavaScript/TypeScript Jest, Mocha/Chai, Supertest
Java JUnit 5 + RestAssured
Go testing + net/http/httptest
API-level (language-agnostic) Newman (Postman), k6 (load), plain .http files

If the user doesn't specify a framework, ask — or default to pytest for Python APIs, Jest for JS/TS APIs.


Workflow

Step 1 — Parse the API Definition

Extract from the input:

  • Endpoints: method + path (e.g., POST /api/v1/users)
  • Request: headers, query params, path params, body schema (required vs optional fields, types)
  • Response: status codes, response body schema, headers
  • Auth: Bearer token, API key, Basic auth, OAuth2
  • Constraints: min/max, enum values, format (email, uuid, date-time), nullable

If input is ambiguous or incomplete, ask the user to clarify before generating.

Step 2 — Determine Test Strategy

For each endpoint, generate tests across these categories:

✅ Happy Path Tests
  • Valid request with all required fields → expect 2xx
  • Valid request with all optional fields included
  • Minimal valid request (required fields only)
❌ Validation / Error Tests
  • Missing required fields → expect 400/422
  • Invalid field types (string where int expected, etc.)
  • Out-of-range values (below min, above max)
  • Invalid enum values
  • Malformed request body (invalid JSON)
  • Extra/unknown fields (if strict validation expected)

Read the full file on GitHub · 274 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 274 lines · 182 tokens per session scan A 217df0ab6faf

Subscribe to this mod's changes

api-to-testcase-generator is a skill published in the GitHub repository LambdaTest/agent-skills (398 stars, last pushed 14d ago), licensed MIT. It adds 182 tokens to every session and 2,377 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

api-to-testcase-generator compared with skills from other repositories

api-to-testcase-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-to-testcase-generatorLambdaTest/agent-skillsSkill39814d agoMITA182Claude Code, Codex
detecting-broken-object-property-level-authorizationxalgorix/xalgorixSkill1.5k2d agoApache-2.0A36Claude Code, Codex
ai-native-workflowidavidov13/agentic-playwrightSkill31313d agoMITA71Claude Code, Codex
api-testingidavidov13/agentic-playwrightSkill31313d agoMITA69Claude Code, Codex
data-strategyidavidov13/agentic-playwrightSkill31313d agoMITA68Claude Code, Codex
test-standardsidavidov13/agentic-playwrightSkill31313d agoMITA63Claude Code, Codex
enumsidavidov13/agentic-playwrightSkill31313d agoMITA73Claude Code, Codex