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

ai-sop-setup

v1.0.3

Published

Publishable CLI for bootstrapping multi-agent AI coding SOP rules, skills, and MCP config.

Readme

ai-sop-setup

将单次使用的 AI SOP 初始化脚本升级为可发布、可复用的 Node.js CLI。

中文 | English

项目状态

  • 当前适合以早期公开项目方式发布
  • 已覆盖核心 CLI 行为、非交互参数、dry-run、多 AI 工具配置生成
  • 仍建议在正式大范围推广前补齐仓库地址、问题反馈地址与发布流水线徽章

安装

本地开发

  • npm install
  • npm run test:ci

全局安装

  • npm install -g ai-sop-setup
  • ai-sop-setup --help

快速开始

  1. 在目标项目目录安装或直接运行本工具
  2. 执行 ai-sop-setup --yes --ai-tool-preset all-major
  3. 检查生成的 AI 规则文件、README 更新块与 MCP 示例配置
  4. 如需预览而不落盘,先执行 ai-sop-setup --yes --dry-run

常见输出文件

  • .cursor/rules/*.mdc
  • CLAUDE.md
  • .github/copilot-instructions.md
  • GEMINI.md
  • AGENTS.md
  • .ai-sop/mcp.json.example

用法

  • ai-sop-setup
  • ai-sop-setup init
  • ai-sop-setup validate-config --config ./ai-sop.config.json
  • ai-sop-setup --yes --force
  • ai-sop-setup --yes --dry-run
  • ai-sop-setup --config ./ai-sop.config.json
  • ai-sop-setup --lang TypeScript --framework Next.js --db PostgreSQL --orm Prisma
  • ai-sop-setup --ai-tool cursor --ai-tool claude-code --ai-tool github-copilot
  • ai-sop-setup --ai-tool-preset all-major
  • ai-sop-setup --third-party-skill vercel-labs/agent-skills --third-party-skill anthropics/skills/frontend-design
  • ai-sop-setup --third-party-skill-preset frontend --install-third-party-skills

参数行为说明

  • 非法的 --lang--framework--db--orm--style--test 值会直接报错,不再静默回退默认值
  • --dry-run 只预览将生成/更新哪些文件,不会真正写入磁盘
  • validate-config 命令只做配置校验与归一化展示,不会进入交互,也不会写文件
  • --config 支持 .json.jsonc.js.cjs
  • --ai-tool 可为不同 AI 编程工具生成对应项目级配置,当前支持 cursorclaude-codegithub-copilotgemini-cliopenai-codexantigravity
  • --ai-tool-preset 可快速展开工具组合,当前支持 editorterminalall-major
  • --third-party-skill 可接入 skills.sh 生态中的第三方技能包,并生成安装指南
  • --third-party-skill-preset 可展开预设技能集合,当前支持 frontendreviewdesignazure
  • --install-third-party-skills 只有显式开启时才会真正执行 npx skills add ...

配置文件示例

{
  "projectName": "demo-app",
  "lang": "TypeScript",
  "framework": "Next.js",
  "db": "PostgreSQL",
  "orm": "Prisma",
  "style": "Tailwind CSS",
  "test": "Vitest",
  "frontend": true,
  "aiTools": ["cursor", "claude-code", "github-copilot"],
  "aiToolPresets": ["terminal"],
  "extra": [
    "代码提交前必须通过 lint(ESLint / golangci-lint)",
    "使用 Conventional Commits 规范提交信息"
  ],
  "mcp": ["filesystem", "git", "github", "browsertools"],
  "thirdPartySkills": ["vercel-labs/agent-skills", "anthropics/skills/frontend-design"],
  "thirdPartySkillPresets": ["frontend"]
}

已支持特性

  • 可发布的 bin 入口
  • --yes--force--config
  • --dry-run 预览模式
  • 多 AI 编程工具配置生成(Cursor / Claude Code / GitHub Copilot / Gemini CLI / OpenAI Codex / Antigravity)
  • 第三方 skills.sh 技能集成清单生成
  • 非交互参数覆盖
  • 幂等化 README / .gitignore 管理
  • Windows/macOS/Linux 路径兼容
  • node:test 覆盖核心行为

协作与支持