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

@eddyli1989/agent-spec

v0.1.0

Published

CLI for managing and syncing AI agent prompts, skills, MCP, and plugin configuration across tools.

Readme

Agent Spec

Agent Spec is a CLI-first open source project for managing AI agent configuration across tools.

The current MVP treats Claude-style configuration as the canonical base, then helps import, push, and pull that configuration across:

  • Claude Code
  • Codex
  • OpenCode

Agent Spec is local-first and GitHub-backed. It uses normal files, normal Git commits, and the GitHub CLI (gh) instead of a hosted sync service.

Why

AI agent tools use different conventions for prompts, skills, MCP servers, plugins, and runtime configuration.

That creates drift:

  • CLAUDE.md may contain one set of instructions.
  • AGENTS.md may contain another.
  • Skills may live in different folders depending on the tool.
  • Moving to another machine often means copying the same files again.

Agent Spec gives those files one Git-backed home and provides adapters for the tools you use locally.

Current Behavior

Import and Merge

agentspec init and agentspec push scan supported local tool config directories and merge them into one workspace.

Prompt files are appended into the canonical CLAUDE.md with source headings:

## From Claude Code

...

## From Codex

...

## From OpenCode

...

Original non-Claude prompts are also preserved:

prompts/codex/AGENTS.md
prompts/opencode/AGENTS.md

Shared folders such as skills/, mcp/, and plugins/ are also merged into the Claude-style workspace folders when present. This applies to both init and push, so changes made under Codex or OpenCode are still collected into the canonical Agent Spec repository.

Pull

agentspec pull applies the canonical workspace back to supported local tools.

By default it writes to discovered local tool config directories. For inspection or testing, use --output-dir to write converted files somewhere else.

Install

For development:

npm install
npm run build

Install from npm:

npm install -g @eddyli1989/agent-spec
agentspec --help

Run the compiled CLI:

node dist/src/cli.js --help

Build a standalone binary with Bun:

npm run build:binary
./dist-bin/agentspec --help

Requirements

  • Node.js for development.
  • Bun for standalone binary builds.
  • Git.
  • GitHub CLI (gh) for auth and init.

Authenticate with GitHub:

gh auth login

or:

agentspec auth

Commands

agentspec init [workspace] [--home <dir>]
agentspec push [workspace] [--home <dir>]
agentspec pull [workspace] [--output-dir <dir>] [--home <dir>]
agentspec auth
agentspec doctor
agentspec --help

init

Scans supported local tool configuration, merges it into an Agent Spec workspace, creates a GitHub repository, commits the initial files, and pushes them.

The default repository name is agent-spec. If that repository already exists, Agent Spec treats it as an existing remote configuration repository and clones it into the requested workspace instead of creating a numbered fallback.

agentspec init ~/agent-spec

push

Pulls the workspace, rescans local configuration, merges changes, and pushes a new commit only when files changed.

agentspec push ~/agent-spec

agentspec update is currently kept as a compatibility alias for agentspec push.

pull

Pulls the workspace and applies the canonical configuration to supported tools found on the machine.

agentspec pull ~/agent-spec

Inspect converted output without touching real tool config directories:

agentspec pull ~/agent-spec --output-dir /tmp/agent-spec-output

agentspec sync is currently kept as a compatibility alias for agentspec pull.

auth

Delegates GitHub authentication to gh auth login.

agentspec auth

doctor

Currently a placeholder for future environment checks.

agentspec doctor

Testing

npm test
npm run build
npm run build:binary

Project Status

Agent Spec is early MVP software.

Implemented:

  • CLI command dispatch.
  • Tool discovery for Claude Code, Codex, and OpenCode.
  • Prompt merge into canonical CLAUDE.md.
  • Preservation of Codex/OpenCode prompt files.
  • Merging of skills/, mcp/, and plugins/ into Claude-style workspace folders when present.
  • GitHub repository creation through gh.
  • Existing repository recovery during init.
  • pull --output-dir for safe inspection.
  • Standalone binary build through Bun.

Not implemented yet:

  • Conflict resolution beyond simple append/copy behavior.
  • Prompt de-duplication.
  • Rich MCP format adaptation.
  • Secret handling.
  • Desktop UI.
  • Release packaging for all platforms.

Design Notes

See PROPOSAL.md for the project proposal and longer-term direction.