@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.
Files changed (131) hide show
  1. package/.claude-plugin/marketplace.json +3 -2
  2. package/.claude-plugin/plugin.json +27 -1
  3. package/CHANGELOG.md +9 -564
  4. package/README.md +49 -113
  5. package/agents/flow-adversary.md +1 -0
  6. package/agents/flow-architect.md +9 -36
  7. package/agents/flow-brownfield-analyst.md +7 -18
  8. package/agents/flow-debugger.md +1 -0
  9. package/agents/flow-edge-hunter.md +1 -0
  10. package/agents/flow-executor.md +1 -0
  11. package/agents/flow-orchestrator.md +145 -0
  12. package/agents/flow-planner.md +11 -37
  13. package/agents/flow-product-designer.md +9 -41
  14. package/agents/flow-qa-engineer.md +1 -0
  15. package/agents/flow-researcher.md +9 -45
  16. package/agents/flow-reviewer.md +1 -0
  17. package/agents/flow-security-auditor.md +1 -0
  18. package/agents/flow-triage-analyst.md +1 -0
  19. package/agents/flow-ui-researcher.md +1 -0
  20. package/agents/flow-ux-designer.md +1 -0
  21. package/agents/flow-verifier.md +1 -0
  22. package/cli/install-companions.js +8 -8
  23. package/cli/install-next-steps.js +3 -1
  24. package/cli/lib/doctor-claude-settings.js +1 -0
  25. package/cli/lib/doctor-report.js +1 -1
  26. package/gates/coverage-audit-gate.md +1 -3
  27. package/gates/tdd-gate.md +0 -6
  28. package/gates/verification-gate.md +1 -5
  29. package/hooks/scripts/common.sh +7 -0
  30. package/hooks/scripts/session-start.sh +1 -1
  31. package/hooks/scripts/stop-watcher.sh +8 -0
  32. package/knowledge/artifact-output-discipline.md +24 -0
  33. package/knowledge/artifact-summary-contracts.md +50 -0
  34. package/knowledge/claude-code-runtime-contracts.md +13 -1
  35. package/knowledge/execution-strategies.md +6 -4
  36. package/knowledge/poc-first-workflow.md +2 -6
  37. package/knowledge/spec-driven-development.md +0 -4
  38. package/knowledge/systematic-debugging.md +0 -6
  39. package/knowledge/two-stage-review.md +8 -6
  40. package/knowledge/wave-execution.md +2 -1
  41. package/monitors/monitors.json +8 -0
  42. package/monitors/scripts/flow-state-monitor.sh +99 -0
  43. package/package.json +3 -2
  44. package/schemas/agent-frontmatter.schema.json +4 -0
  45. package/settings.json +1 -0
  46. package/skills/brownfield-index/SKILL.md +14 -20
  47. package/skills/brownfield-index/references/applicability.md +12 -0
  48. package/skills/brownfield-index/references/handoff.md +8 -0
  49. package/skills/brownfield-index/references/index-contract.md +10 -0
  50. package/skills/browser-qa/SKILL.md +15 -35
  51. package/skills/browser-qa/references/handoff.md +6 -0
  52. package/skills/browser-qa/references/prerequisites.md +10 -0
  53. package/skills/browser-qa/references/qa-contract.md +20 -0
  54. package/skills/cancel/SKILL.md +20 -61
  55. package/skills/cancel/references/destructive-mode.md +17 -0
  56. package/skills/cancel/references/reporting.md +18 -0
  57. package/skills/cancel/references/state-recovery.md +30 -0
  58. package/skills/cancel/references/target-resolution.md +7 -0
  59. package/skills/debug/SKILL.md +23 -87
  60. package/skills/debug/references/context-gathering.md +11 -0
  61. package/skills/debug/references/failure-guard.md +25 -0
  62. package/skills/debug/references/intake.md +12 -0
  63. package/skills/debug/references/phase-workflow.md +34 -0
  64. package/skills/debug/references/reporting.md +20 -0
  65. package/skills/epic/SKILL.md +18 -50
  66. package/skills/epic/references/epic-artifacts.md +20 -0
  67. package/skills/epic/references/epic-intake.md +9 -0
  68. package/skills/epic/references/slice-handoff.md +16 -0
  69. package/skills/fast/SKILL.md +34 -102
  70. package/skills/fast/references/applicability.md +25 -0
  71. package/skills/fast/references/clarification.md +20 -0
  72. package/skills/fast/references/execution-contract.md +56 -0
  73. package/skills/help/SKILL.md +26 -132
  74. package/skills/help/references/dispatch.md +20 -0
  75. package/skills/help/references/overview.md +39 -0
  76. package/skills/help/references/troubleshoot.md +47 -0
  77. package/skills/help/references/workflow.md +37 -0
  78. package/skills/implement/SKILL.md +61 -237
  79. package/skills/implement/references/error-recovery.md +36 -0
  80. package/skills/implement/references/linear-execution.md +32 -0
  81. package/skills/implement/references/preflight.md +43 -0
  82. package/skills/implement/references/progress-contract.md +32 -0
  83. package/skills/implement/references/state-init.md +33 -0
  84. package/skills/implement/references/stop-hook-execution.md +36 -0
  85. package/skills/implement/references/strategy-router.md +38 -0
  86. package/skills/implement/references/subagent-execution.md +43 -0
  87. package/skills/init/SKILL.md +26 -95
  88. package/skills/init/references/gitignore-and-health.md +26 -0
  89. package/skills/init/references/next-steps.md +22 -0
  90. package/skills/init/references/preflight.md +15 -0
  91. package/skills/init/references/scaffold-contract.md +27 -0
  92. package/skills/review/SKILL.md +45 -153
  93. package/skills/review/references/optional-passes.md +48 -0
  94. package/skills/review/references/preflight.md +38 -0
  95. package/skills/review/references/report-contract.md +49 -0
  96. package/skills/review/references/reporting.md +20 -0
  97. package/skills/review/references/stage-execution.md +32 -0
  98. package/skills/security-audit/SKILL.md +16 -34
  99. package/skills/security-audit/references/audit-contract.md +21 -0
  100. package/skills/security-audit/references/gate-handoff.md +8 -0
  101. package/skills/security-audit/references/scope-and-depth.md +9 -0
  102. package/skills/spec/SKILL.md +55 -182
  103. package/skills/spec/references/artifact-landing.md +31 -0
  104. package/skills/spec/references/phase-execution.md +50 -0
  105. package/skills/spec/references/planning-review.md +31 -0
  106. package/skills/spec/references/preflight-and-routing.md +46 -0
  107. package/skills/spec/references/reporting.md +21 -0
  108. package/skills/start/SKILL.md +40 -123
  109. package/skills/start/references/branch-routing.md +51 -0
  110. package/skills/start/references/mode-semantics.md +12 -0
  111. package/skills/start/references/preflight.md +13 -0
  112. package/skills/start/references/reporting.md +20 -0
  113. package/skills/start/references/state-seeding.md +44 -0
  114. package/skills/start/references/workflow-handoff.md +26 -0
  115. package/skills/status/SKILL.md +17 -61
  116. package/skills/status/references/gather-contract.md +27 -0
  117. package/skills/status/references/health-rules.md +27 -0
  118. package/skills/status/references/output-contract.md +24 -0
  119. package/skills/status/references/preflight.md +10 -0
  120. package/skills/status/references/recovery-hints.md +18 -0
  121. package/skills/ui-sketch/SKILL.md +15 -34
  122. package/skills/ui-sketch/references/brief-intake.md +10 -0
  123. package/skills/ui-sketch/references/iteration-handoff.md +5 -0
  124. package/skills/ui-sketch/references/variant-contract.md +15 -0
  125. package/skills/verify/SKILL.md +31 -86
  126. package/skills/verify/references/evidence-workflow.md +39 -0
  127. package/skills/verify/references/output-contract.md +23 -0
  128. package/skills/verify/references/preflight.md +11 -0
  129. package/skills/verify/references/report-handoff.md +35 -0
  130. package/skills/verify/references/strict-mode.md +12 -0
  131. package/README.zh.md +0 -160
