cc-devflow 2.4.6 → 4.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.
- package/.claude/CLAUDE.md +1065 -48
- package/.claude/agents/dev-implementer.md +195 -0
- package/.claude/commands/{flow-archive.md → flow/archive.md} +46 -11
- package/.claude/commands/flow/context.md +150 -0
- package/.claude/commands/flow/delta.md +245 -0
- package/.claude/commands/{flow-dev.md → flow/dev.md} +112 -11
- package/.claude/commands/flow/init.md +45 -0
- package/.claude/commands/flow/quality.md +159 -0
- package/.claude/commands/flow/spec.md +186 -0
- package/.claude/commands/flow/workspace.md +146 -0
- package/.claude/commands/{cancel-ralph.md → util/cancel-ralph.md} +1 -0
- package/.claude/config/quality-gates.yml +305 -0
- package/.claude/docs/guides/TEAM_MODE_GUIDE.md +313 -0
- package/.claude/docs/templates/DELTA_SPEC_TEMPLATE.md +91 -0
- package/.claude/docs/templates/DESIGN_DECISIONS_TEMPLATE.md +151 -0
- package/.claude/docs/templates/JOURNAL_TEMPLATE.md +75 -0
- package/.claude/docs/templates/_shared/CLAUDE.md +36 -0
- package/.claude/docs/templates/_shared/CONSTITUTION_CHECK.md +125 -0
- package/.claude/docs/templates/_shared/VALIDATION_CHECKLIST.md +187 -0
- package/.claude/docs/templates/_shared/YAML_FRONTMATTER.md +164 -0
- package/.claude/docs/templates/context/dev.jsonl.template +6 -0
- package/.claude/docs/templates/context/epic.jsonl.template +5 -0
- package/.claude/docs/templates/context/prd.jsonl.template +4 -0
- package/.claude/docs/templates/context/research.jsonl.template +4 -0
- package/.claude/docs/templates/context/review.jsonl.template +5 -0
- package/.claude/docs/templates/context/tech.jsonl.template +5 -0
- package/.claude/hooks/CLAUDE.md +342 -0
- package/.claude/hooks/inject-agent-context.ts +480 -0
- package/.claude/hooks/inject-skill-context.ts +359 -0
- package/.claude/hooks/ralph-loop.ts +931 -0
- package/.claude/hooks/task-completed-hook.ts +593 -0
- package/.claude/hooks/teammate-idle-hook.ts +690 -0
- package/.claude/hooks/types/team-types.d.ts +238 -0
- package/.claude/rules/devflow-conventions.md +82 -9
- package/.claude/scripts/archive-requirement.sh +44 -1
- package/.claude/scripts/common.sh +670 -3
- package/.claude/scripts/delta-parser.ts +527 -0
- package/.claude/scripts/detect-file-conflicts.sh +151 -0
- package/.claude/scripts/flow-context-add.sh +134 -0
- package/.claude/scripts/flow-context-init.sh +133 -0
- package/.claude/scripts/flow-context-validate.sh +144 -0
- package/.claude/scripts/flow-delta-apply.sh +297 -0
- package/.claude/scripts/flow-delta-archive.sh +71 -0
- package/.claude/scripts/flow-delta-create.sh +202 -0
- package/.claude/scripts/flow-delta-list.sh +142 -0
- package/.claude/scripts/flow-delta-status.sh +235 -0
- package/.claude/scripts/flow-quality-full.sh +184 -0
- package/.claude/scripts/flow-quality-quick.sh +64 -0
- package/.claude/scripts/flow-workspace-init.sh +117 -0
- package/.claude/scripts/flow-workspace-record.sh +164 -0
- package/.claude/scripts/flow-workspace-start.sh +88 -0
- package/.claude/scripts/get-workflow-status.sh +415 -0
- package/.claude/scripts/parse-task-dependencies.js +334 -0
- package/.claude/scripts/record-quality-error.sh +165 -0
- package/.claude/scripts/run-quality-gates.sh +242 -0
- package/.claude/scripts/team-dev-init.sh +319 -0
- package/.claude/scripts/team-state-recovery.sh +229 -0
- package/.claude/scripts/workflow-status.ts +433 -0
- package/.claude/settings.json +19 -0
- package/.claude/skills/cc-devflow-orchestrator/SKILL.md +85 -200
- package/.claude/skills/domain/using-git-worktrees/SKILL.md +252 -0
- package/.claude/skills/domain/using-git-worktrees/assets/SHELL_ALIASES.md +133 -0
- package/.claude/skills/domain/using-git-worktrees/context.jsonl +4 -0
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-cleanup.sh +218 -0
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-create.sh +232 -0
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-list.sh +130 -0
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-status.sh +140 -0
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-switch.sh +70 -0
- package/.claude/skills/skill-rules.json +72 -1
- package/.claude/skills/utility/journey-checker/SKILL.md +199 -0
- package/.claude/skills/utility/journey-checker/pressure-scenarios.md +164 -0
- package/.claude/skills/utility/skill-creator/LICENSE.txt +202 -0
- package/.claude/skills/utility/skill-creator/SKILL.md +356 -0
- package/.claude/skills/utility/skill-creator/references/output-patterns.md +82 -0
- package/.claude/skills/utility/skill-creator/references/workflows.md +28 -0
- package/.claude/skills/utility/skill-creator/scripts/init_skill.py +303 -0
- package/.claude/skills/utility/skill-creator/scripts/package_skill.py +110 -0
- package/.claude/skills/utility/skill-creator/scripts/quick_validate.py +95 -0
- package/.claude/skills/workflow/flow-dev/CLAUDE.md +78 -0
- package/.claude/skills/workflow/flow-dev/SKILL.md +96 -0
- package/.claude/skills/workflow/flow-dev/assets/IMPLEMENTATION_PLAN_TEMPLATE.md +71 -0
- package/.claude/skills/workflow/flow-dev/context.jsonl +8 -0
- package/.claude/skills/workflow/flow-dev/dev-implementer.jsonl +8 -0
- package/.claude/skills/workflow/flow-dev/scripts/entry-gate.sh +116 -0
- package/.claude/skills/workflow/flow-dev/scripts/exit-gate.sh +101 -0
- package/.claude/skills/workflow/flow-dev/scripts/task-orchestrator.sh +106 -0
- package/.claude/skills/workflow/flow-fix/SKILL.md +105 -0
- package/.claude/skills/workflow/flow-fix/context.jsonl +6 -0
- package/.claude/skills/workflow/flow-fix/references/bug-analyzer.md +381 -0
- package/.claude/skills/workflow/flow-init/SKILL.md +211 -0
- package/.claude/skills/workflow/flow-init/assets/BRAINSTORM_TEMPLATE.md +148 -0
- package/.claude/skills/workflow/flow-init/assets/INIT_FLOW_TEMPLATE.md +198 -0
- package/.claude/skills/workflow/flow-init/assets/RESEARCH_TEMPLATE.md +276 -0
- package/.claude/skills/workflow/flow-init/context.jsonl +5 -0
- package/.claude/skills/workflow/flow-init/references/flow-researcher.md +132 -0
- package/.claude/skills/workflow/flow-init/scripts/check-prerequisites.sh +232 -0
- package/.claude/skills/workflow/flow-init/scripts/consolidate-research.sh +182 -0
- package/.claude/skills/workflow/flow-init/scripts/create-requirement.sh +515 -0
- package/.claude/skills/workflow/flow-init/scripts/generate-research-tasks.sh +157 -0
- package/.claude/skills/workflow/flow-init/scripts/populate-research-tasks.sh +284 -0
- package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +332 -0
- package/.claude/skills/workflow/flow-quality/SKILL.md +94 -0
- package/.claude/skills/workflow/flow-quality/context.jsonl +6 -0
- package/.claude/skills/workflow/flow-quality/references/code-quality-reviewer.md +205 -0
- package/.claude/skills/workflow/flow-quality/references/qa-tester.md +313 -0
- package/.claude/skills/workflow/flow-quality/references/security-reviewer.md +314 -0
- package/.claude/skills/workflow/flow-quality/references/spec-reviewer.md +221 -0
- package/.claude/skills/workflow/flow-release/SKILL.md +126 -0
- package/.claude/skills/workflow/flow-release/context.jsonl +7 -0
- package/.claude/skills/workflow/flow-release/references/release-manager.md +295 -0
- package/.claude/skills/workflow/flow-spec/CLAUDE.md +103 -0
- package/.claude/skills/workflow/flow-spec/SKILL.md +545 -0
- package/.claude/skills/workflow/flow-spec/context.jsonl +7 -0
- package/.claude/skills/workflow/flow-spec/scripts/entry-gate.sh +194 -0
- package/.claude/skills/workflow/flow-spec/scripts/exit-gate.sh +244 -0
- package/.claude/skills/workflow/flow-spec/scripts/parallel-orchestrator.sh +205 -0
- package/.claude/skills/workflow/flow-spec/scripts/team-communication.sh +353 -0
- package/.claude/skills/workflow/flow-spec/scripts/team-init.sh +195 -0
- package/.claude/skills/workflow/flow-spec/scripts/test-team-mode.sh +496 -0
- package/.claude/skills/workflow/flow-spec/team-config.json +165 -0
- package/.claude/skills/workflow.yaml +417 -0
- package/CHANGELOG.md +254 -0
- package/README.md +193 -33
- package/README.zh-CN.md +206 -46
- package/lib/compiler/CLAUDE.md +77 -46
- package/lib/compiler/__tests__/multi-module-emitters.test.js +508 -0
- package/lib/compiler/context-expander.js +179 -0
- package/lib/compiler/emitters/antigravity-emitter.js +195 -5
- package/lib/compiler/emitters/base-emitter.js +217 -2
- package/lib/compiler/emitters/codex-emitter.js +200 -4
- package/lib/compiler/emitters/cursor-emitter.js +307 -3
- package/lib/compiler/emitters/qwen-emitter.js +196 -4
- package/lib/compiler/index.js +197 -2
- package/lib/compiler/platforms.js +270 -21
- package/package.json +1 -1
- package/.claude/commands/flow-epic.md +0 -183
- package/.claude/commands/flow-init.md +0 -370
- package/.claude/commands/flow-prd.md +0 -144
- package/.claude/commands/flow-qa.md +0 -93
- package/.claude/commands/flow-review.md +0 -257
- package/.claude/commands/flow-tech.md +0 -142
- package/.claude/commands/flow-ui.md +0 -189
- package/.claude/skills/file-header-guardian/SKILL.md +0 -56
- package/.claude/skills/skill-developer/ADVANCED.md +0 -197
- package/.claude/skills/skill-developer/HOOK_MECHANISMS.md +0 -306
- package/.claude/skills/skill-developer/PATTERNS_LIBRARY.md +0 -152
- package/.claude/skills/skill-developer/SKILL.md +0 -426
- package/.claude/skills/skill-developer/SKILL_RULES_REFERENCE.md +0 -315
- package/.claude/skills/skill-developer/TRIGGER_TYPES.md +0 -305
- package/.claude/skills/skill-developer/TROUBLESHOOTING.md +0 -514
- package/.claude/skills/writing-skills/SKILL.md +0 -655
- package/.claude/skills/writing-skills/anthropic-best-practices.md +0 -1150
- package/.claude/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
- package/.claude/skills/writing-skills/graphviz-conventions.dot +0 -172
- package/.claude/skills/writing-skills/persuasion-principles.md +0 -187
- package/.claude/skills/writing-skills/render-graphs.js +0 -168
- package/.claude/skills/writing-skills/testing-skills-with-subagents.md +0 -384
- package/.claude/tsc-cache/795ba6e3-b98a-423b-bab2-51aa62812569/affected-repos.txt +0 -1
- package/.claude/tsc-cache/ae335694-be5a-4ba4-a1a0-b676c09a7906/affected-repos.txt +0 -1
- /package/.claude/commands/{core-architecture.md → core/architecture.md} +0 -0
- /package/.claude/commands/{core-guidelines.md → core/guidelines.md} +0 -0
- /package/.claude/commands/{core-roadmap.md → core/roadmap.md} +0 -0
- /package/.claude/commands/{core-style.md → core/style.md} +0 -0
- /package/.claude/commands/{flow-checklist.md → flow/checklist.md} +0 -0
- /package/.claude/commands/{flow-clarify.md → flow/clarify.md} +0 -0
- /package/.claude/commands/{flow-constitution.md → flow/constitution.md} +0 -0
- /package/.claude/commands/{flow-fix.md → flow/fix.md} +0 -0
- /package/.claude/commands/{flow-ideate.md → flow/ideate.md} +0 -0
- /package/.claude/commands/{flow-new.md → flow/new.md} +0 -0
- /package/.claude/commands/{flow-release.md → flow/release.md} +0 -0
- /package/.claude/commands/{flow-restart.md → flow/restart.md} +0 -0
- /package/.claude/commands/{flow-status.md → flow/status.md} +0 -0
- /package/.claude/commands/{flow-update.md → flow/update.md} +0 -0
- /package/.claude/commands/{flow-upgrade.md → flow/upgrade.md} +0 -0
- /package/.claude/commands/{flow-verify.md → flow/verify.md} +0 -0
- /package/.claude/commands/{code-review-high.md → util/code-review.md} +0 -0
- /package/.claude/commands/{git-commit.md → util/git-commit.md} +0 -0
- /package/.claude/commands/{problem-analyzer.md → util/problem-analyzer.md} +0 -0
- /package/.claude/skills/{flow-attention-refresh → domain/attention-refresh}/SKILL.md +0 -0
- /package/.claude/skills/{flow-brainstorming → domain/brainstorming}/SKILL.md +0 -0
- /package/.claude/skills/{flow-debugging → domain/debugging}/SKILL.md +0 -0
- /package/.claude/skills/{flow-finishing-branch → domain/finishing-branch}/SKILL.md +0 -0
- /package/.claude/skills/{flow-receiving-review → domain/receiving-review}/SKILL.md +0 -0
- /package/.claude/skills/{flow-tdd → domain/tdd}/SKILL.md +0 -0
- /package/.claude/skills/{verification-before-completion → domain/verification}/SKILL.md +0 -0
- /package/.claude/skills/{constitution-guardian → guardrail/constitution-guardian}/SKILL.md +0 -0
- /package/.claude/skills/{devflow-tdd-enforcer → guardrail/tdd-enforcer}/SKILL.md +0 -0
- /package/.claude/skills/{devflow-constitution-quick-ref → utility/constitution-quick-ref}/SKILL.md +0 -0
- /package/.claude/skills/{devflow-file-standards → utility/file-standards}/SKILL.md +0 -0
- /package/.claude/skills/{fractal-docs-generator → utility/fractal-docs}/SKILL.md +0 -0
- /package/.claude/skills/{npm-release → utility/npm-release}/SKILL.md +0 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# CC-DevFlow Workflow Schema v5.0.0 (借鉴 OpenSpec schema.yaml)
|
|
3
|
+
# =============================================================================
|
|
4
|
+
# 声明式依赖图,支持:
|
|
5
|
+
# 1. 文件存在性状态检测(通过 generates 路径)
|
|
6
|
+
# 2. 依赖关系验证(通过 requires 数组)
|
|
7
|
+
# 3. 上下文注入(通过 context.jsonl)
|
|
8
|
+
# 4. 向后兼容(fallback 到 orchestration_status.json)
|
|
9
|
+
#
|
|
10
|
+
# [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
|
|
11
|
+
# =============================================================================
|
|
12
|
+
|
|
13
|
+
name: cc-devflow
|
|
14
|
+
version: "5.0.0"
|
|
15
|
+
description: CC-DevFlow 声明式工作流 Schema
|
|
16
|
+
|
|
17
|
+
# =============================================================================
|
|
18
|
+
# 工件定义 (Artifacts)
|
|
19
|
+
# =============================================================================
|
|
20
|
+
# 每个工件代表工作流中的一个产出物,包含:
|
|
21
|
+
# - id: 唯一标识符
|
|
22
|
+
# - generates: 输出文件路径(支持 {REQ} 占位符)
|
|
23
|
+
# - requires: 依赖的工件 ID 列表
|
|
24
|
+
# - skill: 生成此工件的 Skill
|
|
25
|
+
# - optional: 是否可选(默认 false)
|
|
26
|
+
# - glob: 是否使用 glob 模式检测(默认 false)
|
|
27
|
+
# - instruction: 生成指令(可选)
|
|
28
|
+
|
|
29
|
+
artifacts:
|
|
30
|
+
# ---------------------------------------------------------------------------
|
|
31
|
+
# 项目级工件 (执行一次)
|
|
32
|
+
# ---------------------------------------------------------------------------
|
|
33
|
+
- id: roadmap
|
|
34
|
+
generates: devflow/ROADMAP.md
|
|
35
|
+
requires: []
|
|
36
|
+
skill: core-roadmap
|
|
37
|
+
instruction: |
|
|
38
|
+
创建项目路线图,定义长期目标和里程碑。
|
|
39
|
+
|
|
40
|
+
- id: backlog
|
|
41
|
+
generates: devflow/BACKLOG.md
|
|
42
|
+
requires: []
|
|
43
|
+
skill: core-roadmap
|
|
44
|
+
instruction: |
|
|
45
|
+
创建产品需求池,记录所有待处理需求。
|
|
46
|
+
|
|
47
|
+
- id: architecture
|
|
48
|
+
generates: devflow/ARCHITECTURE.md
|
|
49
|
+
requires: []
|
|
50
|
+
skill: core-architecture
|
|
51
|
+
instruction: |
|
|
52
|
+
创建架构设计文档,定义系统整体结构。
|
|
53
|
+
|
|
54
|
+
- id: frontend_spec
|
|
55
|
+
generates: devflow/spec/frontend/index.md
|
|
56
|
+
requires: []
|
|
57
|
+
skill: core-guidelines
|
|
58
|
+
instruction: |
|
|
59
|
+
创建前端规范索引,定义前端开发标准。
|
|
60
|
+
|
|
61
|
+
- id: backend_spec
|
|
62
|
+
generates: devflow/spec/backend/index.md
|
|
63
|
+
requires: []
|
|
64
|
+
skill: core-guidelines
|
|
65
|
+
instruction: |
|
|
66
|
+
创建后端规范索引,定义后端开发标准。
|
|
67
|
+
|
|
68
|
+
- id: style_guide
|
|
69
|
+
generates: devflow/STYLE.md
|
|
70
|
+
requires: []
|
|
71
|
+
skill: core-style
|
|
72
|
+
instruction: |
|
|
73
|
+
创建代码风格指南,定义编码规范。
|
|
74
|
+
|
|
75
|
+
# ---------------------------------------------------------------------------
|
|
76
|
+
# 需求级工件 (每个需求执行)
|
|
77
|
+
# ---------------------------------------------------------------------------
|
|
78
|
+
- id: brainstorm
|
|
79
|
+
generates: devflow/requirements/{REQ}/BRAINSTORM.md
|
|
80
|
+
requires: []
|
|
81
|
+
skill: flow-init
|
|
82
|
+
instruction: |
|
|
83
|
+
初始化需求,进行头脑风暴会话。
|
|
84
|
+
捕获原始意图、问题背景、初步想法。
|
|
85
|
+
|
|
86
|
+
- id: research
|
|
87
|
+
generates: devflow/requirements/{REQ}/research/*.md
|
|
88
|
+
requires: [brainstorm]
|
|
89
|
+
skill: flow-init
|
|
90
|
+
glob: true
|
|
91
|
+
instruction: |
|
|
92
|
+
进行技术调研,收集相关资料。
|
|
93
|
+
输出调研报告到 research/ 目录。
|
|
94
|
+
|
|
95
|
+
- id: clarifications
|
|
96
|
+
generates: devflow/requirements/{REQ}/clarifications/*.md
|
|
97
|
+
requires: [brainstorm]
|
|
98
|
+
skill: flow-clarify
|
|
99
|
+
glob: true
|
|
100
|
+
optional: true
|
|
101
|
+
instruction: |
|
|
102
|
+
澄清需求疑问,记录问答过程。
|
|
103
|
+
|
|
104
|
+
- id: prd
|
|
105
|
+
generates: devflow/requirements/{REQ}/PRD.md
|
|
106
|
+
requires: [brainstorm]
|
|
107
|
+
skill: flow-spec
|
|
108
|
+
instruction: |
|
|
109
|
+
创建产品需求文档 (PRD)。
|
|
110
|
+
定义用户故事、验收标准、优先级。
|
|
111
|
+
|
|
112
|
+
- id: tech_design
|
|
113
|
+
generates: devflow/requirements/{REQ}/TECH_DESIGN.md
|
|
114
|
+
requires: [prd]
|
|
115
|
+
skill: flow-spec
|
|
116
|
+
optional: true
|
|
117
|
+
instruction: |
|
|
118
|
+
创建技术设计文档。
|
|
119
|
+
定义架构方案、接口设计、数据模型。
|
|
120
|
+
|
|
121
|
+
- id: data_model
|
|
122
|
+
generates: devflow/requirements/{REQ}/data-model.md
|
|
123
|
+
requires: [prd]
|
|
124
|
+
skill: flow-spec
|
|
125
|
+
optional: true
|
|
126
|
+
instruction: |
|
|
127
|
+
创建数据模型文档。
|
|
128
|
+
定义实体关系、字段说明。
|
|
129
|
+
|
|
130
|
+
- id: contracts
|
|
131
|
+
generates: devflow/requirements/{REQ}/contracts/*.yaml
|
|
132
|
+
requires: [tech_design]
|
|
133
|
+
skill: flow-spec
|
|
134
|
+
glob: true
|
|
135
|
+
optional: true
|
|
136
|
+
instruction: |
|
|
137
|
+
创建 API 契约文件 (OpenAPI/GraphQL)。
|
|
138
|
+
|
|
139
|
+
- id: ui_prototype
|
|
140
|
+
generates: devflow/requirements/{REQ}/UI_PROTOTYPE.html
|
|
141
|
+
requires: [prd]
|
|
142
|
+
skill: flow-spec
|
|
143
|
+
optional: true
|
|
144
|
+
instruction: |
|
|
145
|
+
创建 UI 原型。
|
|
146
|
+
使用 HTML/CSS 展示界面设计。
|
|
147
|
+
|
|
148
|
+
- id: checklists
|
|
149
|
+
generates: devflow/requirements/{REQ}/checklists/*.md
|
|
150
|
+
requires: [prd]
|
|
151
|
+
skill: flow-checklist
|
|
152
|
+
glob: true
|
|
153
|
+
optional: true
|
|
154
|
+
instruction: |
|
|
155
|
+
创建质量检查清单。
|
|
156
|
+
验证 PRD 完整性和一致性。
|
|
157
|
+
|
|
158
|
+
- id: epic
|
|
159
|
+
generates: devflow/requirements/{REQ}/EPIC.md
|
|
160
|
+
requires: [prd]
|
|
161
|
+
skill: flow-spec
|
|
162
|
+
instruction: |
|
|
163
|
+
创建 Epic 规划文档。
|
|
164
|
+
定义阶段划分、里程碑、风险评估。
|
|
165
|
+
|
|
166
|
+
- id: tasks
|
|
167
|
+
generates: devflow/requirements/{REQ}/TASKS.md
|
|
168
|
+
requires: [epic]
|
|
169
|
+
skill: flow-spec
|
|
170
|
+
instruction: |
|
|
171
|
+
创建任务分解文档。
|
|
172
|
+
将 Epic 拆分为可执行的任务列表。
|
|
173
|
+
|
|
174
|
+
- id: implementation_plan
|
|
175
|
+
generates: devflow/requirements/{REQ}/tasks/IMPLEMENTATION_PLAN.md
|
|
176
|
+
requires: [tasks]
|
|
177
|
+
skill: flow-dev
|
|
178
|
+
instruction: |
|
|
179
|
+
创建实施计划。
|
|
180
|
+
详细说明每个任务的实现步骤。
|
|
181
|
+
|
|
182
|
+
- id: source_code
|
|
183
|
+
generates: src/**
|
|
184
|
+
requires: [tasks]
|
|
185
|
+
skill: flow-dev
|
|
186
|
+
glob: true
|
|
187
|
+
instruction: |
|
|
188
|
+
实现源代码。
|
|
189
|
+
遵循 TDD 流程:测试先行。
|
|
190
|
+
|
|
191
|
+
- id: test_code
|
|
192
|
+
generates: tests/**
|
|
193
|
+
requires: [tasks]
|
|
194
|
+
skill: flow-dev
|
|
195
|
+
glob: true
|
|
196
|
+
instruction: |
|
|
197
|
+
实现测试代码。
|
|
198
|
+
覆盖单元测试、集成测试。
|
|
199
|
+
|
|
200
|
+
- id: quality_report
|
|
201
|
+
generates: devflow/requirements/{REQ}/QUALITY_REPORT.md
|
|
202
|
+
requires: [source_code, test_code]
|
|
203
|
+
skill: flow-quality
|
|
204
|
+
instruction: |
|
|
205
|
+
创建质量报告。
|
|
206
|
+
包含测试覆盖率、安全扫描结果。
|
|
207
|
+
|
|
208
|
+
- id: test_report
|
|
209
|
+
generates: devflow/requirements/{REQ}/TEST_REPORT.md
|
|
210
|
+
requires: [quality_report]
|
|
211
|
+
skill: flow-quality
|
|
212
|
+
instruction: |
|
|
213
|
+
创建测试报告。
|
|
214
|
+
记录测试执行结果和问题。
|
|
215
|
+
|
|
216
|
+
- id: security_report
|
|
217
|
+
generates: devflow/requirements/{REQ}/SECURITY_REPORT.md
|
|
218
|
+
requires: [quality_report]
|
|
219
|
+
skill: flow-quality
|
|
220
|
+
optional: true
|
|
221
|
+
instruction: |
|
|
222
|
+
创建安全报告。
|
|
223
|
+
记录安全扫描发现和修复建议。
|
|
224
|
+
|
|
225
|
+
- id: release_plan
|
|
226
|
+
generates: devflow/requirements/{REQ}/RELEASE_PLAN.md
|
|
227
|
+
requires: [quality_report]
|
|
228
|
+
skill: flow-release
|
|
229
|
+
instruction: |
|
|
230
|
+
创建发布计划。
|
|
231
|
+
定义发布步骤、回滚策略。
|
|
232
|
+
|
|
233
|
+
# ---------------------------------------------------------------------------
|
|
234
|
+
# Bug 修复工件
|
|
235
|
+
# ---------------------------------------------------------------------------
|
|
236
|
+
- id: bug_analysis
|
|
237
|
+
generates: devflow/bugs/{BUG}/ANALYSIS.md
|
|
238
|
+
requires: []
|
|
239
|
+
skill: flow-fix
|
|
240
|
+
instruction: |
|
|
241
|
+
分析 Bug 根因。
|
|
242
|
+
记录复现步骤、影响范围。
|
|
243
|
+
|
|
244
|
+
- id: bug_plan
|
|
245
|
+
generates: devflow/bugs/{BUG}/PLAN.md
|
|
246
|
+
requires: [bug_analysis]
|
|
247
|
+
skill: flow-fix
|
|
248
|
+
instruction: |
|
|
249
|
+
创建 Bug 修复计划。
|
|
250
|
+
定义修复方案、测试策略。
|
|
251
|
+
|
|
252
|
+
# =============================================================================
|
|
253
|
+
# 状态检测配置
|
|
254
|
+
# =============================================================================
|
|
255
|
+
detection:
|
|
256
|
+
# 主要检测方法:文件存在性
|
|
257
|
+
method: file_existence
|
|
258
|
+
|
|
259
|
+
# 向后兼容:fallback 到 orchestration_status.json
|
|
260
|
+
fallback: orchestration_status.json
|
|
261
|
+
|
|
262
|
+
# glob 模式配置
|
|
263
|
+
glob_options:
|
|
264
|
+
# 忽略的文件模式
|
|
265
|
+
ignore:
|
|
266
|
+
- "**/.DS_Store"
|
|
267
|
+
- "**/*.bak"
|
|
268
|
+
- "**/node_modules/**"
|
|
269
|
+
|
|
270
|
+
# =============================================================================
|
|
271
|
+
# Skill 分类定义
|
|
272
|
+
# =============================================================================
|
|
273
|
+
# 保留原有分类,用于 Skill 发现和文档
|
|
274
|
+
|
|
275
|
+
skills:
|
|
276
|
+
workflow:
|
|
277
|
+
- id: flow-init
|
|
278
|
+
path: workflow/flow-init
|
|
279
|
+
description: 需求初始化 (支持 worktree)
|
|
280
|
+
- id: flow-clarify
|
|
281
|
+
path: workflow/flow-clarify
|
|
282
|
+
description: 需求澄清
|
|
283
|
+
- id: flow-spec
|
|
284
|
+
path: workflow/flow-spec
|
|
285
|
+
description: 统一规格阶段 (PRD + Tech + UI + Epic)
|
|
286
|
+
- id: flow-dev
|
|
287
|
+
path: workflow/flow-dev
|
|
288
|
+
description: 开发执行 (TDD + Ralph Loop)
|
|
289
|
+
- id: flow-quality
|
|
290
|
+
path: workflow/flow-quality
|
|
291
|
+
description: 质量验证
|
|
292
|
+
- id: flow-release
|
|
293
|
+
path: workflow/flow-release
|
|
294
|
+
description: 发布管理 (支持 worktree 清理)
|
|
295
|
+
- id: flow-fix
|
|
296
|
+
path: workflow/flow-fix
|
|
297
|
+
description: Bug 修复
|
|
298
|
+
- id: flow-checklist
|
|
299
|
+
path: workflow/flow-checklist
|
|
300
|
+
description: 质量检查清单
|
|
301
|
+
|
|
302
|
+
core:
|
|
303
|
+
- id: core-roadmap
|
|
304
|
+
path: workflow/core-roadmap
|
|
305
|
+
description: 项目路线图
|
|
306
|
+
- id: core-architecture
|
|
307
|
+
path: workflow/core-architecture
|
|
308
|
+
description: 架构设计
|
|
309
|
+
- id: core-guidelines
|
|
310
|
+
path: workflow/core-guidelines
|
|
311
|
+
description: 开发规范
|
|
312
|
+
- id: core-style
|
|
313
|
+
path: workflow/core-style
|
|
314
|
+
description: 代码风格
|
|
315
|
+
|
|
316
|
+
domain:
|
|
317
|
+
- id: tdd
|
|
318
|
+
path: domain/tdd
|
|
319
|
+
description: TDD Iron Law 执行
|
|
320
|
+
- id: debugging
|
|
321
|
+
path: domain/debugging
|
|
322
|
+
description: 4阶段系统化调试
|
|
323
|
+
- id: brainstorming
|
|
324
|
+
path: domain/brainstorming
|
|
325
|
+
description: 需求头脑风暴
|
|
326
|
+
- id: attention-refresh
|
|
327
|
+
path: domain/attention-refresh
|
|
328
|
+
description: 注意力刷新协议
|
|
329
|
+
- id: verification
|
|
330
|
+
path: domain/verification
|
|
331
|
+
description: 完成前验证
|
|
332
|
+
- id: receiving-review
|
|
333
|
+
path: domain/receiving-review
|
|
334
|
+
description: 处理代码审查反馈
|
|
335
|
+
- id: finishing-branch
|
|
336
|
+
path: domain/finishing-branch
|
|
337
|
+
description: 分支完成决策
|
|
338
|
+
- id: using-git-worktrees
|
|
339
|
+
path: domain/using-git-worktrees
|
|
340
|
+
description: Git Worktree 管理
|
|
341
|
+
|
|
342
|
+
guardrail:
|
|
343
|
+
- id: constitution-guardian
|
|
344
|
+
path: guardrail/constitution-guardian
|
|
345
|
+
description: Constitution 合规检查
|
|
346
|
+
- id: tdd-enforcer
|
|
347
|
+
path: guardrail/tdd-enforcer
|
|
348
|
+
description: TDD 顺序强制执行
|
|
349
|
+
- id: file-header-guardian
|
|
350
|
+
path: guardrail/file-header-guardian
|
|
351
|
+
description: 文件头注释守护
|
|
352
|
+
|
|
353
|
+
utility:
|
|
354
|
+
- id: git-commit
|
|
355
|
+
path: utility/git-commit
|
|
356
|
+
description: Git 提交工作流
|
|
357
|
+
- id: npm-release
|
|
358
|
+
path: utility/npm-release
|
|
359
|
+
description: NPM 包发布
|
|
360
|
+
- id: fractal-docs
|
|
361
|
+
path: utility/fractal-docs
|
|
362
|
+
description: 分形文档生成
|
|
363
|
+
- id: journey-checker
|
|
364
|
+
path: utility/journey-checker
|
|
365
|
+
description: 跨需求一致性检查
|
|
366
|
+
- id: skill-creator
|
|
367
|
+
path: utility/skill-creator
|
|
368
|
+
description: Skill 创建向导
|
|
369
|
+
- id: skill-developer
|
|
370
|
+
path: utility/skill-developer
|
|
371
|
+
description: Skill 开发指南
|
|
372
|
+
- id: writing-skills
|
|
373
|
+
path: utility/writing-skills
|
|
374
|
+
description: Skill 编写最佳实践
|
|
375
|
+
- id: file-standards
|
|
376
|
+
path: utility/file-standards
|
|
377
|
+
description: 文件命名规范
|
|
378
|
+
- id: constitution-quick-ref
|
|
379
|
+
path: utility/constitution-quick-ref
|
|
380
|
+
description: Constitution 快速参考
|
|
381
|
+
|
|
382
|
+
# =============================================================================
|
|
383
|
+
# 上下文注入配置 (借鉴 Trellis)
|
|
384
|
+
# =============================================================================
|
|
385
|
+
context:
|
|
386
|
+
# 全局上下文(所有 Skill 都会注入)
|
|
387
|
+
global:
|
|
388
|
+
- file: .claude/rules/project-constitution.md
|
|
389
|
+
reason: Quality rules and constraints
|
|
390
|
+
|
|
391
|
+
# 按 Skill 类型的默认上下文
|
|
392
|
+
defaults:
|
|
393
|
+
workflow:
|
|
394
|
+
- file: devflow/requirements/{REQ}/BRAINSTORM.md
|
|
395
|
+
reason: Original intent alignment
|
|
396
|
+
optional: true
|
|
397
|
+
domain:
|
|
398
|
+
- file: devflow/requirements/{REQ}/TASKS.md
|
|
399
|
+
reason: Current task context
|
|
400
|
+
optional: true
|
|
401
|
+
|
|
402
|
+
# =============================================================================
|
|
403
|
+
# 废弃的 Skill (保留兼容)
|
|
404
|
+
# =============================================================================
|
|
405
|
+
deprecated:
|
|
406
|
+
- id: flow-prd
|
|
407
|
+
replacement: flow-spec
|
|
408
|
+
message: "Use /flow-spec instead"
|
|
409
|
+
- id: flow-tech
|
|
410
|
+
replacement: flow-spec
|
|
411
|
+
message: "Use /flow-spec instead"
|
|
412
|
+
- id: flow-ui
|
|
413
|
+
replacement: flow-spec
|
|
414
|
+
message: "Use /flow-spec instead"
|
|
415
|
+
- id: flow-epic
|
|
416
|
+
replacement: flow-spec
|
|
417
|
+
message: "Use /flow-spec instead"
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,260 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [4.1.0] - 2026-02-07
|
|
11
|
+
|
|
12
|
+
### 🤖 Claude Team Integration: Multi-Agent Parallel Collaboration
|
|
13
|
+
|
|
14
|
+
v4.1.0 introduces Claude Team functionality for multi-agent parallel development with automatic task scheduling and distributed quality verification.
|
|
15
|
+
|
|
16
|
+
#### Added
|
|
17
|
+
|
|
18
|
+
- **Team Mode for /flow:dev** - Multi-agent parallel execution
|
|
19
|
+
- `--team` flag enables parallel agent collaboration
|
|
20
|
+
- `--agents N` specifies agent count (2-5, default 3)
|
|
21
|
+
- Automatic task dependency parsing and conflict detection
|
|
22
|
+
- TeammateIdle Hook for automatic task assignment
|
|
23
|
+
- TaskCompleted Hook for quality verification
|
|
24
|
+
|
|
25
|
+
- **New Hooks**
|
|
26
|
+
- `teammate-idle-hook.ts` - Task scheduling when teammate goes idle
|
|
27
|
+
- `task-completed-hook.ts` - Quality verification on task completion
|
|
28
|
+
- `types/team-types.d.ts` - TypeScript type definitions for Team state
|
|
29
|
+
|
|
30
|
+
- **New Scripts**
|
|
31
|
+
- `parse-task-dependencies.js` - TASKS.md dependency parser
|
|
32
|
+
- `detect-file-conflicts.sh` - Parallel task file conflict detection
|
|
33
|
+
- `team-dev-init.sh` - flow-dev Team mode initialization
|
|
34
|
+
|
|
35
|
+
- **Enhanced orchestration_status.json**
|
|
36
|
+
- `team` section for teammate tracking
|
|
37
|
+
- `ralphLoop.teammates` for per-teammate iteration state
|
|
38
|
+
- Task assignment tracking
|
|
39
|
+
|
|
40
|
+
- **New common.sh Functions**
|
|
41
|
+
- `is_team_mode_enabled()` - Check Team mode status
|
|
42
|
+
- `init_team_state()` - Initialize Team state
|
|
43
|
+
- `add_teammate()` / `update_teammate_status()` - Teammate management
|
|
44
|
+
- `assign_task_to_teammate()` / `get_unassigned_tasks()` - Task assignment
|
|
45
|
+
- `all_teammates_idle()` / `cleanup_team_state()` - Team lifecycle
|
|
46
|
+
|
|
47
|
+
#### Changed
|
|
48
|
+
|
|
49
|
+
- **quality-gates.yml** - New Team mode configuration
|
|
50
|
+
- `teammate_idle` section for idle hook settings
|
|
51
|
+
- `task_completed` section for completion verification
|
|
52
|
+
- `ralph_loop.team_mode` for distributed Ralph Loop
|
|
53
|
+
|
|
54
|
+
#### Quality Metrics
|
|
55
|
+
|
|
56
|
+
| Metric | Before | After | Improvement |
|
|
57
|
+
|--------|--------|-------|-------------|
|
|
58
|
+
| Parallel agents | 1 | 3-5 | +400% |
|
|
59
|
+
| Requirement completion time | 90 min | 50 min | -45% |
|
|
60
|
+
| Task scheduling | Manual | Automatic | 100% |
|
|
61
|
+
| Quality verification | Single-point | Distributed | 100% |
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## [4.3.0] - 2026-02-07
|
|
66
|
+
|
|
67
|
+
### 🌿 Git Worktree Integration: Parallel Development Support
|
|
68
|
+
|
|
69
|
+
v4.3.0 introduces Git Worktree integration for parallel development with isolated Claude Code sessions.
|
|
70
|
+
|
|
71
|
+
#### Added
|
|
72
|
+
|
|
73
|
+
- **Git Worktree Mode (Default)** - Isolated development environments
|
|
74
|
+
- Creates `../repo-name-REQ-xxx/` worktree directories
|
|
75
|
+
- Each worktree has independent Claude Code session
|
|
76
|
+
- Switch between requirements with `cd` instead of `git checkout`
|
|
77
|
+
- `--branch-only` flag for traditional branch mode compatibility
|
|
78
|
+
|
|
79
|
+
- **New Skill: using-git-worktrees** - Complete worktree management
|
|
80
|
+
- `SKILL.md` - Core instructions (~200 lines)
|
|
81
|
+
- `context.jsonl` - Context definition
|
|
82
|
+
- `scripts/worktree-create.sh` - Create new worktree
|
|
83
|
+
- `scripts/worktree-list.sh` - List all worktrees
|
|
84
|
+
- `scripts/worktree-switch.sh` - Switch to worktree
|
|
85
|
+
- `scripts/worktree-cleanup.sh` - Clean up merged worktrees
|
|
86
|
+
- `scripts/worktree-status.sh` - Check worktree status
|
|
87
|
+
- `assets/SHELL_ALIASES.md` - Shell aliases template (za/zl/zm/zw)
|
|
88
|
+
|
|
89
|
+
- **New common.sh Functions**
|
|
90
|
+
- `is_in_worktree()` - Check if in worktree
|
|
91
|
+
- `get_main_repo_path()` - Get main repository path
|
|
92
|
+
- `get_worktree_path()` - Get current worktree path
|
|
93
|
+
- `get_worktree_dir_for_req()` - Get worktree directory for REQ
|
|
94
|
+
- `worktree_exists_for_req()` - Check if worktree exists
|
|
95
|
+
- `get_req_id_from_worktree()` - Extract REQ-ID from worktree path
|
|
96
|
+
- `list_worktrees_with_req()` - List all worktrees with REQ-IDs
|
|
97
|
+
|
|
98
|
+
#### Changed
|
|
99
|
+
|
|
100
|
+
- **flow-init** - Default worktree mode
|
|
101
|
+
- New `--worktree` flag (default)
|
|
102
|
+
- New `--branch-only` flag for traditional branch mode
|
|
103
|
+
- Updated `create-requirement.sh` with worktree support
|
|
104
|
+
|
|
105
|
+
- **flow-release** - Automatic worktree cleanup
|
|
106
|
+
- Detects worktree mode and cleans up after merge
|
|
107
|
+
- `--keep-worktree` flag to skip cleanup
|
|
108
|
+
|
|
109
|
+
- **devflow-conventions.md** - Updated Git conventions
|
|
110
|
+
- Renamed "Git 分支约定" → "Git Worktree 约定"
|
|
111
|
+
- Added worktree directory layout
|
|
112
|
+
- Added shell aliases recommendations
|
|
113
|
+
|
|
114
|
+
#### Quality Metrics
|
|
115
|
+
|
|
116
|
+
| Metric | Before | After | Improvement |
|
|
117
|
+
|--------|--------|-------|-------------|
|
|
118
|
+
| Parallel requirements | 1 | 3-5 | +400% |
|
|
119
|
+
| Context switch time | 30s | 1s | -97% |
|
|
120
|
+
| Emergency hotfix response | Requires stash | Instant | Immediate |
|
|
121
|
+
| Session isolation | None | Full | 100% |
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## [4.1.0] - 2026-02-07
|
|
126
|
+
|
|
127
|
+
### 🎯 Unified Specification Phase: /flow-spec Command
|
|
128
|
+
|
|
129
|
+
v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow-spec` command with parallel execution of Tech + UI agents.
|
|
130
|
+
|
|
131
|
+
#### Added
|
|
132
|
+
|
|
133
|
+
- **Unified /flow-spec Command** - One command for entire specification phase
|
|
134
|
+
- Full Mode: PRD → Tech + UI (parallel) → Epic/Tasks
|
|
135
|
+
- Quick Mode: `--skip-tech --skip-ui` for small requirements
|
|
136
|
+
- Backend Only: `--skip-ui`
|
|
137
|
+
- Frontend Only: `--skip-tech`
|
|
138
|
+
|
|
139
|
+
- **Parallel Agent Execution** - Tech + UI agents run concurrently
|
|
140
|
+
- `parallel-orchestrator.sh` for concurrent agent dispatch
|
|
141
|
+
- Shared template components in `.claude/docs/templates/_shared/`
|
|
142
|
+
|
|
143
|
+
- **Shared Template Components** (v4.1)
|
|
144
|
+
- `_shared/CONSTITUTION_CHECK.md` - Reusable Constitution compliance check
|
|
145
|
+
- `_shared/VALIDATION_CHECKLIST.md` - Reusable validation checklist
|
|
146
|
+
- `_shared/YAML_FRONTMATTER.md` - Reusable YAML frontmatter template
|
|
147
|
+
|
|
148
|
+
- **New Files**
|
|
149
|
+
- `.claude/skills/workflow/flow-spec/SKILL.md` - Main instruction (~250 lines)
|
|
150
|
+
- `.claude/skills/workflow/flow-spec/context.jsonl` - Context definition
|
|
151
|
+
- `.claude/skills/workflow/flow-spec/scripts/entry-gate.sh` - Unified entry check
|
|
152
|
+
- `.claude/skills/workflow/flow-spec/scripts/parallel-orchestrator.sh` - Parallel dispatch
|
|
153
|
+
- `.claude/skills/workflow/flow-spec/scripts/exit-gate.sh` - Unified exit check
|
|
154
|
+
- `.claude/commands/flow-spec.md` - Command trigger entry
|
|
155
|
+
|
|
156
|
+
#### Changed
|
|
157
|
+
|
|
158
|
+
- **workflow.yaml** - Updated with flow-spec as primary specification skill
|
|
159
|
+
- **cc-devflow-orchestrator** - Updated routing for unified flow
|
|
160
|
+
|
|
161
|
+
#### Deprecated
|
|
162
|
+
|
|
163
|
+
- `/flow-prd` - Use `/flow-spec` instead
|
|
164
|
+
- `/flow-tech` - Use `/flow-spec` instead
|
|
165
|
+
- `/flow-ui` - Use `/flow-spec` instead
|
|
166
|
+
- `/flow-epic` - Use `/flow-spec` instead
|
|
167
|
+
|
|
168
|
+
#### Simplified Workflows (v4.1)
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
Quick (3 steps): /flow-init --quick → /flow-spec --skip-tech --skip-ui → /flow-dev → /flow-release
|
|
172
|
+
Standard (4 steps): /flow-init → /flow-spec → /flow-dev → /flow-quality → /flow-release
|
|
173
|
+
Full (5 steps): /flow-init → /flow-clarify → /flow-spec → /flow-dev → /flow-quality --full → /flow-release
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### Quality Metrics
|
|
177
|
+
|
|
178
|
+
| Metric | Before (v4.0) | After (v4.1) | Improvement |
|
|
179
|
+
|--------|---------------|--------------|-------------|
|
|
180
|
+
| Command calls | 4 | 1 | -75% |
|
|
181
|
+
| Design phase time | 8-12 min | 5-8 min | -35% |
|
|
182
|
+
| Entry/Exit Gate code | ~280 lines | ~100 lines | -64% |
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## [4.0.0] - 2026-02-07
|
|
187
|
+
|
|
188
|
+
### 🏗️ Skills-First Architecture: Unified Skills with Context Injection
|
|
189
|
+
|
|
190
|
+
v4.0.0 introduces a major architectural refactor, reorganizing 135 files into a unified Skills-First Architecture inspired by Trellis and OpenSpec.
|
|
191
|
+
|
|
192
|
+
#### Added
|
|
193
|
+
|
|
194
|
+
- **Skills-First Architecture** - All Skills organized into 4 groups
|
|
195
|
+
- `workflow/`: 9 core workflow Skills (flow-init, flow-spec, flow-dev, flow-tech, flow-ui, flow-quality, flow-release, flow-fix)
|
|
196
|
+
- `domain/`: 7 domain expertise Skills (tdd, debugging, brainstorming, attention-refresh, verification, receiving-review, finishing-branch)
|
|
197
|
+
- `guardrail/`: 3 real-time compliance Skills (constitution-guardian, tdd-enforcer, file-header-guardian)
|
|
198
|
+
- `utility/`: 8 development tool Skills (npm-release, skill-creator, skill-developer, writing-skills, fractal-docs, journey-checker, file-standards, constitution-quick-ref)
|
|
199
|
+
|
|
200
|
+
- **JSONL Context Injection** (Trellis-inspired)
|
|
201
|
+
- Each Skill has `context.jsonl` defining required context files
|
|
202
|
+
- `inject-skill-context.ts` hook auto-loads context before Skill execution
|
|
203
|
+
- Variable substitution: `{REQ}` replaced with actual requirement ID
|
|
204
|
+
- Optional files supported with `"optional": true`
|
|
205
|
+
|
|
206
|
+
- **workflow.yaml Dependency Graph** (OpenSpec-inspired)
|
|
207
|
+
- Defines Skill dependencies with `requires` and `generates`
|
|
208
|
+
- File existence state detection for workflow status
|
|
209
|
+
- Clear visualization of Skill execution order
|
|
210
|
+
|
|
211
|
+
- **Self-Contained Skills**
|
|
212
|
+
- Each Skill directory contains: SKILL.md + context.jsonl + scripts/ + references/ + assets/
|
|
213
|
+
- SKILL.md limited to <500 lines for focused instructions
|
|
214
|
+
- Agent instructions moved to `references/` subdirectory
|
|
215
|
+
- Templates moved to `assets/` subdirectory
|
|
216
|
+
|
|
217
|
+
- **Multi-Module Cross-Platform Compiler** (v3.0)
|
|
218
|
+
- Complete multi-module compilation: skills, commands, agents, rules, hooks
|
|
219
|
+
- Platform-specific output formats:
|
|
220
|
+
- **Codex**: `.codex/skills/`, `.codex/prompts/`, `AGENTS.md`
|
|
221
|
+
- **Cursor**: `.cursor/rules/*.mdc`, `.cursor/subagents/`, `hooks.json`
|
|
222
|
+
- **Qwen**: `.qwen/commands/*.toml`, `.qwen/agents/`, `CONTEXT.md`
|
|
223
|
+
- **Antigravity**: `.agent/skills/`, `.agent/workflows/`, `.agent/rules/`
|
|
224
|
+
- `context.jsonl` compilation-time expansion with platform-specific formats
|
|
225
|
+
- 197 tests passing (24 new multi-module tests)
|
|
226
|
+
|
|
227
|
+
- **Specification Library** - `devflow/spec/{frontend,backend,shared}/index.md`
|
|
228
|
+
|
|
229
|
+
#### Changed
|
|
230
|
+
|
|
231
|
+
- **Skills Directory Structure** - Flat structure → Grouped directories
|
|
232
|
+
- **Commands** - Simplified to trigger entries, core logic in Skills
|
|
233
|
+
- **Context Loading** - Manual full load → On-demand automatic injection
|
|
234
|
+
|
|
235
|
+
#### Benefits
|
|
236
|
+
|
|
237
|
+
- **-75% Maintenance Points**: 4 directories → 1 directory
|
|
238
|
+
- **-70% Context Tokens**: On-demand loading vs full manual load
|
|
239
|
+
- **+100% Dependency Visibility**: Explicit workflow.yaml vs implicit
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## [2.5.0] - 2026-01-25
|
|
244
|
+
|
|
245
|
+
### 🚀 新增 Skills:一致性检查与发版自动化
|
|
246
|
+
|
|
247
|
+
v2.5.0 引入了两个强大的新 Skills,分别解决了跨需求一致性检查和 NPM 包发版自动化的问题。
|
|
248
|
+
|
|
249
|
+
#### Added
|
|
250
|
+
|
|
251
|
+
- **Journey Coherence Checker Skill** - 跨需求一致性检查
|
|
252
|
+
- 检查依赖满足情况 (Dependency Satisfaction)
|
|
253
|
+
- 验证里程碑 Success Criteria
|
|
254
|
+
- 检测累积偏差 (Cumulative Scope Drift)
|
|
255
|
+
- 发现用户旅程空隙 (Journey Gaps)
|
|
256
|
+
- 集成到发布门禁 (`/flow-release`)
|
|
257
|
+
|
|
258
|
+
- **NPM Release Skill** - NPM 发版流程自动化
|
|
259
|
+
- 标准化发版工作流 (Patch/Minor/Major)
|
|
260
|
+
- 自动更新 CHANGELOG.md
|
|
261
|
+
- 自动创建并验证 Git Tags
|
|
262
|
+
- 发布前安全检查
|
|
263
|
+
|
|
10
264
|
## [2.4.6] - 2026-01-12
|
|
11
265
|
|
|
12
266
|
### flow-init 工作流精简:研究步骤抽离为 subagent
|