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

@gleanwork/pluginpack

v0.5.0

Published

Compile one source of agent plugins — skills, commands, hooks, and MCP servers — into the native plugin format each AI app expects.

Readme

pluginpack

Experimental npm version CI License: MIT

One source of truth for agent plugins across AI app ecosystems.

pluginpack is a build tool for compiling portable skills, commands, agents, rules, hooks, assets, and metadata into the native plugin layouts expected by each AI app. It copies files, writes target manifests, and validates generated output; it is not a package manager or publisher.

Quick Start

Start with portable plugin components, declare the native targets you want, then run pluginpack build.

npm install -D @gleanwork/pluginpack

Create repo-level component directories:

skills/
  release-notes/
    SKILL.md
agents/
  search-assistant.md
commands/
  summarize.md
rules/
  style.mdc
hooks/
  before-run.sh
assets/
  icon.png
pluginpack.config.ts

Add a config that maps that portable source into native plugin outputs. source.skills gives the repo a simple portable install surface; sibling component directories are included when the selected target supports them or when you opt into them with components.

import { defineConfig } from "@gleanwork/pluginpack";

export default defineConfig({
  name: "acme-plugins",
  version: "0.1.0",
  source: {
    skills: "skills",
    rootPlugin: {
      id: "core",
      description: "Acme portable skills.",
    },
  },
  metadata: {
    description: "Acme agent plugins.",
    author: { name: "Acme" },
    license: "MIT",
  },
  targets: {
    cursor: {
      outDir: ".",
      plugins: {
        acme: {
          from: ["core"],
          path: "plugins/cursor/acme",
        },
      },
    },
    claude: {
      outDir: ".",
      pluginRoot: "plugins/claude",
      plugins: {
        acme: { from: ["core"] },
      },
    },
    antigravity: {
      outDir: "plugins/antigravity",
      plugins: {
        acme: { from: ["core"] },
      },
    },
    copilot: {
      outDir: "plugins/copilot",
      plugins: {
        acme: { from: ["core"] },
      },
    },
  },
});

Build and validate the generated outputs:

npx pluginpack build
npx pluginpack validate --target cursor

Users who only want portable skills install from the skills/ subpath, for example npx skills add owner/repo/skills --skill '*'. Claude, Cursor, Antigravity, and Copilot users install from the generated native layout that can include skills, agents, rules, hooks, assets, MCP config, and target-specific manifests.

Mental Model

Agent apps increasingly support similar ideas: skills, commands, agents, rules, hooks, MCP configuration, and plugin marketplaces. The packaging formats are different enough that maintaining one repo per app quickly drifts.

pluginpack does four things:

  • reads a portable source plugin from your repo
  • copies selected component directories into each target
  • writes the manifests each target expects
  • validates, diffs, prunes, and cleans generated output

It does not try to make every app behave the same. Target adapters own target-specific layout, manifests, and validation.

Recommended Shape

The preferred path is one public plugin repository with top-level component directories. skills/ remains the portable skills CLI install surface, while the other component directories feed native plugin outputs.

skills/
  release-notes/
    SKILL.md
agents/
  search-assistant.md
commands/
  summarize.md
rules/
  style.mdc
hooks/
  before-run.sh
assets/
  icon.png
pluginpack.config.ts

.cursor-plugin/
  marketplace.json
plugins/
  cursor/
    acme/
      .cursor-plugin/plugin.json
      agents/
      rules/
      hooks/
      skills/
  claude/
    acme/
      .claude-plugin/plugin.json
      agents/
      hooks/
      skills/
  antigravity/
    .pluginpack/
      antigravity.json
    acme/
      mcp_config.json
      plugin.json
      agents/
      rules/
      hooks/
      skills/
  copilot/
    .claude-plugin/
      marketplace.json
    .github/
      plugin/
        marketplace.json
    .pluginpack/
      copilot.json
    plugins/
      acme/
        agents/
        hooks/
        skills/
