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

pi-skill-retriever

v0.1.1

Published

Keyword-based skill retrieval for the Pi coding agent — scores your prompt against all discovered skills each turn and injects the top matches as context. Zero LLM calls, zero config.

Readme

pi-skill-retriever

npm version License: MIT

Keyword-based skill retrieval for the Pi coding agent.

Scores your prompt against every discovered skill (name + description) each turn and injects the top matches as a hidden context message telling the agent which SKILL.md files to read first.

Zero LLM calls. Zero config. Works with any number of installed skills.

Why

Pi already lists all skills in the system prompt, but with dozens (or hundreds) installed, the model skims past them. pi-skill-retriever surfaces the 3–5 most relevant skills per turn so they actually get loaded.

your prompt ──▶ keyword score vs all skills ──▶ top-5 injected as context
                 (name match ×2, description ×1)

Install

pi install pi-skill-retriever

Or manually add to ~/.pi/agent/settings.json:

{
  "packages": ["npm:pi-skill-retriever"]
}

Commands

| Command | Action | |---------|--------| | /sr | Show status (on/off, skills indexed) | | /sr off / /sr on | Toggle injection | | /sr <query> | Preview what would be injected for a query |

How it works

  1. On before_agent_start, reads the full skill list from systemPromptOptions.skills
  2. Tokenizes the prompt (stopwords dropped)
  3. Scores each skill: token found in name = 2, in description = 1
  4. Injects top 5 (score ≥ 2) as a hidden message with skill paths and descriptions

Skills with disable-model-invocation: true are excluded.

Tuning

Constants at the top of src/index.ts:

  • MAX_INJECT — max skills per turn (default 5)
  • MIN_SCORE — injection threshold (default 2)

Credits

  • Hermes Agent skill-retriever plugin (Donald Thompson & contributors, MIT) — the flat-index keyword pre-filter approach this extension adapts from.
  • Pi coding agent (Earendil Works / Mario Zechner) — the extension API this builds on.

License

MIT © Nadim Tuhin