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

api-doc-parser-skill

v0.0.3

Published

Parse OpenAPI 3.x / Swagger 2.0 API documentation with fine-grained sub-skills. Supports 9 AI coding platforms, 3 installation methods.

Readme

api-doc-parser

Agent Skill OpenAPI Swagger Version Platforms License GitHub


Overview

api-doc-parser is an Agent Skill for parsing OpenAPI 3.x and Swagger 2.0 API documentation. It extracts endpoint details by module (tag), supports URL and local file input sources, and outputs Markdown (copy-paste ready) and JSON (machine-readable) formats.

The skill uses jq pipelines to pre-filter JSON at the shell layer, preventing large (100-500KB) OpenAPI documents from entering the Agent context.

v2 introduces a sub-skill architecture with fine-grained slash commands (/doc:fetch, /doc:list, /doc:parse, /doc:help), 9-platform support, and 3 installation methods.

Sub-skill Architecture

The pipeline is split into five sub-skills, each covering one phase:

| Sub-skill | Phase | Purpose | Slash Command | |-----------|-------|---------|---------------| | doc-fetch | Phase 1 | Source input -- fetch URL, validate local file, write state | /doc:fetch <URL\|file> | | doc-list | Phase 2 | Module listing -- extract tags, display table, accept selection | /doc:list [query] | | doc-parse | Phase 3-5 | Endpoint extraction + output generation (Markdown + JSON) | /doc:parse [query] [-a\|-b] | | doc-help | Help | Display commands, formats, examples | /doc:help | | using-api-doc-parser | Meta | Teaches the Agent how to discover and chain sub-skills | Injected at SessionStart |

The pipeline still works as a single natural-language request -- just say "Parse API docs from " and the agent will chain through all phases automatically.

Installation

Choose one of three methods:

| Method | Command | Best For | |--------|---------|----------| | Plugin (Claude Code) | claude plugins install api-doc-parser | Claude Code users | | NPM | npm install -g api-doc-parser-skill | Cross-platform, auto-updates | | Manual | git clone https://github.com/summer-bwbb/api-doc-parser.git && cp -r api-doc-parser/skills/* ~/.claude/skills/ | Custom setups, offline |

See docs/INSTALL.md for detailed per-platform instructions.

Command Reference

| Command | Purpose | |---------|---------| | /doc:fetch <URL\|file> | Fetch and validate API documentation source | | /doc:list [query] | List modules and select which to parse | | /doc:parse [query] [-a\|-b] | Extract endpoints and generate output (-a display, -b save files) | | /doc:help | Show usage instructions and examples |

Supported Sources

| Source | Format | Method | |--------|--------|--------| | Remote URL | OpenAPI 3.x / Swagger 2.0 JSON | curl -> temp file -> jq | | Local file | .json | jq for files >256KB; direct read for small | | Local file | .md | LLM extraction from markdown | | Local file | .txt | LLM extraction from plain text |

Output Formats

Markdown -- human-readable tables with method, path, parameters, request body, responses. Copy-paste ready for documentation or communication.

JSON -- structured, machine-readable. Includes meta (source, timestamp, OpenAPI version), module info, and full endpoint array. Cross-session referenceable.

Output Modes

  • Mode A (Direct display): Results shown in conversation. No files written. Good for quick lookups.
  • Mode B (File persistence): Files saved to api-doc-parser/.output/<module>.md and .json. Good for cross-session reference.

Module Selection

| Input | Example | Result | |-------|---------|--------| | By index | 1,3,6 | Modules at positions 1, 3, 6 | | By keyword | 飞行,监控 | Fuzzy match against tag names | | Mixed | 1,飞行 | Union of both, deduplicated | | All | all or 全部 | All modules |

Supported Platforms

Nine AI coding platforms are supported. See docs/INSTALL.md for setup per platform.

| Platform | Directory | Install Method | |----------|-----------|---------------| | Claude Code | .claude-plugin/ | Plugin | | Cursor | .cursor-plugin/ | Manual | | Codex | .codex-plugin/ | Manual | | Qoder | .codex/ | Manual | | OpenCode | .opencode/ | Manual | | Trae | .trae/ | Manual | | Kiwi | .kimi/ | Manual | | Gemini CLI | .gemini/ | Manual | | Copilot CLI | .github/ | Manual |

File Structure

api-doc-parser/
├── SKILL.md                          ← Core skill logic (v2 with sub-skill navigation)
├── README.md                         ← This file
├── AGENTS.md                         ← Agent entry point
├── GEMINI.md                         ← Gemini CLI entry point
├── metadata.json                     ← Skill metadata (v2.0.0)
├── package.json                      ← NPM package definition
├── gemini-extension.json             ← Gemini extension manifest
├── LICENSE                           ← MIT License
├── docs/                             ← Documentation
│   ├── INSTALL.md                    ← Per-platform installation guide
│   ├── USAGE.md                      ← Detailed usage guide
│   └── CHANGELOG.md                  ← Version history
├── skills/                           ← Sub-skills
│   ├── doc-fetch/SKILL.md            ← Phase 1: Source input
│   ├── doc-list/SKILL.md             ← Phase 2: Module listing
│   ├── doc-parse/SKILL.md            ← Phase 3-5: Endpoint extraction + output
│   ├── doc-help/SKILL.md             ← Help and usage info
│   └── using-api-doc-parser/SKILL.md ← Meta-instruction for Agent discovery
├── hooks/                            ← Plugin hooks
├── scripts/                          ← Utility scripts
├── .claude-plugin/                   ← Claude Code plugin manifest
├── .cursor-plugin/                   ← Cursor plugin manifest
├── .codex-plugin/                    ← Codex plugin manifest
├── .output/                          ← Parsed output (Mode B)
│   ├── <module>.md
│   └── <module>.json
└── [platform directories]            ← .cursor/, .codex/, .gemini/, etc.

Limitations

  • $ref schema references are not expanded -- only reference names are shown
  • Non-OpenAPI format files (.md/.txt) rely on LLM extraction, which is less precise than structured parsing
  • Requires jq and curl for optimal operation

Documentation