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

@xuxiao-dev/ai-dev-kit

v0.1.1

Published

A CLI toolkit for installing AI development resources into projects.

Readme

项目简介

@xuxiao-dev/ai-dev-kit 是一个面向项目开发流程的 npm CLI 工具包,当前主要用于管理和安装 Cursor 相关资源。

它可以将包内置的 Cursor Rules 和 Cursor Commands 复制到当前项目的 .cursor/ 目录,适合在多个项目中复用统一的 AI 协作规范、README 生成命令、任务计划命令和提交命令。

当前项目类型为工具库 / npm 包,入口命令为 ai-dev-kit,运行环境要求 Node.js >=18

功能特性

  • 查看包内置的 Cursor Rules 和 Cursor Commands
  • 按名称安装单个 Cursor Rule 到 .cursor/rules
  • 按名称安装单个 Cursor Command 到 .cursor/commands
  • 支持一次性安装全部内置 Cursor 资源
  • 默认跳过已存在文件,避免覆盖当前项目已有配置
  • 支持通过 --force 覆盖已存在文件

技术栈

  • Node.js >=18
  • TypeScript
  • Commander
  • fs-extra
  • picocolors
  • tsup
  • tsx
  • pnpm

目录结构

ai-dev-kit/
├── cursor/
│   ├── commands/
│   └── rules/
├── src/
│   ├── commands/
│   ├── utils/
│   └── cli.ts
├── package.json
├── pnpm-lock.yaml
├── tsconfig.json
├── tsup.config.ts
└── README.md

内置资源

Cursor Rules:

  • ai-task-workflow-rule

Cursor Commands:

  • readme-command
  • create-plan-from-brief
  • commit

安装到业务项目后,资源会写入:

.cursor/
├── commands/
│   └── xxx.md
└── rules/
    └── xxx.mdc

本地运行

安装依赖:

pnpm install

开发环境运行:

pnpm dev

构建 CLI:

pnpm build

构建后可直接执行:

node bin/ai-dev-kit.js cursor list

使用方式

直接通过 npm 包运行:

npx @xuxiao-dev/ai-dev-kit cursor list

或安装到项目中使用:

pnpm add -D @xuxiao-dev/ai-dev-kit
pnpm ai-dev-kit cursor list

查看内置资源:

ai-dev-kit cursor list

安装单个 Cursor Rule:

ai-dev-kit cursor add rule ai-task-workflow-rule

安装单个 Cursor Command:

ai-dev-kit cursor add command readme-command

安装全部 Cursor 资源:

ai-dev-kit cursor add --all

覆盖已存在文件:

ai-dev-kit cursor add rule ai-task-workflow-rule --force
ai-dev-kit cursor add --all --force

环境变量

当前项目未发现 .env.example,也没有从代码中识别到运行时必须配置的环境变量。

构建与发布

项目使用 tsup 构建,构建入口为 src/cli.ts,产物输出到 bin/ 目录,并带有 Node.js CLI 所需的 shebang。

pnpm build

发布前会执行:

pnpm prepublishOnly

实际发布流程和 npm 权限配置待补充。

部署说明

这是一个 npm CLI 工具,不需要像 Web 项目一样部署到服务器。常见交付方式是构建后发布到 npm,再通过 npx 或项目内 devDependencies 使用。

如果需要发布到 npm,可参考以下流程:

pnpm install
pnpm build
npm publish

npm 包名、发布账号、版本策略和访问权限请根据实际情况确认。

后续计划

  • 补充测试用例,覆盖资源列表、复制、跳过和覆盖逻辑
  • 补充 npm 发布说明和版本管理规范
  • 根据实际使用情况扩展更多 Cursor Rules 和 Commands
  • 增加资源名称与 README 内置资源列表的同步检查

License

待补充