cc-devflow 2.5.0 → 4.1.1

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 (192) hide show
  1. package/.claude/CLAUDE.md +1065 -53
  2. package/.claude/agents/dev-implementer.md +195 -0
  3. package/.claude/commands/{flow-archive.md → flow/archive.md} +46 -11
  4. package/.claude/commands/flow/context.md +150 -0
  5. package/.claude/commands/flow/delta.md +245 -0
  6. package/.claude/commands/{flow-dev.md → flow/dev.md} +112 -11
  7. package/.claude/commands/flow/init.md +45 -0
  8. package/.claude/commands/flow/new.md +279 -0
  9. package/.claude/commands/flow/quality.md +159 -0
  10. package/.claude/commands/flow/spec.md +186 -0
  11. package/.claude/commands/flow/workspace.md +146 -0
  12. package/.claude/commands/{cancel-ralph.md → util/cancel-ralph.md} +1 -0
  13. package/.claude/config/quality-gates.yml +305 -0
  14. package/.claude/docs/guides/TEAM_MODE_GUIDE.md +313 -0
  15. package/.claude/docs/templates/DELTA_SPEC_TEMPLATE.md +91 -0
  16. package/.claude/docs/templates/DESIGN_DECISIONS_TEMPLATE.md +151 -0
  17. package/.claude/docs/templates/JOURNAL_TEMPLATE.md +75 -0
  18. package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +51 -91
  19. package/.claude/docs/templates/_shared/CLAUDE.md +36 -0
  20. package/.claude/docs/templates/_shared/CONSTITUTION_CHECK.md +125 -0
  21. package/.claude/docs/templates/_shared/VALIDATION_CHECKLIST.md +187 -0
  22. package/.claude/docs/templates/_shared/YAML_FRONTMATTER.md +164 -0
  23. package/.claude/docs/templates/context/dev.jsonl.template +6 -0
  24. package/.claude/docs/templates/context/epic.jsonl.template +5 -0
  25. package/.claude/docs/templates/context/prd.jsonl.template +4 -0
  26. package/.claude/docs/templates/context/research.jsonl.template +4 -0
  27. package/.claude/docs/templates/context/review.jsonl.template +5 -0
  28. package/.claude/docs/templates/context/tech.jsonl.template +5 -0
  29. package/.claude/hooks/CLAUDE.md +342 -0
  30. package/.claude/hooks/inject-agent-context.ts +480 -0
  31. package/.claude/hooks/inject-skill-context.ts +359 -0
  32. package/.claude/hooks/ralph-loop.ts +931 -0
  33. package/.claude/hooks/task-completed-hook.ts +593 -0
  34. package/.claude/hooks/teammate-idle-hook.ts +690 -0
  35. package/.claude/hooks/types/team-types.d.ts +238 -0
  36. package/.claude/rules/devflow-conventions.md +82 -9
  37. package/.claude/scripts/archive-requirement.sh +44 -1
  38. package/.claude/scripts/common.sh +670 -3
  39. package/.claude/scripts/delta-parser.ts +527 -0
  40. package/.claude/scripts/detect-file-conflicts.sh +151 -0
  41. package/.claude/scripts/flow-context-add.sh +134 -0
  42. package/.claude/scripts/flow-context-init.sh +133 -0
  43. package/.claude/scripts/flow-context-validate.sh +144 -0
  44. package/.claude/scripts/flow-delta-apply.sh +297 -0
  45. package/.claude/scripts/flow-delta-archive.sh +71 -0
  46. package/.claude/scripts/flow-delta-create.sh +202 -0
  47. package/.claude/scripts/flow-delta-list.sh +142 -0
  48. package/.claude/scripts/flow-delta-status.sh +235 -0
  49. package/.claude/scripts/flow-quality-full.sh +184 -0
  50. package/.claude/scripts/flow-quality-quick.sh +64 -0
  51. package/.claude/scripts/flow-workspace-init.sh +117 -0
  52. package/.claude/scripts/flow-workspace-record.sh +164 -0
  53. package/.claude/scripts/flow-workspace-start.sh +88 -0
  54. package/.claude/scripts/get-workflow-status.sh +415 -0
  55. package/.claude/scripts/parse-task-dependencies.js +334 -0
  56. package/.claude/scripts/record-quality-error.sh +165 -0
  57. package/.claude/scripts/run-quality-gates.sh +242 -0
  58. package/.claude/scripts/team-dev-init.sh +319 -0
  59. package/.claude/scripts/team-state-recovery.sh +229 -0
  60. package/.claude/scripts/workflow-status.ts +433 -0
  61. package/.claude/settings.json +19 -0
  62. package/.claude/skills/cc-devflow-orchestrator/SKILL.md +85 -200
  63. package/.claude/skills/domain/using-git-worktrees/SKILL.md +252 -0
  64. package/.claude/skills/domain/using-git-worktrees/assets/SHELL_ALIASES.md +133 -0
  65. package/.claude/skills/domain/using-git-worktrees/context.jsonl +4 -0
  66. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-cleanup.sh +218 -0
  67. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-create.sh +232 -0
  68. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-list.sh +130 -0
  69. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-status.sh +140 -0
  70. package/.claude/skills/domain/using-git-worktrees/scripts/worktree-switch.sh +70 -0
  71. package/.claude/skills/utility/skill-creator/LICENSE.txt +202 -0
  72. package/.claude/skills/utility/skill-creator/SKILL.md +356 -0
  73. package/.claude/skills/utility/skill-creator/references/output-patterns.md +82 -0
  74. package/.claude/skills/utility/skill-creator/references/workflows.md +28 -0
  75. package/.claude/skills/utility/skill-creator/scripts/init_skill.py +303 -0
  76. package/.claude/skills/utility/skill-creator/scripts/package_skill.py +110 -0
  77. package/.claude/skills/utility/skill-creator/scripts/quick_validate.py +95 -0
  78. package/.claude/skills/workflow/flow-dev/CLAUDE.md +78 -0
  79. package/.claude/skills/workflow/flow-dev/SKILL.md +96 -0
  80. package/.claude/skills/workflow/flow-dev/assets/IMPLEMENTATION_PLAN_TEMPLATE.md +71 -0
  81. package/.claude/skills/workflow/flow-dev/context.jsonl +8 -0
  82. package/.claude/skills/workflow/flow-dev/dev-implementer.jsonl +8 -0
  83. package/.claude/skills/workflow/flow-dev/scripts/entry-gate.sh +116 -0
  84. package/.claude/skills/workflow/flow-dev/scripts/exit-gate.sh +101 -0
  85. package/.claude/skills/workflow/flow-dev/scripts/task-orchestrator.sh +106 -0
  86. package/.claude/skills/workflow/flow-fix/SKILL.md +105 -0
  87. package/.claude/skills/workflow/flow-fix/context.jsonl +6 -0
  88. package/.claude/skills/workflow/flow-fix/references/bug-analyzer.md +381 -0
  89. package/.claude/skills/workflow/flow-init/SKILL.md +211 -0
  90. package/.claude/skills/workflow/flow-init/assets/BRAINSTORM_TEMPLATE.md +148 -0
  91. package/.claude/skills/workflow/flow-init/assets/INIT_FLOW_TEMPLATE.md +198 -0
  92. package/.claude/skills/workflow/flow-init/assets/RESEARCH_TEMPLATE.md +276 -0
  93. package/.claude/skills/workflow/flow-init/context.jsonl +5 -0
  94. package/.claude/skills/workflow/flow-init/references/flow-researcher.md +132 -0
  95. package/.claude/skills/workflow/flow-init/scripts/check-prerequisites.sh +240 -0
  96. package/.claude/skills/workflow/flow-init/scripts/consolidate-research.sh +182 -0
  97. package/.claude/skills/workflow/flow-init/scripts/create-requirement.sh +523 -0
  98. package/.claude/skills/workflow/flow-init/scripts/generate-research-tasks.sh +157 -0
  99. package/.claude/skills/workflow/flow-init/scripts/populate-research-tasks.sh +284 -0
  100. package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +340 -0
  101. package/.claude/skills/workflow/flow-quality/SKILL.md +94 -0
  102. package/.claude/skills/workflow/flow-quality/context.jsonl +6 -0
  103. package/.claude/skills/workflow/flow-quality/references/code-quality-reviewer.md +205 -0
  104. package/.claude/skills/workflow/flow-quality/references/qa-tester.md +313 -0
  105. package/.claude/skills/workflow/flow-quality/references/security-reviewer.md +314 -0
  106. package/.claude/skills/workflow/flow-quality/references/spec-reviewer.md +221 -0
  107. package/.claude/skills/workflow/flow-release/SKILL.md +126 -0
  108. package/.claude/skills/workflow/flow-release/context.jsonl +7 -0
  109. package/.claude/skills/workflow/flow-release/references/release-manager.md +295 -0
  110. package/.claude/skills/workflow/flow-spec/CLAUDE.md +103 -0
  111. package/.claude/skills/workflow/flow-spec/SKILL.md +545 -0
  112. package/.claude/skills/workflow/flow-spec/context.jsonl +7 -0
  113. package/.claude/skills/workflow/flow-spec/scripts/entry-gate.sh +194 -0
  114. package/.claude/skills/workflow/flow-spec/scripts/exit-gate.sh +244 -0
  115. package/.claude/skills/workflow/flow-spec/scripts/parallel-orchestrator.sh +205 -0
  116. package/.claude/skills/workflow/flow-spec/scripts/team-communication.sh +353 -0
  117. package/.claude/skills/workflow/flow-spec/scripts/team-init.sh +195 -0
  118. package/.claude/skills/workflow/flow-spec/scripts/test-team-mode.sh +496 -0
  119. package/.claude/skills/workflow/flow-spec/team-config.json +165 -0
  120. package/.claude/skills/workflow.yaml +417 -0
  121. package/CHANGELOG.md +268 -0
  122. package/README.md +206 -50
  123. package/README.zh-CN.md +219 -57
  124. package/lib/compiler/CLAUDE.md +77 -46
  125. package/lib/compiler/__tests__/multi-module-emitters.test.js +508 -0
  126. package/lib/compiler/context-expander.js +179 -0
  127. package/lib/compiler/emitters/antigravity-emitter.js +195 -5
  128. package/lib/compiler/emitters/base-emitter.js +217 -2
  129. package/lib/compiler/emitters/codex-emitter.js +200 -4
  130. package/lib/compiler/emitters/cursor-emitter.js +307 -3
  131. package/lib/compiler/emitters/qwen-emitter.js +196 -4
  132. package/lib/compiler/index.js +197 -2
  133. package/lib/compiler/platforms.js +270 -21
  134. package/package.json +2 -2
  135. package/.claude/commands/flow-epic.md +0 -183
  136. package/.claude/commands/flow-init.md +0 -370
  137. package/.claude/commands/flow-new.md +0 -442
  138. package/.claude/commands/flow-prd.md +0 -144
  139. package/.claude/commands/flow-qa.md +0 -93
  140. package/.claude/commands/flow-review.md +0 -257
  141. package/.claude/commands/flow-tech.md +0 -142
  142. package/.claude/commands/flow-ui.md +0 -189
  143. package/.claude/skills/file-header-guardian/SKILL.md +0 -56
  144. package/.claude/skills/skill-developer/ADVANCED.md +0 -197
  145. package/.claude/skills/skill-developer/HOOK_MECHANISMS.md +0 -306
  146. package/.claude/skills/skill-developer/PATTERNS_LIBRARY.md +0 -152
  147. package/.claude/skills/skill-developer/SKILL.md +0 -426
  148. package/.claude/skills/skill-developer/SKILL_RULES_REFERENCE.md +0 -315
  149. package/.claude/skills/skill-developer/TRIGGER_TYPES.md +0 -305
  150. package/.claude/skills/skill-developer/TROUBLESHOOTING.md +0 -514
  151. package/.claude/skills/writing-skills/SKILL.md +0 -655
  152. package/.claude/skills/writing-skills/anthropic-best-practices.md +0 -1150
  153. package/.claude/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
  154. package/.claude/skills/writing-skills/graphviz-conventions.dot +0 -172
  155. package/.claude/skills/writing-skills/persuasion-principles.md +0 -187
  156. package/.claude/skills/writing-skills/render-graphs.js +0 -168
  157. package/.claude/skills/writing-skills/testing-skills-with-subagents.md +0 -384
  158. package/.claude/tsc-cache/795ba6e3-b98a-423b-bab2-51aa62812569/affected-repos.txt +0 -1
  159. package/.claude/tsc-cache/ae335694-be5a-4ba4-a1a0-b676c09a7906/affected-repos.txt +0 -1
  160. /package/.claude/commands/{core-architecture.md → core/architecture.md} +0 -0
  161. /package/.claude/commands/{core-guidelines.md → core/guidelines.md} +0 -0
  162. /package/.claude/commands/{core-roadmap.md → core/roadmap.md} +0 -0
  163. /package/.claude/commands/{core-style.md → core/style.md} +0 -0
  164. /package/.claude/commands/{flow-checklist.md → flow/checklist.md} +0 -0
  165. /package/.claude/commands/{flow-clarify.md → flow/clarify.md} +0 -0
  166. /package/.claude/commands/{flow-constitution.md → flow/constitution.md} +0 -0
  167. /package/.claude/commands/{flow-fix.md → flow/fix.md} +0 -0
  168. /package/.claude/commands/{flow-ideate.md → flow/ideate.md} +0 -0
  169. /package/.claude/commands/{flow-release.md → flow/release.md} +0 -0
  170. /package/.claude/commands/{flow-restart.md → flow/restart.md} +0 -0
  171. /package/.claude/commands/{flow-status.md → flow/status.md} +0 -0
  172. /package/.claude/commands/{flow-update.md → flow/update.md} +0 -0
  173. /package/.claude/commands/{flow-upgrade.md → flow/upgrade.md} +0 -0
  174. /package/.claude/commands/{flow-verify.md → flow/verify.md} +0 -0
  175. /package/.claude/commands/{code-review-high.md → util/code-review.md} +0 -0
  176. /package/.claude/commands/{git-commit.md → util/git-commit.md} +0 -0
  177. /package/.claude/commands/{problem-analyzer.md → util/problem-analyzer.md} +0 -0
  178. /package/.claude/skills/{flow-attention-refresh → domain/attention-refresh}/SKILL.md +0 -0
  179. /package/.claude/skills/{flow-brainstorming → domain/brainstorming}/SKILL.md +0 -0
  180. /package/.claude/skills/{flow-debugging → domain/debugging}/SKILL.md +0 -0
  181. /package/.claude/skills/{flow-finishing-branch → domain/finishing-branch}/SKILL.md +0 -0
  182. /package/.claude/skills/{flow-receiving-review → domain/receiving-review}/SKILL.md +0 -0
  183. /package/.claude/skills/{flow-tdd → domain/tdd}/SKILL.md +0 -0
  184. /package/.claude/skills/{verification-before-completion → domain/verification}/SKILL.md +0 -0
  185. /package/.claude/skills/{constitution-guardian → guardrail/constitution-guardian}/SKILL.md +0 -0
  186. /package/.claude/skills/{devflow-tdd-enforcer → guardrail/tdd-enforcer}/SKILL.md +0 -0
  187. /package/.claude/skills/{devflow-constitution-quick-ref → utility/constitution-quick-ref}/SKILL.md +0 -0
  188. /package/.claude/skills/{devflow-file-standards → utility/file-standards}/SKILL.md +0 -0
  189. /package/.claude/skills/{fractal-docs-generator → utility/fractal-docs}/SKILL.md +0 -0
  190. /package/.claude/skills/{journey-coherence-checker → utility/journey-checker}/SKILL.md +0 -0
  191. /package/.claude/skills/{journey-coherence-checker → utility/journey-checker}/pressure-scenarios.md +0 -0
  192. /package/.claude/skills/{npm-release → utility/npm-release}/SKILL.md +0 -0