.claude-plugin/
  marketplace.json
.pluginpack/
  cursor.json
  claude.json

source.skills points at the repo-level skills directory and creates a root source plugin from the sibling component directories. source.rootPlugin.id creates the source plugin name used by each target's from array. The repo root is intentionally also home to generated native plugin outputs, so the skills/ subpath keeps skills CLI discovery focused on the canonical portable skills.

pluginpack writes a .pluginpack/<target>.json managed-file manifest for each built target. That manifest lets builds and cleanup commands remove stale generated files without touching source files or unmanaged repo content.

Components

In pluginpack, a component is a top-level plugin capability directory. Components are the portable pieces of a source plugin that may or may not exist in every target ecosystem.

Supported component directories are:

skills/
agents/
commands/
rules/
hooks/
scripts/
assets/
policies/
themes/

Target adapters translate those component directories into each app's native layout and manifest fields. Each target has a smart default component list. By default, claude, cursor, antigravity, and copilot emit skills and other native plugin support files but omit commands, since those ecosystems increasingly expose skills as slash commands.

Use components only when a plugin needs an exact target-specific component set:

import { defineConfig } from "@gleanwork/pluginpack";

export default defineConfig({
  name: "acme-plugins",
  version: "0.1.0",
  source: {
    skills: "skills",
    rootPlugin: {
      id: "core",
      description: "Acme portable skills.",
    },
  },
  metadata: {
    description: "Acme agent plugins.",
    author: { name: "Acme" },
    license: "MIT",
  },
  targets: {
    antigravity: {
      outDir: "plugins/antigravity",
      plugins: {
        acme: { from: ["core"], components: ["skills", "commands"] },
      },
    },
    claude: {
      outDir: "plugins/claude",
      plugins: {
        acme: { from: ["core"], components: ["skills"] },
      },
    },
  },
});

Targets

The first adapters are:

  • cursor
  • claude
  • antigravity
  • copilot

cursor emits Cursor plugin and marketplace manifests. claude emits Claude plugin and marketplace manifests. antigravity emits Antigravity CLI plugins with a plugin.json manifest and optional mcp_config.json. copilot emits the GitHub Copilot plugins format (per github/copilot-plugins): a .claude-plugin/marketplace.json mirrored to .github/plugin/marketplace.json, each plugin under plugins/<name>/ with a skills array per marketplace entry.

Because Copilot reuses the Claude marketplace layout, the claude and copilot targets both write .claude-plugin/marketplace.json and therefore need separate output roots (distinct outDirs or separate repos).

More targets should be added from official docs or real plugin examples, not guessed abstractions.

Source Plugins

The quick-start shape treats repo-level component directories as one source plugin. For more complex source content, keep source plugins under plugins/ and emit them into one or more target outputs:

plugins/
  core/
    plugin.pluginpack.json
    .mcp.json
    skills/
      release-notes/
        SKILL.md
    agents/
    commands/
    rules/
    hooks/
    assets/

A target can emit a source plugin directly, rename it, or merge multiple source plugins into one emitted plugin.

MCP Servers

A source plugin declares MCP servers with a standard .mcp.json file at its root ({ "mcpServers": { "name": { ... } } }), or with an mcpServers key in plugin.pluginpack.json. The file wins if both are present, and merging plugins with the same server name is an error.

Each target wires MCP into its native shape: claude ships .mcp.json at the plugin root (auto-discovered), cursor references it from plugin.json ("mcpServers": "./.mcp.json"), copilot references it from the marketplace entry, and antigravity writes mcp_config.json beside plugin.json.

Target Overrides

Skill files are not always perfectly portable. When one app needs different frontmatter or content, add a target override next to the base file:

skills/release-notes/SKILL.md
skills/release-notes/targets/cursor/SKILL.md
skills/release-notes/targets/claude/SKILL.md

Resolution order is target override first, then the base file.

Other Shapes

