explore-api

explore-api is a skill for Claude Code from erraggy/oastools. It costs 16 tokens per session (1,298 once invoked), scanned A, original, MIT.

A tool guide for exploring an OpenAPI specification, a document that describes an API's endpoints, data shapes, and servers. It explains how to get an overview and inspect paths, operations, tags, and schemas.

In plain words
What is it for?
Use it to inspect an API's structure, list or filter endpoints, examine reusable schemas, and investigate specific operations without loading excessive detail.
Why use it?
It makes large API descriptions easier to navigate and reduces the need to read every endpoint or inline data definition at once.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oastools plugin — 5 skills, 1 hook shipped together

Good fit Use it to inspect an API's structure, list or filter endpoints, examine reusable schemas, and investigate specific operations without loading excessive detail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/erraggy/oastools/explore-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add erraggy/oastools --skill explore-api
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

Made for: Claude Code.

Or install oastools, the plugin that ships this one along with the rest of its 5 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explore-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/erraggy/oastools/explore-api/github.svg)](https://agentmods.dev/skills/erraggy/oastools/explore-api)
Your own site
<a href="https://agentmods.dev/skills/erraggy/oastools/explore-api"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/explore-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for explore-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/erraggy/oastools/explore-api"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/explore-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01298
Opus 5.5 $0.00006 $0.00519
Sonnet 5.5 $0.00003 $0.00260
Haiku 4.5 $0.00002 $0.00130

Measured 1mo ago against content hash 2cce57ca75c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explore-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/explore-api/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Explore an API

Step 1: Get the high-level overview

Call parse to understand the API at a glance:

{"spec": {"file": "<path>"}}

Report:

  • API title and version
  • OAS version (2.0, 3.0, 3.1)
  • Number of paths, operations, and schemas
  • Server URLs
  • Tags (these organize operations into groups)

Handling Large APIs

If parse shows 100+ operations or 200+ schemas, adjust your strategy:

  • ⚠️ Filter first, page second. Use tag, method, or path filters on walk tools rather than paging through all results.
  • ✅ Use 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 by tag. If the API has tags, use them. walk_operations with tag filter is the fastest way to understand a specific area.
  • ❌ Avoid detail: true on unfiltered walks. Full operation objects can be very large. Get summaries first, then drill into specific operations.

Step 2: List endpoints

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:

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 186 lines · 16 tokens per session scan A 2cce57ca75c7

Subscribe to this mod's changes

explore-api is a skill published in the GitHub repository erraggy/oastools (6 stars, last pushed 9d ago), licensed MIT. It adds 16 tokens to every session and 1,298 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

orval

Generate type-safe API clients, TanStack Query/SWR hooks, Zod schemas, MSW mocks, Hono server handlers, MCP servers, and SolidStart actions from OpenAPI specs using Orval. Covers all clients (React/Vue/Svelte/Solid/Angular Query, Fetch, Axios), custom HTTP mutators, authentication patterns, NDJSON streaming…

orval-labs/orval · 83 tokens

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

API Contract Validator

Validate API responses against OpenAPI/Swagger specifications, JSON Schema definitions, and consumer-driven contracts to prevent breaking changes.

PramodDutta/qaskills · 26 tokens

ocli-api

Turn any OpenAPI, Swagger, or OpenRPC API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.

EvilFreelancer/openapi-to-cli · 38 tokens

lathe

Initialize CLI-first applications and keep their OpenAPI contract, generated CLI, and Agent Skill synchronized. Use when creating an application with lathe init or changing a Lathe-generated application.

lathe-cli/lathe · 39 tokens

openapi-expert

Expert-level OpenAPI/Swagger specification for API design, documentation, and code generation. Use when the user mentions swagger, API specs, REST, API design, or documentation, or when the task involves OpenAPI Specification, Webhooks, or Polymorphism.

personamanagmentlayer/pcl · 57 tokens