@@ -9,63 +9,31 @@ agent: flow-triage-analyst
9
9
 
10
10
  # Epic Decomposition
11
11
 
12
- You are invoked when the user wants to break a large feature into multiple vertical-slice specs.
12
+ This is a specialty orchestration skill for multi-spec planning. Keep the
13
+ entrypoint focused on when to use epic decomposition and what artifacts it must
14
+ leave behind. Detailed rules live in:
13
15
 
14
- ## Preconditions
15
-
16
- 1. A `.flow/` project must exist (run `/curdx-flow:init` first if missing).
17
- 2. The user has stated a feature scope that is too large for a single spec.
18
-
19
- ## Workflow
20
-
21
- ### Step 1: Clarify the epic scope
22
-
23
- Ask the user (or infer from context) for:
24
- - **Epic name** (short identifier, kebab-case)
25
- - **One-sentence goal** of the whole epic
26
- - **Hard boundary**: what is explicitly out of scope for this epic
27
-
28
- ### Step 2: Run via `flow-triage-analyst`
16
+ - `references/epic-intake.md`
17
+ - `references/epic-artifacts.md`
18
+ - `references/slice-handoff.md`
29
19
 
30
- This skill executes in a forked context through `flow-triage-analyst`. The agent returns:
31
- - A vertical-slice decomposition (not horizontal by layer)
32
- - Dependency graph between slices
33
- - Shared interfaces that must be frozen before parallel work begins
34
- - Suggested slice ordering (MVP → iteration → polish)
35
-
36
- ### Step 3: Write epic manifest
37
-
38
- Create `.flow/_epics/<epic-name>/epic.md` with:
39
-
40
- ```markdown
41
- # Epic: <name>
42
-
43
- ## Goal
44
- <one sentence>
45
-
46
- ## Slices (vertical)
47
- | ID | Slice | Depends on | Shared interface |
48
- |----|-------|-----------|------------------|
49
- | S1 | ... | — | — |
50
- | S2 | ... | S1 | `types/auth.ts` |
51
- | S3 | ... | S1 | — |
20
+ ## Preconditions
52
21
 
53
- ## Frozen Interfaces
54
- (contracts that must not change once slices start)
22
+ - a `.flow/` project exists
23
+ - the feature scope is too large for a single spec
55
24
 
56
- ## Out of Scope
57
- - ...
58
- ```
25
+ ## Intake
59
26
 
