@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.
Files changed (210) hide show
  1. package/CHANGELOG.md +21 -34
  2. package/LICENSE +1 -1
  3. package/README.md +28 -79
  4. package/dist/index.mjs +995 -0
  5. package/package.json +33 -42
  6. package/.claude-plugin/marketplace.json +0 -48
  7. package/.claude-plugin/plugin.json +0 -70
  8. package/agent-preamble/preamble.md +0 -314
  9. package/agents/flow-adversary.md +0 -202
  10. package/agents/flow-architect.md +0 -197
  11. package/agents/flow-brownfield-analyst.md +0 -142
  12. package/agents/flow-debugger.md +0 -321
  13. package/agents/flow-edge-hunter.md +0 -288
  14. package/agents/flow-executor.md +0 -269
  15. package/agents/flow-orchestrator.md +0 -145
  16. package/agents/flow-planner.md +0 -246
  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 -165
  20. package/agents/flow-reviewer.md +0 -303
  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 -229
  24. package/agents/flow-ux-designer.md +0 -221
  25. package/agents/flow-verifier.md +0 -349
  26. package/bin/curdx-flow +0 -5
  27. package/bin/curdx-flow.js +0 -54
  28. package/cli/README.md +0 -104
  29. package/cli/doctor-workflow.js +0 -483
  30. package/cli/doctor.js +0 -73
  31. package/cli/help.js +0 -59
  32. package/cli/install-bundled-mcps.js +0 -37
  33. package/cli/install-companions.js +0 -19
  34. package/cli/install-context7-config.js +0 -80
  35. package/cli/install-curdx-plugin.js +0 -96
  36. package/cli/install-language.js +0 -35
  37. package/cli/install-next-steps.js +0 -29
  38. package/cli/install-options.js +0 -9
  39. package/cli/install-paths.js +0 -52
  40. package/cli/install-recommended-plugins.js +0 -104
  41. package/cli/install-required-plugins.js +0 -57
  42. package/cli/install-self-update.js +0 -62
  43. package/cli/install-workflow.js +0 -209
  44. package/cli/install.js +0 -101
  45. package/cli/lib/claude-commands.js +0 -41
  46. package/cli/lib/claude-ops.js +0 -47
  47. package/cli/lib/claude.js +0 -183
  48. package/cli/lib/config.js +0 -24
  49. package/cli/lib/doctor-claude-settings.js +0 -1186
  50. package/cli/lib/doctor-report.js +0 -978
  51. package/cli/lib/doctor-runtime-environment.js +0 -196
  52. package/cli/lib/frontmatter.js +0 -44
  53. package/cli/lib/json-schema.js +0 -57
  54. package/cli/lib/logging.js +0 -25
  55. package/cli/lib/process.js +0 -60
  56. package/cli/lib/prompts.js +0 -135
  57. package/cli/lib/runtime.js +0 -107
  58. package/cli/lib/semver.js +0 -109
  59. package/cli/lib/version.js +0 -12
  60. package/cli/protocols-body.md +0 -22
  61. package/cli/protocols.js +0 -162
  62. package/cli/registry.js +0 -123
  63. package/cli/router.js +0 -49
  64. package/cli/uninstall-actions.js +0 -360
  65. package/cli/uninstall-workflow.js +0 -146
  66. package/cli/uninstall.js +0 -42
  67. package/cli/upgrade-workflow.js +0 -80
  68. package/cli/upgrade.js +0 -91
  69. package/cli/utils.js +0 -40
  70. package/gates/adversarial-review-gate.md +0 -219
  71. package/gates/coverage-audit-gate.md +0 -182
  72. package/gates/devex-gate.md +0 -254
  73. package/gates/edge-case-gate.md +0 -194
  74. package/gates/karpathy-gate.md +0 -130
  75. package/gates/security-gate.md +0 -218
  76. package/gates/tdd-gate.md +0 -182
  77. package/gates/test-quality-gate.md +0 -59
  78. package/gates/verification-gate.md +0 -179
  79. package/hooks/hooks.json +0 -58
  80. package/hooks/scripts/common.sh +0 -46
  81. package/hooks/scripts/inject-karpathy.sh +0 -53
  82. package/hooks/scripts/quick-mode-guard.sh +0 -68
  83. package/hooks/scripts/session-start.sh +0 -90
  84. package/hooks/scripts/stop-watcher.sh +0 -230
  85. package/hooks/scripts/subagent-artifact-guard.sh +0 -159
  86. package/hooks/scripts/subagent-statusline.sh +0 -105
  87. package/knowledge/artifact-output-discipline.md +0 -24
  88. package/knowledge/artifact-summary-contracts.md +0 -50
  89. package/knowledge/atomic-commits.md +0 -262
  90. package/knowledge/claude-code-runtime-contracts.md +0 -219
  91. package/knowledge/epic-decomposition.md +0 -307
  92. package/knowledge/execution-strategies.md +0 -303
  93. package/knowledge/karpathy-guidelines.md +0 -219
  94. package/knowledge/planning-reviews.md +0 -211
  95. package/knowledge/poc-first-workflow.md +0 -223
  96. package/knowledge/review-feedback-intake.md +0 -57
  97. package/knowledge/spec-driven-development.md +0 -180
  98. package/knowledge/systematic-debugging.md +0 -378
  99. package/knowledge/two-stage-review.md +0 -249
  100. package/knowledge/wave-execution.md +0 -403
  101. package/monitors/monitors.json +0 -8
  102. package/monitors/scripts/flow-state-monitor.sh +0 -99
  103. package/output-styles/curdx-evidence-first.md +0 -34
  104. package/schemas/agent-frontmatter.schema.json +0 -63
  105. package/schemas/config.schema.json +0 -134
  106. package/schemas/gate-frontmatter.schema.json +0 -30
  107. package/schemas/hooks.schema.json +0 -115
  108. package/schemas/output-style-frontmatter.schema.json +0 -22
  109. package/schemas/plugin-manifest.schema.json +0 -436
  110. package/schemas/plugin-settings.schema.json +0 -29
  111. package/schemas/skill-frontmatter.schema.json +0 -177
  112. package/schemas/spec-frontmatter.schema.json +0 -42
  113. package/schemas/spec-state.schema.json +0 -147
  114. package/settings.json +0 -7
  115. package/skills/brownfield-index/SKILL.md +0 -53
  116. package/skills/brownfield-index/references/applicability.md +0 -12
  117. package/skills/brownfield-index/references/handoff.md +0 -8
  118. package/skills/brownfield-index/references/index-contract.md +0 -10
  119. package/skills/browser-qa/SKILL.md +0 -39
  120. package/skills/browser-qa/references/handoff.md +0 -6
  121. package/skills/browser-qa/references/prerequisites.md +0 -10
  122. package/skills/browser-qa/references/qa-contract.md +0 -20
  123. package/skills/cancel/SKILL.md +0 -41
  124. package/skills/cancel/references/destructive-mode.md +0 -17
  125. package/skills/cancel/references/reporting.md +0 -18
  126. package/skills/cancel/references/state-recovery.md +0 -30
  127. package/skills/cancel/references/target-resolution.md +0 -7
  128. package/skills/debug/SKILL.md +0 -45
  129. package/skills/debug/references/context-gathering.md +0 -11
  130. package/skills/debug/references/failure-guard.md +0 -25
  131. package/skills/debug/references/intake.md +0 -12
  132. package/skills/debug/references/phase-workflow.md +0 -34
  133. package/skills/debug/references/reporting.md +0 -20
  134. package/skills/epic/SKILL.md +0 -39
  135. package/skills/epic/references/epic-artifacts.md +0 -20
  136. package/skills/epic/references/epic-intake.md +0 -9
  137. package/skills/epic/references/slice-handoff.md +0 -16
  138. package/skills/fast/SKILL.md +0 -62
  139. package/skills/fast/references/applicability.md +0 -25
  140. package/skills/fast/references/clarification.md +0 -20
  141. package/skills/fast/references/execution-contract.md +0 -56
  142. package/skills/help/SKILL.md +0 -55
  143. package/skills/help/references/dispatch.md +0 -20
  144. package/skills/help/references/overview.md +0 -39
  145. package/skills/help/references/troubleshoot.md +0 -47
  146. package/skills/help/references/workflow.md +0 -37
  147. package/skills/implement/SKILL.md +0 -96
  148. package/skills/implement/references/error-recovery.md +0 -36
  149. package/skills/implement/references/linear-execution.md +0 -32
  150. package/skills/implement/references/preflight.md +0 -43
  151. package/skills/implement/references/progress-contract.md +0 -32
  152. package/skills/implement/references/state-init.md +0 -33
  153. package/skills/implement/references/stop-hook-execution.md +0 -36
  154. package/skills/implement/references/strategy-router.md +0 -38
  155. package/skills/implement/references/subagent-execution.md +0 -43
  156. package/skills/implement/references/wave-execution.md +0 -162
  157. package/skills/init/SKILL.md +0 -49
  158. package/skills/init/references/gitignore-and-health.md +0 -26
  159. package/skills/init/references/next-steps.md +0 -22
  160. package/skills/init/references/preflight.md +0 -15
  161. package/skills/init/references/scaffold-contract.md +0 -27
  162. package/skills/review/SKILL.md +0 -82
  163. package/skills/review/references/optional-passes.md +0 -48
  164. package/skills/review/references/preflight.md +0 -38
  165. package/skills/review/references/report-contract.md +0 -49
  166. package/skills/review/references/reporting.md +0 -20
  167. package/skills/review/references/stage-execution.md +0 -32
  168. package/skills/security-audit/SKILL.md +0 -47
  169. package/skills/security-audit/references/audit-contract.md +0 -21
  170. package/skills/security-audit/references/gate-handoff.md +0 -8
  171. package/skills/security-audit/references/scope-and-depth.md +0 -9
  172. package/skills/spec/SKILL.md +0 -100
  173. package/skills/spec/references/artifact-landing.md +0 -31
  174. package/skills/spec/references/phase-execution.md +0 -50
  175. package/skills/spec/references/planning-review.md +0 -31
  176. package/skills/spec/references/preflight-and-routing.md +0 -46
  177. package/skills/spec/references/reporting.md +0 -21
  178. package/skills/start/SKILL.md +0 -84
  179. package/skills/start/references/branch-routing.md +0 -51
  180. package/skills/start/references/mode-semantics.md +0 -12
  181. package/skills/start/references/preflight.md +0 -13
  182. package/skills/start/references/reporting.md +0 -20
  183. package/skills/start/references/state-seeding.md +0 -44
  184. package/skills/start/references/workflow-handoff.md +0 -26
  185. package/skills/status/SKILL.md +0 -41
  186. package/skills/status/references/gather-contract.md +0 -27
  187. package/skills/status/references/health-rules.md +0 -27
  188. package/skills/status/references/output-contract.md +0 -24
  189. package/skills/status/references/preflight.md +0 -10
  190. package/skills/status/references/recovery-hints.md +0 -18
  191. package/skills/ui-sketch/SKILL.md +0 -39
  192. package/skills/ui-sketch/references/brief-intake.md +0 -10
  193. package/skills/ui-sketch/references/iteration-handoff.md +0 -5
  194. package/skills/ui-sketch/references/variant-contract.md +0 -15
  195. package/skills/verify/SKILL.md +0 -56
  196. package/skills/verify/references/evidence-workflow.md +0 -39
  197. package/skills/verify/references/output-contract.md +0 -23
  198. package/skills/verify/references/preflight.md +0 -11
  199. package/skills/verify/references/report-handoff.md +0 -35
  200. package/skills/verify/references/strict-mode.md +0 -12
  201. package/templates/CONTEXT.md.tmpl +0 -53
  202. package/templates/PROJECT.md.tmpl +0 -59
  203. package/templates/ROADMAP.md.tmpl +0 -50
  204. package/templates/STATE.md.tmpl +0 -49
  205. package/templates/config.json.tmpl +0 -51
  206. package/templates/design.md.tmpl +0 -83
  207. package/templates/progress.md.tmpl +0 -77
  208. package/templates/requirements.md.tmpl +0 -76
  209. package/templates/research.md.tmpl +0 -83
  210. package/templates/tasks.md.tmpl +0 -107
