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

@wdtt/skill-mgr

v0.2.2

Published

OpenCode skill 链接管理工具 — 从中央仓库浏览、选择、链接 skill

Downloads

1,401

Readme

@wdtt/skill-mgr

English | 中文


English

skill-mgr is a CLI tool for managing OpenCode skill symlinks. Browse, select, and link skills from a central repository to your project's .opencode/skills/ directory.

Features

  • 🖥️ TUI — Interactive terminal UI for browsing and selecting skills
  • 🔗 Symlink management — Link/unlink skills to your project
  • 📂 Custom categories — Organize skills into your own categories (a skill can belong to multiple categories)
  • 📝 Skill notes — Add personal notes to any skill
  • 🎯 Agent mode — JSON output for OpenCode /slink integration
  • 🏷️ Flat & hierarchical repos — Supports both category/skill/ and skill/ directory structures

Installation

Via npm (recommended)

npm install -g @wdtt/skill-mgr

Via Go

go install github.com/87v5666/skill-link@latest

Manual

Download the binary for your platform from GitHub Releases, then:

chmod +x skill-mgr
sudo mv skill-mgr /usr/local/bin/

Quick Start

# 1. Point to your skill repository
skill-mgr path set ~/.config/opencode/skills-repo

# 2. Browse and select skills
skill-mgr tui

# 3. Or manage from the command line
skill-mgr list              # List linked skills
skill-mgr add react         # Link a skill
skill-mgr remove react      # Unlink a skill
skill-mgr info react        # Show skill details

Skill Repository Structure

The scanner supports two directory layouts:

Flat (each directory is a skill):

skills-repo/
├── docx/              ← skill directory (has SKILL.md)
│   ├── SKILL.md
│   └── scripts/       ← ignored (no SKILL.md)
├── grill-me/
│   └── SKILL.md
└── pptx/
    ├── SKILL.md
    └── scripts/

Hierarchical (category → skills):

skills-repo/
├── frontend/
│   ├── react-component/
│   │   └── SKILL.md
│   └── css-layout/
│       └── SKILL.md
└── backend/
    ├── api-design/
    │   └── SKILL.md
    └── database-schema/
        └── SKILL.md

CLI Commands

| Command | Description | |---------|-------------| | tui | Launch the interactive TUI | | list | List linked skills | | add <name> | Link a skill to the current project | | remove <name> | Unlink a skill | | info <name> | Show skill details and SKILL.md | | sync | Refresh the repository cache | | path [get\|set <path>] | View or configure the repository path |

TUI Key Bindings

| Key | Action | |-----|--------| | ↑↓ / jk | Navigate | | Tab | Switch between category panel and skill list | | Space | Select/deselect a skill | | Enter | Preview skill / confirm action | | L | Link all selected skills | | D | Unlink the skill under cursor | | N | Create a new custom category | | A | Add/remove current skill to/from a category | | E | Edit note for the current skill | | / | Search skills | | Q / Ctrl+C | Quit |

OpenCode Integration

Add to your project's .opencode/agents/slink.json:

{
  "name": "slink",
  "command": "/slink",
  "handler": {
    "type": "shell",
    "command": "skill-mgr",
    "args": ["agent"]
  },
  "instructions": "Manage skill links. Natural language examples:\n- 'add react skill' → skill-mgr agent link react\n- 'list skills' → skill-mgr agent linked\n- 'remove api-design' → skill-mgr agent remove api-design\n- 'open TUI' → skill-mgr tui\nFormat JSON results for the user.",
  "permissions": ["read", "write"]
}

Development

git clone [email protected]:87v5666/skill-link.git
cd skill-link

# Build
go build -o skill-mgr -ldflags="-X main.version=dev" .

# Test
go test ./...

# Build with version
go build -o skill-mgr -ldflags="-X main.version=v0.2.0 -s -w" .

Release

# Update version
npm pkg set version=0.3.0

# Tag and push (triggers GitHub Actions)
git commit -am "release: v0.3.0"
git tag v0.3.0 && git push origin v0.3.0

GitHub Actions will build binaries for all platforms, create a GitHub Release, and publish to npm.

License

MIT


Chinese

