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

@hiai-gg/agent-plugins-doctor

v0.0.6

Published

Diagnose and fix Agent Plugins

Readme

Agent Plugin Doctor

Your Agent Plugin doesn't work? Doctor tells you why and fixes what it safely can.

CI npm License: MIT

Quick Start

# Install globally (npm or bun)
npm install -g @hiai-gg/agent-plugins-doctor
bun install -g @hiai-gg/agent-plugins-doctor

# Check a plugin
agent-plugins-doctor check ./my-plugin

# Fix issues
agent-plugins-doctor fix ./my-plugin

# Generate a report
agent-plugins-doctor report ./my-plugin --format markdown

Or run without installing:

bunx @hiai-gg/agent-plugins-doctor check ./my-plugin
npx @hiai-gg/agent-plugins-doctor check ./my-plugin

The CLI is published to npm as a single self-contained package, @hiai-gg/agent-plugins-doctor (runs on Node ≥ 18 — no Bun required); inside this repository it resolves to the local workspace binary (see Development).

Collection CI

Validate plugins in CI with a single command:

npx @hiai-gg/agent-plugins-doctor check plugins/<plugin-name>

The npm package is self-contained (no Bun required, Node ≥ 18).

Exit codes:

  • 0 — valid
  • 1 — spec errors
  • 2 — security-critical
  • 3 — tool failure

What is Agent Plugin Doctor?

Agent Plugin Doctor is the canonical validation, diagnostics, and security-auditing tool for the Agent Plugins ecosystem. It validates plugins against the official specification, checks compatibility with verified clients, and provides safe automatic fixes.

Features

  • Specification Validation — Validates plugin.json, mcp.json, and SKILL.md files against the official Agent Plugins v1.0.0 specification
  • Security Auditing — Detects embedded secrets, path traversal, and symlink escapes
  • Compatibility Checking — Checks compatibility with VS Code, Cursor, GitHub Copilot, ChatGPT & Codex, and Kiro
  • Safe Auto-Fixes — 12 automatic fixes for common issues like formatting, missing fields, and naming mismatches
  • Multiple Output Formats — Human-readable terminal output, JSON for CI, and Markdown for documentation
  • Self-Hosting — Doctor validates itself as an Agent Plugin (check . exits 0 with zero diagnostics)
  • Cross-Platform — CI runs the full suite on Linux, macOS, and Windows (Bun 1.3.14)
  • Comprehensive Test Suite — 635 tests across 79 files: unit, integration, E2E (spawns the real binary), fixture-based, and benchmark budgets

CLI Commands

check

Validate a plugin and report issues.

agent-plugins-doctor check [dir] [options]

Options:
  --json          Output as JSON
  --markdown      Output as Markdown
  --strict        Treat warnings as errors
  --rule <id>     Run only specific rules
  --exclude-rule  Exclude specific rules
  --verbose       Show detailed output
  --no-color      Disable colors

fix

Apply safe fixes to a plugin.

agent-plugins-doctor fix [dir] [options]

Options:
  --dry-run       Show what would be fixed
  --yes           Apply fixes without confirmation
  --json          Output as JSON
  --no-color      Disable colors

report

Generate a detailed report.

agent-plugins-doctor report [dir] [options]

Options:
  --format <fmt>  human|json|markdown (default: human)
  --output <file> Write to file

compatibility

Check client compatibility.

agent-plugins-doctor compatibility [dir] [options]

Options:
  --client <id>   Check specific client (vscode|cursor|copilot|codex|kiro)
  --json          Output as JSON

SDK (Library API)

The CLI is published as @hiai-gg/agent-plugins-doctor, a single bundled package that includes everything — no separate library dependencies are needed to use it.

The six @agent-plugins-doctor/* packages (core, parser, rules, compatibility, report, cli) are not yet published to npm — SDK publication is deferred. Until they are published, import them from the monorepo. See docs/SDK.md for the complete API reference and PUBLISHING.md for the npm publish procedure.

Supported Specifications

  • Agent Plugins v1.0.0
  • Agent Skills (via agentskills.io)
  • MCP (Model Context Protocol)

Supported Clients

| Client | Skills | MCP stdio | MCP Streamable HTTP | MCP SSE | | --------------- | ------ | --------- | ------------------- | ------- | | VS Code | ✅ | ✅ | ✅ | ✅ | | Cursor | ✅ | ✅ | ✅ | ✅ | | GitHub Copilot | ✅ | ✅ | ✅ | ✅ | | ChatGPT & Codex | ✅ | ✅ | ✅ | ❌ | | Kiro | ✅ | ✅ | ✅ | ✅ |

Relationship with Builder

Agent Plugin Doctor is the validation counterpart to Agent Plugin Builder. Builder creates plugins; Doctor validates them. Builder will consume Doctor as a dependency to ensure generated plugins are valid.

See docs/BUILDER_INTEGRATION.md for integration details.

Diagnostic Codes

Doctor uses 36 stable diagnostic codes:

  • DOC-1xxx — Manifest & spec conformance
  • DOC-2xxx — Skills
  • DOC-3xxx — MCP
  • DOC-4xxx — Security
  • DOC-5xxx — Structure & packaging
  • DOC-6xxx — Compatibility
  • DOC-7xxx — Format & quality

Of the 36 codes, 25 are reachable from the public CLI (7 of them emitted by the parser during load), 10 fire only through the SDK, and 1 (DOC-6002) is intentionally dormant under v1.0.0.

See docs/DIAGNOSTICS.md for the complete catalog, per-code reachability, and the autofix list.

Exit Codes

| Code | Meaning | | ---- | -------------------------------------------------------------- | | 0 | Valid (warnings/info allowed, unless --strict) | | 1 | Validation errors (malformed input, spec violations) | | 2 | Security-critical findings | | 3 | Tool failure (inaccessible plugin root, internal rule failure) |

Development

# Install dependencies
bun install

# Run tests (635 tests across 79 files)
bun test

# Type check
bun run typecheck

# Lint
bun run lint

# Build
bun run build

CI (.github/workflows/ci.yml) runs install, build, typecheck, lint, and the full test suite on Linux, macOS, and Windows.

Documentation

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

MIT © HiAI

Links