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

agent-install

v0.0.5

Published

Install SKILL.md files, MCP servers, and AGENTS.md guidance for any coding agent. Ships both a Node API and a CLI.

Readme

agent-install

Install SKILL.md files, MCP servers, and AGENTS.md guidance for any AI coding agent. Ships a Node API and a CLI from a single package.

pnpm add agent-install
# or, as a one-shot CLI
npx agent-install@latest <skill|mcp|agents-md> <action>

Node API

import { installSkillsFromSource } from "agent-install";
import { installMcpServer } from "agent-install/mcp";
import {
  readAgentsMd,
  upsertAgentsMdSection,
  symlinkClaudeToAgents,
} from "agent-install/agents-md";

Skills

await installSkillsFromSource({
  source: "./skills/react-grab", // local, owner/repo, URL, or direct SKILL.md
  agents: ["claude-code", "cursor"],
  cwd: process.cwd(),
  mode: "symlink", // or "copy"
});

One canonical copy lives at .agents/skills/<name>; agent-specific dirs (.claude/skills, .cursor/skills, etc.) receive relative symlinks, with automatic copy fallback on systems that don't allow them.

MCP servers

installMcpServer({
  source: "https://mcp.context7.com/mcp",
  agents: ["cursor", "claude-code"],
  name: "context7",
});

installMcpServer({
  source: "@modelcontextprotocol/server-postgres",
  agents: ["claude-code"],
  env: { DATABASE_URL: "postgres://..." },
});

// Also available:
// listInstalledMcpServers, removeMcpServer, parseMcpSource,
// buildMcpServerConfig, mcpAgents, detectProjectInstalledMcpAgents, ...

14 MCP hosts across 3 config formats (JSON/JSONC with comment preservation, YAML, TOML). Per-agent transformConfig hooks handle Goose's {cmd, envs, enabled, timeout}, Zed's {source: "custom", ...}, OpenCode's {type, command[], environment}, Codex TOML layout, and VS Code's {type: "stdio", ...}.

Source types auto-detected by parseMcpSource:

| Input | Type | Becomes | | --------------------------------------- | --------- | --------------------------------------- | | https://mcp.example.com/mcp | remote | { type: "http", url } | | @modelcontextprotocol/server-postgres | package | { command: "npx", args: ["-y", pkg] } | | "node /path/server.js --port 3000" | command | { command: "node", args: [...] } |

AGENTS.md / CLAUDE.md / GEMINI.md

const { sections, content, path } = readAgentsMd();

upsertAgentsMdSection({
  heading: "Testing",
  body: "Run `pnpm test` before every commit.",
  placement: "replace", // or "append" / "prepend"
  level: 2,
});

// Agent-specific variants
upsertAgentsMdSection({
  agent: "gemini-cli", // writes GEMINI.md
  heading: "Setup",
  body: "...",
});

// Claude Code still reads CLAUDE.md; point it at the canonical AGENTS.md
await symlinkClaudeToAgents({ overwrite: false });

Known variants (from agentsMdFiles):

| Agent | File | | ----------- | --------------------- | | universal | AGENTS.md | | claude-code | CLAUDE.md | | gemini-cli | GEMINI.md | | cursor | .cursor/rules/*.mdc | | windsurf | .windsurfrules | | codex | AGENTS.md | | opencode | AGENTS.md | | aider | AGENTS.md |

CLI

agent-install skill <action>     Manage SKILL.md files
  add <source>                   -a, --agent, -s, --skill, -g, --global, --copy, -y, -l
  init [name]
  list                           -g, -a, --json
  remove [skills...]             -g, -a, -y

agent-install mcp <action>
  add <source>                   -a, -g, -t|--transport, --header, --env, -n|--name, -y, --all
  list                           -g, -a, --json
  remove <name>                  -g, -a, -y

agent-install agents-md <action>      (alias: doc)
  init                           [--agent <agent>]
  read                           [--agent <agent>] [-f <file>] [--json]
  set-section <heading>          --body | --body-file, --placement, --level, --agent, -f
  remove-section <heading>       --agent, -f
  symlink-claude                 --overwrite, --backup <name>

Subpath exports

| Import | Surface | | ------------------------- | --------------------------------------------------- | | agent-install | Skills (root default) | | agent-install/skill | Alias of the root import | | agent-install/mcp | MCP servers | | agent-install/agents-md | AGENTS.md manipulation + CLAUDE.md symlink helper |

References