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-nested-skills

v0.1.0

Published

Pi extension for recursive nested-skill discovery and aliases

Readme

pi-nested-skills

Pi 的嵌套技能扩展:递归发现多级 SKILL.md,并为嵌套技能提供快捷别名、列表和补全。

English

功能

  • 递归扫描一个或多个可配置技能根目录下的 SKILL.md
  • 支持 /development:code-reviewer/design:icons.favicon 等技能包别名。
  • 保留 Pi 原生技能加载器负责 frontmatter 校验和正文展开;不重复实现 read 兼容层或技能展开。
  • 将嵌套技能补全合并到 Pi 原生斜杠命令补全中,不影响内置命令。
  • 提供 /skills 列出发现到的全部别名。
  • 提供 /config:nested-skills 通过常规 TUI 输入配置技能根目录;输入 reset 恢复默认的 skills 根目录。
  • 通过 Pi 的 resources_discover 事件注册发现到的技能文件。
  • 所有用户可见文案都通过 pi-extensions-i18n 提供中英文版本。

安装

pi install npm:pi-nested-skills

然后在 Pi 中执行 /reload

配置技能根目录

复制 config.example.json,写入:

<Pi agent 目录>/extensions/pi-nested-skills/config.json

<Pi agent 目录> 是 Pi 配置的 agent 目录,通常为 ~/.pi/agent。扩展遵循 Pi 的 PI_CODING_AGENT_DIR 设置。

{
  "skillRoots": [
    "~/shared-skills",
    "skills"
  ]
}

相对路径以 Pi agent 目录为基准。根目录的每个直接子目录视为一个技能包,扩展会递归发现其中所有可见目录下的 SKILL.md。如果根目录本身包含 SKILL.md,也会把它作为一个技能包处理。

使用 /config:nested-skills 在 TUI 输入框中修改配置,多个目录用逗号分隔;输入 reset 恢复默认目录。保存后执行 /reload

别名与原生展开

对于 development/code-reviewer/SKILL.md,扩展提供:

/development:code-reviewer [参数]
/skill:development.code-reviewer [参数]

输入事件会把别名转换为 Pi 原生的 /skill:<frontmatter-name> 形式,再由 Pi 读取技能正文,并按原生机制解析相对引用。如果多个技能共用同一个 frontmatter name,扩展不会猜测无路径的名称;请使用明确的技能包/路径别名。

使用 /skills 查看完整列表。输入 / 可在同一个列表中搜索 Pi 内置命令和嵌套技能。

可移植性与隐私

本包不读取凭据、不发起网络请求、不启动进程,也不假设固定的用户目录。它遵循 Pi 的 agent 目录配置,并支持显式指定项目或团队技能目录。

要求

  • Node.js 22 或更高版本。
  • Pi >=0.80.0 <0.81.0

许可证

MIT — 详见仓库许可证。