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

agent-development-kit

v1.1.0

Published

Agent Skill CLI 是一个用于管理 Agent Skills 的命令行工具,支持技能的浏览、搜索、上传、下载、验证等功能。

Readme

Agent Development Kit (ADK) - CLI

Agent Skill CLI 是一个用于管理 Agent Skills 的命令行工具,支持技能的浏览、搜索、上传、下载、验证等功能。

注意: 本 CLI 需要配合 Agent Skill Backend 后端管理系统一起使用。请先确保后端服务已启动。

功能特性

  • 认证管理 (登录/登出)
  • 技能浏览与搜索
  • 技能详情查看
  • 技能上传/下载/删除
  • 技能本地验证
  • 多服务端支持

安装

前置要求

  • Node.js >= 18 或 Bun >= 1.0

全局安装

cd cli
npm install
npm run build
npm link

# 验证安装
adk --help

或使用 Bun 直接运行

cd cli
bun run src/main.ts --help

快速开始

1. 登录

adk login http://localhost:3000 <your-api-key>

2. 浏览技能

# 列出所有技能
adk skill ls

# 搜索技能
adk skill search pdf

# 查看技能详情
adk skill info pdf-tool

3. 下载技能

# 下载到当前目录
adk skill download pdf-tool

# 下载到指定目录
adk skill download pdf-tool ./my-skills

4. 上传技能

# 上传本地技能目录
adk skill upload ./my-skills/pdf-tool

5. 验证技能格式

# 验证本地技能目录
adk skill validate ./my-skills/pdf-tool

# 验证 ZIP 文件
adk skill validate ./my-skills/pdf-tool.zip

命令参考

认证命令

| 命令 | 说明 | |------|------| | adk login <server-url> <api-key> | 登录到指定服务端 | | adk logout | 登出当前用户 | | adk me | 显示当前用户信息 |

技能浏览命令

| 命令 | 说明 | |------|------| | adk skill ls | 列出所有公开技能 | | adk skill search <keyword> | 搜索技能 | | adk skill info <name> | 查看技能详情 |

技能管理命令

| 命令 | 说明 | |------|------| | adk skill download <name> [dir] | 下载技能到指定目录 | | adk skill upload <path> | 上传本地技能目录 | | adk skill my | 查看我发布的技能 | | adk skill delete <name> | 删除我发布的技能 | | adk skill validate <path> | 验证技能格式(支持目录和 ZIP) |

服务端命令

| 命令 | 说明 | |------|------| | adk server | 显示当前服务端 | | adk server set <url> | 设置默认服务端 |

技能格式规范

上传的技能目录必须包含 SKILL.md 文件,且 frontmatter 必须符合以下格式:

---
name: skill-name          # 必填,小写字母、数字、连字符
description: 描述        # 必填,1-1024 字符
license: MIT             # 可选
compatibility: 兼容性信息 # 可选
allowed-tools: tool1 tool2 # 可选,空格分隔
---

# 技能说明

这里是技能的详细说明文档...

验证规则

  • name: 必填,只能包含小写字母、数字和连字符,1-64 字符
  • description: 必填,1-1024 字符
  • license: 可选
  • compatibility: 可选
  • allowed-tools: 可选,空格分隔的字符串

配置文件

登录后配置保存在 ~/.adk/config.json:

{
  "serverUrl": "http://localhost:3000",
  "token": "your-jwt-token",
  "user": {
    "id": "user-id",
    "name": "username",
    "email": "[email protected]"
  }
}

开发

# 安装依赖
npm install

# 开发模式(使用 bun)
bun run dev

# 构建
npm run build

# 运行测试
./test-regression.sh

后端配合

本 CLI 需要配合 Agent Skill Backend 使用。启动后端服务:

cd backend
npm install
npm run dev

后端默认运行在 http://localhost:3000

License

MIT