@curdx/flow 2.2.4 → 2.3.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/.claude-plugin/marketplace.json +3 -2
- package/.claude-plugin/plugin.json +27 -1
- package/CHANGELOG.md +9 -564
- package/README.md +49 -113
- package/agents/flow-adversary.md +1 -0
- package/agents/flow-architect.md +9 -36
- package/agents/flow-brownfield-analyst.md +7 -18
- package/agents/flow-debugger.md +1 -0
- package/agents/flow-edge-hunter.md +1 -0
- package/agents/flow-executor.md +1 -0
- package/agents/flow-orchestrator.md +145 -0
- package/agents/flow-planner.md +11 -37
- package/agents/flow-product-designer.md +9 -41
- package/agents/flow-qa-engineer.md +1 -0
- package/agents/flow-researcher.md +9 -45
- package/agents/flow-reviewer.md +1 -0
- package/agents/flow-security-auditor.md +1 -0
- package/agents/flow-triage-analyst.md +1 -0
- package/agents/flow-ui-researcher.md +1 -0
- package/agents/flow-ux-designer.md +1 -0
- package/agents/flow-verifier.md +1 -0
- package/cli/install-companions.js +8 -8
- package/cli/install-next-steps.js +3 -1
- package/cli/lib/doctor-claude-settings.js +1 -0
- package/cli/lib/doctor-report.js +1 -1
- package/gates/coverage-audit-gate.md +1 -3
- package/gates/tdd-gate.md +0 -6
- package/gates/verification-gate.md +1 -5
- package/hooks/scripts/common.sh +7 -0
- package/hooks/scripts/session-start.sh +1 -1
- package/hooks/scripts/stop-watcher.sh +8 -0
- package/knowledge/artifact-output-discipline.md +24 -0
- package/knowledge/artifact-summary-contracts.md +50 -0
- package/knowledge/claude-code-runtime-contracts.md +13 -1
- package/knowledge/execution-strategies.md +6 -4
- package/knowledge/poc-first-workflow.md +2 -6
- package/knowledge/spec-driven-development.md +0 -4
- package/knowledge/systematic-debugging.md +0 -6
- package/knowledge/two-stage-review.md +8 -6
- package/knowledge/wave-execution.md +2 -1
- package/monitors/monitors.json +8 -0
- package/monitors/scripts/flow-state-monitor.sh +99 -0
- package/package.json +3 -2
- package/schemas/agent-frontmatter.schema.json +4 -0
- package/settings.json +1 -0
- package/skills/brownfield-index/SKILL.md +14 -20
- package/skills/brownfield-index/references/applicability.md +12 -0
- package/skills/brownfield-index/references/handoff.md +8 -0
- package/skills/brownfield-index/references/index-contract.md +10 -0
- package/skills/browser-qa/SKILL.md +15 -35
- package/skills/browser-qa/references/handoff.md +6 -0
- package/skills/browser-qa/references/prerequisites.md +10 -0
- package/skills/browser-qa/references/qa-contract.md +20 -0
- package/skills/cancel/SKILL.md +20 -61
- package/skills/cancel/references/destructive-mode.md +17 -0
- package/skills/cancel/references/reporting.md +18 -0
- package/skills/cancel/references/state-recovery.md +30 -0
- package/skills/cancel/references/target-resolution.md +7 -0
- package/skills/debug/SKILL.md +23 -87
- package/skills/debug/references/context-gathering.md +11 -0
- package/skills/debug/references/failure-guard.md +25 -0
- package/skills/debug/references/intake.md +12 -0
- package/skills/debug/references/phase-workflow.md +34 -0
- package/skills/debug/references/reporting.md +20 -0
- package/skills/epic/SKILL.md +18 -50
- package/skills/epic/references/epic-artifacts.md +20 -0
- package/skills/epic/references/epic-intake.md +9 -0
- package/skills/epic/references/slice-handoff.md +16 -0
- package/skills/fast/SKILL.md +34 -102
- package/skills/fast/references/applicability.md +25 -0
- package/skills/fast/references/clarification.md +20 -0
- package/skills/fast/references/execution-contract.md +56 -0
- package/skills/help/SKILL.md +26 -132
- package/skills/help/references/dispatch.md +20 -0
- package/skills/help/references/overview.md +39 -0
- package/skills/help/references/troubleshoot.md +47 -0
- package/skills/help/references/workflow.md +37 -0
- package/skills/implement/SKILL.md +61 -237
- package/skills/implement/references/error-recovery.md +36 -0
- package/skills/implement/references/linear-execution.md +32 -0
- package/skills/implement/references/preflight.md +43 -0
- package/skills/implement/references/progress-contract.md +32 -0
- package/skills/implement/references/state-init.md +33 -0
- package/skills/implement/references/stop-hook-execution.md +36 -0
- package/skills/implement/references/strategy-router.md +38 -0
- package/skills/implement/references/subagent-execution.md +43 -0
- package/skills/init/SKILL.md +26 -95
- package/skills/init/references/gitignore-and-health.md +26 -0
- package/skills/init/references/next-steps.md +22 -0
- package/skills/init/references/preflight.md +15 -0
- package/skills/init/references/scaffold-contract.md +27 -0
- package/skills/review/SKILL.md +45 -153
- package/skills/review/references/optional-passes.md +48 -0
- package/skills/review/references/preflight.md +38 -0
- package/skills/review/references/report-contract.md +49 -0
- package/skills/review/references/reporting.md +20 -0
- package/skills/review/references/stage-execution.md +32 -0
- package/skills/security-audit/SKILL.md +16 -34
- package/skills/security-audit/references/audit-contract.md +21 -0
- package/skills/security-audit/references/gate-handoff.md +8 -0
- package/skills/security-audit/references/scope-and-depth.md +9 -0
- package/skills/spec/SKILL.md +55 -182
- package/skills/spec/references/artifact-landing.md +31 -0
- package/skills/spec/references/phase-execution.md +50 -0
- package/skills/spec/references/planning-review.md +31 -0
- package/skills/spec/references/preflight-and-routing.md +46 -0
- package/skills/spec/references/reporting.md +21 -0
- package/skills/start/SKILL.md +40 -123
- package/skills/start/references/branch-routing.md +51 -0
- package/skills/start/references/mode-semantics.md +12 -0
- package/skills/start/references/preflight.md +13 -0
- package/skills/start/references/reporting.md +20 -0
- package/skills/start/references/state-seeding.md +44 -0
- package/skills/start/references/workflow-handoff.md +26 -0
- package/skills/status/SKILL.md +17 -61
- package/skills/status/references/gather-contract.md +27 -0
- package/skills/status/references/health-rules.md +27 -0
- package/skills/status/references/output-contract.md +24 -0
- package/skills/status/references/preflight.md +10 -0
- package/skills/status/references/recovery-hints.md +18 -0
- package/skills/ui-sketch/SKILL.md +15 -34
- package/skills/ui-sketch/references/brief-intake.md +10 -0
- package/skills/ui-sketch/references/iteration-handoff.md +5 -0
- package/skills/ui-sketch/references/variant-contract.md +15 -0
- package/skills/verify/SKILL.md +31 -86
- package/skills/verify/references/evidence-workflow.md +39 -0
- package/skills/verify/references/output-contract.md +23 -0
- package/skills/verify/references/preflight.md +11 -0
- package/skills/verify/references/report-handoff.md +35 -0
- package/skills/verify/references/strict-mode.md +12 -0
- package/README.zh.md +0 -160
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# UI Sketch Variant Contract — What Must Be Produced
|
|
2
|
+
|
|
3
|
+
`flow-ux-designer` should:
|
|
4
|
+
|
|
5
|
+
1. invoke the frontend-design workflow
|
|
6
|
+
2. generate distinct variants
|
|
7
|
+
3. write rationale for each variant
|
|
8
|
+
4. optionally use `flow-ui-researcher` for precedent gathering
|
|
9
|
+
|
|
10
|
+
## Required Artifacts
|
|
11
|
+
|
|
12
|
+
- `.flow/specs/<active>/ui-sketch/`
|
|
13
|
+
- `.flow/specs/<active>/ui-sketch/index.html`
|
|
14
|
+
|
|
15
|
+
Each variant should include rationale and accessibility notes.
|
package/skills/verify/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: verify
|
|
3
|
-
description:
|
|
3
|
+
description: Verify the active spec against code, tests, and browser evidence.
|
|
4
4
|
when_to_use: Use when implementation is done and the user wants proof that FRs, ACs, and ADs are actually satisfied rather than merely claimed complete.
|
|
5
5
|
argument-hint: "[--strict]"
|
|
6
6
|
disable-model-invocation: true
|
|
@@ -10,102 +10,47 @@ agent: flow-verifier
|
|
|
10
10
|
|
|
11
11
|
# Goal-Backward Verification
|
|
12
12
|
|
|
13
|
-
Verify the active `.flow/` spec using goal-backward analysis.
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Verify the active `.flow/` spec using goal-backward analysis. Keep this
|
|
14
|
+
entrypoint focused on preflight, evidence scope, strict-mode expansion, and the
|
|
15
|
+
final handoff. Detailed evidence rules live in:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- `references/preflight.md`
|
|
18
|
+
- `references/evidence-workflow.md`
|
|
19
|
+
- `references/strict-mode.md`
|
|
20
|
+
- `references/output-contract.md`
|
|
21
|
+
- `references/report-handoff.md`
|
|
18
22
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
- `.flow/` must exist and `.flow/.active-spec` must be non-empty.
|
|
22
|
-
- `.flow/specs/<active>/requirements.md`, `design.md`, `tasks.md` must all exist.
|
|
23
|
-
|
|
24
|
-
If any precondition fails, emit a clear error and stop.
|
|
25
|
-
|
|
26
|
-
## What to verify
|
|
27
|
-
|
|
28
|
-
Read the active spec's `requirements.md` (for FR-NN and AC-N.N),
|
|
29
|
-
`design.md` (for AD-NN), `tasks.md` (for T-N.M with per-task Verify
|
|
30
|
-
commands), and `.flow/STATE.md` (for D-NN decisions).
|
|
31
|
-
|
|
32
|
-
For EACH assertion in the spec, walk goal-backward:
|
|
33
|
-
|
|
34
|
-
1. Classify the assertion as **UI-facing** (uses words like "user sees",
|
|
35
|
-
"click", "render", or names a UI element) vs. **code-only** (schema,
|
|
36
|
-
API response, performance, error envelope, etc.).
|
|
37
|
-
2. For **code-only**: grep the codebase for matching symbols, find the
|
|
38
|
-
implementing file + line, find a test that exercises it, run the test
|
|
39
|
-
(`npm test` or the declared `Verify` command), capture pass/fail.
|
|
40
|
-
3. For **UI-facing**: browser verification via `mcp__chrome_devtools__*`
|
|
41
|
-
is required. `jsdom` / `happy-dom` unit tests are insufficient. If the
|
|
42
|
-
browser MCP isn't available, mark the AC **unverified — browser MCP
|
|
43
|
-
missing** and include a CRITICAL section in the report; do NOT
|
|
44
|
-
silently pass based on code reading alone.
|
|
45
|
-
|
|
46
|
-
Also scan for **stub / fake-completion** patterns on FR-covered paths:
|
|
23
|
+
## Arguments
|
|
47
24
|
|
|
48
|
-
|
|
49
|
-
- `return null` / `return {}` where real output is expected
|
|
50
|
-
- tests with only `it.skip(...)` or no assertions
|
|
51
|
-
- code returning mocked fixtures instead of calling real collaborators
|
|
25
|
+
`$ARGUMENTS` optionally includes `--strict`.
|
|
52
26
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Run the per-task `Verify` commands from `tasks.md` and record pass/fail.
|
|
56
|
-
|
|
57
|
-
For fix/debug specs, also verify reality evidence:
|
|
58
|
-
|
|
59
|
-
- `.progress.md` must contain `Reality Check (BEFORE)` with a reproduction command and observed failure.
|
|
60
|
-
- `.progress.md` must contain `Reality Check (AFTER)` with the same command rerun and an explicit comparison.
|
|
61
|
-
- `Verified: Issue resolved` is valid only if AFTER proves the original observed failure disappeared.
|
|
62
|
-
- If the spec has fix/debug language but no `VF` task or BEFORE/AFTER evidence, mark the verdict `PARTIAL` even if all tests pass.
|
|
63
|
-
|
|
64
|
-
## --strict mode
|
|
65
|
-
|
|
66
|
-
When `$ARGUMENTS` contains `--strict`, also apply the multi-source coverage
|
|
67
|
-
audit at `@${CLAUDE_PLUGIN_ROOT}/gates/coverage-audit-gate.md`. Cross-check:
|
|
68
|
-
|
|
69
|
-
- Every FR ↔ AC ↔ AD ↔ task ↔ test ↔ commit must reference each other.
|
|
70
|
-
- Research conclusions: was the recommended library / approach actually used?
|
|
71
|
-
- Every D-NN in `.flow/STATE.md` that references this spec is honored.
|
|
72
|
-
|
|
73
|
-
## Deliverables
|
|
27
|
+
## Preflight
|
|
74
28
|
|
|
75
|
-
|
|
29
|
+
Use `references/preflight.md` for the project-level guard.
|
|
76
30
|
|
|
77
|
-
|
|
78
|
-
- Detailed Checklist (one section per FR / AC / AD with Evidence + Verdict)
|
|
79
|
-
- Stub / fake findings with file paths
|
|
80
|
-
- Verdict: `PASS` / `PARTIAL` / `MISSING`
|
|
31
|
+
## Evidence Scope
|
|
81
32
|
|
|
82
|
-
|
|
83
|
-
|
|
33
|
+
Use `references/evidence-workflow.md` for the full evidence contract.
|
|
34
|
+
UI-facing checks still rely on `mcp__chrome_devtools__*` when browser evidence
|
|
35
|
+
is required.
|
|
84
36
|
|
|
85
|
-
|
|
86
|
-
must be the `Write` tool call with the complete report. Do NOT preview the
|
|
87
|
-
report as assistant text first; that doubles output tokens and risks
|
|
88
|
-
truncating inside the Write call. After Write succeeds, respond with a
|
|
89
|
-
≤ 5-line summary only.
|
|
37
|
+
## Strict Mode
|
|
90
38
|
|
|
91
|
-
|
|
39
|
+
If `$ARGUMENTS` contains `--strict`, also apply the multi-source audit from
|
|
40
|
+
`references/strict-mode.md`.
|
|
92
41
|
|
|
93
|
-
|
|
42
|
+
## Deliverables and Gate
|
|
94
43
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
44
|
+
Use `references/output-contract.md` for the required artifact and compact
|
|
45
|
+
summary. The exact report structure, landing order, and post-write routing are
|
|
46
|
+
governed by `references/report-handoff.md` plus the `flow-verifier` agent
|
|
47
|
+
contract.
|
|
48
|
+
Primary artifact: `.flow/specs/<name>/verification-report.md`.
|
|
100
49
|
|
|
101
|
-
|
|
50
|
+
Apply `@${CLAUDE_PLUGIN_ROOT}/gates/verification-gate.md` before returning a
|
|
51
|
+
PASS verdict.
|
|
102
52
|
|
|
103
|
-
|
|
104
|
-
✓ Verification complete: <spec-name>
|
|
105
|
-
FR coverage: N/M implemented (S stub, K missing)
|
|
106
|
-
AC coverage: N/M tested
|
|
107
|
-
Verdict: PASS | PARTIAL | MISSING
|
|
108
|
-
Report: .flow/specs/<name>/verification-report.md
|
|
109
|
-
```
|
|
53
|
+
## Output to User
|
|
110
54
|
|
|
111
|
-
|
|
55
|
+
Use `references/output-contract.md` for the final compact response. Next-step
|
|
56
|
+
routing is defined in `references/report-handoff.md`.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Evidence Workflow — Verification Rules
|
|
2
|
+
|
|
3
|
+
## Read Set
|
|
4
|
+
|
|
5
|
+
Load:
|
|
6
|
+
|
|
7
|
+
- `.flow/specs/<name>/requirements.md`
|
|
8
|
+
- `.flow/specs/<name>/design.md`
|
|
9
|
+
- `.flow/specs/<name>/tasks.md`
|
|
10
|
+
- `.flow/specs/<name>/.progress.md`
|
|
11
|
+
- `.flow/specs/<name>/.state.json`
|
|
12
|
+
- `.flow/STATE.md`
|
|
13
|
+
|
|
14
|
+
## Assertion Model
|
|
15
|
+
|
|
16
|
+
Verify every relevant:
|
|
17
|
+
|
|
18
|
+
- `FR`
|
|
19
|
+
- `AC`
|
|
20
|
+
- `AD`
|
|
21
|
+
- implementation-relevant component existence
|
|
22
|
+
|
|
23
|
+
For fix/debug specs, also verify `VF-original-issue`.
|
|
24
|
+
|
|
25
|
+
## UI vs Code-Only
|
|
26
|
+
|
|
27
|
+
- UI-facing ACs require browser verification through `mcp__chrome_devtools__*`
|
|
28
|
+
- Code inspection plus `jsdom` / `happy-dom` tests are insufficient for
|
|
29
|
+
UI-facing ACs
|
|
30
|
+
- If browser MCP is unavailable, mark UI-facing ACs as
|
|
31
|
+
`unverified — browser MCP missing`
|
|
32
|
+
|
|
33
|
+
## Required Checks
|
|
34
|
+
|
|
35
|
+
- run real tests or verify commands, never hypothetical ones
|
|
36
|
+
- scan for stub and fake-completion patterns on FR-covered paths
|
|
37
|
+
- apply `test-quality-gate` to every evidentiary test
|
|
38
|
+
- downgrade assertions backed only by weak tests
|
|
39
|
+
- require `.progress.md` BEFORE/AFTER reality checks for fix/debug work
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Verify Output Contract — Artifact and Summary
|
|
2
|
+
|
|
3
|
+
## Artifact
|
|
4
|
+
|
|
5
|
+
Write:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
.flow/specs/<name>/verification-report.md
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Summary
|
|
12
|
+
|
|
13
|
+
After the report lands, respond with:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
✓ Verification complete: <spec-name>
|
|
17
|
+
FR coverage: N/M implemented (S stub, K missing)
|
|
18
|
+
AC coverage: N/M tested
|
|
19
|
+
Verdict: PASS | PARTIAL | MISSING
|
|
20
|
+
Report: .flow/specs/<name>/verification-report.md
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Keep the response compact. The report file holds the detail.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Verify Preflight — Active Spec and Artifact Guard
|
|
2
|
+
|
|
3
|
+
Before verifying:
|
|
4
|
+
|
|
5
|
+
- `.flow/` must exist
|
|
6
|
+
- `.flow/.active-spec` must be non-empty
|
|
7
|
+
- `.flow/specs/<active>/requirements.md` must exist
|
|
8
|
+
- `.flow/specs/<active>/design.md` must exist
|
|
9
|
+
- `.flow/specs/<active>/tasks.md` must exist
|
|
10
|
+
|
|
11
|
+
If any precondition fails, emit a clear error and stop immediately.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Report Handoff — Deliverable and Next Step
|
|
2
|
+
|
|
3
|
+
## Deliverable
|
|
4
|
+
|
|
5
|
+
Write:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
.flow/specs/<name>/verification-report.md
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The first substantive action after gathering findings must be the `Write` call
|
|
12
|
+
for the complete report. Do not preview the report first.
|
|
13
|
+
|
|
14
|
+
## Gate Outcome
|
|
15
|
+
|
|
16
|
+
- `PASS` -> verification evidence is complete; next logical step is
|
|
17
|
+
`/curdx-flow:review`
|
|
18
|
+
- `PARTIAL` or `MISSING` -> address findings, then rerun `/curdx-flow:verify`
|
|
19
|
+
|
|
20
|
+
## Output Summary
|
|
21
|
+
|
|
22
|
+
After `Write` succeeds, respond with no more than 5 lines:
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
✓ Verification complete: <spec-name>
|
|
26
|
+
FR coverage: N/M implemented (S stub, K missing)
|
|
27
|
+
AC coverage: N/M tested
|
|
28
|
+
Verdict: PASS | PARTIAL | MISSING
|
|
29
|
+
Report: .flow/specs/<name>/verification-report.md
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Next:
|
|
33
|
+
|
|
34
|
+
- `/curdx-flow:review` after a clean verification pass
|
|
35
|
+
- `/curdx-flow:verify` again after fixes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Strict Mode — Multi-Source Audit
|
|
2
|
+
|
|
3
|
+
When `--strict` is present, also apply
|
|
4
|
+
`@${CLAUDE_PLUGIN_ROOT}/gates/coverage-audit-gate.md`.
|
|
5
|
+
|
|
6
|
+
Cross-check:
|
|
7
|
+
|
|
8
|
+
- every `FR` <-> `AC` <-> `AD` <-> task <-> test <-> commit chain
|
|
9
|
+
- research recommendations versus the actual implementation
|
|
10
|
+
- every relevant `D-NN` in `.flow/STATE.md`
|
|
11
|
+
|
|
12
|
+
`--strict` expands evidence requirements; it does not relax any baseline gate.
|
package/README.zh.md
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# CurdX-Flow
|
|
2
|
-
|
|
3
|
-
> **让 Claude Code 不再假装"完成"。**
|
|
4
|
-
> 规格驱动工作流 + 目标反向验证 + Karpathy 4 原则。
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/@curdx/flow)
|
|
7
|
-
[](./LICENSE)
|
|
8
|
-
[](https://code.claude.com)
|
|
9
|
-
[](./README.md)
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 为什么存在
|
|
14
|
-
|
|
15
|
-
Claude Code 会漂——声称功能跑通但从未跑过测试、用训练数据里陈旧的库 API、把三个问题的代码量塞进六问。
|
|
16
|
-
|
|
17
|
-
CurdX-Flow 是 Claude Code 之上的一层薄**纪律层**,只做三件事,拒绝做更多:
|
|
18
|
-
|
|
19
|
-
1. **一套规格工作流**(研究 → 需求 → 设计 → 任务),用于超出一次性 vibe-code 尺度的特性。
|
|
20
|
-
2. **目标反向验证**——扫描实现是否对齐每一条 FR / AC / AD,揪出桩代码、假完成、未被测试覆盖的验收标准。
|
|
21
|
-
3. **Karpathy 4 原则**(先思考再编码 / 简单优先 / 外科式修改 / 目标驱动)通过常开 hook 和 gate 强制执行。
|
|
22
|
-
|
|
23
|
-
不是框架。不是方法论库。就是一层纪律。
|
|
24
|
-
|
|
25
|
-
## 一览(v2)
|
|
26
|
-
|
|
27
|
-
- **11 个命令** — 初始化 / 启动规格 / 状态 / 规格 / 执行 / 取消 / 验证 / 审查 / 调试 / fast / 帮助
|
|
28
|
-
- **15 个内部代理** — 由命令调度,按职能分工执行
|
|
29
|
-
- **8 个可组合 Gate** — Karpathy / Verification / TDD / Coverage / Adversarial / Edge-Case / Security / DevEx
|
|
30
|
-
- **4 种执行策略** — linear / subagent / stop-hook / wave(自动路由)
|
|
31
|
-
- **10 个知识文档** — 规格驱动 / POC-First / 原子提交 / 执行策略 / ...
|
|
32
|
-
- **4 个 hook 事件 + 子代理状态行** — SessionStart / Stop / SubagentStop / PreToolUse,以及 Claude Code agent 面板里的 CurDX-Flow 子代理状态行
|
|
33
|
-
- **必需文档/推理工具 + 4 个推荐插件** — Context7 官方插件 / sequential-thinking MCP + pua / claude-mem / frontend-design / chrome-devtools-mcp
|
|
34
|
-
- **1 个可选输出风格** — 可在 `/config` 里选择 `CurdX Evidence-First`,得到更简洁、证据优先的回复
|
|
35
|
-
- **1 个默认子代理状态行** — 在新版 Claude Code agent 面板中紧凑显示 CurDX-Flow 代理、状态、活跃规格和 token 概况
|
|
36
|
-
- **插件 PATH helper** — 在新版 Claude Code 的 Bash 工具里可直接调用 `curdx-flow`
|
|
37
|
-
- **优雅降级** — 依赖缺失时进入 fallback 模式并清晰告知
|
|
38
|
-
|
|
39
|
-
## 为什么用
|
|
40
|
-
|
|
41
|
-
现有 AI 编程工作流常见问题:
|
|
42
|
-
|
|
43
|
-
| 问题 | CurdX-Flow 的答案 |
|
|
44
|
-
|-----|-----------------|
|
|
45
|
-
| 上下文腐烂(长会话质量下降) | Subagent 隔离 + stop-hook 循环 + claude-mem |
|
|
46
|
-
| 无工程纪律(AI 跳步、幻觉) | Karpathy L1 + verification-gate + TDD-gate |
|
|
47
|
-
| 最佳实践分散 | 6 个工作流蒸馏到一个元框架 |
|
|
48
|
-
| 验证薄弱(无证据声称"完成") | 目标反向验证 + 禁用词检测 |
|
|
49
|
-
| 单视角决策 | 多代理协作 + 对抗审查 |
|
|
50
|
-
|
|
51
|
-
## 安装
|
|
52
|
-
|
|
53
|
-
需要 Claude Code v2.1.110+(推荐最新版)。安装器会检查本机 `claude`,`curdx-flow doctor` 会在版本过旧、无法完整支持新版插件依赖解析时给出警告。
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
npx @curdx/flow install --all
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
这会用 `claude plugin ...` 非交互 CLI 安装 CurdX-Flow 插件、Context7 官方插件、必需 MCP,并安装推荐插件。
|
|
60
|
-
|
|
61
|
-
**注意:** 如果你在 `curdx-flow` 项目目录内运行此命令,请使用 `npx --ignore-existing @curdx/flow install --all` 避免 npx 尝试使用本地未安装依赖的包。
|
|
62
|
-
|
|
63
|
-
### 本地 dev
|
|
64
|
-
```bash
|
|
65
|
-
git clone https://github.com/curdx/curdx-flow
|
|
66
|
-
claude --plugin-dir ./curdx-flow
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
安装后在 Claude Code 内运行:
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
/curdx-flow:init # 初始化你的项目
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
详细教程见 [`docs/getting-started.md`](./docs/getting-started.md)(5 分钟上手)。
|
|
76
|
-
|
|
77
|
-
## 快速开始
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
# 1. 在你的项目
|
|
81
|
-
/curdx-flow:init
|
|
82
|
-
|
|
83
|
-
# 2. 启动一个功能
|
|
84
|
-
/curdx-flow:start jwt-auth "给 REST API 加 JWT 认证"
|
|
85
|
-
|
|
86
|
-
# 3. 生成完整规格(研究 → 需求 → 设计 → 任务)
|
|
87
|
-
/curdx-flow:spec
|
|
88
|
-
|
|
89
|
-
# 4. 执行(自动选最佳策略)
|
|
90
|
-
/curdx-flow:implement
|
|
91
|
-
|
|
92
|
-
# 5. 验证 + 审查
|
|
93
|
-
/curdx-flow:verify
|
|
94
|
-
/curdx-flow:review
|
|
95
|
-
|
|
96
|
-
# 完成。git push.
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
更多场景(棕地 / Epic / Fast / UI 重)见 [`docs/workflows.md`](./docs/workflows.md)。
|
|
100
|
-
|
|
101
|
-
## 五根支柱
|
|
102
|
-
|
|
103
|
-
1. **Mind(L1 基线)** — Karpathy 4 原则 + 必用工具规则 + 三条红线
|
|
104
|
-
2. **Spec(规格)** — 研究 → 需求 → 设计 → 任务(可伸缩,4 文件 lite 到 12 文件 enterprise)
|
|
105
|
-
3. **Agents(代理)** — 15 个内部代理,按命令和流程调度
|
|
106
|
-
4. **Flow(流程)** — 4 种执行策略,自动路由
|
|
107
|
-
5. **Memory(记忆)** — claude-mem(隐式)+ `.flow/STATE.md`(显式决策 D-NN)
|
|
108
|
-
|
|
109
|
-
设计哲学详见 [`docs/ethos.md`](./docs/ethos.md)。
|
|
110
|
-
|
|
111
|
-
## 文档
|
|
112
|
-
|
|
113
|
-
| 文档 | 何时读 |
|
|
114
|
-
|-----|------|
|
|
115
|
-
| [`docs/getting-started.md`](./docs/getting-started.md) | 首次使用,5 分钟上手 |
|
|
116
|
-
| [`docs/command-reference.md`](./docs/command-reference.md) | 11 个命令完整参考 |
|
|
117
|
-
| [`docs/agent-reference.md`](./docs/agent-reference.md) | 15 个内部代理 |
|
|
118
|
-
| [`docs/workflows.md`](./docs/workflows.md) | 5 种典型场景(greenfield/brownfield/epic/fast/UI) |
|
|
119
|
-
| [`docs/architecture.md`](./docs/architecture.md) | 内部设计(给扩展者) |
|
|
120
|
-
| [`docs/ethos.md`](./docs/ethos.md) | 设计决策的理由 |
|
|
121
|
-
| [`docs/troubleshoot.md`](./docs/troubleshoot.md) | 故障排查 |
|
|
122
|
-
|
|
123
|
-
## 当前不做的(故意)
|
|
124
|
-
|
|
125
|
-
**v1.0 故意跳过**:
|
|
126
|
-
- **Phase 6**(ship / land / canary / retro) — 私有仓库场景 ROI 低。未来社区反馈需要再补。
|
|
127
|
-
- **集成检查代理** — Epic 跨子规格验证。暂时手动。
|
|
128
|
-
- **Checkpoint save/restore** — 当前 `.flow/STATE.md` 覆盖多数需求。
|
|
129
|
-
- **多运行时支持** — 仅 Claude Code。其他工具的插件 API 成熟后再考虑。
|
|
130
|
-
|
|
131
|
-
完整版本历史见 [`CHANGELOG.md`](./CHANGELOG.md)。
|
|
132
|
-
|
|
133
|
-
## 致谢
|
|
134
|
-
|
|
135
|
-
CurdX-Flow 是蒸馏,不是原创。深深致谢:
|
|
136
|
-
|
|
137
|
-
- [**andrej-karpathy-skills**](https://github.com/forrestchang/andrej-karpathy-skills) — 4 原则
|
|
138
|
-
- [**smart-ralph**](https://github.com/tzachbon/smart-ralph) — 规格引擎 + stop-hook 循环
|
|
139
|
-
- [**superpowers**](https://github.com/obra/superpowers) — Subagent 纪律 + TDD + 两阶段审查
|
|
140
|
-
- [**BMAD-METHOD**](https://github.com/bmad-code-org/BMAD-METHOD) — 协作流程 + 对抗审查
|
|
141
|
-
- [**get-shit-done**](https://github.com/ryangentry/get-shit-done) — 波形执行 + 决策锁定 + 多源审计
|
|
142
|
-
- [**gstack**](https://github.com/garrytan/gstack)(Garry Tan) — 规划审查 + DX 哲学
|
|
143
|
-
- [**pua**](https://github.com/tanweai/pua) — 持续性 + 三条红线
|
|
144
|
-
- [**claude-mem**](https://github.com/thedotmack/claude-mem) — 自动跨会话记忆
|
|
145
|
-
- [**frontend-design skill**](https://claude.ai/skills/frontend-design) — distinctive UI(Anthropic 官方)
|
|
146
|
-
- **Context7**(Upstash)+ **sequential-thinking**(Anthropic)+ **chrome-devtools-mcp**(Chrome 团队)
|
|
147
|
-
|
|
148
|
-
## 许可
|
|
149
|
-
|
|
150
|
-
MIT。见 [`LICENSE`](./LICENSE)。
|
|
151
|
-
|
|
152
|
-
## 贡献
|
|
153
|
-
|
|
154
|
-
- Issues: https://github.com/curdx/curdx-flow/issues
|
|
155
|
-
- 欢迎 PR,但请先用 `/curdx-flow:spec` 自己走一遍(吃自己的狗粮)
|
|
156
|
-
- 社区准则:友善 + 具体 + 不对着 LLM 发火
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
_CurDX = AI 编程时代的 "Current Developer eXperience"。_
|