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-specs

v0.1.3

Published

CLI for managing AGENTS.md files

Readme

agent-specs

Chinese documentation: README.zh-CN

agent-specs is a CLI for managing AGENTS.md files.

It can fetch AGENTS.md from a remote URL and install it either per-project or globally. In global mode, it detects installed AI agent clients on the local machine and symlinks a single shared rules file into each client’s native path so multiple agents can reuse the same source of truth.

The examples in this repository use Vercel's public agent-skills/AGENTS.md as a demo source. The project is inspired by Vercel Skills CLI.

Installation

# Run directly (recommended)
npx agent-specs <command>

# Or install globally
npm install -g agent-specs

Quick Start

# Project install: download AGENTS.md into the current directory
agent-specs add https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md

# Global install: write to ~/.agents/ and symlink to detected agent clients
agent-specs add https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md -g

Commands

agent-specs add <source>

Install AGENTS.md from a remote URL.

# Project install (default)
agent-specs add https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md

# Global install: write to ~/.agents/AGENTS.md and symlink to detected agents
agent-specs add https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md -g

# Skip confirmation and overwrite existing files after backing them up
agent-specs add https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md -g -y

Supported URL formats:

| Format | Example | |------|------| | GitHub blob URL | https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md | | Short GitHub URL | https://github.com/vercel-labs/agent-skills/AGENTS.md | | Raw URL | https://raw.githubusercontent.com/vercel-labs/agent-skills/main/AGENTS.md | | Any URL | https://example.com/path/to/AGENTS.md |

Options:

| Option | Description | |------|------| | -g, --global | Install globally and symlink to detected agent clients | | -y, --yes | Skip confirmation and automatically back up then overwrite existing files |

agent-specs update

Re-fetch and update AGENTS.md from its original source.

agent-specs update
agent-specs update -g

agent-specs list

Show installation and symlink status.

agent-specs list
agent-specs list -g

agent-specs link

Detect agent clients again and recreate symlinks. This is useful after installing a new agent client.

agent-specs link
agent-specs link -y

agent-specs remove

Remove installed AGENTS.md files and related symlinks.

agent-specs remove
agent-specs remove -g
agent-specs remove -g -y

How Global Install Works

~/.agents/AGENTS.md          <- source of truth
    ^ symlink
    |-- ~/.claude/CLAUDE.md
    |-- ~/.gemini/GEMINI.md
    |-- ~/.codex/AGENTS.md
    |-- ~/.config/amp/AGENTS.md
    |-- ~/.config/opencode/AGENTS.md
    |-- ~/.qwen/QWEN.md
    |-- ~/.roo/rules/AGENTS.md
    |-- ~/.continue/rules/AGENTS.md
    |-- ~/.augment/rules/AGENTS.md
    `-- ~/.kiro/steering/AGENTS.md
  • Editing ~/.agents/AGENTS.md updates every linked agent immediately.
  • Running agent-specs update -g refreshes the shared file without recreating symlinks.

Supported Agent Clients

| Agent | Detection Directory | Symlink Target | Filename | |-------|---------|-------------|--------| | Claude Code | ~/.claude/ | ~/.claude/CLAUDE.md | CLAUDE.md | | Gemini CLI | ~/.gemini/ | ~/.gemini/GEMINI.md | GEMINI.md | | Codex (OpenAI) | ~/.codex/ | ~/.codex/AGENTS.md | AGENTS.md | | Amp | ~/.config/amp/ | ~/.config/amp/AGENTS.md | AGENTS.md | | OpenCode | ~/.config/opencode/ | ~/.config/opencode/AGENTS.md | AGENTS.md | | Qwen Code | ~/.qwen/ | ~/.qwen/QWEN.md | QWEN.md | | Roo Code | ~/.roo/ | ~/.roo/rules/AGENTS.md | AGENTS.md | | Continue | ~/.continue/ | ~/.continue/rules/AGENTS.md | AGENTS.md | | Augment | ~/.augment/ | ~/.augment/rules/AGENTS.md | AGENTS.md | | Kiro | ~/.kiro/ | ~/.kiro/steering/AGENTS.md | AGENTS.md |

The CLI only creates symlinks for agent clients that are actually detected on the machine.

Conflict Handling

| Scenario | Default Behavior | -y Behavior | |------|---------|----------| | Source of truth already exists | Ask for confirmation | Back up to .backup and overwrite | | Agent path is a symlink | Replace it directly | Replace it directly | | Agent path is a regular file | Skip and report it | Back up to .backup and replace it |

Development

npm install
npm run build
npx tsx src/cli.ts --help
node bin/cli.mjs --help

License

MIT