@curdx/flow 2.3.11 → 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.
- package/CHANGELOG.md +21 -34
- package/LICENSE +1 -1
- package/README.md +28 -79
- package/dist/index.mjs +995 -0
- package/package.json +33 -42
- package/.claude-plugin/marketplace.json +0 -48
- package/.claude-plugin/plugin.json +0 -70
- package/agent-preamble/preamble.md +0 -314
- package/agents/flow-adversary.md +0 -202
- package/agents/flow-architect.md +0 -197
- package/agents/flow-brownfield-analyst.md +0 -142
- package/agents/flow-debugger.md +0 -321
- package/agents/flow-edge-hunter.md +0 -288
- package/agents/flow-executor.md +0 -269
- package/agents/flow-orchestrator.md +0 -145
- package/agents/flow-planner.md +0 -246
- package/agents/flow-product-designer.md +0 -159
- package/agents/flow-qa-engineer.md +0 -282
- package/agents/flow-researcher.md +0 -165
- package/agents/flow-reviewer.md +0 -303
- package/agents/flow-security-auditor.md +0 -401
- package/agents/flow-triage-analyst.md +0 -272
- package/agents/flow-ui-researcher.md +0 -229
- package/agents/flow-ux-designer.md +0 -221
- package/agents/flow-verifier.md +0 -349
- package/bin/curdx-flow +0 -5
- package/bin/curdx-flow.js +0 -54
- package/cli/README.md +0 -104
- package/cli/doctor-workflow.js +0 -483
- package/cli/doctor.js +0 -73
- package/cli/help.js +0 -59
- package/cli/install-bundled-mcps.js +0 -37
- package/cli/install-companions.js +0 -19
- package/cli/install-context7-config.js +0 -80
- package/cli/install-curdx-plugin.js +0 -96
- package/cli/install-language.js +0 -35
- package/cli/install-next-steps.js +0 -29
- package/cli/install-options.js +0 -9
- package/cli/install-paths.js +0 -52
- package/cli/install-recommended-plugins.js +0 -104
- package/cli/install-required-plugins.js +0 -57
- package/cli/install-self-update.js +0 -62
- package/cli/install-workflow.js +0 -209
- package/cli/install.js +0 -101
- package/cli/lib/claude-commands.js +0 -41
- package/cli/lib/claude-ops.js +0 -47
- package/cli/lib/claude.js +0 -183
- package/cli/lib/config.js +0 -24
- package/cli/lib/doctor-claude-settings.js +0 -1186
- package/cli/lib/doctor-report.js +0 -978
- package/cli/lib/doctor-runtime-environment.js +0 -196
- package/cli/lib/frontmatter.js +0 -44
- package/cli/lib/json-schema.js +0 -57
- package/cli/lib/logging.js +0 -25
- package/cli/lib/process.js +0 -60
- package/cli/lib/prompts.js +0 -135
- package/cli/lib/runtime.js +0 -107
- package/cli/lib/semver.js +0 -109
- package/cli/lib/version.js +0 -12
- package/cli/protocols-body.md +0 -22
- package/cli/protocols.js +0 -162
- package/cli/registry.js +0 -123
- package/cli/router.js +0 -49
- package/cli/uninstall-actions.js +0 -360
- package/cli/uninstall-workflow.js +0 -146
- package/cli/uninstall.js +0 -42
- package/cli/upgrade-workflow.js +0 -80
- package/cli/upgrade.js +0 -91
- package/cli/utils.js +0 -40
- package/gates/adversarial-review-gate.md +0 -219
- package/gates/coverage-audit-gate.md +0 -182
- package/gates/devex-gate.md +0 -254
- package/gates/edge-case-gate.md +0 -194
- package/gates/karpathy-gate.md +0 -130
- package/gates/security-gate.md +0 -218
- package/gates/tdd-gate.md +0 -182
- package/gates/test-quality-gate.md +0 -59
- package/gates/verification-gate.md +0 -179
- package/hooks/hooks.json +0 -58
- package/hooks/scripts/common.sh +0 -46
- package/hooks/scripts/inject-karpathy.sh +0 -53
- package/hooks/scripts/quick-mode-guard.sh +0 -68
- package/hooks/scripts/session-start.sh +0 -90
- package/hooks/scripts/stop-watcher.sh +0 -230
- package/hooks/scripts/subagent-artifact-guard.sh +0 -159
- package/hooks/scripts/subagent-statusline.sh +0 -105
- package/knowledge/artifact-output-discipline.md +0 -24
- package/knowledge/artifact-summary-contracts.md +0 -50
- package/knowledge/atomic-commits.md +0 -262
- package/knowledge/claude-code-runtime-contracts.md +0 -219
- package/knowledge/epic-decomposition.md +0 -307
- package/knowledge/execution-strategies.md +0 -303
- package/knowledge/karpathy-guidelines.md +0 -219
- package/knowledge/planning-reviews.md +0 -211
- package/knowledge/poc-first-workflow.md +0 -223
- package/knowledge/review-feedback-intake.md +0 -57
- package/knowledge/spec-driven-development.md +0 -180
- package/knowledge/systematic-debugging.md +0 -378
- package/knowledge/two-stage-review.md +0 -249
- package/knowledge/wave-execution.md +0 -403
- package/monitors/monitors.json +0 -8
- package/monitors/scripts/flow-state-monitor.sh +0 -99
- package/output-styles/curdx-evidence-first.md +0 -34
- package/schemas/agent-frontmatter.schema.json +0 -63
- package/schemas/config.schema.json +0 -134
- package/schemas/gate-frontmatter.schema.json +0 -30
- package/schemas/hooks.schema.json +0 -115
- package/schemas/output-style-frontmatter.schema.json +0 -22
- package/schemas/plugin-manifest.schema.json +0 -436
- package/schemas/plugin-settings.schema.json +0 -29
- package/schemas/skill-frontmatter.schema.json +0 -177
- package/schemas/spec-frontmatter.schema.json +0 -42
- package/schemas/spec-state.schema.json +0 -147
- package/settings.json +0 -7
- package/skills/brownfield-index/SKILL.md +0 -53
- package/skills/brownfield-index/references/applicability.md +0 -12
- package/skills/brownfield-index/references/handoff.md +0 -8
- package/skills/brownfield-index/references/index-contract.md +0 -10
- package/skills/browser-qa/SKILL.md +0 -39
- package/skills/browser-qa/references/handoff.md +0 -6
- package/skills/browser-qa/references/prerequisites.md +0 -10
- package/skills/browser-qa/references/qa-contract.md +0 -20
- package/skills/cancel/SKILL.md +0 -41
- package/skills/cancel/references/destructive-mode.md +0 -17
- package/skills/cancel/references/reporting.md +0 -18
- package/skills/cancel/references/state-recovery.md +0 -30
- package/skills/cancel/references/target-resolution.md +0 -7
- package/skills/debug/SKILL.md +0 -45
- package/skills/debug/references/context-gathering.md +0 -11
- package/skills/debug/references/failure-guard.md +0 -25
- package/skills/debug/references/intake.md +0 -12
- package/skills/debug/references/phase-workflow.md +0 -34
- package/skills/debug/references/reporting.md +0 -20
- package/skills/epic/SKILL.md +0 -39
- package/skills/epic/references/epic-artifacts.md +0 -20
- package/skills/epic/references/epic-intake.md +0 -9
- package/skills/epic/references/slice-handoff.md +0 -16
- package/skills/fast/SKILL.md +0 -62
- package/skills/fast/references/applicability.md +0 -25
- package/skills/fast/references/clarification.md +0 -20
- package/skills/fast/references/execution-contract.md +0 -56
- package/skills/help/SKILL.md +0 -55
- package/skills/help/references/dispatch.md +0 -20
- package/skills/help/references/overview.md +0 -39
- package/skills/help/references/troubleshoot.md +0 -47
- package/skills/help/references/workflow.md +0 -37
- package/skills/implement/SKILL.md +0 -96
- package/skills/implement/references/error-recovery.md +0 -36
- package/skills/implement/references/linear-execution.md +0 -32
- package/skills/implement/references/preflight.md +0 -43
- package/skills/implement/references/progress-contract.md +0 -32
- package/skills/implement/references/state-init.md +0 -33
- package/skills/implement/references/stop-hook-execution.md +0 -36
- package/skills/implement/references/strategy-router.md +0 -38
- package/skills/implement/references/subagent-execution.md +0 -43
- package/skills/implement/references/wave-execution.md +0 -162
- package/skills/init/SKILL.md +0 -49
- package/skills/init/references/gitignore-and-health.md +0 -26
- package/skills/init/references/next-steps.md +0 -22
- package/skills/init/references/preflight.md +0 -15
- package/skills/init/references/scaffold-contract.md +0 -27
- package/skills/review/SKILL.md +0 -82
- package/skills/review/references/optional-passes.md +0 -48
- package/skills/review/references/preflight.md +0 -38
- package/skills/review/references/report-contract.md +0 -49
- package/skills/review/references/reporting.md +0 -20
- package/skills/review/references/stage-execution.md +0 -32
- package/skills/security-audit/SKILL.md +0 -47
- package/skills/security-audit/references/audit-contract.md +0 -21
- package/skills/security-audit/references/gate-handoff.md +0 -8
- package/skills/security-audit/references/scope-and-depth.md +0 -9
- package/skills/spec/SKILL.md +0 -100
- package/skills/spec/references/artifact-landing.md +0 -31
- package/skills/spec/references/phase-execution.md +0 -50
- package/skills/spec/references/planning-review.md +0 -31
- package/skills/spec/references/preflight-and-routing.md +0 -46
- package/skills/spec/references/reporting.md +0 -21
- package/skills/start/SKILL.md +0 -84
- package/skills/start/references/branch-routing.md +0 -51
- package/skills/start/references/mode-semantics.md +0 -12
- package/skills/start/references/preflight.md +0 -13
- package/skills/start/references/reporting.md +0 -20
- package/skills/start/references/state-seeding.md +0 -44
- package/skills/start/references/workflow-handoff.md +0 -26
- package/skills/status/SKILL.md +0 -41
- package/skills/status/references/gather-contract.md +0 -27
- package/skills/status/references/health-rules.md +0 -27
- package/skills/status/references/output-contract.md +0 -24
- package/skills/status/references/preflight.md +0 -10
- package/skills/status/references/recovery-hints.md +0 -18
- package/skills/ui-sketch/SKILL.md +0 -39
- package/skills/ui-sketch/references/brief-intake.md +0 -10
- package/skills/ui-sketch/references/iteration-handoff.md +0 -5
- package/skills/ui-sketch/references/variant-contract.md +0 -15
- package/skills/verify/SKILL.md +0 -56
- package/skills/verify/references/evidence-workflow.md +0 -39
- package/skills/verify/references/output-contract.md +0 -23
- package/skills/verify/references/preflight.md +0 -11
- package/skills/verify/references/report-handoff.md +0 -35
- package/skills/verify/references/strict-mode.md +0 -12
- package/templates/CONTEXT.md.tmpl +0 -53
- package/templates/PROJECT.md.tmpl +0 -59
- package/templates/ROADMAP.md.tmpl +0 -50
- package/templates/STATE.md.tmpl +0 -49
- package/templates/config.json.tmpl +0 -51
- package/templates/design.md.tmpl +0 -83
- package/templates/progress.md.tmpl +0 -77
- package/templates/requirements.md.tmpl +0 -76
- package/templates/research.md.tmpl +0 -83
- package/templates/tasks.md.tmpl +0 -107
package/CHANGELOG.md
CHANGED
|
@@ -1,44 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
- surfaced bundled source repo metadata (`branch`, `shortSha`, `exactTag`, `dirty`) alongside bundled plugin body version in diagnostics and JSON output
|
|
7
|
-
- documented the reinstall workflow for “same version, but local source changed” plugin-development scenarios
|
|
5
|
+
## 3.1.0 — 2026-04-26
|
|
8
6
|
|
|
9
|
-
|
|
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.
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
- exposed bundled plugin body version in the runtime report and machine-readable doctor payload for automation consumers
|
|
13
|
-
- documented the reinstall/restart recovery path when Claude is still loading an older CurDX-Flow build
|
|
9
|
+
### Added
|
|
14
10
|
|
|
15
|
-
|
|
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.
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
- upgraded the `doctor --json` contract to v2 so wrappers can distinguish inspected `managed-file` scope from uninspected server-managed / MDM / CLI overrides
|
|
19
|
-
- added report and workflow coverage for managed-settings fragments, invalid managed JSON, and managed-vs-local/project/user precedence
|
|
23
|
+
### Changed
|
|
20
24
|
|
|
21
|
-
|
|
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`.
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
- added CLI-level regression coverage so `doctor --json` stays silent except for JSON stdout and exit code
|
|
25
|
-
- locked runtime env consumer drift checks against manifest `userConfig` keys and the actual bundled hook/monitor scripts
|
|
29
|
+
### Removed
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- expanded `doctor` to report CurDX-Flow’s bundled main-thread agent, monitor surface, and plugin option defaults
|
|
30
|
-
- documented where Claude Code stores CurDX-Flow non-sensitive `userConfig` values in `pluginConfigs`
|
|
31
|
-
- added troubleshooting guidance for stop-hook blocking and plugin monitor behavior
|
|
32
|
-
|
|
33
|
-
## 2.3.0
|
|
34
|
-
|
|
35
|
-
- added a default `flow-orchestrator` main-thread agent through plugin-level `settings.json`
|
|
36
|
-
- added a plugin `flow-state` monitor plus `userConfig` runtime knobs for stop-hook blocking, dependency reminders, and monitor cadence
|
|
37
|
-
- made the manifest explicit about `outputStyles` and `monitors`, shipped the monitor assets in npm tarballs, and strengthened pack/plugin contract tests
|
|
38
|
-
- updated doctor/runtime guidance and public docs to reflect the new main-agent + monitor architecture
|
|
39
|
-
|
|
40
|
-
## 2.2.4
|
|
41
|
-
|
|
42
|
-
- aligned the public docs surface with the current skill-first plugin layout
|
|
43
|
-
- kept thin entry docs while moving detailed workflow logic into skill references
|
|
44
|
-
- 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
package/README.md
CHANGED
|
@@ -1,95 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @curdx/flow
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
> Spec-driven workflow, goal-backward verification, and Karpathy discipline for real feature delivery.
|
|
3
|
+
Interactive installer for Claude Code plugins and MCP servers.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
[](./LICENSE)
|
|
8
|
-
[](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
|
-
entry docs. The heavy workflow detail lives in `skills/*/references/` and
|
|
13
|
-
`knowledge/`.
|
|
14
|
-
|
|
15
|
-
## Install
|
|
5
|
+
## Quick start
|
|
16
6
|
|
|
17
7
|
```bash
|
|
18
|
-
npx @curdx/flow
|
|
8
|
+
npx @curdx/flow
|
|
19
9
|
```
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
required reasoning/doc tools, and recommended companion plugins. Run
|
|
23
|
-
`npx @curdx/flow doctor` after install if anything looks off. For CI or wrapper
|
|
24
|
-
automation, use `npx @curdx/flow doctor --json`, which now includes file-based
|
|
25
|
-
managed settings in its inspected precedence model.
|
|
11
|
+
On first run you'll be asked to pick a language (中文 / English). Then choose what to install, update, uninstall, or just check status.
|
|
26
12
|
|
|
27
|
-
|
|
28
|
-
by default and starts the bundled `.flow` progress monitor in interactive
|
|
29
|
-
Claude Code sessions.
|
|
30
|
-
|
|
31
|
-
## 11 slash commands, that's it
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
/curdx-flow:init Initialize the .flow scaffold for the current repository.
|
|
35
|
-
/curdx-flow:start Create, resume, list, or switch the active feature spec.
|
|
36
|
-
/curdx-flow:status Show active spec health, progress, artifacts, and recovery hints.
|
|
37
|
-
/curdx-flow:spec Generate or refresh research, requirements, design, and tasks for the active spec.
|
|
38
|
-
/curdx-flow:implement Execute active-spec tasks with strategy routing and atomic progress.
|
|
39
|
-
/curdx-flow:cancel Cancel the active execution loop or delete a spec with explicit confirmation.
|
|
40
|
-
/curdx-flow:verify Verify the active spec against code, tests, and browser evidence.
|
|
41
|
-
/curdx-flow:review Run two-stage review with optional adversarial, edge-case, and DevEx passes.
|
|
42
|
-
/curdx-flow:fast Execute a one-shot small task without creating a spec.
|
|
43
|
-
/curdx-flow:debug Debug a bug or failing test with the root-cause workflow.
|
|
44
|
-
/curdx-flow:help Show command detail, workflow guidance, and troubleshooting.
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Plus 5 auto-invoked skills: `/curdx-flow:epic`, `/curdx-flow:browser-qa`,
|
|
48
|
-
`/curdx-flow:ui-sketch`, `/curdx-flow:security-audit`,
|
|
49
|
-
`/curdx-flow:brownfield-index`.
|
|
50
|
-
|
|
51
|
-
## Quick start
|
|
13
|
+
## Subcommands
|
|
52
14
|
|
|
53
15
|
```bash
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/
|
|
57
|
-
/
|
|
58
|
-
/
|
|
59
|
-
/
|
|
60
|
-
/
|
|
61
|
-
/
|
|
62
|
-
|
|
63
|
-
# Main artifacts:
|
|
64
|
-
# .flow/specs/jwt-auth/verification-report.md
|
|
65
|
-
# .flow/specs/jwt-auth/review-report.md
|
|
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
|
|
66
24
|
```
|
|
67
25
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
## What ships
|
|
26
|
+
## What it installs
|
|
71
27
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
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) |
|
|
79
36
|
|
|
80
|
-
##
|
|
37
|
+
## Requirements
|
|
81
38
|
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
- [docs/workflows.md](./docs/workflows.md) for greenfield, brownfield, epic, fast, and enterprise flows
|
|
85
|
-
- [docs/headless-ci.md](./docs/headless-ci.md) for `claude --bare -p`, `system/init`, `system/plugin_install`, and CI patterns
|
|
86
|
-
- [docs/troubleshoot.md](./docs/troubleshoot.md) for operator fixes
|
|
87
|
-
- [docs/architecture.md](./docs/architecture.md) for the skill-first layout
|
|
88
|
-
- [docs/agent-reference.md](./docs/agent-reference.md) for the 17 internal agents and their artifacts
|
|
39
|
+
- Node.js >= 20.12
|
|
40
|
+
- `claude` CLI installed and on `PATH` (this tool shells out to `claude plugin` and `claude mcp`)
|
|
89
41
|
|
|
90
|
-
##
|
|
42
|
+
## License
|
|
91
43
|
|
|
92
|
-
|
|
93
|
-
- `subagent` is serial; `wave` is the parallel strategy.
|
|
94
|
-
- Headless usage should favor `claude --bare -p` and explicit `--plugin-dir`,
|
|
95
|
-
`--settings`, and `--mcp-config` wiring.
|
|
44
|
+
MIT
|