60
- ### Step 4: Scaffold sub-spec skeletons
27
+ Use `references/epic-intake.md` to confirm the epic boundary before dispatching
28
+ `flow-triage-analyst`.
61
29
 
62
- For each slice, create `.flow/specs/<epic-name>-<slice-id>/` with a minimal `.state.json` linking back to the epic manifest.
30
+ ## Artifact Contract
63
31
 
64
- ### Step 5: Report to user
32
+ Use `references/epic-artifacts.md` for the required outputs:
65
33
 
66
- Summarize: "Epic `<name>` decomposed into N vertical slices. Start any slice with `/curdx-flow:start <epic-name>-<slice-id>`. Suggested order: S1 → S2 → S3."
34
+ - `.flow/_epics/<epic-name>/epic.md`
35
+ - one `.flow/specs/<epic-name>-<slice-id>/` skeleton per slice
67
36
 
68
- ## References
37
+ ## Handoff
69
38
 
70
- - Vertical-slice methodology: `@${CLAUDE_PLUGIN_ROOT}/knowledge/epic-decomposition.md`
71
- - Spec skeleton: `@${CLAUDE_PLUGIN_ROOT}/templates/`
39
+ User-facing next-step routing lives in `references/slice-handoff.md`.
@@ -0,0 +1,20 @@
1
+ # Epic Artifacts — What Must Be Written
2
+
3
+ `flow-triage-analyst` must return:
4
+
5
+ - a vertical-slice decomposition
6
+ - a dependency graph between slices
7
+ - shared interfaces that should freeze before parallel work
8
+ - suggested ordering: MVP -> iteration -> polish
9
+
10
+ ## Required Files
11
+
12
+ - `.flow/_epics/<epic-name>/epic.md`
13
+ - `.flow/specs/<epic-name>-<slice-id>/` skeletons with minimal `.state.json`
14
+
15
+ `epic.md` should include:
16
+
17
+ - goal
18
+ - slice table
19
+ - frozen interfaces
20
+ - out-of-scope list
@@ -0,0 +1,9 @@
1
+ # Epic Intake — Confirm the Scope Boundary
2
+
3
+ Before decomposing, confirm:
4
+
5
+ - epic name (short kebab-case identifier)
6
+ - one-sentence goal
7
+ - hard out-of-scope boundary
8
+
9
+ This skill is for vertical-slice decomposition, not horizontal layer splitting.
@@ -0,0 +1,16 @@
1
+ # Epic Handoff — What the User Does Next
2
+
3
+ Report:
4
+
5
+ - epic name
6
+ - slice count
7
+ - suggested slice order
8
+
9
+ Then route the user to a concrete slice:
10
+
11
+ ```text
12
+ /curdx-flow:start <epic-name>-<slice-id>
13
+ ```
14
+
15
+ Do not tell the user to use `/curdx-flow:start --resume <slice-id>`; slice
16
+ selection is by explicit spec name.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fast
3
- description: Ultra-fast execution skip all spec phases and implement directly per the description. Suited for one-shot small tasks.
3
+ description: Execute a one-shot small task without creating a spec.
4
4
  when_to_use: Use when the task is small, surgical, low-ambiguity, and not worth a full spec workflow.
5
5
  argument-hint: "\"<task description>\""