@@ -1,41 +0,0 @@
1
- ---
2
- name: status
3
- description: Show active spec health, progress, artifacts, and recovery hints.
4
- when_to_use: Use when the user asks what is active, which phase a spec is in, what artifacts exist, or how to recover from interrupted execution.
5
- argument-hint: "[--all]"
6
- disable-model-invocation: true
7
- allowed-tools: [Read, Bash, Glob]
8
- ---
9
-
10
- # CurdX-Flow Status
11
-
12
- Show a compact, read-only status summary for the current project. Keep this
13
- entrypoint focused on read-only inventory, health classification, and recovery
14
- hints. Detailed health and recovery rules live in:
15
-
16
- - `references/preflight.md`
17
- - `references/gather-contract.md`
18
- - `references/health-rules.md`
19
- - `references/recovery-hints.md`
20
- - `references/output-contract.md`
21
-
22
- ## Preconditions
23
-
24
- Use `references/preflight.md` for the project-level guard.
25
-
26
- ## Gather
27
-
28
- Use `references/gather-contract.md` for the full read-only inventory contract.
29
-
30
- ## Output Format
31
-
32
- Use `references/output-contract.md` for the compact markdown report shape.
33
-
34
- Use `references/health-rules.md` to compute `Health`, and
35
- `references/recovery-hints.md` to compute the single best next action.
36
-
37
- ## Strictness
38
-
39
- - Read-only. Do not modify files.
40
- - Do not claim a spec is complete from `.state.json` alone; compare `tasks.md`
41
- checkboxes.
@@ -1,27 +0,0 @@
1
- # Status Gather Contract — What to Read
2
-
3
- Gather read-only state in this order:
4
-
5
- 1. Read `.flow/.active-spec` if present.
6
- 2. List `.flow/specs/*/` directories.
7
- 3. For each spec, check artifacts:
8
- - `research.md`
9
- - `requirements.md`
10
- - `design.md`
11
- - `tasks.md`
12
- - `verification-report.md`
13
- - `review-report.md`
14
- 4. If `.state.json` exists, read:
15
- - `phase`
16
- - `strategy`
17
- - `phase_status`
18
- - `execute_state.task_index`
19
- - `execute_state.total_tasks`
20
- - `execute_state.failed_attempts`
21
- - `execute_state.global_iteration`
22
- 5. If `tasks.md` exists, count:
23
- - completed tasks: lines matching `- [x] **`
24
- - open tasks: lines matching `- [ ] **`
25
-
26
- Do not mutate files while gathering. `status` is an observer, not a repair
27
- workflow.
@@ -1,27 +0,0 @@
1
- # Status Health Rules — Canonical Evaluation
2
-
3
- ## `OK`
4
-
5
- Use `OK` only when:
6
-
7
- - state and tasks agree
8
- - failed attempts are zero
9
- - the current phase's expected artifact exists
10
-
11
- ## `NEEDS_ATTENTION`
12
-
13
- Use `NEEDS_ATTENTION` when any of these is true:
14
-
15
- - `.state.json` says execute complete but `tasks.md` still has open tasks
16
- - `failed_attempts > 0`
17
- - `.flow/.active-spec` points to a missing directory
18
- - the current phase's expected artifact is missing or obviously truncated
19
-
20
- ## Artifact Expectations
21
-
22
- - `research` -> `research.md`
23
- - `requirements` -> `requirements.md`
24
- - `design` -> `design.md`
25
- - `tasks` / `execute` -> `tasks.md`
26
- - `verify` -> `verification-report.md`
27
- - `review` -> `review-report.md`
@@ -1,24 +0,0 @@
1
- # Status Output Contract — Compact Read-Only Summary
2
-
3
- Render:
4
-
5
- ```markdown
6
- # CurDX-Flow Status
7
-
8
- Project: <cwd>
9
- Active spec: <name | none>
10
-
11
- ## Specs
12
-
13
- ### <spec-name> [ACTIVE]
14
- Phase: <phase | unknown>
15
- Strategy: <strategy | auto>
16
- Tasks: <done>/<total from tasks.md> checked, state cursor <task_index>/<total_tasks>
17
- Failures: <failed_attempts>, rounds: <global_iteration>
18
- Artifacts: [x] research [x] requirements [x] design [x] tasks [ ] verify [ ] review
19
- Health: OK | NEEDS_ATTENTION
20
- Recovery: <one concrete next command>
21
- ```
22
-
23
- Keep it compact and operational. Show one best recovery command, not a list of
24
- possible next steps.
@@ -1,10 +0,0 @@
1
- # Status Preflight — Project Must Exist
2
-
3
- Before reading any status signals:
4
-
5
- ```bash
6
- [ ! -d ".flow" ] && { echo "✗ Not a CurdX-Flow project. Run /curdx-flow:init first."; exit 1; }
7
- ```
8
-
9
- `status` is strictly read-only. If `.flow/` does not exist, stop immediately
10
- and route to `/curdx-flow:init`.
@@ -1,18 +0,0 @@
1
- # Status Recovery Hints — Single Best Next Command
2
-
3
- Choose one concrete recovery command, not a menu.
4
-
5
- ## Priority Rules
6
-
7
- - No `.flow/` -> `/curdx-flow:init`
8
- - No active spec -> `/curdx-flow:start <name> "<goal>"`
9
- - Missing or stale spec artifact before tasks completion -> `/curdx-flow:spec`
10
- - Tasks complete but execute not done -> `/curdx-flow:implement`
11
- - Execute complete but verification missing or failed -> `/curdx-flow:verify`
12
- - Verification complete but review missing or failed -> `/curdx-flow:review`
13
- - Stop-hook or execution parity drift -> `/curdx-flow:cancel`, then `/curdx-flow:implement --strategy=subagent`
14
-
15
- ## Constraint
16
-
17
- Do not suggest a later-stage command when an earlier missing artifact or failed
18
- phase blocks it.
@@ -1,39 +0,0 @@
1
- ---
2
- name: ui-sketch
3
- description: Use when the user needs UI design drafts, layout variants, mockups, prototypes, or styling direction.
4
- when_to_use: Triggers on "design UI", "UI design", "component layout", "variants", "wireframe", "mockup", "prototype", "sketch", "draft layout", "visual design", "styling", "CSS", "theming", "dark mode", "responsive design", "color scheme", "build me a UI", "show several variants", "try different colors".
5
- argument-hint: "\"<screen or component brief>\""
6
- context: fork
7
- agent: flow-ux-designer
8
- paths:
9
- - "**/*.{html,css,scss,sass,less,js,jsx,ts,tsx,vue,svelte,astro}"
10
- - "app/**"
11
- - "pages/**"
12
- - "components/**"
13
- - "public/**"
14
- ---
15
-
16
- # UI Sketch
17
-
18
- This skill is for design exploration, not final implementation. Keep the
19
- entrypoint focused on design-brief intake, variant output requirements, and the
20
- iteration handoff. Detailed rules live in:
21
-
22
- - `references/brief-intake.md`
23
- - `references/variant-contract.md`
24
- - `references/iteration-handoff.md`
25
-
26
- ## Design Brief
27
-
28
- Use `references/brief-intake.md` to confirm the brief before dispatching
29
- `flow-ux-designer`.
30
-
31
- ## Variant Contract
32
-
33
- The required outputs for `flow-ux-designer` and optional `flow-ui-researcher`
34
- live in `references/variant-contract.md`.
35
-
36
- ## Iteration Handoff
37
-
38
- How to pick, merge, or promote a variant lives in
39
- `references/iteration-handoff.md`.
@@ -1,10 +0,0 @@
1
- # UI Sketch Brief Intake — What to Clarify
2
-
3
- Before sketching, confirm:
4
-
5
- - what is being designed
6
- - context (consumer, enterprise, marketing, internal tool)
7
- - must-haves (brand, system, responsive constraints)
8
- - variant count
9
-
10
- If the user already provided all of this, do not over-interview.
@@ -1,5 +0,0 @@
1
- # UI Sketch Iteration Handoff — Pick, Merge, or Promote
2
-
3
- - if the user picks a variant, promote it into the active design discussion
4
- - if the user wants a hybrid, rerun with an explicit merge instruction
5
- - treat sketches as exploratory assets, not shipped implementation by default
@@ -1,15 +0,0 @@
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.
@@ -1,56 +0,0 @@
1
- ---
2
- name: verify
3
- description: Verify the active spec against code, tests, and browser evidence.
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
- argument-hint: "[--strict]"
6
- disable-model-invocation: true
7
- context: fork
8
- agent: flow-verifier
9
- ---
10
-
11
- # Goal-Backward Verification
12
-
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
-
17
- - `references/preflight.md`
18
- - `references/evidence-workflow.md`
19
- - `references/strict-mode.md`
20
- - `references/output-contract.md`
21
- - `references/report-handoff.md`
22
-
23
- ## Arguments
24
-
25
- `$ARGUMENTS` optionally includes `--strict`.
26
-
27
- ## Preflight
28
-
29
- Use `references/preflight.md` for the project-level guard.
30
-
31
- ## Evidence Scope
32
-
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.
36
-
37
- ## Strict Mode
38
-
39
- If `$ARGUMENTS` contains `--strict`, also apply the multi-source audit from
40
- `references/strict-mode.md`.
41
-
42
- ## Deliverables and Gate
43
-
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`.
49
-
50
- Apply `@${CLAUDE_PLUGIN_ROOT}/gates/verification-gate.md` before returning a
51
- PASS verdict.
52
-
53
- ## Output to User
54
-
55
- Use `references/output-contract.md` for the final compact response. Next-step
56
- routing is defined in `references/report-handoff.md`.
@@ -1,39 +0,0 @@
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
@@ -1,23 +0,0 @@
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.
@@ -1,11 +0,0 @@
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.
@@ -1,35 +0,0 @@
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
@@ -1,12 +0,0 @@
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.
@@ -1,53 +0,0 @@
1
- # {{PROJECT_NAME}} — User Preferences and Decisions
2
-
3
- > CurDX-Flow Context — your coding, design, and interaction preferences. Agents read this to understand your taste.
4
-
5
- ---
6
-
7
- ## Code Style Preferences
8
-
9
- - **Indentation**: <!-- 2 spaces / 4 spaces / Tab -->
10
- - **Quotes**: <!-- single / double -->
11
- - **Semicolons**: <!-- always / never / asi -->
12
- - **Naming**: <!-- camelCase / snake_case / PascalCase -->
13
- - **Comment density**: <!-- minimal / when non-obvious / generous -->
14
-
15
- ## Architecture Preferences
16
-
17
- - **Error handling**: <!-- try/catch / Result type / panics -->
18
- - **Async pattern**: <!-- async/await / promises / callbacks -->
19
- - **Dependency injection**: <!-- constructor / service locator / none -->
20
- - **Testing style**: <!-- TDD / test-after / integration-heavy -->
21
-
22
- ## UI/UX Preferences
23
-
24
- - **Design style**: <!-- minimalist / brutalist / corporate / playful -->
25
- - **Color scheme**: <!-- light / dark / auto / specific palette -->
26
- - **Typography**: <!-- system / Inter / Space Grotesk / other -->
27
- - **Density**: <!-- spacious / compact / mixed -->
28
- - **Animation**: <!-- none / purposeful / expressive -->
29
-
30
- ## Communication Preferences
31
-
32
- - **Language**: <!-- Simplified Chinese / English / bilingual -->
33
- - **Verbosity**: <!-- terse / balanced / verbose -->
34
- - **Explanation depth**: <!-- surface / mechanism / first-principles -->
35
- - **When to ask**: <!-- ask at any fork / only on major decisions / be autonomous -->
36
-
37
- ## Tooling Preferences
38
-
39
- - **Package manager**: <!-- npm / pnpm / yarn / bun -->
40
- - **Runtime**: <!-- node / bun / deno -->
41
- - **Test framework**: <!-- vitest / jest / other -->
42
- - **Linter**: <!-- eslint / biome / other -->
43
- - **Commit convention**: <!-- conventional / gitmoji / free -->
44
-
45
- ## Special Requirements
46
-
47
- <!-- Rules specific to this project -->
48
-
49
- - TODO:
50
-
51
- ---
52
-
53
- _Generated by `/curdx-flow:init` on {{CREATED_DATE}}. Update to match your actual preferences._
@@ -1,59 +0,0 @@
1
- # {{PROJECT_NAME}}
2
-
3
- > CurDX-Flow project vision — 500 lines max, loaded on every session
4
-
5
- ---
6
-
7
- ## One-line Description
8
-
9
- <!-- In one sentence, state what this project is, for whom, and what problem it solves -->
10
-
11
- TODO: fill in the one-line description of the project
12
-
13
- ## Why This Project Exists
14
-
15
- <!-- Background, motivation, pain points to solve -->
16
-
17
- TODO:
18
-
19
- ## Core Users
20
-
21
- <!-- Who will use it? Their typical scenarios? -->
22
-
23
- TODO:
24
-
25
- ## Success Criteria
26
-
27
- <!-- 3-5 verifiable metrics (e.g. "first response < 100ms", "weekly active users > 1000") -->
28
-
29
- 1. TODO:
30
- 2. TODO:
31
- 3. TODO:
32
-
33
- ## Tech Stack (with Rationale)
34
-
35
- <!-- Write the reasoning for each choice to avoid future second-guessing -->
36
-
37
- | Layer | Choice | Rationale |
38
- |---|-----|------|
39
- | Frontend | TODO | TODO |
40
- | Backend | TODO | TODO |
41
- | Database | TODO | TODO |
42
- | Deployment | TODO | TODO |
43
-
44
- ## Out of Scope (Scope Guard)
45
-
46
- <!-- Explicitly list what does not belong in this project, to prevent scope creep -->
47
-
48
- - ✗ TODO:
49
- - ✗ TODO:
50
-
51
- ## Constraints
52
-
53
- <!-- Budget, time, team size, compliance, etc. -->
54
-
55
- - TODO:
56
-
57
- ---
58
-
59
- _Generated by `/curdx-flow:init` on {{CREATED_DATE}}. Maintainer: {{USER_NAME}}_
@@ -1,50 +0,0 @@
1
- # {{PROJECT_NAME}} — Roadmap
2
-
3
- > CurDX-Flow ROADMAP — phase plan and success criteria. Works alongside `.flow/specs/*`: ROADMAP sets direction, specs handle concrete implementation.
4
-
5
- ---
6
-
7
- ## Current Version: v0.1 (MVP)
8
-
9
- **Goal**: <!-- one sentence -->
10
-
11
- TODO: describe the minimum viable product to deliver in v0.1.
12
-
13
- ### Success Criteria (v0.1)
14
-
15
- <!-- Must be verifiable -->
16
-
17
- - [ ] TODO:
18
- - [ ] TODO:
19
- - [ ] TODO:
20
-
21
- ### Phases
22
-
23
- <!-- List in development order -->
24
-
25
- #### Phase 1 — TODO
26
- - Goal:
27
- - Related spec: `specs/<name>`
28
- - Completion criteria:
29
-
30
- #### Phase 2 — TODO
31
- - Goal:
32
- - Completion criteria:
33
-
34
- ---
35
-
36
- ## Next Version: v0.2
37
-
38
- **Theme**: TODO
39
-
40
- No details yet.
41
-
42
- ---
43
-
44
- ## Vision (12 months)
45
-
46
- TODO: describe what this project should look like one year from now.
47
-
48
- ---
49
-
50
- _Initialized on {{CREATED_DATE}}. The roadmap is a statement of intent, not a commitment._
@@ -1,49 +0,0 @@
1
- # {{PROJECT_NAME}} — Cross-Session State
2
-
3
- > CurDX-Flow STATE — explicit decision log + important context. Agents read this file at the start of every session.
4
- >
5
- > Division of labor with claude-mem: claude-mem captures everything automatically; STATE.md only records **decisions you and the agent explicitly agreed on**.
6
-
7
- ---
8
-
9
- ## Key Decisions
10
-
11
- <!--
12
- Format: D-NN | YYYY-MM-DD | decision | why
13
- Once a decision is recorded, subsequent agents must explicitly note "I challenge D-NN" before violating it.
14
- -->
15
-
16
- <!-- Example (delete on init):
17
- - **D-01** | 2026-04-19 | Use JWT instead of session cookie | Support cross-origin SPA
18
- - **D-02** | 2026-04-19 | bcrypt cost factor = 12 | Balance 10K QPS performance with security
19
- -->
20
-
21
- No decisions yet.
22
-
23
- ## Blockers
24
-
25
- <!-- Items currently blocking progress, and who/what is being waited on -->
26
-
27
- No blockers.
28
-
29
- ## Open Questions
30
-
31
- <!-- Questions that need user answers or investigation -->
32
-
33
- None yet.
34
-
35
- ## Important Context
36
-
37
- <!-- Long-standing context the agent should remember, not quite at "decision" level -->
38
-
39
- None yet.
40
-
41
- ## Milestones
42
-
43
- <!-- Project-level major milestones -->
44
-
45
- None yet.
46
-
47
- ---
48
-
49
- _Initialized on {{CREATED_DATE}}. This file will grow as the project evolves._
@@ -1,51 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/wdx/curdx-flow/main/schemas/config.schema.json",
3
- "version": "1.0",
4
- "mode": "standard",
5
- "_mode_options": "fast | standard | enterprise",
6
-
7
- "execution": {
8
- "strategy": "auto",
9
- "_strategy_options": "auto | subagent | stop-hook | wave | linear",
10
- "max_parallel": 5,
11
- "subagent_threshold": 8,
12
- "wave_fail_policy": "continue-on-single",
13
- "recovery_mode": "manual",
14
- "_recovery_mode_options": "manual | fix-task",
15
- "max_fix_tasks_per_original": 2
16
- },
17
-
18
- "gates": {
19
- "always_on": [
20
- "karpathy-gate",
21
- "verification-gate"
22
- ],
23
- "standard_mode": [
24
- "tdd-gate",
25
- "coverage-audit-gate"
26
- ],
27
- "enterprise_mode": [
28
- "adversarial-review-gate",
29
- "edge-case-gate",
30
- "security-gate",
31
- "devex-gate"
32
- ]
33
- },
34
-
35
- "specs": {
36
- "directories": ["./.flow/specs"],
37
- "default_task_size": "fine",
38
- "_task_size_hint": "as-needed decomposition (no fixed count) — see agents/flow-planner.md"
39
- },
40
-
41
- "addons": {
42
- "pua": {
43
- "enabled": false,
44
- "style": "alibaba",
45
- "_style_options": "alibaba | bytedance | huawei | tencent | baidu | pdd | meituan | jd | xiaomi | netflix | musk | jobs | amazon",
46
- "auto_trigger": "on-failure"
47
- }
48
- },
49
-
50
- "created": "{{CREATED_DATE}}"
51
- }