package/README.md CHANGED
@@ -31,6 +31,9 @@ Complete automated workflow from PRD generation to code delivery with `/flow-new
31
31
  - 📜 **Constitution** - 10 Articles governing quality, security, and architecture
32
32
  - 🔄 **Autonomous Development** - Ralph × Manus Integration for memory-enhanced continuous iteration
33
33
  - 🔌 **Multi-Platform Support** - Compile workflows for Codex, Cursor, Qwen, Antigravity via `npm run adapt`
34
+ - 🔄 **Multi-Module Compiler** - Full module compilation: skills, commands, agents, rules, hooks
35
+ - 🌿 **Git Worktree Integration** - Parallel development with isolated worktrees for 3-5 concurrent Claude sessions
36
+ - 🤝 **Claude Team Integration** - Multi-agent parallel collaboration with automatic task scheduling and conflict detection
34
37
 
35
38
  ---
36
39
 
@@ -73,28 +76,37 @@ export SKIP_TDD_ENFORCER=1
73
76
  📚 [Complete Hooks Documentation](docs/guides/hooks-system.md)
74
77
  </details>
75
78
 
76
- ### Skills System
79
+ ### Skills System (v4.0 Skills-First Architecture)
77
80
 
78
- Intelligent knowledge base activation, auto-recommending relevant domain knowledge.
81
+ Intelligent knowledge base activation with grouped Skills and automatic context injection.
79
82
 
80
83
  <details>
81
84
  <summary>📖 Skills Details (Click to Expand)</summary>
82
85
 
83
- **Available Skills**:
86
+ **Skills-First Architecture** (v4.0):
84
87
 
85
- | Skill | Type | Trigger Scenarios |
86
- |-------|------|-------------------|
87
- | `cc-devflow-orchestrator` | domain | Requirement management, process guidance |
88
- | `devflow-tdd-enforcer` | guardrail | Editing TASKS.md |
89
- | `constitution-guardian` | guardrail | Editing PRD/EPIC/TASKS |
90
- | `devflow-file-standards` | domain | File naming, directory structure |
91
- | `skill-developer` | domain | Skill development, Hook system |
88
+ ```
89
+ .claude/skills/
90
+ ├── workflow.yaml # Skill dependency graph (OpenSpec-inspired)
91
+ ├── workflow/ # 9 Workflow Skills (flow-init, flow-spec, flow-dev, etc.)
92
+ ├── domain/ # 7 Domain Skills (tdd, debugging, brainstorming)
93
+ ├── guardrail/ # 3 Guardrail Skills (constitution-guardian, tdd-enforcer)
94
+ └── utility/ # 8 Utility Skills (npm-release, skill-creator)
95
+ ```
96
+
97
+ **Key Skills by Category**:
98
+
99
+ | Category | Skills | Purpose |
100
+ |----------|--------|---------|
101
+ | **Workflow** | flow-init, flow-spec, flow-dev, flow-quality, flow-release | Core development workflow |
102
+ | **Domain** | tdd, debugging, brainstorming, verification | Domain expertise |
103
+ | **Guardrail** | constitution-guardian, tdd-enforcer | Real-time compliance |
104
+ | **Utility** | npm-release, skill-creator, writing-skills | Development tools |
92
105
 
93
- **Trigger Mechanisms**:
94
- 1. **Keyword Trigger** - Input contains specific keywords
95
- 2. **Intent Matching** - Regex matching user intent
96
- 3. **File Trigger** - Editing specific path files
97
- 4. **Content Matching** - File content matches specific patterns
106
+ **Context Injection** (Trellis-inspired):
107
+ - Each Skill has `context.jsonl` defining required context files
108
+ - `inject-skill-context.ts` hook auto-loads context before Skill execution
109
+ - Variable substitution: `{REQ}` actual requirement ID
98
110
 
99
111
  📚 [Complete Skills Documentation](docs/guides/skills-system.md)
100
112
  </details>
@@ -250,13 +262,13 @@ bash .claude/tests/constitution/run_all_constitution_tests.sh
250
262
  |---------|---------|---------------|---------------|
251
263
  | `/flow-new` | 🎯 Start New Requirement | `/flow-new "REQ-123\|Feature"` | [→](docs/commands/flow-new.md) |
252
264
  | `/flow-init` | 📦 Initialize Requirement | `/flow-init "REQ-123\|Feature"` | [→](docs/commands/flow-init.md) |
253
- | `/flow-clarify` | 🔎 Clarify Ambiguities | `/flow-clarify "REQ-123"` | [→](.claude/commands/flow-clarify.md) |
254
- | `/flow-checklist` | Requirement Quality Check | `/flow-checklist --type ux` | [→](.claude/commands/flow-checklist.md) |
255
- | `/flow-review` | �� Two-Stage Code Review | `/flow-review "REQ-123"` | [→](.claude/commands/flow-review.md) |
256
- | `/flow-fix` | 🐛 Systematic Bug Fix | `/flow-fix "BUG-123\|Description"` | [→](.claude/commands/flow-fix.md) |
257
- | `/flow-verify` | 🔍 Verify Consistency | `/flow-verify "REQ-123"` | [→](docs/commands/flow-verify.md) |
258
- | `/flow-qa` | 🧪 Quality Assurance | `/flow-qa "REQ-123"` | [→](docs/commands/flow-qa.md) |
259
- | `/flow-release` | 🚢 Create Release | `/flow-release "REQ-123"` | [→](docs/commands/flow-release.md) |
265
+ | `/flow-clarify` | 🔎 Clarify Ambiguities | `/flow-clarify "REQ-123"` | [→](.claude/commands/flow/clarify.md) |
266
+ | `/flow-spec` | 📋 Unified Specification (v4.1) | `/flow-spec "REQ-123"` | [→](.claude/commands/flow/spec.md) |
267
+ | `/flow-checklist` | Requirement Quality Check | `/flow-checklist --type ux` | [→](.claude/commands/flow/checklist.md) |
268
+ | `/flow-quality` | Combined Quality Verification | `/flow-quality "REQ-123" --full` | [→](.claude/commands/flow/quality.md) |
269
+ | `/flow-fix` | 🐛 Systematic Bug Fix | `/flow-fix "BUG-123\|Description"` | [→](.claude/commands/flow/fix.md) |
270
+ | `/flow-verify` | 🔍 Verify Consistency | `/flow-verify "REQ-123"` | [→](.claude/commands/flow/verify.md) |
271
+ | `/flow-release` | 🚢 Create Release | `/flow-release "REQ-123"` | [→](.claude/commands/flow/release.md) |
260
272
 
261
273
  📚 [Complete Command Reference](docs/commands/README.md)
262
274
 
@@ -275,7 +287,7 @@ Your Scenario:
275
287
  ├─ Continue interrupted development? → /flow-restart "REQ-123"
276
288
  ├─ Check development progress? → /flow-status REQ-123
277
289
  ├─ Found document inconsistencies? → /flow-verify "REQ-123"
278
- ├─ Development complete, need testing? → /flow-qa "REQ-123"
290
+ ├─ Development complete, need verification? → /flow-quality "REQ-123" --full
279
291
  ├─ Fix production bug? → /flow-fix "BUG-001|Description"
280
292
  └─ Ready to release? → /flow-release "REQ-123"
281
293
  ```
