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

@gepeiyu/smart

v0.1.20

Published

AI Workflow Orchestration — OpenSpec + Superpowers dual-star development pipeline

Readme

@gepeiyu/smart

AI 开发流水线管理器 — 一次安装,跑通所有主流编码平台。

npm install -g @gepeiyu/smart
cd your-project
smart init

之后在 Claude Code、Cursor、OpenCode、Trae 等平台中直接运行 /smart


理念

AI 编码工具越来越强,但开发流程还是靠人记:现在该写设计文档了、任务做完了吗、别忘了验证。Smart 把这件事自动化了。

它的核心思路是编排而非替代。OpenSpec 负责需求与规范,Superpowers 负责 TDD 执行,CodeGraph 负责代码理解——Smart 站在它们之上,像操作系统管理进程一样,用状态机驱动开发流程自动推进。

User Request
    ↓
[ Smart ]       — 状态机 · 守卫 · 上下文传递
    ↓
[ OpenSpec    ] — 需求拆解、规范管理、生命周期
[ Superpowers ] — 设计方案、TDD 执行、代码审查
[ CodeGraph   ] — 语义索引、代码理解

几个设计原则贯穿始终:

  • 非侵入集成 — 不修改任何外部工具,只通过 CLI 和文件交互
  • 软硬双层防护 — Rule 每轮提醒 + Hook 硬拦截,纵深防御
  • 谁产生谁管理 — Smart 只校验状态,不篡改产物
  • 一次定义,到处部署 — 一份配置装到所有 AI 平台

解决的问题

| 问题 | Smart 的做法 | |------|------------| | Agent 中断后进度丢失 | 自动检测当前阶段,从断点恢复 | | 跳过必要步骤直接写代码 | Guard 脚本硬校验,不满足不放行 | | 设计和实现脱节 | 阶段切换时自动打包上下文,SHA256 校验 | | 错误阶段写入源码 | Hook Guard 在写入前拦截 | | 每个平台重复配置 | 一次 smart init 装到所有平台 |


流水线

一次开发任务分为 5 个阶段,由状态机驱动依次推进:

任务拆分 → 方案设计 → 编码实现 → 验证确认 → 归档收尾
  1. Issue — OpenSpec 拆解需求,生成提案、设计文档和任务清单
  2. Design — Superpowers 设计方案,产出设计文档和增量规范
  3. Build — Superpowers 按规范编码,支持 TDD、子 Agent、分支隔离
  4. Verify — OpenSpec + Superpowers 联合验证,检查上下文完整性
  5. Archive — OpenSpec 合并增量,归档成果

Slash Commands

安装完成后,在 Claude Code、Cursor、OpenCode、Trae 等 AI 编码平台中使用这些命令驱动工作流:

| 命令 | 说明 | |------|------| | /smart <需求描述>/smart | 主入口。自动判断当前状态:新需求进入 Issue,已有变更从当前阶段恢复。 | | /smart-issue <需求描述>/smart-issue #<issue> | 创建或选择变更,完成需求拆解并初始化 .smart.yaml。 | | /smart-design <change-name> | 基于 Issue 产出设计方案和增量规范。 | | /smart-build <change-name> | 根据设计和任务清单实现代码,支持 TDD、子 Agent 和守卫检查。 | | /smart-verify <change-name> | 运行验证,检查实现、测试、上下文完整性和归档条件。 | | /smart-archive <change-name> | 归档已通过验证的变更,并同步 OpenSpec 状态。 | | /smart-bugfix <bug 描述> | Bug修复模式:先做根因分析,再进入 Build → Verify → Archive。 | | /smart-quick <小改动描述> | 快捷模式:跳过 Brainstorming 和 Plan,直接进行快捷 Build 和 Verify。 |

常见用法:

/smart 添加用户导出功能
/smart-issue #123
/smart-design export-users
/smart-build export-users
/smart-verify export-users
/smart-archive export-users
/smart-bugfix 修复登录后偶发跳回首页的问题
/smart-quick 修改按钮文案和 README 说明

CLI 命令

| 命令 | 功能 | |------|------| | smart init [path] | 检测 AI 平台,安装流水线技能 | | smart status [path] | 查看当前工作流状态 | | smart dashboard [path] | 打开 Web 仪表盘(默认 127.0.0.1:5271)| | smart doctor [path] | 诊断环境健康度 | | smart update [path] | 升级 Smart 和技能文件 | | smart uninstall [path] | 卸载 Smart 组件 |

initstatusdashboarddoctorupdateuninstall 均支持 --json 输出。

smart uninstall 默认只删除 Smart 自己安装的技能、规则、hooks、命令和配置。仅当确定项目不再需要共享依赖时,使用 --remove-deps 一并删除 OpenSpec、CodeGraph 和 Superpowers 项目安装;若仍有其他项目级 Smart 平台,依赖会保留。


系统要求

  • Node.js >= 20
  • Git
  • Bash 兼容环境(Windows 用 Git Bash)

License

MIT