@curdx/flow 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +21 -87
  2. package/LICENSE +1 -1
  3. package/README.md +28 -129
  4. package/dist/index.mjs +995 -0
  5. package/package.json +33 -44
  6. package/.claude-plugin/marketplace.json +0 -48
  7. package/.claude-plugin/plugin.json +0 -52
  8. package/agent-preamble/preamble.md +0 -314
  9. package/agents/flow-adversary.md +0 -203
  10. package/agents/flow-architect.md +0 -198
  11. package/agents/flow-brownfield-analyst.md +0 -143
  12. package/agents/flow-debugger.md +0 -321
  13. package/agents/flow-edge-hunter.md +0 -289
  14. package/agents/flow-executor.md +0 -269
  15. package/agents/flow-orchestrator.md +0 -145
  16. package/agents/flow-planner.md +0 -247
  17. package/agents/flow-product-designer.md +0 -159
  18. package/agents/flow-qa-engineer.md +0 -282
  19. package/agents/flow-researcher.md +0 -166
  20. package/agents/flow-reviewer.md +0 -304
  21. package/agents/flow-security-auditor.md +0 -401
  22. package/agents/flow-triage-analyst.md +0 -272
  23. package/agents/flow-ui-researcher.md +0 -230
  24. package/agents/flow-ux-designer.md +0 -221
  25. package/agents/flow-verifier.md +0 -350
  26. package/bin/curdx-flow +0 -5
  27. package/bin/curdx-flow-state +0 -104
  28. package/bin/curdx-flow.js +0 -54
  29. package/cli/README.md +0 -104
  30. package/cli/doctor-workflow.js +0 -483
  31. package/cli/doctor.js +0 -73
  32. package/cli/help.js +0 -59
  33. package/cli/install-bundled-mcps.js +0 -37
  34. package/cli/install-companions.js +0 -19
  35. package/cli/install-context7-config.js +0 -80
  36. package/cli/install-curdx-plugin.js +0 -96
  37. package/cli/install-language.js +0 -35
  38. package/cli/install-next-steps.js +0 -29
  39. package/cli/install-options.js +0 -9
  40. package/cli/install-paths.js +0 -52
  41. package/cli/install-recommended-plugins.js +0 -104
  42. package/cli/install-required-plugins.js +0 -57
  43. package/cli/install-self-update.js +0 -62
  44. package/cli/install-workflow.js +0 -209
  45. package/cli/install.js +0 -101
  46. package/cli/lib/claude-commands.js +0 -41
  47. package/cli/lib/claude-ops.js +0 -47
  48. package/cli/lib/claude.js +0 -183
  49. package/cli/lib/config.js +0 -24
  50. package/cli/lib/doctor-claude-settings.js +0 -1186
  51. package/cli/lib/doctor-report.js +0 -978
  52. package/cli/lib/doctor-runtime-environment.js +0 -196
  53. package/cli/lib/frontmatter.js +0 -44
  54. package/cli/lib/json-schema.js +0 -57
  55. package/cli/lib/logging.js +0 -25
  56. package/cli/lib/process.js +0 -60
  57. package/cli/lib/prompts.js +0 -135
  58. package/cli/lib/runtime.js +0 -107
  59. package/cli/lib/semver.js +0 -109
  60. package/cli/lib/version.js +0 -12
  61. package/cli/protocols-body.md +0 -22
  62. package/cli/protocols.js +0 -162
  63. package/cli/registry.js +0 -123
  64. package/cli/router.js +0 -49
  65. package/cli/uninstall-actions.js +0 -360
  66. package/cli/uninstall-workflow.js +0 -146
  67. package/cli/uninstall.js +0 -42
  68. package/cli/upgrade-workflow.js +0 -80
  69. package/cli/upgrade.js +0 -91
  70. package/cli/utils.js +0 -40
  71. package/gates/adversarial-review-gate.md +0 -219
  72. package/gates/coverage-audit-gate.md +0 -182
  73. package/gates/devex-gate.md +0 -254
  74. package/gates/edge-case-gate.md +0 -194
  75. package/gates/karpathy-gate.md +0 -130
  76. package/gates/security-gate.md +0 -218
  77. package/gates/tdd-gate.md +0 -182
  78. package/gates/test-quality-gate.md +0 -59
  79. package/gates/verification-gate.md +0 -179
  80. package/hooks/hooks.json +0 -130
  81. package/hooks/scripts/common.sh +0 -237
  82. package/hooks/scripts/config-change-guard.sh +0 -94
  83. package/hooks/scripts/flow-context-watch.sh +0 -94
  84. package/hooks/scripts/inject-karpathy.sh +0 -53
  85. package/hooks/scripts/quick-mode-guard.sh +0 -69
  86. package/hooks/scripts/session-start.sh +0 -94
  87. package/hooks/scripts/session-title.sh +0 -87
  88. package/hooks/scripts/stop-watcher.sh +0 -231
  89. package/hooks/scripts/subagent-artifact-guard.sh +0 -92
  90. package/hooks/scripts/subagent-statusline.sh +0 -111
  91. package/hooks/scripts/task-lifecycle-guard.sh +0 -106
  92. package/hooks/scripts/teammate-idle-guard.sh +0 -83
  93. package/knowledge/artifact-output-discipline.md +0 -24
  94. package/knowledge/artifact-summary-contracts.md +0 -50
  95. package/knowledge/atomic-commits.md +0 -262
  96. package/knowledge/claude-code-runtime-contracts.md +0 -240
  97. package/knowledge/epic-decomposition.md +0 -307
  98. package/knowledge/execution-strategies.md +0 -303
  99. package/knowledge/karpathy-guidelines.md +0 -219
  100. package/knowledge/planning-reviews.md +0 -211
  101. package/knowledge/poc-first-workflow.md +0 -223
  102. package/knowledge/review-feedback-intake.md +0 -57
  103. package/knowledge/spec-driven-development.md +0 -180
  104. package/knowledge/systematic-debugging.md +0 -378
  105. package/knowledge/two-stage-review.md +0 -249
  106. package/knowledge/wave-execution.md +0 -403
  107. package/monitors/monitors.json +0 -8
  108. package/monitors/scripts/flow-state-monitor.sh +0 -102
  109. package/output-styles/curdx-evidence-first.md +0 -34
  110. package/output-styles/curdx-fast-mode.md +0 -42
  111. package/output-styles/curdx-spec-mode.md +0 -46
  112. package/schemas/agent-frontmatter.schema.json +0 -66
  113. package/schemas/config.schema.json +0 -134
  114. package/schemas/gate-frontmatter.schema.json +0 -30
  115. package/schemas/hooks.schema.json +0 -115
  116. package/schemas/output-style-frontmatter.schema.json +0 -22
  117. package/schemas/plugin-manifest.schema.json +0 -436
  118. package/schemas/plugin-settings.schema.json +0 -29
  119. package/schemas/skill-frontmatter.schema.json +0 -177
  120. package/schemas/spec-frontmatter.schema.json +0 -42
  121. package/schemas/spec-state.schema.json +0 -165
  122. package/settings.json +0 -8
  123. package/skills/brownfield-index/SKILL.md +0 -53
  124. package/skills/brownfield-index/references/applicability.md +0 -12
  125. package/skills/brownfield-index/references/handoff.md +0 -8
  126. package/skills/brownfield-index/references/index-contract.md +0 -10
  127. package/skills/browser-qa/SKILL.md +0 -39
  128. package/skills/browser-qa/references/handoff.md +0 -6
  129. package/skills/browser-qa/references/prerequisites.md +0 -10
  130. package/skills/browser-qa/references/qa-contract.md +0 -20
  131. package/skills/cancel/SKILL.md +0 -41
  132. package/skills/cancel/references/destructive-mode.md +0 -17
  133. package/skills/cancel/references/reporting.md +0 -18
  134. package/skills/cancel/references/state-recovery.md +0 -30
  135. package/skills/cancel/references/target-resolution.md +0 -7
  136. package/skills/debug/SKILL.md +0 -45
  137. package/skills/debug/references/context-gathering.md +0 -11
  138. package/skills/debug/references/failure-guard.md +0 -25
  139. package/skills/debug/references/intake.md +0 -12
  140. package/skills/debug/references/phase-workflow.md +0 -34
  141. package/skills/debug/references/reporting.md +0 -20
  142. package/skills/epic/SKILL.md +0 -39
  143. package/skills/epic/references/epic-artifacts.md +0 -20
  144. package/skills/epic/references/epic-intake.md +0 -9
  145. package/skills/epic/references/slice-handoff.md +0 -16
  146. package/skills/fast/SKILL.md +0 -62
  147. package/skills/fast/references/applicability.md +0 -25
  148. package/skills/fast/references/clarification.md +0 -20
  149. package/skills/fast/references/execution-contract.md +0 -56
  150. package/skills/help/SKILL.md +0 -55
  151. package/skills/help/references/dispatch.md +0 -20
  152. package/skills/help/references/overview.md +0 -39
  153. package/skills/help/references/troubleshoot.md +0 -47
  154. package/skills/help/references/workflow.md +0 -37
  155. package/skills/implement/SKILL.md +0 -104
  156. package/skills/implement/references/error-recovery.md +0 -36
  157. package/skills/implement/references/linear-execution.md +0 -43
  158. package/skills/implement/references/native-task-sync.md +0 -107
  159. package/skills/implement/references/preflight.md +0 -43
  160. package/skills/implement/references/progress-contract.md +0 -36
  161. package/skills/implement/references/state-init.md +0 -36
  162. package/skills/implement/references/stop-hook-execution.md +0 -50
  163. package/skills/implement/references/strategy-router.md +0 -38
  164. package/skills/implement/references/subagent-execution.md +0 -57
  165. package/skills/implement/references/wave-execution.md +0 -180
  166. package/skills/init/SKILL.md +0 -49
  167. package/skills/init/references/gitignore-and-health.md +0 -26
  168. package/skills/init/references/next-steps.md +0 -22
  169. package/skills/init/references/preflight.md +0 -15
  170. package/skills/init/references/scaffold-contract.md +0 -27
  171. package/skills/review/SKILL.md +0 -82
  172. package/skills/review/references/optional-passes.md +0 -48
  173. package/skills/review/references/preflight.md +0 -38
  174. package/skills/review/references/report-contract.md +0 -49
  175. package/skills/review/references/reporting.md +0 -20
  176. package/skills/review/references/stage-execution.md +0 -32
  177. package/skills/security-audit/SKILL.md +0 -47
  178. package/skills/security-audit/references/audit-contract.md +0 -21
  179. package/skills/security-audit/references/gate-handoff.md +0 -8
  180. package/skills/security-audit/references/scope-and-depth.md +0 -9
  181. package/skills/spec/SKILL.md +0 -100
  182. package/skills/spec/references/artifact-landing.md +0 -31
  183. package/skills/spec/references/phase-execution.md +0 -50
  184. package/skills/spec/references/planning-review.md +0 -31
  185. package/skills/spec/references/preflight-and-routing.md +0 -46
  186. package/skills/spec/references/reporting.md +0 -21
  187. package/skills/start/SKILL.md +0 -84
  188. package/skills/start/references/branch-routing.md +0 -51
  189. package/skills/start/references/mode-semantics.md +0 -12
  190. package/skills/start/references/preflight.md +0 -13
  191. package/skills/start/references/reporting.md +0 -20
  192. package/skills/start/references/state-seeding.md +0 -44
  193. package/skills/start/references/workflow-handoff.md +0 -26
  194. package/skills/status/SKILL.md +0 -41
  195. package/skills/status/references/gather-contract.md +0 -30
  196. package/skills/status/references/health-rules.md +0 -27
  197. package/skills/status/references/output-contract.md +0 -25
  198. package/skills/status/references/preflight.md +0 -10
  199. package/skills/status/references/recovery-hints.md +0 -18
  200. package/skills/ui-sketch/SKILL.md +0 -39
  201. package/skills/ui-sketch/references/brief-intake.md +0 -10
  202. package/skills/ui-sketch/references/iteration-handoff.md +0 -5
  203. package/skills/ui-sketch/references/variant-contract.md +0 -15
  204. package/skills/verify/SKILL.md +0 -56
  205. package/skills/verify/references/evidence-workflow.md +0 -39
  206. package/skills/verify/references/output-contract.md +0 -23
  207. package/skills/verify/references/preflight.md +0 -11
  208. package/skills/verify/references/report-handoff.md +0 -35
  209. package/skills/verify/references/strict-mode.md +0 -12
  210. package/templates/CONTEXT.md.tmpl +0 -53
  211. package/templates/PROJECT.md.tmpl +0 -59
  212. package/templates/ROADMAP.md.tmpl +0 -50
  213. package/templates/STATE.md.tmpl +0 -49
  214. package/templates/config.json.tmpl +0 -51
  215. package/templates/design.md.tmpl +0 -83
  216. package/templates/progress.md.tmpl +0 -77
  217. package/templates/requirements.md.tmpl +0 -76
  218. package/templates/research.md.tmpl +0 -83
  219. package/templates/tasks.md.tmpl +0 -107
