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

twx-skill

v0.1.4

Published

TailwindX / tw 代码片段:CLI 输出 JSON + Claude Code Skill(参考 Bitget skill 布局)

Readme

twx-skill

参考 Bitget agent_hub 的 bitget-skill 设计Skill 说明 + 本机 CLI(twx)+ references 手册 + postinstall 拷贝到 Claude Code

包含内容

| 路径 | 作用 | |------|------| | bin/twx.js | 片段检索 CLI(ESM,type: module),支持 --json | | data/snippets.json | 片段源数据(可 PR 扩展) | | skills/SKILL.md | Agent 触发与流程说明 | | references/quickstart.md | 任意项目里接入 .agents/skills/ 的一页说明(可复制给同事) | | scripts/install.js | npm install 后拷贝到 ~/.claude/skills/twx-skill/ | | scripts/sync-to-agents.mjs | 将 skill 同步到 monorepo 根目录 .agents/skills/twx-skill/ |

安装

npm install -g ./packages/twx-skill
# 或发布后
npm install -g twx-skill

验证:

twx --version
twx list --json

给其他项目用(Claude Code / Cursor + .agents

对方项目根(或子目录,能向上找到 .git)执行一条即可:

npx -y twx-skill@latest init

会生成 .agents/skills/twx-skill/SKILL.md + references/,内含 quickstart.md)。无 Git 时用 init --hereinit --root /绝对路径

建议同事再装 CLI,便于 skill 里调片段:

npm install -g twx-skill

对方也可在自家 package.json 里加脚本,例如:"skills:twx": "npx -y twx-skill@latest init"

更细的说明见包内 references/quickstart.md

Claude Code

npm install twx-skill(非仅 npx)时 postinstall 会尝试把 skill 写入 ~/.claude/skills/twx-skill/,与项目内 .agents/skills/ 可并存:全局一份、项目一份,按工具实际加载路径为准。

本仓库开发时同步 .agents

若编辑器加载仓库根 .agents/skills/

cd packages/twx-skill && npm run sync:agents

或:

npx --yes ./packages/twx-skill init --root "$(pwd)"

仍建议全局安装 twx,skill 依赖 Bash 执行 twx … --json

仅 Cursor、不用 .agents

skills/SKILL.md 复制到 .cursor/skills/twx-skill/SKILL.md(并复制 references/);或在 User Rules 里写:「涉及 twx 片段时先运行 twx ... --json」。

(若 Cursor 后续提供官方 skill 安装路径,以官方文档为准。)

扩展片段

  1. 直接编辑 data/snippets.jsonsnippets 数组;或
  2. 增加 snippets-src/<id>.md(YAML frontmatter:title / tags / description),然后在本包目录执行 npm run gen:catalog

许可证

MIT