@@ -304,23 +316,14 @@ graph TB
304
316
  ReqLevel([Requirement-Level Development]) --> FlowInit["/flow-init<br/>research.md & BRAINSTORM.md"]
305
317
 
306
318
  FlowInit --> FlowClarify["/flow-clarify<br/>clarifications/*.md<br/>Optional"]
307
- FlowClarify --> FlowPRD["/flow-prd<br/>PRD.md<br/>BRAINSTORM alignment"]
308
- FlowInit -.->|Skip clarify| FlowPRD
309
- FlowPRD --> FlowChecklist["/flow-checklist<br/>checklists/*.md<br/>80% Gate"]
310
- FlowPRD --> FlowTech["/flow-tech<br/>TECH_DESIGN.md & data-model"]
311
- FlowPRD --> FlowUI["/flow-ui<br/>UI_PROTOTYPE.html<br/>Optional"]
319
+ FlowClarify --> FlowSpec["/flow-spec (v4.1)<br/>PRD → Tech+UI (parallel) → Epic<br/>Unified specification phase"]
320
+ FlowInit -.->|Skip clarify| FlowSpec
312
321
 
313
- FlowChecklist --> FlowEpic
314
- FlowTech --> FlowEpic["/flow-epic<br/>EPIC.md & TASKS.md<br/>bite-sized tasks"]
315
- FlowUI --> FlowEpic
322
+ FlowSpec --> FlowDev["/flow-dev<br/>TASKS.md execution<br/>TDD Checkpoint"]
316
323
 
