Openapi Spec Generation

🌐Community
by sickn33 · vlatest · Repository

Generates OpenAPI specifications from existing codebases or natural language descriptions for API documentation and automation.

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 sickn33-openapi-spec-generation npx -- -y @trustedskills/sickn33-openapi-spec-generation
2

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

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

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

About This Skill

The openapi-spec-generation skill allows AI agents to automatically create OpenAPI specification files based on provided API descriptions or code snippets. It streamlines the process of defining RESTful interfaces, ensuring consistent documentation and contract validation for backend services.

When to use it

  • Rapidly prototype new API endpoints without manually writing YAML or JSON definitions.
  • Generate standard documentation from existing function signatures or route handlers.
  • Validate that AI-generated code adheres to a specific OpenAPI schema structure.
  • Accelerate frontend-backend integration by providing immediate interface contracts.

Key capabilities

  • Converts natural language API descriptions into structured OpenAPI specs.
  • Parses source code snippets to extract endpoint details and parameters.
  • Outputs standard OpenAPI format (YAML or JSON) ready for import into tools like Swagger UI.

Example prompts

  • "Generate an OpenAPI specification for a user authentication service with login, logout, and profile update endpoints."
  • "Create an OpenAPI spec based on this Python Flask route handler code snippet."
  • "Define the API contract for a weather data retrieval service that accepts latitude and longitude parameters."

Tips & gotchas

Ensure you provide clear context about the expected request/response formats to avoid generic or inaccurate schema generation. The output may require manual refinement if complex business logic isn't explicitly described in your input.

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
sickn33
Installs
74

🌐 Community

Passed automated security scans.