oas-generator skillA
oas-generator is agent-read markdown (skill) from pactflow/pactflow-agent-skills: Generates an OpenAPI 3.x YAML spec from a provider codebase using ripwire when no spec exists. Invoke this skill whenever the user needs an OpenAPI spec for a service that doesn't have one published — phrases like "generate an openapi spec from the code", "there's no oas for this service", "create a spec from the codebase", "the provider doesn't have a spec", or any time a pact-coverage or contract testing workflow is blocked because the provider spec is missing. Uses ripwire to extract HTTP rou.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# OAS Generator Generates an OpenAPI 3.x YAML spec by statically analysing a provider codebase with ripwire. The spec may be incomplete (stubs for unresolvable schemas), but it will always be valid OAS and immediately usable for path-coverage testing. **Prerequisites:** `ripwire` on PATH. If absent, check `pact-coverage/references/install-ripwire.md`. --- ## Step 1 — Identify the framework Run ripwire to get oriented, then infer the framework from the ranked output and config files: ```bash ripwire <provider-root> --for="HTTP route definitions and request handlers" ``` Also check for framework config files in the project root: - `Gemfile` with `sinatra` or `rails` → Ruby - `package.json` with `express`, `fastify`, `koa`, or `hapi` → Node.js - `pyproject.toml` / `requirements.txt` with `flask` or `fastapi` → Python If the framework is still ambiguous after these checks, ask the user. --- ## Step 2 — Extract all routes Use framework-specific grep patterns to find every route registration. Run all applicable patterns and deduplicate results. ### Ruby — Rails ```bash ripwire <root> --grep="resources\|get '\|post '\|put '\|patch '\|delete '\|namespace" ``` …
Read the whole file at its exact version.
How to install
mdr add pactflow/pactflow-agent-skills/oas-generator@git:20260921.602eee1mdr add pactflow/pactflow-agent-skills/oas-generator@sha256:3735ab8871f303dbPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_hvxwrfpljm243nhu)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8117 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
pactflow/pactflow-agent-skills · 6 stars · license MIT · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hvxwrfpljm243nhu GET https://markdownregistry.com/api/v1/resolve?ref=pactflow/pactflow-agent-skills/oas-generator GET https://markdownregistry.com/api/v1/blob/3735ab8871f303db6b30ec2fef7fd31ecbc549f48fe9cfdbf8349bf638499b9a
Your agent 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.