com um clique
explore-api
Explore an OpenAPI spec's structure using parse and walk tools
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Explore an OpenAPI spec's structure using parse and walk tools
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Prepare a release (phases 1-6). Usage: /prepare-release [version]. If version omitted, infers from conventional commits. Coordinates agents for review, runs prepare-release.sh, then enhances release notes with rich formatting.
Run corpus regression tests against real-world OpenAPI specs. Usage: /corpus-test [short]
Generate test scaffolding for a Go file following oastools conventions. Usage: /gen-test <file.go> [function names...]
Review unpushed commits before pushing for code quality, bugs, security issues, and error handling. Use when preparing to push commits, want pre-push code review, or need to validate changes before pushing. Runs comprehensive analysis using specialized review agents.
Publish a prepared release (phase 7). Usage: /publish-release <version>. Requires version argument. Wraps publish-release.sh for deterministic execution.
Run full validation suite (make check + gopls diagnostics) and report structured pass/fail. Usage: /quality-gate [package...]
Baseado na classificação ocupacional SOC
| name | explore-api |
| description | Explore an OpenAPI spec's structure using parse and walk tools |
Call parse to understand the API at a glance:
{"spec": {"file": "<path>"}}
Report:
If parse shows 100+ operations or 200+ schemas, adjust your strategy:
tag, method, or path filters on walk tools rather than paging through all results.component: true for schemas. Without it, walk_schemas returns ALL schemas including inline ones (request bodies, response wrappers, etc.), which can be 3-5x the number of named component schemas. Start with component: true to see the data model, then omit it only when hunting for inline schema issues.walk_operations with tag filter is the fastest way to understand a specific area.detail: true on unfiltered walks. Full operation objects can be very large. Get summaries first, then drill into specific operations.Call walk_operations to list all API endpoints:
{"spec": {"file": "<path>"}}
Present them grouped by tag or by path prefix. For each operation show the method, path, and summary.
For a quick overview of a large API, use group_by first:
{"spec": {"file": "<path>"}, "group_by": "tag"}
This returns operation counts per tag — the fastest way to understand API scope.
{"spec": {"file": "<path>"}, "group_by": "method"}
This shows the HTTP method distribution (e.g., 60% GET, 25% POST, etc.).
⚠️ If the API is large (more endpoints than the default page of 100), prefer filtering over paging:
{"spec": {"file": "<path>"}, "tag": "Users"}
{"spec": {"file": "<path>"}, "path": "/users/*"}
For deeply nested APIs, use ** to match across path depths:
{"spec": {"file": "<path>"}, "path": "/drives/**/workbook/**"}
✅ When returned < matched, use offset to page through remaining results:
{"spec": {"file": "<path>"}, "offset": 100, "limit": 100}
Call walk_schemas to list the API's data models:
{"spec": {"file": "<path>"}}
✅ Summarize the schemas by name and type. Always start with component: true for large APIs — this shows only the named schemas from components/schemas (or definitions in OAS 2.0), filtering out inline schemas that clutter the results:
{"spec": {"file": "<path>"}, "component": true}
Get schema type distribution:
{"spec": {"file": "<path>"}, "group_by": "type", "component": true}
⚠️ Omit component only when you need to find inline schemas (e.g., hunting for unnamed request body schemas).
Based on what the user is interested in, drill deeper:
Specific endpoint details:
{"spec": {"file": "<path>"}, "operation_id": "getUser", "detail": true}
Parameters for a path:
{"spec": {"file": "<path>"}, "path": "/users/{id}", "detail": true}
(using walk_parameters)
Responses for an endpoint:
{"spec": {"file": "<path>"}, "path": "/users", "method": "get", "detail": true}
(using walk_responses)
Security schemes:
{"spec": {"file": "<path>"}}
(using walk_security)
Response headers:
{"spec": {"file": "<path>"}, "group_by": "name"}
(using walk_headers — shows which headers are most common across the API)
Headers for a specific endpoint:
{"spec": {"file": "<path>"}, "path": "/users", "method": "get"}
(using walk_headers)
Call walk_refs to understand which schemas and responses are most referenced:
{"spec": {"file": "<path>"}}
This returns unique $ref targets ranked by count (most-referenced first). Use this to identify the API's core data models.
Trace a specific schema's usage:
{"spec": {"file": "<path>"}, "target": "*schemas/User*", "detail": true}
This shows every location that references the schema — useful for understanding impact before modifying a schema.
Filter by ref type:
{"spec": {"file": "<path>"}, "node_type": "response"}
Narrow to schema, parameter, response, requestBody, header, or pathItem refs.
Provide a structured summary of the API: