Back to Skills

merge-openapi-specs

verified

Use when combining multiple OpenAPI specs, or have microservices with separate spec files

View on GitHub

Marketplace

speakeasy

speakeasy-api/speakeasy

Plugin

speakeasy

productivity

Repository

speakeasy-api/speakeasy
378stars

skills/merge-openapi-specs/SKILL.md

Last Verified

January 17, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/speakeasy-api/speakeasy/blob/main/skills/merge-openapi-specs/SKILL.md -a claude-code --skill merge-openapi-specs

Installation paths:

Claude
.claude/skills/merge-openapi-specs/
Powered by add-skill CLI

Instructions

# merge-openapi-specs

Use `speakeasy merge` to combine multiple specs into one.

## Command

```bash
speakeasy merge -o <output-path> <spec1> <spec2> [spec3...]
```

## Example

```bash
# Merge two specs
speakeasy merge -o combined.yaml ./api/users.yaml ./api/orders.yaml

# Merge multiple specs
speakeasy merge -o combined.yaml ./specs/*.yaml
```

## Use Cases

- Microservices with separate specs per service
- API versioning with multiple spec files
- Combining public and internal API specs

## Conflict Resolution

When specs have conflicts:
- Later specs override earlier ones for duplicate paths
- Schema conflicts may require manual resolution
- Review merged output for correctness

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
681 chars