create-openapi-overlay
π―Skillfrom speakeasy-api/agent-skills
Creates a customizable OpenAPI overlay file to modify SDK generation behavior without directly editing the source OpenAPI specification.
Installation
npx skills add https://github.com/speakeasy-api/agent-skills --skill create-openapi-overlaySkill Details
Overview
[](https://launchweek.dev/lw/2024/mega#participants)
# Speakeasy Agent Skills
A collection of [Agent Skills](https://agentskills.io/) for SDK generation and OpenAPI tooling with the [Speakeasy CLI](https://speakeasy.com/).
Installation
```bash
npx skills add speakeasy-api/skills
```
Available Skills
| Skill | Use When... |
|-------|-------------|
| speakeasy:sdk-tf-generation-best-practices | Progressive Disclosure β Comprehensive guide to all Speakeasy SDK and Terraform generation capability and best practices. Routes to detailed guides for generation workflows, language-specific patterns, customization, testing, and OpenAPI spec management |
| speakeasy:start-new-sdk-project | You have an OpenAPI spec and want to generate an SDK |
| speakeasy:regenerate-sdk | Your spec changed and you need to regenerate |
| speakeasy:validate-openapi-spec | Checking if spec is valid, running speakeasy lint |
| speakeasy:get-ai-suggestions | SDK method names are ugly, wanting to improve operation IDs |
| speakeasy:check-workspace-status | Asking what targets/sources are configured |
| speakeasy:create-openapi-overlay | Need to customize SDK without editing source spec |
| speakeasy:apply-openapi-overlay | Applying an overlay file to a spec |
| speakeasy:merge-openapi-specs | Combining multiple OpenAPI specs |
| speakeasy:diagnose-generation-failure | SDK generation failed, seeing "Step Failed: Workflow" |
| speakeasy:fix-validation-errors-with-overlays | Have lint errors but can't modify source spec |
| speakeasy:improve-operation-ids | SDK methods have names like GetApiV1Users |
| speakeasy:configure-authentication | Setting up Speakeasy auth in CI/CD or non-interactive environments |
Key Principles
- Don't auto-fix everything - Distinguish between:
- Small issues (naming, descriptions) β Fix with overlays
- Structural issues (invalid refs) β Ask the user
- Design issues (auth, API structure) β Produce strategy document
- AI-friendly output - Use
speakeasy run --output consolefor structured output, pipe togrep/tailto reduce context
- Overlay over modify - Never modify source specs directly. Overlays make patches portable across spec versions.
- Grouped SDK methods - Guide users toward
sdk.users.list()pattern usingx-speakeasy-group+x-speakeasy-name-override
Directory Structure
```
speakeasy-api/skills/
βββ .claude-plugin/
β βββ plugin.json
β βββ marketplace.json
βββ skills/
β βββ start-new-sdk-project/
β β βββ SKILL.md
β βββ regenerate-sdk/
β β βββ SKILL.md
β βββ ... (13 skills total)
βββ templates/
β βββ SKILL.template.md
βββ AGENTS.md # Contributor guidance for AI agents
βββ CLAUDE.md # Claude-specific contributor guidance
βββ README.md
βββ LI
More from this repository10
Validates an OpenAPI specification by running the `speakeasy lint` command to check for specification correctness and potential issues.
Provides AI-powered recommendations for improving SDK method names and operation IDs to enhance code readability and developer experience.
Configures authentication settings for SDK generation, helping users set up secure API access credentials and authentication methods.
Applies an OpenAPI overlay file to modify or enhance an existing OpenAPI specification without directly editing the source spec.
Merges multiple OpenAPI specification files into a single, consolidated OpenAPI specification document.
Automatically identifies and resolves OpenAPI specification validation errors by generating and applying targeted overlay files.
Regenerates an SDK when the underlying OpenAPI specification has been modified, ensuring the client library stays up-to-date with the latest API changes.
Guides developers through generating a new SDK from an OpenAPI specification, walking them step-by-step through the initial SDK project setup process.
Improves and refines operation IDs in an OpenAPI specification to generate more readable and meaningful SDK method names.
Checks and reports the current configuration of SDK generation targets and sources in the Speakeasy workspace.