317
- FlowEpic --> FlowDev["/flow-dev<br/>TASKS.md execution<br/>TDD Checkpoint"]
324
+ FlowDev --> FlowQuality["/flow-quality<br/>Quick/Full Verification<br/>Spec + Quality + Security"]
318
325
 
319
- FlowDev --> FlowReview["/flow-review<br/>Two-Stage Review<br/>Spec → Quality"]
320
-
321
- FlowReview --> FlowQA["/flow-qa<br/>QA reports & Security"]
322
-
323
- FlowQA --> FlowRelease["/flow-release<br/>PR creation<br/>Branch decision"]
326
+ FlowQuality --> FlowRelease["/flow-release<br/>PR creation<br/>Branch decision"]
324
327
 
325
328
  FlowRelease --> FlowVerify["/flow-verify<br/>Consistency check"]
326
329
 
@@ -332,14 +335,9 @@ graph TB
332
335
  style ReqLevel fill:#fff4e1
333
336
  style FlowInit fill:#e8f5e9
334
337
  style FlowClarify fill:#fff9c4
335
- style FlowPRD fill:#e8f5e9
336
- style FlowChecklist fill:#ffe0b2
337
- style FlowTech fill:#e8f5e9
338
- style FlowUI fill:#fff9c4
339
- style FlowEpic fill:#e8f5e9
338
+ style FlowSpec fill:#e8f5e9
340
339
  style FlowDev fill:#f3e5f5