6
6
  disable-model-invocation: true
@@ -12,119 +12,51 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
12
12
  @${CLAUDE_PLUGIN_ROOT}/agent-preamble/preamble.md
13
13
  @${CLAUDE_PLUGIN_ROOT}/knowledge/atomic-commits.md
14
14
 
15
- **Fast Mode**: skip research / requirements / design / tasks, just do it.
15
+ Fast is a bypass workflow, not a replacement for the main spec pipeline. Keep
16
+ this entrypoint focused on scope gating, lightweight clarification, and the
17
+ final execution contract. Detailed fast-mode rules live in:
16
18
 
17
- ## Applicable Scenarios
19
+ - `references/applicability.md`
20
+ - `references/clarification.md`
21
+ - `references/execution-contract.md`
18
22
 
19
- - ✓ One-shot scripts (e.g., "add a CLI command that prints the version number")
20
- - ✓ Clear small changes (e.g., "swap the deprecated API in foo.ts to bar")
21
- - ✓ Single-file modifications
22
- - ✓ Bug fixes (simple types)
23
+ ## Arguments
23
24
 
24
- ## Not Applicable
25
-
26
- - ✗ Production feature development (run the full /curdx-flow:start → /curdx-flow:spec → /curdx-flow:implement)
27
- - ✗ Architecture-level changes spanning multiple files
28
- - ✗ User-story-driven requirements
29
-
30
- **Cost of using this command**: no spec files are left behind; nobody will know later why it was changed this way. If that cost is unacceptable, run the full flow.
31
-
32
- ## Step 1: Parse Input
33
-
34
- ```bash
35
- TASK_DESC="$ARGUMENTS"
36
- [ -z "$TASK_DESC" ] && { echo "Usage: /curdx-flow:fast \"task description\""; exit 1; }
37
- ```
38
-
39
- ## Step 2: 5-Question Quick Clarification (Karpathy Principle 1)
40
-
41
- Even in fast mode, do not skip thinking. Before executing, explicitly state:
25
+ `$ARGUMENTS` must contain the one-shot task description. If it is empty, stop
26
+ with the direct usage hint:
42
27
 
28
+ ```text
29
+ /curdx-flow:fast "<task description>"
43
30
  ```
44
- Quick understanding (please confirm or amend):
45
31
 
46
- 1. Task: <restate in your own words>
47
- 2. Files involved: <preliminary assessment>
48
- 3. Expected effect: <success criteria>
49
- 4. Known constraints: <if any>
50
- 5. Assumptions: <list explicitly>
32
+ ## Applicability
51
33
 
