@curdx/flow 1.1.4 → 1.1.5

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 (89) hide show
  1. package/.claude-plugin/marketplace.json +25 -0
  2. package/.claude-plugin/plugin.json +43 -0
  3. package/CHANGELOG.md +279 -0
  4. package/agent-preamble/preamble.md +214 -0
  5. package/agents/flow-adversary.md +216 -0
  6. package/agents/flow-architect.md +190 -0
  7. package/agents/flow-debugger.md +325 -0
  8. package/agents/flow-edge-hunter.md +273 -0
  9. package/agents/flow-executor.md +246 -0
  10. package/agents/flow-planner.md +204 -0
  11. package/agents/flow-product-designer.md +146 -0
  12. package/agents/flow-qa-engineer.md +276 -0
  13. package/agents/flow-researcher.md +155 -0
  14. package/agents/flow-reviewer.md +280 -0
  15. package/agents/flow-security-auditor.md +398 -0
  16. package/agents/flow-triage-analyst.md +290 -0
  17. package/agents/flow-ui-researcher.md +227 -0
  18. package/agents/flow-ux-designer.md +247 -0
  19. package/agents/flow-verifier.md +283 -0
  20. package/agents/persona-amelia.md +128 -0
  21. package/agents/persona-david.md +141 -0
  22. package/agents/persona-emma.md +179 -0
  23. package/agents/persona-john.md +105 -0
  24. package/agents/persona-mary.md +95 -0
  25. package/agents/persona-oliver.md +136 -0
  26. package/agents/persona-rachel.md +126 -0
  27. package/agents/persona-serena.md +175 -0
  28. package/agents/persona-winston.md +117 -0
  29. package/bin/curdx-flow.js +5 -2
  30. package/cli/install.js +44 -5
  31. package/commands/audit.md +170 -0
  32. package/commands/autoplan.md +184 -0
  33. package/commands/debug.md +199 -0
  34. package/commands/design.md +155 -0
  35. package/commands/discuss.md +162 -0
  36. package/commands/doctor.md +124 -0
  37. package/commands/fast.md +128 -0
  38. package/commands/help.md +119 -0
  39. package/commands/implement.md +381 -0
  40. package/commands/index.md +261 -0
  41. package/commands/init.md +105 -0
  42. package/commands/install-deps.md +128 -0
  43. package/commands/party.md +241 -0
  44. package/commands/plan-ceo.md +117 -0
  45. package/commands/plan-design.md +107 -0
  46. package/commands/plan-dx.md +104 -0
  47. package/commands/plan-eng.md +108 -0
  48. package/commands/qa.md +118 -0
  49. package/commands/requirements.md +146 -0
  50. package/commands/research.md +141 -0
  51. package/commands/review.md +168 -0
  52. package/commands/security.md +109 -0
  53. package/commands/sketch.md +118 -0
  54. package/commands/spec.md +135 -0
  55. package/commands/spike.md +181 -0
  56. package/commands/start.md +189 -0
  57. package/commands/status.md +139 -0
  58. package/commands/switch.md +95 -0
  59. package/commands/tasks.md +189 -0
  60. package/commands/triage.md +160 -0
  61. package/commands/verify.md +124 -0
  62. package/gates/adversarial-review-gate.md +219 -0
  63. package/gates/coverage-audit-gate.md +184 -0
  64. package/gates/devex-gate.md +255 -0
  65. package/gates/edge-case-gate.md +194 -0
  66. package/gates/karpathy-gate.md +130 -0
  67. package/gates/security-gate.md +218 -0
  68. package/gates/tdd-gate.md +188 -0
  69. package/gates/verification-gate.md +183 -0
  70. package/hooks/hooks.json +56 -0
  71. package/hooks/scripts/fail-tracker.sh +31 -0
  72. package/hooks/scripts/inject-karpathy.sh +52 -0
  73. package/hooks/scripts/quick-mode-guard.sh +64 -0
  74. package/hooks/scripts/session-start.sh +76 -0
  75. package/hooks/scripts/stop-watcher.sh +166 -0
  76. package/knowledge/atomic-commits.md +262 -0
  77. package/knowledge/epic-decomposition.md +307 -0
  78. package/knowledge/execution-strategies.md +278 -0
  79. package/knowledge/karpathy-guidelines.md +219 -0
  80. package/knowledge/planning-reviews.md +211 -0
  81. package/knowledge/poc-first-workflow.md +227 -0
  82. package/knowledge/spec-driven-development.md +183 -0
  83. package/knowledge/systematic-debugging.md +384 -0
  84. package/knowledge/two-stage-review.md +233 -0
  85. package/knowledge/wave-execution.md +387 -0
  86. package/package.json +12 -2
  87. package/schemas/config.schema.json +100 -0
  88. package/schemas/spec-frontmatter.schema.json +42 -0
  89. package/schemas/spec-state.schema.json +117 -0
