Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dicklesworthstone/openapi-spec-generation
Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns.
Passed 21 of 23 test cases with the skill, and 19 of 23 without it.
2 fixed19 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are building a Python REST API service for user management using FastAPI and Pydantic models. We want to generate an OpenAPI 3.1 specification directly from our application code when run as a standalone script. Many developers just call `app.openapi_schema` or print `app.openapi`. Show us the correct Python code block to export the generated spec to stdout formatted as indented JSON.
| Checked | Without skill | With skill |
|---|---|---|
| calls app.openapi() | Passed | Passed |
| uses json.dumps with indent parameter | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.
openapi: 3.1.0
info:
title: API Title
version: 1.0.0
servers:
- url: https://api.example.com/v1
paths:
/resources:
get: ...
components:
schemas: ...
securitySchemes: ...
| Approach | Description | Best For |
|---|---|---|
| Design-First | Write spec before code | New APIs, contracts |
| Code-First | Generate spec from code | Existing APIs |
| Hybrid | Annotate code, generate spec | Evolving APIs |
test cases passed, vs 19 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.