341
- style FlowReview fill:#e1bee7
342
- style FlowQA fill:#fce4ec
340
+ style FlowQuality fill:#e1bee7
343
341
  style FlowRelease fill:#e0f2f1
344
342
  style FlowVerify fill:#e3f2fd
345
343
  ```
@@ -347,10 +345,10 @@ graph TB
347
345
  **Workflow Notes**:
348
346
  - **Project-Level Commands** (light blue): Execute once at project initialization, establish global standards (SSOT)
349
347
  - **Requirement-Level Commands** (light orange): Execute once per requirement (REQ-XXX)
348
+ - **Unified /flow-spec** (v4.1): Replaces flow-prd/flow-tech/flow-ui/flow-epic with parallel execution
350
349
  - **Brainstorming** (v2.3.0): `/flow-init` now generates `BRAINSTORM.md` as requirement "North Star"
351
- - **Two-Stage Review** (v2.3.0): `/flow-review` validates Spec Compliance before Code Quality
352
- - **Optional Steps** (yellow): `/flow-clarify` and `/flow-ui` are optional; clarify can be skipped if requirements are clear
353
- - **Quality Gate** (orange): `/flow-checklist` validates requirement quality with 80% completion threshold before `/flow-epic`
350
+ - **Unified Quality Verification** (v3.0.0): `/flow-quality --full` combines spec compliance, code quality, and security
351
+ - **Optional Steps** (yellow): `/flow-clarify` is optional; skip if requirements are clear
354
352
  - **TDD Checkpoint** (v2.3.0): `/flow-dev` includes mandatory TDD checkpoint (tests must FAIL first)
355
353
  - **Quality Gates**: Each stage has entry/exit gates ensuring document quality and Constitution compliance
356
354
  - **Consistency Check**: `/flow-verify` can be called at any stage to ensure document consistency
@@ -496,7 +494,165 @@ bash .claude/tests/run-all-tests.sh --scripts
496
494
 
497
495
  ## 📝 Version History
498
496
 
499
- ### v2.3.0 (2026-01-08) - Latest Release
497
+ ### v4.7.0 (2026-02-07) - Latest Release
498
+
499
+ **🤝 Claude Team Integration: Multi-Agent Parallel Collaboration**
500
+
501
+ v4.7.0 introduces Claude Team integration for multi-agent parallel development:
502
+
503
+ - **Team Mode for /flow-dev** - Parallel task execution with multiple agents
504
+ - `--team` flag enables Team mode (default 3 agents)
505
+ - `--agents N` specifies agent count (2-5)
506
+ - Automatic task dependency analysis and conflict detection
507
+ - File conflict tasks assigned to same agent for sequential execution
508
+
509
+ - **New Hooks** - Team lifecycle management
510
+ - `TeammateIdle Hook` - Task assignment and scheduling
511
+ - `TaskCompleted Hook` - Quality verification on completion
512
+ - Timeout detection and alerting
513
+
514
+ - **Task Dependency Parser** - Intelligent task analysis
515
+ - `parse-task-dependencies.js` - Parses TASKS.md format
516
+ - Recognizes `[P]` parallel markers, `[US*]` user story groups
517
+ - Phase-based dependency resolution
518
+
519
+ - **State Recovery** - Checkpoint and resume
520
+ - `team-state-recovery.sh` - Snapshot and restore Team state
521
+ - Support for interrupted session recovery
522
+
523
+ - **New Files**
524
+ - `.claude/scripts/parse-task-dependencies.js` - Task parser
525
+ - `.claude/scripts/detect-file-conflicts.sh` - Conflict detection
526
+ - `.claude/scripts/team-dev-init.sh` - Dev team initialization
527
+ - `.claude/scripts/team-state-recovery.sh` - State recovery
528
+ - `.claude/docs/guides/TEAM_MODE_GUIDE.md` - Complete usage guide
529
+
530
+ **📊 v4.7 Improvements**:
531
+ | Metric | Before | After | Improvement |
532
+ |--------|--------|-------|-------------|
533
+ | Parallel agents | 1 | 3-5 | +400% |
534
+ | Requirement completion time | 90 min | 50 min | -45% |
535
+ | Task scheduling | Manual | Automatic | 100% |
536
+ | Quality verification | Single-point | Distributed | 100% |
537
+
538
+ ### v4.3.0 (2026-02-07)
539
+
540
+ **🌿 Git Worktree Integration: Parallel Development Support**
541
+
542
+ v4.3.0 introduces Git Worktree integration for parallel development with isolated Claude Code sessions:
543
+
544
+ - **Git Worktree Mode (Default)** - Isolated development environments
545
+ - Creates `../repo-name-REQ-xxx/` worktree directories
546
+ - Each worktree has independent Claude Code session
547
+ - Switch between requirements with `cd` instead of `git checkout`
548
+ - `--branch-only` flag for traditional branch mode
549
+
550
+ - **New Skill: using-git-worktrees** - Complete worktree management
551
+ - `worktree-create.sh` - Create new worktree
552
+ - `worktree-list.sh` - List all worktrees
553
+ - `worktree-switch.sh` - Switch to worktree
554
+ - `worktree-cleanup.sh` - Clean up merged worktrees
555
+ - Shell aliases template (za/zl/zm/zw)
556
+
557
+ - **Modified Commands**
558
+ - `/flow-init` - Default worktree mode, `--branch-only` for compatibility
559
+ - `/flow-release` - Automatic worktree cleanup
560
+
561
+ **📊 v4.3 Improvements**:
562
+ | Metric | Before | After | Improvement |
563
+ |--------|--------|-------|-------------|
564
+ | Parallel requirements | 1 | 3-5 | +400% |
565
+ | Context switch time | 30s | 1s | -97% |
566
+ | Session isolation | None | Full | 100% |
567
+
568
+ ### v4.1.0 (2026-02-07)
569
+
570
+ **🎯 Unified Specification Phase: /flow-spec Command**
571
+
572
+ v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow-spec` command with parallel execution:
573
+
574
+ - **Unified /flow-spec Command** - One command for entire specification phase
575
+ - Full Mode: PRD → Tech + UI (parallel) → Epic/Tasks
576
+ - Quick Mode: `--skip-tech --skip-ui` for small requirements
577
+ - Backend Only: `--skip-ui`
578
+ - Frontend Only: `--skip-tech`
579
+
580
+ - **Parallel Agent Execution** - Tech + UI agents run concurrently
581
+ - ~35% time reduction in design phase
582
+ - Shared template components in `_shared/` directory
583
+
584
+ - **Simplified Workflows** (v4.1)
585
+ ```
586
+ Quick (3 steps): /flow-init --quick → /flow-spec --skip-tech --skip-ui → /flow-dev → /flow-release
587
+ Standard (4 steps): /flow-init → /flow-spec → /flow-dev → /flow-quality → /flow-release
588
+ Full (5 steps): /flow-init → /flow-clarify → /flow-spec → /flow-dev → /flow-quality --full → /flow-release
589
+ ```
590
+
591
+ - **Deprecations**: `/flow-prd`, `/flow-tech`, `/flow-ui`, `/flow-epic` now deprecated (use `/flow-spec`)
592
+
593
+ **📊 v4.1 Improvements**:
594
+ | Metric | Before (v4.0) | After (v4.1) | Improvement |
595
+ |--------|---------------|--------------|-------------|
596
+ | Command calls | 4 | 1 | -75% |
597
+ | Design phase time | 8-12 min | 5-8 min | -35% |
598
+ | Entry/Exit Gate code | ~280 lines | ~100 lines | -64% |
599
+
600
+ ### v4.0.0 (2026-02-07)
601
+
602
+ **🏗️ Skills-First Architecture: Unified Skills with Context Injection**
603
+
604
+ v4.0.0 introduces a major architectural refactor, reorganizing 135 files into a unified Skills-First Architecture inspired by Trellis and OpenSpec:
605
+
606
+ - **Skills-First Architecture** - All Skills organized into 4 groups
607
+ - `workflow/`: 9 core workflow Skills (flow-init, flow-spec, flow-dev, etc.)
608
+ - `domain/`: 7 domain expertise Skills (tdd, debugging, brainstorming, verification)
609
+ - `guardrail/`: 3 real-time compliance Skills (constitution-guardian, tdd-enforcer)
610
+ - `utility/`: 8 development tool Skills (npm-release, skill-creator, writing-skills)
611
+
612
+ - **JSONL Context Injection** (Trellis-inspired)
613
+ - Each Skill has `context.jsonl` defining required context files
614
+ - `inject-skill-context.ts` hook auto-loads context before Skill execution
615
+ - Variable substitution: `{REQ}` replaced with actual requirement ID
616
+ - Optional files supported with `"optional": true`
617
+
618
+ - **workflow.yaml Dependency Graph** (OpenSpec-inspired)
619
+ - Defines Skill dependencies with `requires` and `generates`
620
+ - File existence state detection for workflow status
621
+ - Clear visualization of Skill execution order
622
+
623
+ - **Self-Contained Skills**
624
+ - Each Skill directory contains: SKILL.md + context.jsonl + scripts/ + references/ + assets/
625
+ - SKILL.md limited to <500 lines for focused instructions
626
+ - Agent instructions moved to `references/` subdirectory
627
+ - Templates moved to `assets/` subdirectory
628
+
629
+ - **Multi-Module Cross-Platform Compiler** (v3.0)
630
+ - Complete multi-module compilation: skills, commands, agents, rules, hooks
631
+ - Platform-specific output formats:
632
+ - **Codex**: `.codex/skills/`, `.codex/prompts/`, `AGENTS.md`
633
+ - **Cursor**: `.cursor/rules/*.mdc`, `.cursor/subagents/`, `hooks.json`
634
+ - **Qwen**: `.qwen/commands/*.toml`, `.qwen/agents/`, `CONTEXT.md`
635
+ - **Antigravity**: `.agent/skills/`, `.agent/workflows/`, `.agent/rules/`
636
+ - `context.jsonl` compilation-time expansion with platform-specific formats
637
+ - 197 tests passing (24 new multi-module tests)
638
+
639
+ **📊 v4.0 Improvements**:
640
+ | Metric | Before | After | Improvement |
641
+ |--------|--------|-------|-------------|
642
+ | Maintenance points | 4 directories | 1 directory | -75% |
643
+ | Context loading | Manual full load | On-demand auto | -70% tokens |
644
+ | Dependency visibility | Implicit | Explicit (workflow.yaml) | +100% |
645
+ | Platform module support | Commands only | All modules | +400% |
646
+
647
+ **📁 New Files**:
648
+ - `.claude/skills/workflow.yaml` - Skill dependency graph
649
+ - `.claude/hooks/inject-skill-context.ts` - Context injection hook
650
+ - `.claude/skills/workflow/*/context.jsonl` - Per-Skill context definitions
651
+ - `devflow/spec/{frontend,backend,shared}/index.md` - Specification indexes
652
+ - `lib/compiler/context-expander.js` - Context.jsonl expansion module
653
+ - `lib/compiler/__tests__/multi-module-emitters.test.js` - Multi-module tests
654
+
655
+ ### v2.3.0 (2026-01-08)
500
656
 