52
- Any ambiguity? (yes: amend then continue / no: proceed directly)
53
- ```
34
+ Use `references/applicability.md` to decide whether the task qualifies for the
35
+ fast path.
54
36
 
55
- Use AskUserQuestion. If the user picks `no`, go straight to Step 3.
37
+ - If the change is feature-sized, architecture-heavy, or requirement-driven,
38
+ route the user back to `/curdx-flow:start` -> `/curdx-flow:spec`
39
+ - If the task stays surgical, continue with the fast contract
56
40
 
57
- ## Step 3: Context Loading (Lightweight)
58
-
59
- ```bash
60
- # Read project's CLAUDE.md (if any) and .flow/CONTEXT.md (if any)
61
- # but do not require a flow project — fast mode is allowed in any project
62
- [ -f "CLAUDE.md" ] && cat CLAUDE.md | head -50
63
- [ -f ".flow/CONTEXT.md" ] && cat .flow/CONTEXT.md | head -30
64
- ```
65
-
66
- ## Step 4: Explore + Execute
67
-
68
- **Mandatory tool use** (do not rely on training memory):
69
-
70
- ```
71
- 1. If library/API is involved: mcp__context7__query-docs
72
- 2. Use Grep/Glob to find relevant code
73
- 3. Read files to understand the current state
74
- 4. Apply Karpathy's surgical principles
75
- 5. Run validation commands (tsc/lint/test, per project)
76
- ```
77
-
78
- ## Step 5: Atomic Commit
79
-
80
- Even in fast mode, commit (do not leave changes scattered):
81
-
82
- ```bash
83
- git add <exact files>
84
- git commit -m "<type>(<scope>): <summary>
85
-
86
- <body if any>
87
- "
88
- ```
89
-
90
- The commit message must conform to `atomic-commits.md`.
91
-
92
- ## Step 6: Output
93
-
94
- ```
95
- ✓ Fast execution complete
96
-
97
- Changes:
98
- - src/foo.ts (+3 -1)
99
- - src/foo.test.ts (+15)
100
-
101
- Verification:
102
- npm test ✓ 12/12 passed
103
- tsc --noEmit ✓
104
-
105
- Commit: abc123f — fix(foo): handle null case
106
-
107
- Consider the full flow next time?
108
- /curdx-flow:start <name> "<goal>" — if this type of task will recur
109
- ```
41
+ ## Clarification
110
42
 
111
- ## Downgrade Comparison
43
+ Run the quick clarification flow from `references/clarification.md` before
44
+ editing. This path still requires explicit assumptions; "obvious" tasks do not
45
+ skip that step.
112
46
 
113
- Fast vs Standard:
47
+ ## Execution Contract
114
48
 
115
- | Dimension | Fast | Standard |
116
- |-----------|------|----------|
117
- | Time | 5-15 minutes | 1-4 hours |
118
- | Files | No spec residue | .flow/specs/<name>/*.md |
119
- | Traceability | git log only | git log + spec docs |
120
- | Quality | Relies on agent discipline | Multi-Gate enforced |
121
- | Suited for | Simple & known | Complex / team collaboration |
49
+ Use `references/execution-contract.md` for:
122
50
 
123
- Choosing the right scenario matters more than forcing the flow.
51
+ - lightweight context loading
52
+ - mandatory code/doc lookup before edits
53
+ - surgical execution rules
54
+ - verification requirements
55
+ - atomic commit and final output shape
124
56
 
125
- ## Forbidden
57
+ ## Boundary
126
58
 
127
- - Committing without running verification
128
- - Changes touching many unrelated files or modules (means it is no longer fast — run the full flow)
129
- - Writing library APIs from memory
130
- - ✗ Skipping the Step 2 5-question clarification (even when "obvious," explicit statement still has value)
59
+ - `fast` leaves no `.flow/specs/<name>/` audit trail
60
+ - use it only when that traceability tradeoff is acceptable
61
+ - if the work starts expanding, stop treating it as `fast` and switch to the
62
+ main workflow
@@ -0,0 +1,25 @@
1
+ # Fast Applicability — When to Use and When to Abort
2
+
3
+ ## Good Fit
4
+
5
+ - one-shot scripts
6
+ - clear small changes
7
+ - single-file or tightly bounded edits
8
+ - simple bug fixes with low ambiguity
9
+
10
+ ## Not a Fit
11
+
12
+ - production feature development
13
+ - architecture-level or multi-module changes
14
+ - user-story or acceptance-criteria driven work
15
+ - anything that clearly needs spec artifacts for future traceability
16
+
17
+ ## Decision Rule
18
+
19
+ If the task no longer looks surgical after initial exploration, stop calling it
20
+ `fast` and route back to:
21
+
22
+ ```text
23
+ /curdx-flow:start <name> "<goal>"
24
+ /curdx-flow:spec
25
+ ```
@@ -0,0 +1,20 @@
1
+ # Fast Clarification — Five Quick Questions
2
+
3
+ Even in fast mode, do not skip explicit understanding.
4
+
5
+ ## Ask Before Editing
6
+
7
+ ```text
8
+ Quick understanding (please confirm or amend):
9
+
10
+ 1. Task: <restate in your own words>
11
+ 2. Files involved: <preliminary assessment>
12
+ 3. Expected effect: <success criteria>
13
+ 4. Known constraints: <if any>
14
+ 5. Assumptions: <list explicitly>
15
+
16
+ Any ambiguity? (yes: amend then continue / no: proceed directly)
17
+ ```
18
+
19
+ Use `AskUserQuestion`. If the user confirms there is no ambiguity, continue
20
+ directly to execution.
@@ -0,0 +1,56 @@
1
+ # Fast Execution Contract — Lookup, Verify, Commit
2
+
3
+ ## Lightweight Context
4
+
5
+ ```bash
6
+ [ -f "CLAUDE.md" ] && cat CLAUDE.md | head -50
7
+ [ -f ".flow/CONTEXT.md" ] && cat .flow/CONTEXT.md | head -30
8
+ ```
9
+
10
+ Fast mode may run outside a `.flow/` project. Treat `.flow/CONTEXT.md` as
11
+ optional.
12
+
13
+ ## Mandatory Tool Use
14
+
15
+ 1. If a library or API is involved: use Context7
16
+ 2. Use Grep/Glob to find the relevant code
17
+ 3. Read current files before editing
18
+ 4. Apply Karpathy's surgical principles
19
+ 5. Run validation commands before committing
20
+
21
+ ## Commit Requirement
22
+
23
+ Even in fast mode, do not leave changes scattered:
24
+
25
+ ```bash
26
+ git add <exact files>
27
+ git commit -m "<type>(<scope>): <summary>"
28
+ ```
29
+
30
+ The commit must conform to `atomic-commits.md`.
31
+
32
+ ## Output Shape
33
+
34
+ ```text
35
+ ✓ Fast execution complete
36
+
37
+ Changes:
38
+ - src/foo.ts (+3 -1)
39
+ - src/foo.test.ts (+15)
40
+
41
+ Verification:
42
+ npm test ✓
43
+ tsc --noEmit ✓
44
+
45
+ Commit: abc123f — fix(foo): handle null case
46
+
47
+ Consider the full flow next time?
48
+ /curdx-flow:start <name> "<goal>"
49
+ ```
50
+
51
+ ## Forbidden
52
+
53
+ - committing without verification
54
+ - letting the change sprawl across unrelated modules
55
+ - writing library APIs from memory
56
+ - skipping the clarification step
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: help
3
- description: Show CurdX-Flow command list, workflow overview, or troubleshooting guide. With a command name, show that command's detail.
3
+ description: Show command detail, workflow guidance, and troubleshooting.
4
4
  when_to_use: Use when the user asks how CurdX-Flow works, which command to run, what a workflow does, or how to troubleshoot common issues.
5
5
  argument-hint: "[<command-name> | workflow | troubleshoot]"
6
6
  disable-model-invocation: true
@@ -9,152 +9,46 @@ allowed-tools: [Read, Bash]
9
9
 
10
10
  # CurdX-Flow Help
11
11
 
12
- ## No argument quick overview
12
+ Keep this skill focused on menuing and discovery. The canonical quick-overview,
13
+ workflow, and troubleshooting payloads live in:
13
14
 
14
- Show the 11 core slash commands + 5 auto-invoked skills. Keep the table compact, use tabs for alignment.
15
+ - `references/dispatch.md`
16
+ - `references/overview.md`
17
+ - `references/workflow.md`
18
+ - `references/troubleshoot.md`
15
19
 
16
- ```
17
- 🚀 CurdX-Flow v2 — Claude Code Discipline Layer
18
-
19
- 11 slash commands (explicit control)
20
- ────────────────────────────────────
21
- /curdx-flow:init Initialize .flow/ in the current project
22
- /curdx-flow:start Create / resume / switch a feature spec
23
- /curdx-flow:status Show active spec, phase, task progress, recovery hints
24
- /curdx-flow:spec Write or refresh the spec (--phase, --review, --regenerate)
25
- /curdx-flow:implement Execute the tasks (auto-routed strategy)
26
- /curdx-flow:cancel Cancel execution loop safely; optional spec deletion
27
- /curdx-flow:verify Goal-backward verification — the differentiator
28
- /curdx-flow:review Two-stage code review (+ --adversarial, --edge-case)
29
- /curdx-flow:fast Skip the spec — one-shot small task
30
- /curdx-flow:debug Systematic 4-stage debugging
31
- /curdx-flow:help This help
32
-
33
- 5 skills (auto-invoked by Claude based on context)
34
- ────────────────────────────────────
35
- epic Decompose a large feature into vertical-slice sub-specs
36
- browser-qa Real-browser test via chrome-devtools MCP
37
- ui-sketch Generate UI design variants (via frontend-design skill)
38
- security-audit OWASP + STRIDE + CVE scan
39
- brownfield-index Map an unfamiliar / legacy codebase
40
-
41
- 3 MCP servers auto-installed
42
- ────────────────────────────────────
43
- context7 Latest library docs
44
- sequential-thinking Structured reasoning
45
- chrome-devtools Browser automation
46
-
47
- Usage:
48
- /curdx-flow:help <command> Detail for one command
49
- /curdx-flow:help workflow Standard workflow walkthrough
50
- /curdx-flow:help troubleshoot Common problems
51
- ```
52
-
53
- ## `<command-name>` — command detail
54
-
55
- When the argument matches a slash name — one of the 11 slash commands or one of the 5 auto-invoked skills — read the corresponding body and present it cleanly. The lookup tries the `skills/` layout first and falls back to the legacy `commands/` layout for older installed bundles:
56
-
57
- ```bash
58
- CMD="$ARGUMENTS"
59
- [ -z "$CMD" ] && { echo "Usage: /curdx-flow:help <name>"; exit 1; }
60
- if [ -f "${CLAUDE_PLUGIN_ROOT}/skills/${CMD}/SKILL.md" ]; then
61
- cat "${CLAUDE_PLUGIN_ROOT}/skills/${CMD}/SKILL.md"
62
- elif [ -f "${CLAUDE_PLUGIN_ROOT}/commands/${CMD}.md" ]; then
63
- cat "${CLAUDE_PLUGIN_ROOT}/commands/${CMD}.md"
64
- else
65
- echo "Unknown: ${CMD}"
66
- echo "Workflows: init start status spec implement cancel verify review fast debug help"
67
- echo "Skills: epic browser-qa ui-sketch security-audit brownfield-index"
68
- exit 1
69
- fi
70
- ```
71
-
72
- If the argument isn't a known slash name, the block above prints the 16 candidates.
20
+ ## No Argument — Quick Overview
73
21
 
74
- ## `workflow` standard workflow
22
+ Render the compact command/skill/MCP summary from `references/overview.md`.
75
23
 
76
- ```
77
- 📐 CurdX-Flow v2 Standard Workflow
78
-
79
- 1. One-time setup (outside Claude Code)
80
- └─ npx @curdx/flow install --all
81
-
82
- 2. Per project (in Claude Code)
83
- └─ /curdx-flow:init
24
+ ## `<command-name>` — Command Detail
84
25
 