There are two reasonable alternatives when the single-repo shape is not enough:

  • Single source repo, multiple output repos: best when each target ecosystem expects its own repo root shape.
  • Single source repo, release artifacts: best when users install zipped plugin payloads or release assets instead of browsing generated files in Git.

Why Not Just Copy Files?

For one target, copying files by hand may be enough. pluginpack starts to earn its keep when you need deterministic manifests, target-specific overrides, validation, and CI checks across multiple target repos.

CI Change Detection

pluginpack diff is designed for automation. It builds into a temporary directory, compares generated managed files against an existing plugin repo, and exits non-zero when the plugin repo is stale:

pluginpack diff --target cursor --against ../cursor-plugins
pluginpack diff --target claude --against ../claude-plugins

Use that in CI to fail clearly or to trigger an action that opens a PR against the generated plugin repo.

When a generated target repo intentionally owns a path, add ignoredDiffPaths to that target config. Entries are target-output-relative paths; a directory entry ignores everything below it.

CLI Reference

init

Create a starter pluginpack.config.ts and source plugin layout.

pluginpack init [options]

Examples:

  • pluginpack init

Exit codes:

  • 0 when files are created
  • 1 when files already exist or cannot be written

build

Compile configured source plugins into target-native plugin payloads.

pluginpack build [--target cursor|claude|antigravity|copilot] [--out-dir <path>] [--dry-run]

Options:

  • --target <target>: Build only one configured target.
  • --out-dir <path>: Override the configured output directory for the selected target.
  • --dry-run: Resolve and print planned managed output paths without writing files.

Examples:

  • pluginpack build
  • pluginpack build --target cursor
  • pluginpack build --target claude --dry-run

Exit codes:

  • 0 when all selected targets build
  • 1 when config, source resolution, or file output fails

validate

Validate an existing target output directory for native manifest, path, and frontmatter requirements.

pluginpack validate --target cursor|claude|antigravity|copilot [--dir <path>]

Options:

  • --target <target>: Required target validator.
  • --dir <path>: Directory to validate. Defaults to the configured target outDir.

Examples:

  • pluginpack validate --target cursor --dir ../cursor-plugins

Exit codes:

  • 0 when validation passes
  • 1 when validation finds errors

diff

Build into a temporary directory and compare generated managed files with an existing target repo.

pluginpack diff --target cursor|claude|antigravity|copilot --against <path>

Options:

  • --target <target>: Required target to build and compare.
  • --against <path>: Existing target repo or output directory to compare against.

Examples:

  • pluginpack diff --target cursor --against ../cursor-plugins

Exit codes:

  • 0 when managed files match
  • 1 when managed files differ or the command fails

prune

Remove stale managed files that are no longer emitted by the current config.

pluginpack prune [--target cursor|claude|antigravity|copilot] [--dry-run]

Options:

  • --target <target>: Prune only one configured target.
  • --dry-run: Print stale managed files without deleting them.
  • --force: Delete even paths that resolve inside the source tree or config.

Examples:

  • pluginpack prune
  • pluginpack prune --target claude --dry-run

Exit codes:

  • 0 when stale managed files are removed or listed
  • 1 when config, source resolution, or cleanup fails

clean

Remove all managed files for configured target outputs.

pluginpack clean [--target cursor|claude|antigravity|copilot] [--dry-run]

Options:

  • --target <target>: Clean only one configured target.
  • --dry-run: Print managed files without deleting them.
  • --force: Delete even paths that resolve inside the source tree or config.

Examples:

  • pluginpack clean
  • pluginpack clean --target cursor --dry-run

Exit codes:

  • 0 when managed files are removed or listed
  • 1 when config, manifest loading, or cleanup fails

docs

Generate the README CLI reference section from command metadata.

pluginpack docs [options]

Options:

  • --check: Fail if README.md is not up to date.

Examples:

  • pluginpack docs
  • pluginpack docs --check

Exit codes:

  • 0 when docs are current or updated
  • 1 when --check finds stale docs