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

sync-coding-agents

v0.1.1

Published

Sync .agents/ (single source of truth) into .claude/ and .github/ so Claude Code and GitHub Copilot pick up the same agent and skill definitions.

Readme

sync-coding-agents

Sync .agents/ (single source of truth) into .claude/ and .github/ so that Claude Code and GitHub Copilot read the same agent and skill definitions.

Why

Claude Code reads custom agents from .claude/agents/ and skills from .claude/skills/. GitHub Copilot reads agent instructions from .github/agents/ and .github/copilot-instructions.md. Maintaining the same definitions in two or three places is error-prone.

This CLI lets you author everything once under .agents/ and then atomically rewrite the consumer directories as symlinks (for Claude) or stripped copies (for Copilot, which doesn't follow symlinks across some toolchains and doesn't understand Claude-specific frontmatter).

Install / run

No install needed — run via npx from the root of your repo:

npx sync-coding-agents

Or pass an explicit project root:

npx sync-coding-agents /path/to/repo

You can also add it as a dev dependency and wire it into your package.json:

npm install --save-dev sync-coding-agents
{
  "scripts": {
    "agents:sync": "sync-coding-agents"
  }
}

Expected source layout

The CLI assumes you author agents and skills in .agents/ at the root of your repo:

.agents/
├── agents/
│   ├── design-partner.md
│   ├── code-review-expert.md
│   └── ...                  # one .md file per agent
└── skills/
    ├── react-rules/
    │   └── SKILL.md
    ├── typescript-rules/
    │   └── SKILL.md
    └── ...                  # one directory per skill

AGENTS.md                    # optional, shared top-level instructions

AGENTS.md at the repo root is treated as the canonical instruction file for both Claude Code (CLAUDE.md) and GitHub Copilot (.github/copilot-instructions.md).

What it produces

After running sync-coding-agents, the following directories are rewritten:

| Source | Target | Mechanism | | ----------------------- | ----------------------------------- | ----------------------------------- | | .agents/skills/*/ | .claude/skills/* | Directory symlink (one per skill) | | .agents/agents/*.md | .claude/agents/*.md | File symlink (one per agent) | | .agents/agents/*.md | .github/agents/*.agent.md | Copy with Claude-only fields stripped | | AGENTS.md | CLAUDE.md | Symlink | | AGENTS.md | .github/copilot-instructions.md | Symlink |

Frontmatter stripped for GitHub Copilot copies

These keys are removed from the Copilot-facing .agent.md copies because they're specific to Claude Code's runtime and not part of the GitHub agent format:

  • color
  • skills
  • permissionMode
  • model

Continuation lines (indented YAML values) are stripped as well, so multi-line fields don't leak through.

How the sync works

For every target directory the CLI performs a two-phase operation:

  1. Delete every existing symlink (or, for .github/agents/, every existing *.agent.md file) in the target directory.
  2. Recreate entries from the matching source directory.

Non-symlink files in .claude/agents/ and .claude/skills/ are left untouched, so it's safe to keep additional Claude-only files alongside the synced ones. In .github/agents/, only *.agent.md files are managed by this tool — any other content is preserved.

Symlinks use relative paths computed at runtime with path.relative(target, source), so they remain valid when the repo is cloned to a different absolute path.

When to run

Run the sync after any of the following:

  • Adding, renaming, or deleting an agent file under .agents/agents/
  • Adding, renaming, or deleting a skill directory under .agents/skills/
  • Creating or removing AGENTS.md at the repo root

If you skip this step, Claude Code and Copilot won't see your changes.

Tips

  • Commit the symlinks. Git tracks symlinks as their target path, so the pointers travel with the repo. The actual content lives in .agents/ and is versioned normally.
  • Don't commit .github/agents/*.agent.md by hand. They're regenerated on every run; treat them like build output.
  • Wire it into a precommit or CI check if you want to be sure that the synced consumer files never drift from .agents/.

Requirements

  • Node.js ≥ 18 (uses only built-in node:fs and node:path — zero runtime dependencies).
  • A filesystem that supports symlinks. On Windows this requires either Developer Mode or running the shell as Administrator.

License

MIT