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

@curdx/flow

v7.3.5

Published

Interactive installer for Claude Code plugins and MCP servers

Downloads

723

Readme

curdx-flow

Claude Code 的规格驱动交付层 —— 把一句需求变成可审查、可恢复、可验证的交付记录。

npm version GitHub release License Claude Code

English · 简体中文

curdx-flow 产品概览

/curdx-flow:start 会自动判断当前仓库和目标:直接处理 · 轻量规格 · 完整规格 · 恢复未完成任务 · 或者把大需求拆成多个可执行 spec。


为什么需要它

Claude Code 能写代码,但真实任务上会暴露三种典型失败:

| 没有 curdx-flow | 有了 curdx-flow | | --- | --- | | 上下文腐烂:越聊越长,模型忘掉原始约束 | 目标钉进 requirements.md,跨会话都不会丢 | | 完成幻觉:模型说"完成了",没有命令 / 浏览器 / CI 证据 | 完成必须有 verificationBlocks,不允许静默通过 | | 流程错配:小任务被压垮,大需求又被一口气做完 | /start 路由:直接处理 / 轻量 / 完整 / 恢复 / triage |

它不是又一层项目管理系统,而是 给 Claude Code 加一层执行纪律

30 秒安装

推荐 npm 安装器 —— 先让你选界面语言(中文 / English),然后进入交互式多选,自己勾选主插件、companion plugins、MCP servers;会同步 marketplace 入口和 ~/.claude/CLAUDE.md 管理块。

npx @curdx/flow install

CI / 脚本环境想跳过所有交互一次性全装:

npx @curdx/flow install --all --yes --lang zh

在 Claude Code 里:

/curdx-flow:help
/curdx-flow:start todo-app 做一个可以增删改查的 Todo 前端,并用浏览器验证

也可以直接用 Claude Code 插件命令:

claude plugin marketplace add curdx/curdx-flow
claude plugin install curdx-flow@curdx

一般优先用 @curdx/flow 安装器,它会同步 companion plugins 和能力说明;claude plugin install 更适合调试 marketplace 或本地插件目录。

工作流

curdx-flow 工作流闭环

典型路径:

  1. Start —— 识别仓库、目标、风险和已有 spec。
  2. Research —— 收集代码事实、官方文档、历史上下文。
  3. Requirements —— 把目标变成验收条件和边界。
  4. Design —— 沉淀方案、风险、接口、验证策略。
  5. Tasks —— 切成价值切片,每个任务都有验证命令。
  6. Implement —— 通过 /goal 和专用代理逐项执行。
  7. Verify —— 把命令、浏览器、CI、release、npm 等证据写入 verificationBlocks

常用命令

| 命令 | 用途 | | --- | --- | | /curdx-flow:start [name] [goal] | 推荐入口。自动路由、创建或恢复 spec。 | | /curdx-flow:new <name> [goal] | 明确创建新 spec,不自动恢复。 | | /curdx-flow:requirements | 基于 research / 目标生成需求和验收标准。 | | /curdx-flow:design | 基于需求生成技术设计。 | | /curdx-flow:tasks | 基于设计生成可执行任务。 | | /curdx-flow:implement | 进入任务执行循环并验证。 | | /curdx-flow:status | 查看当前 spec、进度、健康状态和下一步。 | | /curdx-flow:triage [epic] [goal] | 把大型需求拆成多个依赖明确的 spec。 | | /curdx-flow:prompt-optimize [draft] | 只优化提示词和路由建议,不执行。 | | /curdx-flow:cancel [name] | 取消执行或删除 spec 状态(需确认)。 |

它会协调的能力

curdx-flow 是 Claude Code 插件,但也显式协调外部能力:

| 能力 | 类型 | curdx-flow 怎么用 | | --- | --- | --- | | pua | Claude Code 插件 | 多次失败后的恢复、并行规划、中文技能。 | | claude-mem | Claude Code 插件 | 检索历史决策、相似任务、重复失败。 | | chrome-devtools-mcp | Claude Code 插件 | 真实 Chrome:DOM、console、network、截图证据。 | | ui-ux-pro-max | Claude Code 插件 | 可见 UI/UX 的设计判断和质量检查。 | | context7 | 外部 MCP | 最新库 / 框架文档查询 —— 只检测、不内置。 | | sequential-thinking | 外部 MCP | 高风险任务的显式假设拆解 —— 只检测、不内置。 |

