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

@cnbcool/cnb-cli

v1.0.2

Published

CNB OpenAPI 命令行工具,基于 CNB 平台 Swagger 自动生成,支持 Issues、PR、Git、组织管理等全部 API 操作

Readme

CNB Skills

CNB 平台技能集合,在一个仓库中维护多个 CodeBuddy Skill,可通过 npx skills 便捷安装。

包含的 Skills

  • cnb-api — 提供与 CNB OpenAPI 的完整交互能力,支持项目、组织、代码仓库、Issue、PR、流水线、制品库等操作
  • code-review — PR 代码评审,提供标准化评审流程和行级评论
  • pr-diff — 获取 PR 的 diff 变更信息
  • pr-summary — PR 变更总结,生成结构化的变更说明
  • code-to-pr — 自动编码并创建/更新 PR
  • dialog-ci-log — 查询 CI 流水线的错误日志
  • diagnose-pr-pipeline — 获取 PR 触发的 CI 报错详细信息
  • tapd-saas-resource-fetcher-skills — 获取 Tapd SaaS 资源(需求、缺陷、任务、迭代)
  • text-path-converter — 将 ISSUE/PR 内容中的相对路径转换为绝对路径

运行环境要求

  • Node.js 20.x 及以上版本

安装方式

一键安装所有 Skill

npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --agent codebuddy -y

只安装指定的 Skill

# 列出所有可用的 Skill
npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --list

# 安装单个 Skill
npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --skill cnb-api --agent codebuddy -y

# 安装多个指定 Skill
npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --skill cnb-api --skill code-review --skill pr-diff --agent codebuddy -y

使用 cnb-api 还需安装 cnb-cli

npm install @cnbcool/cnb-cli -g

安装完成后运行 cnb --help 验证是否安装成功。

AI 安装提示词

将以下提示词复制后发送给 AI 智能体(如 CodeBuddy),即可自动完成所有安装:

请帮我安装 CNB Skills 的运行环境,依次执行以下步骤:

1. 全局安装 cnb-cli:
   npm install @cnbcool/cnb-cli -g
   安装完成后运行 cnb --help 验证是否安装成功。

2. 全局安装 skills 工具:
   npm install skills -g

3. 通过 skills 工具安装所有 skill 到当前工作目录:
   npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --agent codebuddy -y --copy

每一步执行完后告诉我结果,如果有报错请帮我解决。

环境变量

  • CNB_TOKEN — 访问凭证(必须)
  • CNB_API_ENDPOINT — API 端点地址(必须),示例:https://api.cnb.cool
  • CNB_BRANCH — 默认分支(选填),示例:main

关键词

CNB、云原生构建、组织、代码仓库、Issue、PR、合并请求、流水线、代码评审、CI/CD