Openapi explorer
Explore large OpenAPI 3.x / Swagger 2.0 specs (JSON or YAML) without reading them directly. Use when you need to parse or navigate an OpenAPI/Swagger spec file — list its API resources, find an endpoint, or answer what the request/response model, parameters, or schema fields of an endpoint are. Provides a resource index script and a per-resource endpoint detail script with resolved schemas.From its SKILL.md
npx -y skills add alcherkas/skills --skill openapi-explorerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, as published. Nobody here has run it
OpenAPI Explorer
OpenAPI/Swagger spec files are often megabytes of JSON. Never read a spec file
larger than ~100 KB directly — use these two scripts for progressive discovery.
Both are stdlib-only Python 3 (YAML specs additionally need PyYAML) and live in
scripts/ next to this file.
Workflow
-
Find the resource:
python3 scripts/list_resources.py <spec-file> [query]Prints one aligned row per resource: name, operation count, primary model, description. The optional
queryfilters rows case-insensitively across resource, model, and description (e.g.list_resources.py api.json customer). -
Get endpoint details:
python3 scripts/resource_details.py <spec-file> <resource>Prints every endpoint of the resource: method, path, operationId, summary, parameters (name, location, type, required), request body, and responses — with 2xx response and request-body models rendered as indented field trees (
name*: type — description;*= required,?= nullable,(circular)= self-referencing,…= truncated by depth). -
Narrow and tune when the resource is large:
python3 scripts/resource_details.py <spec> <resource> --endpoint "GET /v1/customers/{customer}" python3 scripts/resource_details.py <spec> <resource> --endpoint GetCustomers # operationId python3 scripts/resource_details.py <spec> <resource> --no-schemas # overview only python3 scripts/resource_details.py <spec> <resource> --endpoint X --depth 4 # deeper schema tree
Notes
- Resource names printed by
list_resources.pyare the exact input forresource_details.py(both derive them the same way: operation tags when present, else the first meaningful path segment). - For big resources, start with
--no-schemasto pick the endpoint, then drill into it with--endpoint. Default schema depth is 2; raise--depthonly for the specific endpoint you care about. - Unknown resource or endpoint names exit with code 1 and print suggestions / the valid endpoint list.
- Works with OpenAPI 3.x (
components/schemas) and Swagger 2.0 (definitions), JSON always; YAML requirespip install pyyaml.