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

openapi-to-skill

v0.1.2

Published

Convert OpenAPI specs into chunked Markdown docs that are easier for LLMs to browse.

Downloads

19

Readme

openapi-to-skill

Convert OpenAPI specs into chunked Markdown docs that are easier for LLMs to browse.

Instead of handing one giant OpenAPI file to a model, this CLI produces:

  • a top-level SKILL.md for fast route discovery
  • one markdown file per route (input + output schema details)

Routes without a title (summary or title) are skipped.

Why?

When working with LLMs, it's important to be context-efficient. Simply dumping an entire OpenAPI spec into a prompt is expensive and inefficient. This tool provides a discovery-first approach to providing OpenAPI docs to your agents. When using openapi-to-skill, your agents workflow is:

  • First, it's provided with the basic skill info in it's system prompt
  • If necessary, your agent can read SKILL.md to see the list of available routes with a short description
  • If the agent wants to use the route, they can fetch a route-specific markdown file to see all input and output schema details

CLI Usage

Generate Skills

bunx openapi-to-skill skill ./openapi.yaml --name example-api --description "OpenAPI docs for Example API"

This will generate a skill at .agents/skills/example-api/SKILL.md with neighboring markdown files for each route.

If you want to write to the global skills directory, you can use the --global flag. This will add the skill to ~/.agents/skills/*.

Generate Markdown Docs

You can also generate markdown docs for a given OpenAPI spec.

bunx openapi-to-skill generate ./openapi.yaml --out ./llm-docs

Generate docs from a URL:

bunx openapi-to-skill generate https://api.example.com/openapi.json --out ./llm-docs

Optional flags:

  • --index <name>: index filename (default: README.md)
  • --routes-dir <name>: route docs directory name (default: routes)

Output Structure

llm-docs/
  README.md
  routes/
    get-users-list-users.md
    post-users-create-user.md
    ...

What Goes Into README.md

  • API title/version/description (from info)
  • base URLs (from servers)
  • concise route table with:
    • path
    • title
    • description
    • link to route markdown file

Programmatic API

import { Effect } from "effect";
import { BunContext } from "@effect/platform-bun";
import { generateOpenApiMarkdown } from "openapi-to-skill";

const result = await Effect.runPromise(
  generateOpenApiMarkdown({
    source: "./openapi.yaml",
    outputDir: "./llm-docs",
  }).pipe(Effect.provide(BunContext.layer)),
);

console.log(result.indexPath);

Development

bun test
bun run typecheck