Speakeasy Logo
Skip to Content

AI & MCP

Agent skills for OpenAPI and SDK generation

Vishal Gowda

Vishal Gowda

February 3, 2026 - 3 min read

AI & MCP

AI agents are becoming essential development tools, but they often struggle with specialized domains like OpenAPI and SDK generation. Without the right context, agents default to their training data, which may be outdated or incomplete. They guess at configuration options, miss best practices, and produce specs that need significant manual cleanup.

We’ve released a collection of agent skills that give AI assistants the knowledge they need to work effectively with OpenAPI specifications and the Speakeasy CLI. These skills work with Claude Code, Cursor, Windsurf, GitHub Copilot, Gemini CLI, and the 15+ other tools that support the skills specification.

npx skills add speakeasy-api/skills

What are agent skills?

Agent skills are markdown files that provide targeted instructions for AI coding assistants. When you install a skill, its frontmatter (the metadata at the top of the file) gets loaded into the agent’s context. This frontmatter includes trigger conditions that tell the agent when to read the full skill content.

The approach is lightweight by design. Unlike plugins or extensions that require custom integrations, skills are just markdown files that any agent can read. The skill’s description acts as an activation trigger, so the agent only loads the full content when working on a relevant task.

Available skills

The collection includes 21 skills covering the full lifecycle of API development, from writing specs to generating and customizing SDKs across seven languages.

While these skills include guidance specific to the Speakeasy CLI, much of the content applies to anyone working with OpenAPI. The “Writing OpenAPI specs” skill covers general best practices that improve any API specification. The overlay management skill applies to any OpenAPI toolchain. The extraction skills help regardless of what you plan to do with the resulting spec.

Speakeasy Agent Skills

Agent skills for OpenAPI authoring, SDK generation, and working with the Speakeasy CLI. Install with npx skills add speakeasy-api/skills.

View on GitHub
Skill
Writing OpenAPI specs
Category
OpenAPI
Description
Best practices for authoring OpenAPI documents, including schema design, operation naming, and patterns for better SDK generation.
Extract OpenAPI from code
Category
OpenAPI
Description
Generating OpenAPI specs from existing API implementations in FastAPI, Express, Flask, and other frameworks.
Manage OpenAPI overlays
Category
OpenAPI
Description
Using OpenAPI Overlays to modify specs without changing source files. Useful for SDK-specific extensions.
Configure Speakeasy extensions
Category
OpenAPI
Description
Applying x-speakeasy extensions to customize SDK generation behavior directly in your OpenAPI spec.
Start new SDK project
Category
SDK Generation
Description
End-to-end workflow for bootstrapping SDKs from OpenAPI specs using speakeasy quickstart.
Generate SDK for Python
Category
SDK Generation
Description
Python-specific configuration options, package structure, and publishing to PyPI.
Generate SDK for TypeScript
Category
SDK Generation
Description
TypeScript-specific configuration, module formats, and publishing to npm.
Generate SDK for Go
Category
SDK Generation
Description
Go-specific configuration, module structure, and idiomatic patterns.
Generate SDK for Java
Category
SDK Generation
Description
Java-specific configuration, Maven/Gradle setup, and publishing to Maven Central.
Generate SDK for C#
Category
SDK Generation
Description
C#-specific configuration, .NET compatibility, and publishing to NuGet.
Generate SDK for Ruby
Category
SDK Generation
Description
Ruby-specific configuration, gem structure, and publishing to RubyGems.
Generate SDK for PHP
Category
SDK Generation
Description
PHP-specific configuration, Composer setup, and publishing to Packagist.
Diagnose generation failure
Category
SDK Generation
Description
Troubleshooting when SDK generation fails. Identifies spec problems, configuration errors, or CLI issues.
Customize SDK hooks
Category
Customization
Description
Adding custom behavior through hooks: headers, telemetry, authentication, and cross-cutting concerns.
Customize SDK runtime
Category
Customization
Description
Configuring retries, timeouts, error handling, and other runtime behavior.
Improve SDK naming
Category
Customization
Description
Improving method, parameter, and type names through AI-assisted suggestions or manual configuration.
Setup SDK testing
Category
Customization
Description
Configuring contract testing and integration testing for generated SDKs.
Orchestrate multi-target SDKs
Category
Orchestration
Description
Managing SDK generation across multiple languages from a single OpenAPI spec.
Orchestrate multi-repo SDKs
Category
Orchestration
Description
Coordinating SDK generation and publishing across separate repositories.
Generate MCP server
Category
Infrastructure
Description
Generating Model Context Protocol servers from OpenAPI specs.
Generate Terraform provider
Category
Infrastructure
Description
Creating Terraform providers from OpenAPI specs, including resource mapping and publishing.

Our approach to skill design

The design of these skills was influenced by Vercel’s research on agent skills . Their key finding: focused, use-case-specific skills outperform broad meta-skills. An agent trying to decide when to activate a skill with a vague trigger like “SDK generation best practices” will often fail to activate it at the right time, or activate it when it’s not needed.

We’ve applied this principle throughout. Rather than a single comprehensive skill for SDK generation, we have separate skills for each language, for starting a new project, for diagnosing failures, and for customizing hooks. Each skill has a specific trigger condition that makes activation clear.

This approach also keeps individual skills small, which matters because skill content competes for context window space. A focused skill that solves one problem well is more valuable than a comprehensive guide that fills up the context before the agent can do useful work.

We also run evals to measure skill efficacy, testing how reliably agents complete tasks with each skill enabled. The same PR that adds evals to measure skill efficacy also provides input to refine skills further. These evals help us continuously improve skill content, trigger conditions, and scope over time.

What’s next

We built these skills because we want better OpenAPI specs everywhere. Better specs lead to better SDKs, better documentation, and better developer experiences. If an AI agent can help developers write cleaner specs and catch common mistakes earlier, that benefits the entire ecosystem.

Skills also reduce the entry barrier for using Speakeasy. Beyond authoring great OpenAPI specs, they help developers discover and apply the right configuration for SDKs without needing to read through all the documentation first.

We’re actively iterating on these skills based on real usage. Try the skills and let us know what works and what doesn’t. The repository is open source and we welcome contributions.

npx skills add speakeasy-api/skills

Last updated on

Build with
confidence.

Ship what's next.