openapi-parser SKILL.md skillA

openapi-parser from pactflow/pactflow-agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add pactflow/pactflow-agent-skills/openapi-parser@git:20260408.182cfa1

Pins git:20260408.182cfa1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
pactflow/pactflow-agent-skills
Path
plugins/swagger-contract-testing/skills/openapi-parser/SKILL.md
Versions recorded
1
Latest version
git:20260408.182cfa1, committed Apr 8, 2026
Size
6,347 bytes
Repository stars
7
License
MIT

Parses complex OpenAPI specs and generates Drift test cases from them. Use whenever the user wants to generate, write, or scaffold Drift tests from an OpenAPI spec — especially when the spec contains complex schemas: anyOf/oneOf/allOf, discriminators, polymorphism, inheritance, $ref chains, regex patterns, enums, or optional fields. Use when the user asks to "create tests for an endpoint", "cover all response variants", "generate test cases from the spec", or says anything like…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# OpenAPI Parser Skill

## Reference files

- [`references/schema-patterns.md`](references/schema-patterns.md) — how to interpret and enumerate every complex pattern
  (anyOf / oneOf / allOf / discriminator / $ref / enum / pattern / nullable / optional),
  with real examples from snyk, digitalocean, posthog, and front/core specs
- [`references/drift-mapping.md`](references/drift-mapping.md) — how to map enumerated schema variants to Drift YAML,
  including datasets, expressions, lifecycle hooks for stateful cases, and expected
  response matchers for each pattern type

## Workflow

> **OpenAPI version:** This skill targets OpenAPI 3.x. Swagger 2.0 specs use the same structural patterns (`$ref`, `allOf`, `oneOf`) but different envelope syntax — you may need to adapt field names manually.
> If working from the `konfig-sdks/openapi-examples` collection, see [`references/example-repos.md`](references/example-repos.md) for navigation commands.

### 1. Locate the endpoint

Extract only what's needed:

```bash
# Find the line number of the endpoint (macOS/Linux/Git Bash/WSL)
grep -n "^  /path/to/endpoint" spec.yaml

# Read just that block (adjust line range as needed)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add pactflow/pactflow-agent-skills/openapi-parser@sha256:85d80b33974489f6

The line at the top of this page pins the label git:20260408.182cfa1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_xbgoog4pvt54rz4c.svg)](https://markdownregistry.com/a/art_xbgoog4pvt54rz4c)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Apr 8, 2026.

versioncommittedcommitsizeaudit
git:20260408.182cfa1 latest2026-04-08 182cfa1 6,347 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6347 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

pactflow/pactflow-agent-skills · 7 stars · license MIT · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_xbgoog4pvt54rz4c
GET https://markdownregistry.com/api/v1/resolve?ref=pactflow/pactflow-agent-skills/openapi-parser
GET https://markdownregistry.com/api/v1/blob/85d80b33974489f63a0004397d70c54c0d9e601cf6cc1eaa07f5055c2e09d7d3

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from pactflow/pactflow-agent-skills

AGENTS.md AGENTS.md file
pactflow/pactflow-agent-skills · AGENTS.md
git:20260929.bed6f48 · audit A · 7 stars
contract-testing-flywheel SKILL.md skill
pactflow/pactflow-agent-skills · plugins/contract-testing-flywheel/skills/contract-testing-flywheel/SKILL.md · Generate a structured onboarding backlog — in Jira, GitHub Issues/Projects, Azure DevOps, or as a manual markdown…
git:20260723.fe9d6ed · audit A · 7 stars
asyncapi-generator SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/asyncapi-generator/SKILL.md · Generates an AsyncAPI 3.x YAML spec from a service codebase using ripwire when no spec exists. Invoke this skill…
git:20261001.280ed1b · audit A · 7 stars
asyncapi-parser SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/asyncapi-parser/SKILL.md · Parses AsyncAPI 3.x specs and generates Drift test cases from them. Use whenever the user wants to generate, write, or…
git:20261001.2785565 · audit A · 7 stars
drift-testing SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/drift-testing/SKILL.md · Verifies API implementations against OpenAPI specifications using the Drift CLI, catching spec drift and supporting…
git:20261001.2785565 · audit A · 7 stars
oas-generator SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/oas-generator/SKILL.md · Generates an OpenAPI 3.x YAML spec from a provider codebase using ripwire when no spec exists. Invoke this skill…
git:20261001.92aa387 · audit A · 7 stars
pact-coverage SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/pact-coverage/SKILL.md · Runs a coverage check to find which API operations, status codes, request body required fields, and response body…
git:20261026.3b32913 · audit A · 7 stars
pactflow SKILL.md skill
pactflow/pactflow-agent-skills · plugins/swagger-contract-testing/skills/pactflow/SKILL.md · Expert assistant for PactFlow and Pact contract testing. Use this skill whenever the user mentions PactFlow, Pact…
git:20261005.0f36f48 · audit A · 7 stars

Every file in pactflow/pactflow-agent-skills

Browse by kind, by grade A, or by owner.