# Generate adversarial API test cases from an OpenAPI or GraphQL schema

> Use Schemathesis when an agent needs to turn an API schema into broad negative and edge-case coverage instead of hand-writing examples. The skill exercises live endpoints or app hooks, explores unexpected combinations, and reports failures that ordinary happy-path tests miss.

- Skill: `agentskillexchange/generate-adversarial-api-test-cases-from-an-openapi-or-graph` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/generate-adversarial-api-test-cases-from-an-openapi-or-graph`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/generate-adversarial-api-test-cases-from-an-openapi-or-graph/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/generate-adversarial-api-test-cases-from-an-openapi-or-graph

---


# Generate adversarial API test cases from an OpenAPI or GraphQL schema

Use Schemathesis when an agent needs to turn an API schema into broad negative and edge-case coverage instead of hand-writing examples. The skill exercises live endpoints or app hooks, explores unexpected combinations, and reports failures that ordinary happy-path tests miss.

## Installation

Use the upstream install or setup path that matches your environment:
- uv pip install schemathesis

Requirements and caveats from upstream:
- <img src="https://img.shields.io/pypi/pyversions/schemathesis.svg" alt="Python versions">
- **Python Tests:**
- python

Basic usage or getting-started notes:
- uvx schemathesis run https://example.schemathesis.io/openapi.json
- uvx schemathesis run https://your-api.com/openapi.json
- **Command Line:**

- Source: https://github.com/schemathesis/schemathesis
- Extracted from upstream docs: https://raw.githubusercontent.com/schemathesis/schemathesis/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/generate-adversarial-api-test-cases-from-openapi-or-graphql-schema/)