skill-mgr 是 OpenCode 的 skill 链接管理工具。从中央仓库浏览、选择、链接 skill 到当前项目的 .opencode/skills/ 目录。

功能

  • 🖥️ TUI — 终端交互界面,浏览和选择 skill
  • 🔗 软链接管理 — 链接/取消链接 skill 到项目
  • 📂 自定义分类 — 创建自己的分类管理 skill(一个 skill 可属于多个分类)
  • 📝 skill 备注 — 为任何 skill 添加个人备注
  • 🎯 Agent 模式 — JSON 输出,供 OpenCode 的 /slink 指令使用
  • 🏷️ 平面和分层结构 — 同时支持 分类/skill/skill/ 两种目录结构

安装

通过 npm(推荐)

npm install -g @wdtt/skill-mgr

通过 Go

go install github.com/87v5666/skill-link@latest

手动安装

GitHub Releases 下载对应平台的二进制文件:

chmod +x skill-mgr
sudo mv skill-mgr /usr/local/bin/

快速开始

# 1. 指定 skill 仓库路径
skill-mgr path set ~/.config/opencode/skills-repo

# 2. 启动 TUI 浏览选择
skill-mgr tui

# 3. 或者用命令行管理
skill-mgr list              # 列出已链接的 skill
skill-mgr add react         # 链接 skill
skill-mgr remove react      # 取消链接
skill-mgr info react        # 查看 skill 详情

Skill 仓库结构

支持两种目录布局:

平面结构(每层目录是一个 skill):

skills-repo/
├── docx/              ← skill 目录(含 SKILL.md)
│   ├── SKILL.md
│   └── scripts/       ← 被忽略(没有 SKILL.md)
├── grill-me/
│   └── SKILL.md
└── pptx/
    ├── SKILL.md
    └── scripts/

分层结构(分类 → skill):

skills-repo/
├── frontend/
│   ├── react-component/
│   │   └── SKILL.md
│   └── css-layout/
│       └── SKILL.md
└── backend/
    ├── api-design/
    │   └── SKILL.md
    └── database-schema/
        └── SKILL.md

CLI 命令

| 命令 | 功能 | |------|------| | tui | 启动交互式 TUI | | list | 列出已链接的 skill | | add <name> | 链接 skill 到当前项目 | | remove <name> | 取消链接 skill | | info <name> | 查看 skill 详情和 SKILL.md | | sync | 刷新仓库缓存 | | path [get\|set <路径>] | 查看或配置仓库路径 |

TUI 快捷键

| 快捷键 | 功能 | |--------|------| | ↑↓ / jk | 导航 | | Tab | 切换分类面板和 skill 列表 | | Space | 选择/取消选择 skill | | Enter | 预览 skill / 确认操作 | | L | 链接所有选中的 skill | | D | 取消链接当前光标下的 skill | | N | 新建自定义分类 | | A | 将当前 skill 添加/移出分类 | | E | 编辑当前 skill 的备注 | | / | 搜索 skill | | Q / Ctrl+C | 退出 |

OpenCode 集成

在项目的 .opencode/agents/slink.json 中注册 agent:

{
  "name": "slink",
  "command": "/slink",
  "handler": {
    "type": "shell",
    "command": "skill-mgr",
    "args": ["agent"]
  },
  "instructions": "管理 skill 链接。自然语言示例:\n- '添加 react skill' → skill-mgr agent link react\n- '列出 skill' → skill-mgr agent linked\n- '删除 api-design' → skill-mgr agent remove api-design\n- '打开 TUI' → skill-mgr tui\n将 JSON 结果格式化后回复用户。",
  "permissions": ["read", "write"]
}

开发

git clone [email protected]:87v5666/skill-link.git
cd skill-link

# 构建
go build -o skill-mgr -ldflags="-X main.version=dev" .

# 测试
go test ./...

# 带版本号构建
go build -o skill-mgr -ldflags="-X main.version=v0.2.0 -s -w" .

发布

# 更新版本号
npm pkg set version=0.3.0

# 打 tag 并推送(触发 GitHub Actions)
git commit -am "release: v0.3.0"
git tag v0.3.0 && git push origin v0.3.0

GitHub Actions 会自动构建各平台二进制、创建 GitHub Release 并发布到 npm。

许可证

MIT