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

@eddiearc/skilltap

v0.7.2

Published

Install AI agent skills from any git repository. One repo = one skill tap.

Downloads

221

Readme

skilltap

一个仓库就是一个技能市场,即使技能放在多层子目录里也一样。

从 GitHub 仓库安装 AI Agent 技能,支持多 Agent 分发。

English | 中文文档

安装

# 作为 CLI(全局安装)
npm install -g @eddiearc/skilltap

# 作为 SDK
npm install @eddiearc/skilltap

概念

一个 tap 就是一个包含 AI Agent 技能的 GitHub 仓库(技能目录里带 SKILL.md)。skilltap 会递归发现技能目录,因此既支持扁平结构,也支持 skills/pdf/SKILL.md 这种多层布局。

github.com/anthropics/skills/       <- 这就是一个 tap
├── skills/
│   ├── pdf/
│   │   └── SKILL.md
│   ├── frontend-design/
│   │   └── SKILL.md
│   └── canvas-design/
│       └── SKILL.md
└── template/
    └── SKILL.md

技能默认安装到 ~/.agents/skills/(通用目录),并可通过软链接分发到各个 Agent 的目录。

CLI 用法

源管理

# 添加技能源
skilltap add anthropics/skills

# 添加带独立 token 的私有源
skilltap add company/private-skills --token ghp_xxx

# 移除源
skilltap remove anthropics/skills

# 查看已配置的源
skilltap sources

浏览和搜索

# 搜索技能
skilltap search pdf

安装和卸载

# 只安装到 ~/.agents/skills/
skilltap install pdf

# 安装 + 软链接到所有检测到的 Agent
skilltap install pdf -g

# 安装 + 软链接到指定 Agent
skilltap install pdf -a claude-code cursor codex

# 安装 + 软链接到自定义目录
skilltap install pdf -d ~/my-project/.claude/skills

# 从指定源安装(当多个源有同名技能时)
skilltap install pdf --from anthropics/skills

# 卸载
skilltap uninstall pdf
skilltap uninstall pdf -g    # 同时移除所有 Agent 的软链接

更新

# 更新所有已安装的技能
skilltap update

# 更新 + 刷新所有 Agent 的软链接
skilltap update -g

多 Agent 支持

# 查看支持的 Agent 及本机检测结果
skilltap agents
#   ✓ Claude Code (claude-code) → ~/.claude/skills
#   ✓ Cursor (cursor) → ~/.cursor/skills
#   ✓ Codex (codex) → ~/.codex/skills
#   · Windsurf (windsurf) → ~/.windsurf/skills
#   3 agent(s) detected

技能以实体文件存储在 ~/.agents/skills/,通过软链接分发到各 Agent 目录:

~/.agents/skills/pdf/          <- 实体文件
~/.claude/skills/pdf           <- 软链接
~/.cursor/skills/pdf           <- 软链接
~/.codex/skills/pdf            <- 软链接

支持的 Agent:Claude Code、Codex、Cursor、Windsurf、GitHub Copilot、Gemini CLI、Cline、Roo Code、Amp、Augment。

技能发现规则

Skill 的核心规范是:一个技能就是一个包含 SKILL.md 的目录,SKILL.md 里放 YAML frontmatter 和 Markdown 指令。

skilltap 现在按下面的规则发现技能:

  1. 从仓库根目录开始遍历。
  2. 对每个子目录检查它是否直接包含 SKILL.md
  3. 如果包含,就把该目录认定为一个 skill,并停止继续向下遍历这个目录。
  4. 如果不包含,就继续递归检查它的子目录。

这样既兼容早期的扁平结构,也兼容 anthropics/skills 当前把大部分技能放在 skills/ 子目录里的结构。

冲突处理

当多个源有同名技能时:

$ skilltap install pdf
# Multiple skills found for "pdf":
#   - anthropics/skills
#   - my-company/skills
# Use --from to specify: skilltap install pdf --from <owner/repo>

$ skilltap install pdf --from my-company/skills
# Installed: pdf → ~/.agents/skills/pdf

SDK 用法

import { Skilltap } from '@eddiearc/skilltap'

const st = new Skilltap({
  sources: [
    'anthropics/skills',                                    // 公开源(字符串)
    { repo: 'company/private-skills', token: 'ghp_xxx' },  // 私有源,带独立 token
  ],
  token: 'ghp_fallback',            // 可选,全局兜底 token
  agents: ['claude-code', 'cursor'], // 可选,软链接目标
})

// 浏览和搜索
const all = await st.available()
const results = await st.search('pdf')

// 安装和管理
await st.install('pdf')
await st.install('pdf', { from: 'anthropics/skills' })
await st.uninstall('pdf')
await st.update()

// 查看已安装
const installed = await st.list()

检测已安装的 Agent

import { detectInstalledAgents } from '@eddiearc/skilltap'

const agents = await detectInstalledAgents()
// [{ id: 'claude-code', name: 'Claude Code', globalDir: '~/.claude/skills' }, ...]

鉴权

每个源的 token 按以下优先级解析:

  1. 源级 tokenSourceConfig.token
  2. 全局 tokenSkilltapConfig.token~/.skilltap/config.json
  3. 自动检测凭证gh CLI 配置 或 GITHUB_TOKEN 环境变量)

公开仓库无需鉴权。

配置

配置文件位于 ~/.skilltap/config.json

{
  "sources": [
    "anthropics/skills",
    { "repo": "company/private-skills", "token": "ghp_xxx" }
  ],
  "installDir": "~/.agents/skills",
  "token": "ghp_global_fallback"
}

版本与发布

CLI 版本号现在直接读取 package.json,因此 skilltap --version 会和实际发布包版本保持一致。

发布流程也以 package.json 为单一真相源:

  1. 读取 package.json.version
  2. 发布对应 npm 包版本
  3. 创建并推送匹配的 Git Tag:v<version>

License

MIT