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

@zhin.js/skill

v1.1.22

Published

Convention-based Markdown Skill Feature for Zhin Plugin Runtime

Readme

@zhin.js/skill

Markdown Skill Feature。skills/<name>/SKILL.md 是 Skill 的唯一事实源,目录名提供稳定 identity,Markdown 内容作为 immutable instructions 进入 generation snapshot。

目录约定

skills/
└── research/
    ├── SKILL.md
    ├── tools/
    │   └── search/
    │       └── index.ts
    ├── helper.md
    └── references/

公共 Skill 使用 skills/<name>/SKILL.md;Agent 私有 Skill 使用 agents/<agent>/skills/<name>/SKILL.md。Skill 的私有 Tool 放在该 Skill 的 tools/<name>/index.ts,会自动加入 Skill 的 Tool 白名单;参考资料继续与 Skill 共置。默认只披露 Skill 名称、描述和检索字段,完整 instructions 与私有 Tool 要到 load_skill 后才进入当前会话能力集。

Markdown 契约

# Research

Prefer primary sources. Record uncertainty and citations.

Feature 解析 YAML frontmatter 中的 description、tools、platforms、scopes、permissions、keywords、tags 与 always,并从模型 instructions 中移除 frontmatter。name 若存在必须与目录名一致;没有 description 时使用首个 Markdown heading。

单文件插件可用 setup({ addSkill }) 直接注册 Markdown: addSkill('research', '# Research\n\nPrefer primary sources.')。内容仍经过同一个 Markdown validator 并进入 SkillIndex。

Projection

SkillIndex 提供:

  • list():全树 Skill,包含 owner、qualified name、source 和 instructions。
  • visible(owner):owner 可见的 Root/ancestor Skill,nearest owner override 生效(底层索引能力)。
  • get(owner, name):按 owner 继承链解析单个 Skill。

Skill definition 没有连接、timer 或 disposer。HMR 替换 Markdown Slot 后原子发布新 projection;进行中的 turn 继续读取旧文本。

依赖

只依赖 Plugin Runtime、Feature Kit 与 YAML frontmatter parser,不依赖 AI SDK 或向量数据库。

验证

pnpm --filter @zhin.js/skill test
pnpm --filter @zhin.js/skill build