Writing Openapi Specs

🌐Community
by speakeasy-api · vlatest · Repository

Generates OpenAPI specifications from code comments and API endpoints using Speakeasy's conventions.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add writing-openapi-specs npx -- -y @trustedskills/writing-openapi-specs
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "writing-openapi-specs": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/writing-openapi-specs"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The writing-openapi-specs skill enables AI agents to generate OpenAPI specifications based on natural language descriptions or existing codebases. It automates the creation of API documentation, ensuring consistent schema definitions and endpoint structures without manual YAML or JSON editing.

When to use it

  • Rapidly prototype new API endpoints by describing desired functionality in plain English.
  • Convert legacy monolithic code into well-documented, modular OpenAPI schemas for microservices migration.
  • Generate client SDKs or server stubs directly from high-level business requirement documents.
  • Standardize API documentation across a team to ensure uniform naming conventions and data types.

Key capabilities

  • Generates valid OpenAPI 3.x specifications from text prompts.
  • Infers data models and request/response schemas based on context.
  • Supports generation for various programming language ecosystems.
  • Outputs ready-to-use YAML or JSON configuration files.

Example prompts

  • "Create an OpenAPI spec for a user authentication service with login, logout, and profile update endpoints."
  • "Generate an OpenAPI specification for a REST API that manages inventory levels across multiple warehouses."
  • "Write an OpenAPI 3.0 spec for a payment processing gateway supporting credit cards and PayPal."

Tips & gotchas

Ensure your prompts include specific details about data types, authentication methods, and error handling to reduce the need for iterative refinement. While the skill generates valid syntax, manually reviewing complex logic flows is recommended before deploying to production environments.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
speakeasy-api
Installs
28

🌐 Community

Passed automated security scans.