manage-openapi-overlays

Create, apply, and validate OpenAPI overlays using the speakeasy CLI.

19|6|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/speakeasy-api/skills --skill manage-openapi-overlays
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-openapi-overlays
Source: https://github.com/speakeasy-api/skills/tree/main/skills/manage-openapi-overlays
Command: npx skills add https://github.com/speakeasy-api/skills --skill manage-openapi-overlays

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Overlays let you customize an OpenAPI spec for SDK generation without modifying the source. This enables safer experimentation, faster iteration, and targeted fixes.

Core Features & Use Cases

  • Create, apply, and validate overlay files to fix validation issues, add x-speakeasy extensions, and tune generated SDK behavior.
  • Use in workflows by including overlays in .speakeasy/workflow.yaml, allowing automated, layered customizations.
  • Compare specs to generate overlays, apply overlays to openapi.yaml, and lint overlays for correctness.

Quick Start

Create an overlay and apply it to your spec using the CLI: speakeasy overlay apply -s openapi.yaml -o overlay.yaml --out openapi-modified.yaml

Frequently Asked Questions about manage-openapi-overlays

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize an OpenAPI spec for SDK generation without modifying the source file?

You can customize an OpenAPI spec without modifying the source by creating and applying an overlay file using the speakeasy CLI. This enables safer experimentation and targeted fixes by layering changes onto the original spec.

What is an OpenAPI overlay and when do I need to use one?

An OpenAPI overlay is a JSONPath-based file that applies targeted modifications to a specification. You need it to fix validation issues, attach x-speakeasy extensions, or adjust operation metadata without altering the base OpenAPI document.

How do I apply an OpenAPI overlay to my spec using the CLI?

To apply an OpenAPI overlay, run the speakeasy CLI command: speakeasy overlay apply -s openapi.yaml -o overlay.yaml --out openapi-modified.yaml. This generates a new spec file with your overlay changes layered on top.

Can I automate OpenAPI overlays in my workflow?

Yes, you can automate OpenAPI overlays by including them in your .speakeasy/workflow.yaml file. This allows automated, layered customizations to run as part of your standard SDK generation pipeline.

How do I generate an overlay by comparing two OpenAPI specs?

You can generate an overlay by comparing an original and modified OpenAPI spec using the speakeasy CLI. This produces a JSONPath-based overlay file that captures the differences, which you can then apply and lint for correctness.

Does the speakeasy CLI validate OpenAPI overlays for correctness?

Yes, the speakeasy CLI can lint OpenAPI overlays to validate their correctness. This ensures your JSONPath-based modifications are structurally sound before applying them to your spec for SDK generation.