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

@ironin/pi-cascading-skills

v1.0.0

Published

Walks parent directories to collect skills from every .pi/ level, solving pi's array-replacement behavior for skills.

Readme

Cascading Skills Extension for pi

Walks parent directories from CWD upward, collecting skills from every .pi/settings.json skills array and .pi/skills/ directory it finds.

Problem

Pi replaces (not merges) array-type settings like skills. A project-level skill array completely wipes out global skills:

~/.pi/agent/settings.json    → skills: ["code-reviewer"]
project/.pi/settings.json    → skills: ["legal-researcher"]
Result                       → only ["legal-researcher"]  (code-reviewer lost!)

Solution

This extension re-discovers skills at startup/reload by walking up the directory tree and collecting from every ancestor .pi/ level. Returned paths are passed to pi's resource loader via the resources_discover event.

Skill Sources (per CWD, in discovery order)

| Priority | Source | |----------|--------| | 1 | ~/.pi/agent/skills/ — global skills directory | | 2 | ~/.pi/agent/settings.jsonskills — global skill array | | 3 | Every parent .pi/skills/ — ancestor skill directories | | 4 | Every parent .pi/settings.jsonskills — ancestor skill arrays |

Installation

Option A: Manual file

Copy the extension to your global extensions directory:

cp extensions/cascading-skills.ts ~/.pi/agent/extensions/cascading-skills.ts

Option B: npm package (recommended)

npm install -g @ironin/pi-cascading-skills

Then add to ~/.pi/agent/settings.json:

{
  "packages": ["npm:@ironin/pi-cascading-skills"]
}

Option C: Local path

Clone this repo and add the path:

{
  "extensions": ["/path/to/pi-cascading-skills/extensions/cascading-skills.ts"]
}

Usage

Once installed, it works automatically. Start pi from any directory and all ancestor skills are discovered.

# Start from anywhere — skills from every parent .pi/ are loaded
cd ~/projects/legal/ecsc-123/
pi

Example Project Layout

~/
├── .pi/
│   └── agent/
│       ├── settings.json          # skills: ["code-reviewer"]
│       └── skills/
│           └── code-reviewer/     # global developer skills
│
└── Work/
    └── .pi/
        ├── settings.json           # skills: ["legal-researcher"]
        └── skills/
            └── legal-researcher/   # project developer skills
        │
        └── LegalProject/
            └── .pi/
                ├── settings.json   # skills: ["ecsc-drafter"]
                └── skills/         # project legal skills
                    └── ecsc-drafter/

Starting pi from ~/Work/LegalProject/ gives you ALL skills from all three levels.

Security

  • HOME boundary: All resolved paths must stay under $HOME. Entries pointing outside are silently rejected.
  • Symlink safe: Every path is realpathSync()'d before use. Symlinked sub-dirs are validated against the HOME boundary.
  • Traversal cap: Parent walking is limited to 30 levels to prevent runaway scans on network mounts.
  • No environment trust: HOME is resolved once at load time, not re-read from process.env.

License

MIT