package/CHANGELOG.md CHANGED
@@ -1,97 +1,31 @@
1
1
  # Changelog
2
2
 
3
- ## 3.0.0
3
+ All notable changes to `@curdx/flow` are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/) and the project follows [Semantic Versioning](https://semver.org/).
4
4
 
5
- The modernization release. No breaking changes for end users internal
6
- manifest reshape, schema realignment, and platform-feature uptake.
5
+ ## 3.1.02026-04-26
7
6
 
8
- - aligned `schemas/agent-frontmatter.schema.json` with the canonical field
9
- list documented at <https://code.claude.com/docs/en/sub-agents.md>; reversed
10
- the P1 contract validator's misjudgement that flagged `effort`,
11
- `maxTurns`, `background`, and `color` as non-canonical, and replaced it
12
- with a strict-mode threshold check on combined `description + when_to_use`
13
- length (1536-char skill listing cap)
14
- - collapsed `plugin.json#agents` from a 17-entry explicit array to the
15
- directory pointer `"./agents/"`, matching `skills` and `outputStyles` and
16
- eliminating per-agent manifest drift
17
- - explicitly forbade plugin-ignored fields (`hooks`, `mcpServers`,
18
- `permissionMode`) at schema validation time so misconfigurations surface
19
- before install instead of being silently dropped at runtime
20
- - shipped a plugin root `bin/` directory: `bin/curdx-flow-state` emits a
21
- one-line snapshot of the active spec and is added to the Bash tool's
22
- `PATH` whenever the plugin is enabled (Claude Code v2.1.91+); agents,
23
- skills, and hooks can call it as a bare command instead of duplicating
24
- Python/Bash snippets
25
- - added `subagentStatusLine.refreshInterval: 5` so the worktree-aware
26
- status line refreshes automatically (Claude Code Week 15 statusline
27
- feature)
28
- - shipped two new output styles, `CurdX Spec Mode` (verbose, artifact-first)
29
- and `CurdX Fast Mode` (low-ceremony surgical work), alongside the
30
- default evidence-first style
31
- - expanded the test suite from 10 to 110+ assertions across five new files:
32
- every skill frontmatter parses with name/description/length contract,
33
- every hook script invoked from `hooks.json` is executable + bash-parsable,
34
- every output style has frontmatter + non-trivial body, the
35
- `RECOMMENDED_PLUGINS` registry stays in lockstep with `session-start.sh`,
36
- and every plugin `bin/` executable parses + runs without crashing
37
- - restored the README and CHANGELOG that were dropped during the
38
- P1 slate-clearing (commits 0dee423 / 8b14aba) and updated them to v3.0.0
7
+ Major rewrite preserving the same goal (one-command installer for Claude Code plugins and MCP servers) with a cleaner internal architecture and broader coverage.
39
8
 
40
- ## 2.3.11
9
+ ### Added
41
10
 
42
- - internal-only patches; no user-facing behavior change
11
+ - **Bilingual UI** — every interactive run starts with a 中文 / English picker; default is auto-detected from `$LANG`. No config file is written.
12
+ - **Two new MCP servers**:
13
+ - `sequential-thinking` (`@modelcontextprotocol/server-sequential-thinking`)
14
+ - `context7` (Upstash HTTP MCP) with optional API key prompt at install time
15
+ - **`citty` subcommand mode** — `npx @curdx/flow install|uninstall|update|status` for non-interactive / CI use, alongside the original interactive menu.
16
+ - **`status --json`** — machine-readable install state for scripting.
17
+ - **`install --all --yes`** — non-interactive bulk install.
18
+ - **`Pkg` registry abstraction** (`src/registry/types.ts`) — every installable item declares `isInstalled / install / uninstall / update / prereqCheck / configPrompts` once, and the four flows (install / uninstall / update / status) use the same interface. Future additions are a single file in `src/registry/`.
19
+ - **Idempotency layer** — every flow pre-checks state via cached `claude plugin list --json` / `claude mcp list` parsing, so re-running after a partial install is safe.
20
+ - **`prereqCheck` for `chrome-devtools-mcp`** — detects Node ≥ 20.19 and a locally installed Chrome before attempting install.
21
+ - **GitHub Actions CI + Release workflows** — Node 20 + 22 matrix on PRs; `v*` tag triggers `npm publish --provenance --access public` and an auto-noted GitHub Release.
43
22
 
44
- ## 2.3.10
23
+ ### Changed
45
24
 
46
- - auto-heal legacy Context7 state on upgrade; doctor reports "all healthy" once
47
- the legacy user-level Context7 MCP entry has been reconciled
25
+ - `@clack/prompts` upgraded **0.8.x 1.2.x** (Node 20.12 required).
26
+ - Bundler: now `tsup` producing a single 35 KB ESM file (`dist/index.mjs`) with shebang banner — no more multi-file dist.
27
+ - Plugin registry now uses the **real marketplace name** from `.claude-plugin/marketplace.json`, not the GitHub repo path. Specifically `chrome-devtools-mcp` lives in marketplace `chrome-devtools-plugins`, not `chrome-devtools-mcp`.
48
28
 
49
- ## 2.3.9
29
+ ### Removed
50
30
 
51
- - aligned Claude runtime hooks with the official auto-discovery contract
52
- (`hooks.json` is loaded automatically; manifest `hooks` field is reserved
53
- for non-standard locations only) and resolved the `context7-plugin
54
- unknown version` install failure that blocked upgrades
55
-
56
- ## 2.3.8
57
-
58
- - taught `doctor` to detect dirty CurDX-Flow source checkouts, so plugin developers immediately see when Claude cannot possibly be running their latest local edits yet
59
- - surfaced bundled source repo metadata (`branch`, `shortSha`, `exactTag`, `dirty`) alongside bundled plugin body version in diagnostics and JSON output
60
- - documented the reinstall workflow for "same version, but local source changed" plugin-development scenarios
61
-
62
- ## 2.3.7
63
-
64
- - taught `doctor` to detect source/package-vs-installed plugin version drift so local plugin development and release validation no longer silently run against stale Claude plugin cache state
65
- - exposed bundled plugin body version in the runtime report and machine-readable doctor payload for automation consumers
66
- - documented the reinstall/restart recovery path when Claude is still loading an older CurDX-Flow build
67
-
68
- ## 2.3.6
69
-
70
- - taught `doctor` to inspect file-based Claude Code managed settings and apply them at the correct highest-precedence layer for CurDX-Flow plugin options
71
- - upgraded the `doctor --json` contract to v2 so wrappers can distinguish inspected `managed-file` scope from uninspected server-managed / MDM / CLI overrides
72
- - added report and workflow coverage for managed-settings fragments, invalid managed JSON, and managed-vs-local/project/user precedence
73
-
74
- ## 2.3.5
75
-
76
- - added a versioned `doctor --json` contract for CI/wrappers, including applied-fix metadata and explicit settings-inspection scope metadata
77
- - added CLI-level regression coverage so `doctor --json` stays silent except for JSON stdout and exit code
78
- - locked runtime env consumer drift checks against manifest `userConfig` keys and the actual bundled hook/monitor scripts
79
-
80
- ## 2.3.1
81
-
82
- - expanded `doctor` to report CurDX-Flow's bundled main-thread agent, monitor surface, and plugin option defaults
83
- - documented where Claude Code stores CurDX-Flow non-sensitive `userConfig` values in `pluginConfigs`
84
- - added troubleshooting guidance for stop-hook blocking and plugin monitor behavior
85
-
86
- ## 2.3.0
87
-
88
- - added a default `flow-orchestrator` main-thread agent through plugin-level `settings.json`
89
- - added a plugin `flow-state` monitor plus `userConfig` runtime knobs for stop-hook blocking, dependency reminders, and monitor cadence
90
- - made the manifest explicit about `outputStyles` and `monitors`, shipped the monitor assets in npm tarballs, and strengthened pack/plugin contract tests
91
- - updated doctor/runtime guidance and public docs to reflect the new main-agent + monitor architecture
92
-
93
- ## 2.2.4
94
-
95
- - aligned the public docs surface with the current skill-first plugin layout
96
- - kept thin entry docs while moving detailed workflow logic into skill references
97
- - locked command summaries to workflow skill descriptions with tests
31
+ - `~/.curdx-flow/config.json` language preference is no longer persisted; the picker runs every interactive session.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 wdx
3
+ Copyright (c) 2026 bydongxin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,145 +1,44 @@
1
- # CurdX-Flow
1
+ # @curdx/flow
2
2
 
3
- > Stop Claude Code from faking "done".
4
- > Spec-driven workflow, goal-backward verification, and Karpathy discipline for real feature delivery.
5
-
6
- [![npm version](https://img.shields.io/npm/v/@curdx/flow.svg)](https://www.npmjs.com/package/@curdx/flow)
7
- [![License](https://img.shields.io/badge/license-MIT-green)](./LICENSE)
8
- [![Plugin](https://img.shields.io/badge/claude--code-plugin-blue)](https://code.claude.com)
9
-
10
- CurdX-Flow is a skill-first Claude Code plugin. The public surface stays small:
11
- 11 slash commands, 5 auto-invoked skills, 17 internal agents, and a thin set of
12
- runtime contracts. The heavy workflow detail lives in `skills/*/references/`,
13
- `knowledge/`, and the `agent-preamble/`.
14
-
15
- v3.0.0 is the modernization release: the plugin manifest, agent/skill schemas,
16
- and contract validator are aligned with the latest Claude Code plugin spec
17
- ([sub-agents.md](https://code.claude.com/docs/en/sub-agents.md),
18
- [plugins-reference.md](https://code.claude.com/docs/en/plugins-reference.md)),
19
- and the plugin now ships a `bin/` directory whose executables are added to the
20
- Bash tool's `PATH` while CurdX-Flow is enabled (Claude Code v2.1.91+).
21
-
22
- ## Install
23
-
24
- ```bash
25
- npx @curdx/flow install --all
26
- ```
27
-
28
- Requires modern Claude Code and Node 18+. The install flow registers the plugin,
29
- required reasoning/doc tools, and recommended companion plugins. Run
30
- `npx @curdx/flow doctor` after install if anything looks off. For CI or wrapper
31
- automation, use `npx @curdx/flow doctor --json`, which reports file-based
32
- managed settings at their correct precedence layer.
33
-
34
- After restart, CurdX-Flow routes the main thread through `flow-orchestrator`
35
- by default and starts the bundled `.flow` progress monitor in interactive
36
- Claude Code sessions.
37
-
38
- ## 11 slash commands, that's it
39
-
40
- ```text
41
- /curdx-flow:init Initialize the .flow scaffold for the current repository.
42
- /curdx-flow:start Create, resume, list, or switch the active feature spec.
43
- /curdx-flow:status Show active spec health, progress, artifacts, and recovery hints.
44
- /curdx-flow:spec Generate or refresh research, requirements, design, and tasks for the active spec.
45
- /curdx-flow:implement Execute active-spec tasks with strategy routing and atomic progress.
46
- /curdx-flow:cancel Cancel the active execution loop or delete a spec with explicit confirmation.
47
- /curdx-flow:verify Verify the active spec against code, tests, and browser evidence.
48
- /curdx-flow:review Run two-stage review with optional adversarial, edge-case, and DevEx passes.
49
- /curdx-flow:fast Execute a one-shot small task without creating a spec.
50
- /curdx-flow:debug Debug a bug or failing test with the root-cause workflow.
51
- /curdx-flow:help Show command detail, workflow guidance, and troubleshooting.
52
- ```
53
-
54
- Plus 5 auto-invoked skills: `/curdx-flow:epic`, `/curdx-flow:browser-qa`,
55
- `/curdx-flow:ui-sketch`, `/curdx-flow:security-audit`,
56
- `/curdx-flow:brownfield-index`.
3
+ Interactive installer for Claude Code plugins and MCP servers.
57
4
 
58
5
  ## Quick start
59
6
 
60
7
  ```bash
61
- cd ~/your-project
62
- claude
63
- /curdx-flow:init
64
- /curdx-flow:start jwt-auth "Add JWT authentication to the REST API"
65
- /curdx-flow:spec
66
- /curdx-flow:implement
67
- /curdx-flow:verify
68
- /curdx-flow:review
69
-
70
- # Main artifacts:
71
- # .flow/specs/jwt-auth/verification-report.md
72
- # .flow/specs/jwt-auth/review-report.md
8
+ npx @curdx/flow
73
9
  ```
74
10
 
75
- This produces a durable audit trail instead of a chat-only claim of completion.
76
-
77
- ## What ships
78
-
79
- - 11 slash commands and 5 auto-invoked skills
80
- - 17 internal agents wired through `flow-orchestrator`
81
- - 3 output styles: default, `CurdX Spec Mode`, `CurdX Fast Mode`
82
- - a `flow-state` background monitor that streams spec progress changes back into Claude
83
- - 9 composable gates and 14 knowledge docs referenced by every agent
84
- - 4 execution strategies for `/curdx-flow:implement` (linear, subagent, stop-hook, wave)
85
- - a plugin `bin/` directory: `curdx-flow-state` is PATH-mounted while the plugin is enabled, so agents and hooks can call it as a bare command
86
- - thin public docs, thick supporting references
11
+ On first run you'll be asked to pick a language (中文 / English). Then choose what to install, update, uninstall, or just check status.
87
12
 
88
- ## Plugin layout
13
+ ## Subcommands
89
14
 
15
+ ```bash
16
+ npx @curdx/flow # interactive menu
17
+ npx @curdx/flow install # interactive install (current state-aware)
18
+ npx @curdx/flow install --all --yes
19
+ npx @curdx/flow uninstall
20
+ npx @curdx/flow update
21
+ npx @curdx/flow status
22
+ npx @curdx/flow status --json
23
+ npx @curdx/flow --lang en # override language
90
24
  ```
91
- .claude-plugin/
92
- plugin.json plugin manifest (agents/skills/outputStyles point at directories, not file lists)
93
- marketplace.json
94
- agents/ 17 specialist subagents
95
- skills/ 16 skills (commands + auto-invoked)
96
- hooks/
97
- hooks.json SessionStart, UserPromptSubmit, Stop, SubagentStop, …
98
- scripts/ shell handlers (sourced helpers in common.sh, invoked scripts +x)
99
- gates/ 9 composable review gates
100
- knowledge/ 14 long-form references @-included by agents
101
- monitors/
102
- monitors.json background watchers (flow-state)
103
- output-styles/ default + spec-mode + fast-mode
104
- agent-preamble/ shared preamble all agents @-include
105
- schemas/ JSON Schemas for plugin manifest, agent / skill frontmatter, hooks
106
- templates/ scaffold templates the CLI installer copies into .flow/
107
- bin/ plugin executables on PATH (curdx-flow-state, plus the npm CLI bin)
108
- cli/ npm-published CLI installer (install / upgrade / doctor / uninstall)
109
- test/ node:test suite + plugin contract validator regression baseline
110
- scripts/ release.sh + validate-plugin-contracts.mjs + npm-dist-tag
111
- ```
112
-
113
- ## Compatibility notes
114
25
 
115
- - **Skill shell execution** — CurdX-Flow skills rely on Bash tool calls. If your
116
- Claude Code settings have `disableSkillShellExecution: true`, the spec
117
- workflow will not run; remove that setting or scope it away from CurdX-Flow.
118
- - **Plugin agent fields** — agent frontmatter follows the canonical fields
119
- documented at
120
- [sub-agents.md](https://code.claude.com/docs/en/sub-agents.md). The fields
121
- `hooks`, `mcpServers`, and `permissionMode` are silently ignored by the
122
- Claude Code plugin runtime; CurdX-Flow's schema rejects them at validation
123
- time so misconfigurations surface before install.
124
- - **Plugin executables on PATH** — the plugin root `bin/` directory lands on
125
- the Bash tool's `PATH` while CurdX-Flow is enabled (Claude Code v2.1.91+).
26
+ ## What it installs
126
27
 
127
- ## Development
28
+ | id | type | source |
29
+ | --- | --- | --- |
30
+ | `pua` | plugin | `tanweai/pua` → `pua@pua-skills` |
31
+ | `claude-mem` | plugin | `thedotmack/claude-mem` |
32
+ | `chrome-devtools-mcp` | plugin | `ChromeDevTools/chrome-devtools-mcp` |
33
+ | `frontend-design` | plugin | `claude-plugins-official` (built-in) |
34
+ | `sequential-thinking` | mcp | `@modelcontextprotocol/server-sequential-thinking` |
35
+ | `context7` | mcp | HTTP — `https://mcp.context7.com/mcp` (optional API key) |
128
36
 
129
- ```bash
130
- npm test # 110+ tests
131
- npm run validate:contracts # lenient validator
132
- npm run validate:contracts:strict # strict validator (skill description-length cap is fatal)
133
- claude plugin validate . # ground-truth gate
134
- ```
37
+ ## Requirements
135
38
 
136
- `scripts/release.sh major|minor|patch` bumps `package.json`, `plugin.json`,
137
- `marketplace.json`, and the lockfile in lockstep, commits, tags, and pushes.
138
- The tag push triggers `.github/workflows/npm-publish.yml`.
39
+ - Node.js >= 20.12
40
+ - `claude` CLI installed and on `PATH` (this tool shells out to `claude plugin` and `claude mcp`)
139
41
 
140
- ## Notes
42
+ ## License
141
43
 
142
- - `enterprise` mode turns on adversarial, edge-case, security, and DevEx gates.
143
- - `subagent` is serial; `wave` is the parallel execution strategy.
144
- - Headless usage should favor `claude --bare -p` and explicit `--plugin-dir`,
145
- `--settings`, and `--mcp-config` wiring.
44
+ MIT