85
- 3. Per feature the main loop
86
- ├─ /curdx-flow:start my-feature "one-line goal"
87
- ├─ /curdx-flow:status ← optional: see active spec + recovery hints
88
- ├─ /curdx-flow:spec ← research → requirements → design → tasks
89
- ├─ (optional) /curdx-flow:spec --review ← add multi-dim planning review
90
- ├─ /curdx-flow:implement ← execute tasks
91
- ├─ /curdx-flow:verify ← goal-backward check
92
- └─ /curdx-flow:review ← code review
26
+ Plugin skills are namespaced. When guiding users toward specialty skills, refer
27
+ to them as `/curdx-flow:<name>`, not bare `/name`. E.g., /curdx-flow:security-audit.
28
+ Canonical specialty paths: /curdx-flow:epic, /curdx-flow:browser-qa,
29
+ /curdx-flow:ui-sketch, /curdx-flow:security-audit, /curdx-flow:brownfield-index.
93
30
 
94
- 4. Big feature (breaks into multiple specs)
95
- └─ Say "this feature is too big, break it down" → epic skill auto-invokes
31
+ Use `references/dispatch.md` for:
96
32
 
97
- 5. One-off task (skip the spec)
98
- └─ /curdx-flow:fast "rename foo to bar in src/"
33
+ - `<command-name>` lookup against the shipped `skills/` layout
34
+ - unknown-command fallback text
35
+ - zero-argument usage guidance for detail mode
99
36
 