缺哪个能力,curdx-flow doctor 会给出降级状态和修复建议 —— 不会静默跳过关键证据。

CLI

@curdx/flow 同时提供命令行安装器和诊断工具:

# 查看安装状态
npx @curdx/flow status

# 安装或更新插件 / MCP 能力
npx @curdx/flow install --all --yes
npx @curdx/flow update

# 分析 Claude Code 会话日志
npx @curdx/flow analyze

# 校验当前 spec 的 verificationBlocks
npx @curdx/flow check

插件内部也暴露 curdx-flow runtime CLI,供 skills 和 hooks 使用:

curdx-flow doctor
curdx-flow route --compile --goal "发布 Claude Code 插件"
curdx-flow dev detect
curdx-flow dev up
curdx-flow dev health
curdx-flow dev verify
curdx-flow dev down

什么时候用

适合:

  • Claude Code 插件、CLI、全栈应用、前端页面、后端服务、发布流程。
  • 需要研究 → 需求 → 设计 → 任务 → 执行 → 验证都可追踪的工作。
  • 需要浏览器、CI、npm / GitHub Release 证据的发布级任务。
  • 已经尝试多次失败,需要保存失败谱系和恢复路径的任务。

不适合:

  • 只问一个代码片段的含义。
  • 明确说"不要改文件,只回答"的请求。
  • 零风险的一行小改 —— /curdx-flow:start 也会倾向直接处理或轻量 spec。

规格文件长什么样

默认在项目的 specs/<name>/ 下生成:

specs/
└── todo-app/
    ├── research.md
    ├── requirements.md
    ├── design.md
    ├── tasks.md
    ├── .curdx-state.json
    └── .progress.md

核心规则:

  • research.md / requirements.md / design.md / tasks.md 是可提交的上下文资产。
  • .curdx-state.json 是执行状态:phase、任务索引、验证块、恢复信息。
  • .progress.md 是运行期进度和学习记录,通常不提交。
  • 完成声明必须能追溯到 verificationBlocks,不能只看模型文字。

仓库结构

src/                       # TypeScript CLI、registry、hooks 源码
plugins/curdx-flow/        # Claude Code 插件主体
  .claude-plugin/           # plugin.json
  skills/                   # /curdx-flow:* slash skills
  agents/                   # 执行、评审、QA、架构、PM 等代理
  hooks/                    # Claude Code hook 配置与生成脚本
  schemas/                  # 状态、证据、报告 schema
scripts/                   # 构建、版本、校验、Claude Code smoke
tests/                     # Vitest 测试
_bmad-output/              # 已提交的规划与实现基线文档

本地开发

npm ci
npm run build
npm run build:hooks
npm run typecheck
npm run test:hooks

发布级验证:

npm run verify
claude plugin validate ./plugins/curdx-flow
CURDX_FLOW_CLAUDE_BIN=claude npm run test:claudecc

修改 src/hooks/** 后必须执行:

npm run build:hooks
npm run check:hooks-fresh
npm run test:hooks

发布规则

版本必须通过脚本统一更新:

node scripts/bump-version.mjs patch

发布需要两个 tag 一起 push:

git tag -a vX.Y.Z -m "@curdx/flow X.Y.Z"
git tag -a curdx-flow--vX.Y.Z -m "curdx-flow X.Y.Z"
git push origin main vX.Y.Z curdx-flow--vX.Y.Z
  • vX.Y.Z —— 触发 npm 发布。
  • curdx-flow--vX.Y.Z —— Claude Code 插件 marketplace 解析需要的插件 tag。
  • npm run verify / claude plugin validate / test:claudecc 全部通过前,不要打 tag。

故障排查

| 现象 | 处理 | | --- | --- | | 看不到 /curdx-flow:* | 跑 claude plugin list,确认 curdx-flow@curdx 已安装并启用。 | | 插件依赖缺失 | npx @curdx/flow install curdx-flow --yes 重新同步。 | | Chrome DevTools MCP 不可用 | 确认装了 chrome-devtools-mcp@chrome-devtools-plugins 且本机有 Chrome。 | | spec 卡在执行中 | /curdx-flow:status 看当前 phase,按建议恢复或 /curdx-flow:cancel。 | | 发布前不确定是否安全 | npm run verify && claude plugin validate ./plugins/curdx-flow && CURDX_FLOW_CLAUDE_BIN=claude npm run test:claudecc。 |

参考

License

MIT