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

@lininn/openflow

v0.4.4

Published

OpenSpec + Superpowers workflow orchestrator for agentic development

Readme

@lininn/openflow

English

面向 AI 编程工具的 OpenSpec + Superpowers 工作流协调器。

OpenFlow 把项目上下文、需求捕获、规格生成、实现执行、验证归档串成一条规格驱动路径。它为 Claude Code、Codex、Cursor 和 OpenCode 初始化可复用 skills,让 OpenSpec 变更状态可见,并把需求产物翻译成 Superpowers 可执行 handoff。

安装

npm install -g @lininn/openflow

使用

初始化项目

cd your-project
openflow init --tools claude

CLI init 会自动:

  1. 检测并引导安装 OpenSpec CLI
  2. 检测 Superpowers 并提示安装方式
  3. 检测项目 OpenSpec 初始化状态
  4. 创建或补齐 openspec/config.yaml 项目上下文脚手架
  5. 生成 openflow skills 到所选工具的项目级 skill 目录,如 .claude/skills/openflow/.codex/skills/openflow/.cursor/skills/openflow/.opencode/commands/openflow/

支持的工具:claudecodexcursoropencode(逗号分隔,如 --tools claude,codex

安装到全局 skills

openflow init --tools claude -g
openflow init --tools claude,codex,cursor,opencode --global

-g / --global 后,openflow 会把 skills 安装到所选工具的全局目录:

| 工具 | 全局 skill 路径 | |------|-----------------| | claude | ~/.claude/skills/openflow/ | | codex | ~/.codex/skills/openflow/ | | cursor | ~/.cursor/skills/openflow/ | | opencode | ~/.opencode/commands/openflow/ |

全局安装只写入可复用 skills。每个项目的上下文仍需要在仓库内运行本地 openflow init,或通过 AI 工作流命令 /openflow init 初始化。

查看状态

openflow status

显示依赖安装状态和项目中的活跃变更。

Status 现在会为每个活跃 OpenSpec 变更渲染 OpenFlow 仪表盘:

  • 当前阶段和需求捕获模式
  • 状态来源:workflow-status.md 或根据文件推断
  • 阶段门禁:需求已捕获、规格已验证、计划已就绪、实现已完成、验证已完成、已归档
  • 任务计数、阻塞项、状态冲突,以及推荐下一条命令

更新 skills

openflow update

升级 npm 包后运行,重新生成项目内的 skills 文件。

工作流命令

规范调用方式是 /openflow <阶段>。为了改善补全体验,Claude Code、 Codex 和 Cursor 会额外生成可见的阶段别名,例如 /openflow-spec$openflow-spec,这样在命令/skill 选择器里输入 openflow 时能看到可用阶段。 OpenCode 保持原生命令树形式,例如 /openflow/spec/openflow/build

| 命令 | 阶段 | 说明 | |------|------|------| | /openflow init | init | 梳理项目介绍、规则限制和实现约束 | | /openflow proposal | proposal | 轻量提问,3-5 问快速收敛需求 | | /openflow brainstorming | brainstorming | 深度设计,多轮方案探索 | | /openflow grill | grill | 可选压力测试,在 spec 前挑战 proposal 假设 | | /openflow spec | spec | 调用 OpenSpec 生成规格 + 自动翻译 | | /openflow amend | amend | close 前修订需求/规格并更新 plan-ready.md | | /openflow build | build | 调用 Superpowers 执行实现 | | /openflow close | close | 验证一致性 + 归档 |

/openflow init 是项目上下文阶段。它扫描仓库,梳理项目用途、编码规则、架构边界和实现限制,并写入 openspec/config.yaml,让后续 proposal、spec 和 build 都带着项目级指导执行。

/openflow grill 是可选阶段:proposal 已经足够清晰时可以跳过;需要在进入 spec 前挑战隐藏假设和边界时再使用。spec 阶段把 plan-ready.md 视为交给 Superpowers 的详细 handoff,而不是任务摘要:必须保留来源覆盖、文件责任、实现切片、TDD 期望、验证命令和阻塞项。

每个工作流阶段都会维护 openspec/changes/<change-id>/workflow-status.md。裸 /openflow 和阶段命令会先读这个状态文件;缺失时根据文件推断;如果状态声明和实际产物冲突,会明确警告。

依赖策略

Best with: OpenSpec + Superpowers
Works without them: yes, with manual-file fallback

| 依赖 | 安装方式 | 缺失时降级 | |------|----------|-----------| | OpenSpec | npm install -g @fission-ai/openspec@latest | 手动创建 openspec/changes/ 目录和文件 | | Superpowers | /plugin install superpowers@claude-plugins-official | build 阶段手动拆解 plan-ready.md 步骤执行 |

双层依赖保障

| 层 | 机制 | 缺失时 | |----|------|--------| | init 时 | 从 PATH 检测 OpenSpec CLI;从 ./openspec/ 检测当前项目 OpenSpec;补齐 openspec/config.yaml;从所选工具的本地/全局 skill 目录检测 Superpowers | 不阻断,继续生成 skills | | 运行时 | SKILL.md 注入依赖检测段 | build 阶段降级为手动拆解步骤执行 |

架构

详细图表:架构图 (SVG) | 架构图 (PNG) | 流程图 (SVG) | 流程图 (PNG)

OpenFlow 工作流

用户需求
   │
   ├── 项目上下文 ──→ /openflow init ──→ openspec/config.yaml
   │
   ├── 轻量 ──→ /openflow proposal ──┐
   │          3-5问快速收敛          │
   │                                 ├─→ proposal.md
   └── 深度 ──→ /openflow brainstorming ─┘ (openspec/changes/<name>/)
               多轮方案探索
                                     │
                          ┌──────────▼───────────┐
                          │  /openflow grill      │
                          │  可选压力测试          │
                          └──────────┬───────────┘
                                     │
                          ┌──────────▼───────────┐
                          │  /openflow spec        │
                          │  OpenSpec 生成规格      │
                          └──────────┬───────────┘
                                     │
                          ┌──────────▼───────────┐
                          │   翻译层 (核心)        │
                          │  需求视角 → 工程视角    │
                          └──────────┬───────────┘
                                     │
                                plan-ready.md
                                     │
                             workflow-status.md
                         阶段门禁、任务、阻塞项
                                     │
                          ┌──────────▼───────────┐
                          │  /openflow build       │
                          │  Superpowers 执行      │
                          │  TDD 铁律 + 断点恢复   │
                          └──────────┬───────────┘
                                     │
                          ┌──────────▼───────────┐
                          │  /openflow amend      │
                          │  需求变更修订          │
                          │  (仅需要时)           │
                          └──────────┬───────────┘
                                     │
                          ┌──────────▼───────────┐
                          │  /openflow close       │
                          │  验证一致性 + 归档      │
                          └──────────────────────┘

致谢

openflow 编排了以下两个开源项目:

| 项目 | 仓库 | 许可证 | 使用方式 | |------|------|--------|----------| | OpenSpec | @fission-ai/openspec | MIT | 生成结构化规格文件(proposal.md、design.md、specs/、tasks.md)。openflow 调用其 CLI 并读取其输出格式。 | | Superpowers | superpowers 插件 | MIT | 提供 writing-plans skill 用于生成详细实现计划。openflow 在 build 阶段委托其工作流执行。 |

openflow 是独立编排器 — 不捆绑、不分叉、不嵌入任何项目的代码。依赖在 init/运行时检测,任一缺失时降级为手动模式。

License

MIT