# Schemathesis fuzzing

> Schemathesis fuzzing is an open-source agent skill for developer tools. Fuzzes OpenAPI and GraphQL APIs from schema to find 5xx errors and conformance gaps. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/testland/qa/tree/main/plugins/qa-api-testing/skills/schemathesis-fuzzing
- **Repository:** https://github.com/testland/qa
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** schemathesis-fuzzing
- **Collection:** https://github.com/testland/qa
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through setting up Schemathesis, a property-based testing tool that generates API test cases from an OpenAPI or GraphQL schema. It walks through installing the CLI, running it against a staging URL with default checks, and reproducing failures from the printed curl command and Hypothesis seed.

The skill covers the main CLI flags such as URL, check selection, example count, workers, headers and report formats, along with the built-in checks for status codes, response schemas, content types, headers, server errors and auth enforcement. It also explains how to promote runs into pytest tests using a parametrized decorator and how to gate pull requests and nightly builds in CI.

Three setups address common reasons a run stays green while missing bugs: dynamic token refresh for auth, schema constraints that let negative input checks work, and OpenAPI links that enable stateful create-read-delete sequences. Users need a machine-readable API schema, and Python with pip or uv for the CLI. Some CI and pytest details are kept in a separate reference file.

## When your agent uses it

> Use for any request to generate API tests from an OpenAPI or GraphQL schema, or to find inputs that make an API return 500 that hand-written tests miss: Schemathesis fuzzes every endpoint for 5xx errors and schema violations from the CLI or pytest, picks the conformance checks and gates CI as the API evolves.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/testland/qa/tree/HEAD/plugins/qa-api-testing/skills/schemathesis-fuzzing)
- [License: MIT](https://github.com/testland/qa/tree/HEAD/plugins/qa-api-testing/skills/schemathesis-fuzzing)

## Features

- **Schema-driven fuzzing:** Generates many varied requests per endpoint directly from an OpenAPI or GraphQL schema.
- **Built-in conformance checks:** Verifies status codes, response bodies, content types, headers and server errors against the schema.
- **CLI and pytest runs:** Runs from the command line or as parametrized pytest tests against a chosen base URL.
- **Dynamic auth setup:** Fetches and refreshes tokens during a run instead of relying on a static header.
- **Stateful workflow testing:** Chains create, read and delete operations using OpenAPI links to find resource lifecycle bugs.
- **CI gating guidance:** Describes shallow pull request runs and deeper scheduled runs with reproducible failure output.

## Good for

- Generate fuzz tests for an OpenAPI spec I just wrote
- Find inputs that make my API return 500 errors
- Run schema conformance checks against our staging server
- Set up Schemathesis in pytest and gate CI on failures
- Test a create-then-delete API flow for stale resources

## Install

### Claude Code

This skill ships in the `qa-api-testing` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add testland/qa
/plugin install qa-api-testing@testland-qa
```

Or copy only this skill to `~/.claude/skills/schemathesis-fuzzing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/schemathesis-fuzzing &&
cp -R "$tmp/plugins/qa-api-testing/skills/schemathesis-fuzzing" ~/.claude/skills/schemathesis-fuzzing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/schemathesis-fuzzing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/schemathesis-fuzzing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/schemathesis-fuzzing &&
cp -R "$tmp/plugins/qa-api-testing/skills/schemathesis-fuzzing" ~/.agents/skills/schemathesis-fuzzing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/schemathesis-fuzzing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/schemathesis-fuzzing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/schemathesis-fuzzing &&
cp -R "$tmp/plugins/qa-api-testing/skills/schemathesis-fuzzing" ~/.cursor/skills/schemathesis-fuzzing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/schemathesis-fuzzing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/testland/qa.git --path plugins/qa-api-testing/skills/schemathesis-fuzzing
```

Or copy the folder to `~/.gemini/skills/schemathesis-fuzzing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/schemathesis-fuzzing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/schemathesis-fuzzing &&
cp -R "$tmp/plugins/qa-api-testing/skills/schemathesis-fuzzing" ~/.copilot/skills/schemathesis-fuzzing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/schemathesis-fuzzing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/testland/qa.git
```

Then copy `qa/plugins/qa-api-testing/skills/schemathesis-fuzzing` into your agent's skills folder as `schemathesis-fuzzing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Schemathesis fuzzing can be used?

The API must ship an OpenAPI 2.0, 3.x or GraphQL schema, and the CLI is installed with pip or run through uvx.

### Does Schemathesis fuzzing run against production?

The guidance says to always target a staging URL with the --url flag, since generated requests can change data.

### Why do some tests miss negative input bugs?

The negative data check can only flag what the schema forbids, so missing constraints like minimum or maxLength hide those bugs.

### Which old CLI flags should be avoided?

The skill notes that the 3.x flags such as --base-url, --junit-xml and --cassette-path are no longer in the current CLI.

### How do I install Schemathesis fuzzing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/schemathesis-fuzzing to use it in all your projects, or to .claude/skills/schemathesis-fuzzing in one project. Or install the qa-api-testing plugin, which includes it: /plugin marketplace add testland/qa, then /plugin install qa-api-testing@testland-qa.

### Does Schemathesis fuzzing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Schemathesis fuzzing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Schemathesis fuzzing?

The closest alternatives to Schemathesis fuzzing are API to testcase generator, Vibe fuzz parser inputs, Testing conventions, JSON schema and Restler fuzzing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [API to testcase generator](https://ai-powered.com/skills/api-to-testcase-generator): API to testcase generator is an open-source agent skill for developer tools.
- [Vibe fuzz parser inputs](https://ai-powered.com/skills/vibe-fuzz-parser-inputs): Vibe fuzz parser inputs is an open-source agent skill for developer tools.
- [Testing conventions](https://ai-powered.com/skills/testing-conventions): Testing conventions is an open-source agent skill for developer tools.
- [JSON schema](https://ai-powered.com/skills/json-schema): JSON schema is an open-source agent skill for developer tools.
- [Restler fuzzing](https://ai-powered.com/skills/restler-fuzzing): Restler fuzzing is an open-source agent skill for developer tools.
- [Crud](https://ai-powered.com/skills/crud): Crud is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Go GraphQL](https://ai-powered.com/skills/go-graphql): Go GraphQL is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/schemathesis-fuzzing
