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

@tunglam/pi-inline-skills

v0.1.3

Published

Codex-style inline $skill references for the pi coding agent: mention skills anywhere in your prompt and have full SKILL.md bodies injected alongside your message.

Readme

@tunglam/pi-inline-skills

Codex-style inline $skill references for the pi coding agent.

Reference a skill anywhere in your prompt — start, middle, several at once — and the full SKILL.md body is injected alongside your message. Your original text is never rewritten.

you type:   Use $example to help me with X
model sees: ① your message, verbatim ($ token kept)
            ② a companion message with the skill body:

<skill>
<name>example</name>
<path>/abs/path/example/SKILL.md</path>
...SKILL.md body, frontmatter stripped...
</skill>

Install

pi install npm:@tunglam/pi-inline-skills

Requires pi >= 0.79.1 (extension autocomplete triggerCharacters support).

Features

  • $ autocomplete at any whitespace boundary, backed by pi's discovered skill list.
  • Codex-shaped injection: same <skill><name><path> fragment codex uses, but the body has frontmatter intentionally stripped.
  • Multiple mentions per message; each becomes its own <skill> block in one companion message.
  • Reminder dedup (default on): if a skill's full body is already in the active session context, a re-mention injects a one-line reminder instead. Edits to SKILL.md (mtime change), compaction, or switching to a branch without the injection all restore full injection automatically.
  • Visible receipt: a collapsed aside under your message shows what was injected and its token cost (expand for the raw XML). Toggle with display off.

Configuration

These are user preferences, so config is a single user-level file in your pi agent dir — ~/.pi/agent/inline-skills.json (or ~/.pilot/agent/inline-skills.json on rebranded distributions), the same place other extensions keep their config. Both keys default to true:

{ "reminderDedup": true, "display": true }

Session-scoped toggles (do not persist):

/inline-skills reminder on|off
/inline-skills display on|off

pi has no channel for extension config inside its own settings.json, so this file is the idiomatic home — matching e.g. zentui.json in the same directory.

How it relates to native /skill:name

They coexist. Native /skill:name only works at the very start of a message and replaces your text with the skill body. $name works anywhere and keeps your text intact. Use whichever fits.

Comparison

| | codex $skill | pi native /skill: | @tunglam/pi-inline-skills | |---|---|---|---| | Position | anywhere | message start only | anywhere | | User text | preserved | replaced | preserved | | Body | raw file (frontmatter included) | frontmatter stripped | frontmatter stripped | | Multiple per message | yes | no | yes | | Cross-turn dedup | no (per turn only) | n/a | yes (reminder) |

Known limitations

  • Messages queued while the agent is streaming (steer / follow-up) do not pass through before_agent_start, so $ mentions in them are not injected — idle turns only.
  • Mentions resolve by plain name against the discovered skill list; there is no structured path binding (codex's linked-mention disambiguation). Ambiguous duplicate names resolve to the first discovered skill.
  • Autocomplete is TUI-only. Injection still applies to prompts submitted from any client (RPC / GUI), since it runs in the backend.

Development

npm install
npm test
npm run typecheck

Design references: codex skill fragments, pi-skillrefs (MIT) for the injection/receipt architecture, and mention-skills (MIT) for the mention grammar.

License

MIT