npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tzurp/openapi-skills

v1.2.9

Published

CLI toolkit for exploring OpenAPI and GraphQL schemas, generating operation artifacts, validators, and tests. Includes an agent skill bundle that teaches AI tools how to operate the CLI safely and efficiently.

Readme

openapi-skills

API CLI with SKILLS

Legacy downloads openapi-skills downloads

With Skills enabled, openapi‑skills becomes an AI‑ready API engine: agents can explore your API, prepare and execute live requests, validate schemas, and even generate client code, tests, and workflows - all from simple, conversational instructions.

Overview

openapi-skills helps developers work with API schemas efficiently. It parses OpenAPI and GraphQL definitions, generates structured artifacts, provides exploration tools, validates schemas, prepares request templates, and supports test generation. When the AI skills are installed, agents can understand your API and execute CLI commands automatically.

Why openapi-skills

Working with API schemas can be slow and error‑prone. openapi-skills provides:

  • A consistent way to explore any API
  • Automatic artifact generation
  • Request templates you can execute immediately
  • Built‑in validation tools
  • Optional AI integration for natural-language workflows

Manual CLI + AI Skills

openapi-skills works perfectly as a traditional CLI. You can explore endpoints, inspect schemas, prepare requests, and execute live API calls directly from the terminal.

Enable the optional Skill bundle, and AI agents (Copilot, Claude, Cursor, etc.) can operate the CLI for you: exploring operations, preparing and executing requests, validating schemas, and even generating client code, tests, and multi-step workflows from natural language.

Features

  • Explore operations by method, path, tag, or keyword
  • Describe endpoints with full request/response details
  • Prepare and execute live API requests (Postman‑like, no code needed)
  • Parse OpenAPI 2.0/3.x and GraphQL schemas
  • Generate artifacts (endpoints.json, schemas/)
  • Work with multiple API schemas simultaneously (stored under: .openapi-skills// directory)
  • Validate schemas and API responses
  • Build multi-step scenarios
  • AI Skills bundle for agent-driven workflows (code, tests, clients, docs)

Workflow

parse → index → understand → execute → validate → generate code/tests (via agent)

Quick start

Install the CLI

npm install -g @tzurp/openapi-skills

Install the Skill

openapi-skills install --skills

Select your preferred path from the menu and confirm

Generate artifacts from a schema

openapi-skills generate https://petstore.swagger.io/v2/swagger.json --base-url=https://petstore.swagger.io/v2

This creates:

.openapi-skills/
  petstore/
    endpoints.json
    schemas/

Explore the API manually

openapi-skills list --api petstore --method POST --index 0:10
openapi-skills list --api petstore --method GET --path /pet --tag pet
openapi-skills describe addPet --api petstore

Prepare and execute a request manually

openapi-skills request addPet --api petstore --force --update-request '{"body.id":1,"body.name":"Fluffy"}'

⚡ One‑line agent command

Once the Skills bundle is installed, the entire Quick start can be replaced with a single natural-language instruction:

In Agent mode write: /openapi-skill make live request to addPet with name "Fluffy" using the schema https://petstore.swagger.io/v2/swagger.json and base url https://petstore.swagger.io/v2

The agent will:

  • Parse the schema
  • Generate artifacts
  • Index endpoints
  • Prepare the request
  • Set "name": "Fluffy"
  • Execute it live
  • Show the response

All from one sentence.

Example questions you can ask the Skill if you feel stuck

You can always ask the skill question to progress in your work. For example:

  • /openapi-skills what can you do?
  • /openapi-skills how do I add an auth token to a live request?

5‑minute tutorial

1. Install the CLI

npm install -g @tzurp/openapi-skills

Install the Skill

# Local install (default)
openapi-skills install --skills
# Global install (user home)
openapi-skills install --skills --global

During installation, the CLI shows a small menu where you choose the Skill’s location:

  • .cursor/skills/
  • .agent/skills/
  • .claude/skills/
  • .github/skills/
  • other (custom path)

Select your preferred path and confirm — that’s it.

💡 Note:

Installing the skill bundle allows AI agents to understand your API structure and execute CLI commands automatically.
See the section on AI agent capabilities.

2. Parse a public API and set its base URL

openapi-skills generate https://petstore.swagger.io/v2/swagger.json --base-url=https://petstore.swagger.io/v2 --rename petstore-v2

3. Explore operations

openapi-skills list --api petstore --method POST --index 0
openapi-skills describe addPet --api petstore

4. Build and execute a request

openapi-skills request addPet --api petstore --force --update-request '{"body.id":1,"body.name":"Fluffy"}'

5. Validate the schema

openapi-skills generate https://petstore.swagger.io/v2/swagger.json --validate

Examples of what AI agents can do when the Skill is enabled

| Natural language request | CLI/Skill executed | |--------------------------|--------------------| | “Make a live request to addPet with name Fluffy.” | Postman‑like API call via request --update-request | | “Show me the first POST operation.” | Explore endpoints via list | | “Describe the addPet operation.” | Operation breakdown via describe | | “Validate this API schema.” | Schema validation via generate --validate | | “Generate a Jest test for addPet.” | Agent writes full Jest test using CLI metadata | | “Create a Playwright API test for addPet.” | Agent generates Playwright test using endpoint + schema | | “Build a TypeScript API client for this API.” | Agent generates typed client functions + models | | “Create a 3-step scenario: add, fetch, delete pet.” | Multi-step workflow via request |

Agents combine CLI output with code generation to produce:

  • typed API clients
  • integration & contract tests
  • Playwright API tests
  • mocks & fixtures
  • multi-step workflows
  • documentation

🎥 Video demo

A short video clip demonstrating the CLI in action is available here:

https://github.com/tzurp/openapi-skills-cli/releases#release-video

Support

If you run into issues or have questions:

✨TIP

When opening an issue or sending an email, include the CLI version, the command you ran, and any relevant logs or schema snippets.

Links