100
- 6. Stuck on a bug
101
- └─ /curdx-flow:debug "tests fail intermittently after 3rd run"
37
+ The canonical shipped lookup path is:
102
38
 
103
- Modes (set via /curdx-flow:start --mode=...)
104
- fast One-off task paths
105
- standard Default — spec + gates + review
106
- enterprise Standard + adversarial + edge-case + security-audit
39
+ ```text
40
+ ${CLAUDE_PLUGIN_ROOT}/skills/${CMD}/SKILL.md
107
41
  ```
108
42
 
109
- ## `troubleshoot` — common issues
110
-
111
- ```
112
- 🛠️ Common issues
43
+ ## `workflow` — Standard Workflow
113
44
 
114
- Q: After install, /curdx-flow:* commands are not found.
115
- A: Restart Claude Code. The plugin needs a fresh session to register.
45
+ Render the standard workflow from `references/workflow.md`.
116
46
 
117
- Q: MCP servers not starting?
118
- A: Check Node >= 18: node --version
119
- Check MCPs: claude mcp list
120
- Health overall: npx @curdx/flow doctor
47
+ ## `troubleshoot` Common Issues
121
48
 
122
- Q: GitHub slow / blocked during install?
123
- A: v1.1.5+ defaults to offline install (bundled plugin body).
124
- Force-offline: npx @curdx/flow install --no-deps
125
- Force-online: npx @curdx/flow install --online
126
-
127
- Q: claude-mem MCP keeps failing?
128
- A: It needs bun. Run: npx @curdx/flow doctor
129
- If doctor reports bun/uv is installed but not on PATH, run:
130
- npx @curdx/flow doctor --fix
131
-
132
- Q: /curdx-flow:init says .flow/ already exists?
133
- A: Use --force, or run /curdx-flow:start directly to begin a new spec in the existing .flow/.
134
-
135
- Q: Skills don't auto-invoke reliably?
136
- A: Invoke explicitly — plugin skills are namespaced. E.g., /curdx-flow:security-audit.
137
-
138
- Q: I want the old v1 commands (research, plan-ceo, party…).
139
- A: They're removed in v2. See MIGRATION.md for mappings, or stay on 1.x:
140
- npm i -g @curdx/flow@^1.1
141
-
142
- Q: Too many gates blocking progress?
143
- A: Your spec mode decides gate strictness. Lower via:
144
- /curdx-flow:start <name> "<goal>" --mode=fast
145
-
146
- Q: Where are decisions logged?
147
- A: .flow/STATE.md (D-NN entries). Edit directly — no slash command needed.
148
-
149
- Q: Stop-hook or execution loop seems stuck?
150
- A: Run /curdx-flow:status. If state/tasks disagree, run /curdx-flow:cancel, then resume with:
151
- /curdx-flow:implement --strategy=subagent
152
-
153
- Q: File a bug / request feature
154
- A: https://github.com/curdx/curdx-flow/issues
155
- ```
49
+ Render the troubleshooting guide from `references/troubleshoot.md`.
156
50
 
