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

opencode-skills-notifier

v0.1.2

Published

OpenCode plugin that watches git repositories for new agent skills and notifies users when new skills are available to install

Readme

opencode-skills-notifier

An OpenCode plugin that watches GitHub repositories for new agent skills and notifies you via an in-editor toast when new skills are available to install.

Requirements

  • OpenCode with plugin support
  • git available in PATH

Installation

Add the plugin to ~/.config/opencode/config.json (create it if it doesn't exist):

{
  "plugin": ["opencode-skills-notifier"]
}

To pass configuration options alongside the plugin:

{
  "plugin": [
    [
      "opencode-skills-notifier",
      {
        "enabled": true,
        "repositories": ["[email protected]:your-org/your-skills-repo.git"],
        "skillsScope": "both"
      }
    ]
  ]
}

OpenCode will automatically fetch and install the package on next startup.

Configuration

| Option | Type | Default | Description | | -------------- | ------------------------------------- | -------- | ---------------------------------------------------------------------------- | | enabled | boolean | true | Master switch — set to false to disable the plugin entirely | | repositories | string[] | [] | Explicit list of Git repo URLs to monitor | | skillsScope | "global" | "project" | "both" | "both" | Where to look for locally installed skills when filtering already-known ones |

Implicit repo discovery: even without listing repos explicitly, the plugin reads the .git/config of every directory inside .agents/skills/ and checks the origin remote — so repos you've already cloned are monitored automatically.

Skills scope:

  • "global" — checks ~/.agents/skills/
  • "project" — checks <project>/.agents/skills/
  • "both" — checks both (default)

Cache

The plugin stores state in ~/.config/opencode/skills-notifier-cache.json:

{
  "repos": {
    "[email protected]:example/my-skills.git": {
      "last_commit_hash": "abc123...",
      "known_skills": ["skill-a", "skill-b"]
    }
  },
  "notified_skills": ["skill-a", "skill-b"]
}

Delete this file to force a full re-check on the next session.

Development

# Install dependencies
bun install

# Type-check without emitting
bun run typecheck

# Watch mode (recompiles on save)
bun run dev

# Run all tests
bun test

Project layout

src/
  index.ts        Plugin entry point — registers the session.created hook
  checker.ts      Core logic: repo scanning and toast dispatch
  discovery.ts    Local repo + skills discovery from .agents/skills/
  cache.ts        Read/write ~/.config/opencode/skills-notifier-cache.json
  config.ts       Parse plugin config from PluginOptions
  types.ts        Shared TypeScript interfaces (Cache, PluginConfig)
  shell.ts        Thin re-export of Bun's $ shell helper
  *.test.ts       Unit tests (bun:test)
dist/             Compiled output (generated by tsc)

Running tests

bun test

Tests use bun:test with module mocking. Each source file has a co-located *.test.ts.

How it works

On every session start, the plugin:

  1. Reads configuration from plugin options in ~/.config/opencode/opencode.json
  2. Discovers repos implicitly from any locally cloned skills in .agents/skills/
  3. Merges them with the explicit repositories list from config
  4. For each repo, fetches the remote HEAD hash via git ls-remote and compares it to the cache
  5. If the hash changed (or is new), shallow-clones the repo and reads its top-level directories as skill names
  6. Filters out skills already notified or already installed locally
  7. Shows a toast with the new skill names and the install command(s)
  8. Persists updated hashes and notified skills to ~/.config/opencode/skills-notifier-cache.json

The check runs fire-and-forget so it never blocks session startup.

License

GPL-3.0