501
657
  **🛡️ Discipline System: Iron Law + Rationalization Defense + Pressure Testing**
502
658
 
@@ -553,7 +709,7 @@ v2.3.0 upgrades the Constitution from a "document" to an "executable discipline
553
709
  - Cross-reference to `rationalization-library.md`
554
710
 
555
711
  **📁 New Files**:
556
- - `.claude/commands/cancel-ralph.md` - Cancel Ralph loop command
712
+ - `.claude/commands/util/cancel-ralph.md` - Cancel Ralph loop command
557
713
  - `.claude/skills/flow-attention-refresh/SKILL.md` - 4 attention refresh protocols
558
714
  - `.claude/hooks/ralph-stop-hook.sh` - Stop Hook for self-referential loops
559
715
  - `.claude/hooks/hooks.json` - Hook registration configuration
@@ -562,7 +718,7 @@ v2.3.0 upgrades the Constitution from a "document" to an "executable discipline
562
718
  - `.claude/docs/templates/ATTEMPT_TEMPLATE.md` - Research attempt log format
563
719
  - `.claude/agents/spec-reviewer.md` - Stage 1 spec compliance reviewer
564
720
  - `.claude/agents/code-quality-reviewer.md` - Stage 2 code quality reviewer
565
- - `.claude/commands/flow-review.md` - Two-stage review command
721
+ - `.claude/commands/flow-review.md` - Two-stage review command (legacy, replaced by `.claude/commands/flow/quality.md`)
566
722
  - `.claude/rules/rationalization-library.md` - Centralized rationalization defense
567
723
  - `.claude/scripts/verify-gate.sh` - Exit gate verification script
568
724
  - `.claude/skills/flow-brainstorming/` - Brainstorming skill