@@ -0,0 +1,100 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://curdx-flow.dev/schemas/config.schema.json",
4
+ "title": "CurDX-Flow Project Config",
5
+ "description": "Schema for .flow/config.json",
6
+ "type": "object",
7
+ "required": ["version", "mode"],
8
+ "properties": {
9
+ "$schema": { "type": "string" },
10
+ "version": {
11
+ "type": "string",
12
+ "const": "1.0"
13
+ },
14
+ "mode": {
15
+ "type": "string",
16
+ "enum": ["sketch", "fast", "standard", "enterprise", "autonomous"],
17
+ "description": "Default workflow depth for this project"
18
+ },
19
+ "execution": {
20
+ "type": "object",
21
+ "properties": {
22
+ "strategy": {
23
+ "type": "string",
24
+ "enum": ["auto", "subagent", "stop-hook", "wave", "linear"],
25
+ "default": "auto"
26
+ },
27
+ "max_parallel": {
28
+ "type": "integer",
29
+ "minimum": 1,
30
+ "maximum": 20,
31
+ "default": 5
32
+ },
33
+ "subagent_threshold": {
34
+ "type": "integer",
35
+ "minimum": 1,
36
+ "default": 8,
37
+ "description": "Task count above which subagent strategy is preferred"
38
+ }
39
+ }
40
+ },
41
+ "gates": {
42
+ "type": "object",
43
+ "description": "Which quality gates to enable. Gate definitions live in gates/*.md (Phase 3)",
44
+ "properties": {
45
+ "always_on": {
46
+ "type": "array",
47
+ "items": { "type": "string" },
48
+ "default": ["karpathy-gate", "verification-gate"]
49
+ },
50
+ "standard_mode": {
51
+ "type": "array",
52
+ "items": { "type": "string" }
53
+ },
54
+ "enterprise_mode": {
55
+ "type": "array",
56
+ "items": { "type": "string" }
57
+ }
58
+ }
59
+ },
60
+ "specs": {
61
+ "type": "object",
62
+ "properties": {
63
+ "directories": {
64
+ "type": "array",
65
+ "items": { "type": "string" },
66
+ "default": ["./.flow/specs"],
67
+ "description": "Monorepo-friendly: multiple spec directories supported"
68
+ },
69
+ "default_task_size": {
70
+ "type": "string",
71
+ "enum": ["fine", "coarse"],
72
+ "default": "fine"
73
+ }
74
+ }
75
+ },
76
+ "addons": {
77
+ "type": "object",
78
+ "properties": {
79
+ "pua": {
80
+ "type": "object",
81
+ "properties": {
82
+ "enabled": { "type": "boolean", "default": false },
83
+ "style": {
84
+ "type": "string",
85
+ "enum": ["alibaba", "bytedance", "huawei", "tencent", "baidu", "pdd", "meituan", "jd", "xiaomi", "netflix", "musk", "jobs", "amazon"]
86
+ },
87
+ "auto_trigger": {
88
+ "type": "string",
89
+ "enum": ["on-failure", "always", "manual"]
90
+ }
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "created": {
96
+ "type": "string",
97
+ "format": "date"
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://curdx-flow.dev/schemas/spec-frontmatter.schema.json",
4
+ "title": "CurDX-Flow Spec Document Frontmatter",
5
+ "description": "YAML frontmatter at the top of research.md / requirements.md / design.md / tasks.md",
6
+ "type": "object",
7
+ "required": ["spec", "phase", "created", "version"],
8
+ "properties": {
9
+ "spec": {
10
+ "type": "string",
11
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
12
+ },
13
+ "phase": {
14
+ "type": "string",
15
+ "enum": ["research", "requirements", "design", "tasks"]
16
+ },
17
+ "created": {
18
+ "type": "string",
19
+ "format": "date"
20
+ },
21
+ "version": {
22
+ "type": "string",
23
+ "pattern": "^[0-9]+\\.[0-9]+$"
24
+ },
25
+ "status": {
26
+ "type": "string",
27
+ "enum": ["in_progress", "approved", "frozen", "superseded"]
28
+ },
29
+ "depends_on": {
30
+ "oneOf": [
31
+ { "type": "string" },
32
+ { "type": "array", "items": { "type": "string" } }
33
+ ],
34
+ "description": "Other spec files this one depends on (e.g. design.md depends on requirements.md)"
35
+ },
36
+ "task_size": {
37
+ "type": "string",
38
+ "enum": ["fine", "coarse"],
39
+ "description": "Only in tasks.md"
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://curdx-flow.dev/schemas/spec-state.schema.json",
4
+ "title": "CurDX-Flow Spec State",
5
+ "description": "Schema for .flow/specs/<name>/.state.json — tracks phase progress across sessions",
6
+ "type": "object",
7
+ "required": ["version", "spec_name", "phase"],
8
+ "properties": {
9
+ "version": {
10
+ "type": "string",
11
+ "const": "1.0"
12
+ },
13
+ "spec_name": {
14
+ "type": "string",
15
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
16
+ "description": "Kebab-case identifier matching the directory name"
17
+ },
18
+ "goal": {
19
+ "type": "string",
20
+ "description": "One-sentence goal from /flow-start"
21
+ },
22
+ "mode": {
23
+ "type": "string",
24
+ "enum": ["sketch", "fast", "standard", "enterprise", "autonomous"],
25
+ "default": "standard"
26
+ },
27
+ "strategy": {
28
+ "type": "string",
29
+ "enum": ["auto", "subagent", "stop-hook", "wave", "linear"],
30
+ "default": "auto"
31
+ },
32
+ "phase": {
33
+ "type": "string",
34
+ "enum": [
35
+ "research",
36
+ "requirements",
37
+ "design",
38
+ "tasks",
39
+ "execute",
40
+ "verify",
41
+ "review",
42
+ "ship",
43
+ "completed"
44
+ ]
45
+ },
46
+ "phase_status": {
47
+ "type": "object",
48
+ "properties": {
49
+ "research": { "$ref": "#/definitions/phaseStatus" },
50
+ "requirements": { "$ref": "#/definitions/phaseStatus" },
51
+ "design": { "$ref": "#/definitions/phaseStatus" },
52
+ "tasks": { "$ref": "#/definitions/phaseStatus" },
53
+ "execute": { "$ref": "#/definitions/phaseStatus" },
54
+ "verify": { "$ref": "#/definitions/phaseStatus" },
55
+ "review": { "$ref": "#/definitions/phaseStatus" },
56
+ "ship": { "$ref": "#/definitions/phaseStatus" }
57
+ }
58
+ },
59
+ "execute_state": {
60
+ "type": "object",
61
+ "description": "Runtime state for Phase 2 (execution engine, post-Phase 1)",
62
+ "properties": {
63
+ "poc_complete": { "type": "boolean" },
64
+ "refactor_complete": { "type": "boolean" },
65
+ "test_complete": { "type": "boolean" },
66
+ "quality_gate_complete": { "type": "boolean" },
67
+ "task_index": { "type": "integer", "minimum": 0 },
68
+ "total_tasks": { "type": "integer", "minimum": 0 },
69
+ "task_iteration": { "type": "integer", "minimum": 1 },
70
+ "global_iteration": { "type": "integer", "minimum": 1 },
71
+ "failed_attempts": { "type": "integer", "minimum": 0 }
72
+ }
73
+ },
74
+ "decisions": {
75
+ "type": "array",
76
+ "description": "Decisions locked in this spec (mirror of what's in STATE.md)",
77
+ "items": {
78
+ "type": "object",
79
+ "required": ["id", "decision"],
80
+ "properties": {
81
+ "id": {
82
+ "type": "string",
83
+ "pattern": "^D-[0-9]{2,}$"
84
+ },
85
+ "decision": { "type": "string" },
86
+ "rationale": { "type": "string" },
87
+ "timestamp": {
88
+ "type": "string",
89
+ "format": "date-time"
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "gates_enabled": {
95
+ "type": "array",
96
+ "items": { "type": "string" }
97
+ },
98
+ "agents_active": {
99
+ "type": "array",
100
+ "items": { "type": "string" }
101
+ },
102
+ "created": {
103
+ "type": "string",
104
+ "format": "date"
105
+ },
106
+ "updated": {
107
+ "type": "string",
108
+ "format": "date-time"
109
+ }
110
+ },
111
+ "definitions": {
112
+ "phaseStatus": {
113
+ "type": "string",
114
+ "enum": ["not_started", "in_progress", "completed", "skipped", "failed"]
115
+ }
116
+ }
117
+ }