157
- ## Output principles
51
+ ## Output Principles
158
52
 
159
53
  - Keep it compact. Use tables and lists, not prose.
160
54
  - Always point at a concrete next action, not "see the docs".
@@ -0,0 +1,20 @@
1
+ # Help Dispatch — Command Detail Routing
2
+
3
+ When `$ARGUMENTS` is a command or skill name, resolve it from the shipped
4
+ plugin layout:
5
+
6
+ ```bash
7
+ CMD="$ARGUMENTS"
8
+ [ -z "$CMD" ] && { echo "Usage: /curdx-flow:help <name>"; exit 1; }
9
+ if [ -f "${CLAUDE_PLUGIN_ROOT}/skills/${CMD}/SKILL.md" ]; then
10
+ cat "${CLAUDE_PLUGIN_ROOT}/skills/${CMD}/SKILL.md"
11
+ else
12
+ echo "Unknown: ${CMD}"
13
+ echo "Workflows: init start status spec implement cancel verify review fast debug help"
14
+ echo "Skills: epic browser-qa ui-sketch security-audit brownfield-index"
15
+ exit 1
16
+ fi
17
+ ```
18
+
19
+ This lookup must stay inside `${CLAUDE_PLUGIN_ROOT}/skills/`. Do not fall back
20
+ to any removed `commands/` layout or plugin-cache globbing.
@@ -0,0 +1,39 @@
1
+ # Help Overview — Quick Surface Summary
2
+
3
+ ```text
4
+ 🚀 CurdX-Flow v2 — Claude Code Discipline Layer
5
+
6
+ 11 slash commands (explicit control)
7
+ ────────────────────────────────────
8
+ /curdx-flow:init Initialize the .flow scaffold for the current repository.
9
+ /curdx-flow:start Create, resume, list, or switch the active feature spec.
10
+ /curdx-flow:status Show active spec health, progress, artifacts, and recovery hints.
11
+ /curdx-flow:spec Generate or refresh research, requirements, design, and tasks for the active spec.
12
+ /curdx-flow:implement Execute active-spec tasks with strategy routing and atomic progress.
13
+ /curdx-flow:cancel Cancel the active execution loop or delete a spec with explicit confirmation.
14
+ /curdx-flow:verify Verify the active spec against code, tests, and browser evidence.
15
+ /curdx-flow:review Run two-stage review with optional adversarial, edge-case, and DevEx passes.
16
+ /curdx-flow:fast Execute a one-shot small task without creating a spec.
17
+ /curdx-flow:debug Debug a bug or failing test with the root-cause workflow.
18
+ /curdx-flow:help Show command detail, workflow guidance, and troubleshooting.
19
+
20
+ 5 skills (auto-invoked by Claude based on context)
21
+ ────────────────────────────────────
22
+ /curdx-flow:epic Decompose a large feature into vertical-slice sub-specs
23
+ /curdx-flow:browser-qa Real-browser test via chrome-devtools MCP
24
+ /curdx-flow:ui-sketch Generate UI design variants (via frontend-design skill)
25
+ /curdx-flow:security-audit OWASP + STRIDE + CVE scan
26
+ /curdx-flow:brownfield-index Map an unfamiliar / inherited codebase
27
+
28
+ 3 MCP servers auto-installed
29
+ ────────────────────────────────────
30
+ context7 Latest library docs
31
+ sequential-thinking Structured reasoning
32
+ chrome-devtools Browser automation
33
+
34
+ Usage:
35
+ /curdx-flow:help <command> Detail for one command
36
+ /curdx-flow:help workflow Standard workflow walkthrough
37
+ /curdx-flow:help troubleshoot Common problems
38
+ /curdx-flow:review --devex Add the DevEx lens to review
39
+ ```