cc-devflow 4.1.5 → 4.2.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 +87 -1091
- package/.claude/commands/core/architecture.md +32 -2
- package/.claude/commands/core/guidelines.md +27 -2
- package/.claude/commands/core/roadmap.md +33 -4
- package/.claude/commands/core/style.md +53 -263
- package/.claude/commands/flow/CLAUDE.md +28 -0
- package/.claude/commands/flow/archive.md +2 -2
- package/.claude/commands/flow/checklist.md +9 -251
- package/.claude/commands/flow/clarify.md +9 -127
- package/.claude/commands/flow/constitution.md +1 -1
- package/.claude/commands/flow/context.md +1 -1
- package/.claude/commands/flow/dev.md +19 -395
- package/.claude/commands/flow/ideate.md +13 -13
- package/.claude/commands/flow/init.md +19 -30
- package/.claude/commands/flow/new.md +12 -268
- package/.claude/commands/flow/quality.md +10 -153
- package/.claude/commands/flow/release.md +18 -81
- package/.claude/commands/flow/restart.md +15 -16
- package/.claude/commands/flow/spec.md +14 -164
- package/.claude/commands/flow/status.md +12 -12
- package/.claude/commands/flow/update.md +4 -4
- package/.claude/commands/flow/upgrade.md +6 -6
- package/.claude/commands/flow/verify.md +19 -78
- package/.claude/commands/flow/workspace.md +1 -1
- package/.claude/docs/guides/INIT_TROUBLESHOOTING.md +7 -7
- package/.claude/docs/guides/NEW_TROUBLESHOOTING.md +44 -96
- package/.claude/docs/guides/ROADMAP_TROUBLESHOOTING.md +1 -1
- package/.claude/docs/guides/TASK_COMPLETION_MARKING.md +5 -5
- package/.claude/docs/templates/ATTEMPT_TEMPLATE.md +1 -1
- package/.claude/docs/templates/BACKLOG_TEMPLATE.md +3 -3
- package/.claude/docs/templates/CLARIFICATION_REPORT_TEMPLATE.md +5 -5
- package/.claude/docs/templates/ERROR_LOG_TEMPLATE.md +2 -2
- package/.claude/docs/templates/INIT_FLOW_TEMPLATE.md +3 -3
- package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +33 -64
- package/.claude/docs/templates/RESEARCH_TEMPLATE.md +3 -3
- package/.claude/docs/templates/ROADMAP_DIALOGUE_TEMPLATE.md +2 -2
- package/.claude/docs/templates/ROADMAP_TEMPLATE.md +2 -2
- package/.claude/docs/templates/STYLE_TEMPLATE.md +3 -3
- package/.claude/docs/templates/UI_PROTOTYPE_TEMPLATE.md +8 -9
- package/.claude/guides/workflow-guides/flow-orchestrator.md +31 -265
- package/.claude/hooks/CLAUDE.md +1 -1
- package/.claude/hooks/checklist-gate.js +4 -4
- package/.claude/hooks/inject-agent-context.ts +2 -2
- package/.claude/scripts/calculate-checklist-completion.sh +2 -2
- package/.claude/scripts/check-prerequisites.sh +2 -2
- package/.claude/scripts/checklist-errors.sh +4 -4
- package/.claude/scripts/flow-quality-full.sh +5 -5
- package/.claude/scripts/flow-quality-quick.sh +4 -4
- package/.claude/scripts/flow-workspace-init.sh +2 -2
- package/.claude/scripts/generate-clarification-report.sh +4 -4
- package/.claude/scripts/recover-workflow.sh +70 -73
- package/.claude/scripts/run-quality-gates.sh +1 -1
- package/.claude/scripts/setup-epic.sh +2 -2
- package/.claude/scripts/setup-ralph-loop.sh +2 -2
- package/.claude/scripts/validate-research.sh +1 -1
- package/.claude/scripts/verify-setup.sh +1 -1
- package/.claude/skills/cc-devflow-orchestrator/SKILL.md +113 -108
- package/.claude/skills/workflow/CLAUDE.md +24 -0
- package/.claude/skills/workflow/flow-dev/CLAUDE.md +14 -76
- package/.claude/skills/workflow/flow-dev/SKILL.md +58 -60
- package/.claude/skills/workflow/flow-dev/context.jsonl +4 -8
- package/.claude/skills/workflow/flow-init/SKILL.md +46 -144
- package/.claude/skills/workflow/flow-init/assets/RESEARCH_TEMPLATE.md +1 -1
- package/.claude/skills/workflow/flow-init/context.jsonl +3 -3
- package/.claude/skills/workflow/flow-init/scripts/check-prerequisites.sh +1 -1
- package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +1 -1
- package/.claude/skills/workflow/flow-release/SKILL.md +23 -56
- package/.claude/skills/workflow/flow-release/context.jsonl +5 -7
- package/.claude/skills/workflow/flow-spec/CLAUDE.md +15 -101
- package/.claude/skills/workflow/flow-spec/SKILL.md +40 -511
- package/.claude/skills/workflow/flow-spec/context.jsonl +5 -7
- package/.claude/skills/workflow/flow-verify/CLAUDE.md +10 -0
- package/.claude/skills/workflow/flow-verify/SKILL.md +53 -0
- package/.claude/skills/workflow/flow-verify/context.jsonl +5 -0
- package/.claude/skills/workflow.yaml +72 -267
- package/CHANGELOG.md +72 -0
- package/README.md +96 -69
- package/README.zh-CN.md +95 -67
- package/bin/cc-devflow-cli.js +154 -0
- package/bin/harness.js +22 -0
- package/docs/commands/README.md +34 -38
- package/docs/commands/README.zh-CN.md +34 -36
- package/docs/commands/core-roadmap.md +2 -2
- package/docs/commands/core-roadmap.zh-CN.md +2 -2
- package/docs/commands/core-style.md +29 -381
- package/docs/commands/core-style.zh-CN.md +29 -381
- package/docs/commands/flow-init.md +10 -10
- package/docs/commands/flow-init.zh-CN.md +11 -11
- package/docs/commands/flow-new.md +25 -260
- package/docs/commands/flow-new.zh-CN.md +26 -257
- package/docs/guides/getting-started.md +16 -15
- package/docs/guides/getting-started.zh-CN.md +10 -12
- package/lib/compiler/__tests__/manifest.test.js +156 -0
- package/lib/compiler/__tests__/parser.test.js +21 -0
- package/lib/compiler/index.js +17 -1
- package/lib/compiler/manifest.js +68 -6
- package/lib/compiler/parser.js +5 -0
- package/lib/harness/CLAUDE.md +21 -0
- package/lib/harness/cli.js +208 -0
- package/lib/harness/index.js +16 -0
- package/lib/harness/operations/dispatch.js +285 -0
- package/lib/harness/operations/init.js +48 -0
- package/lib/harness/operations/janitor.js +74 -0
- package/lib/harness/operations/pack.js +100 -0
- package/lib/harness/operations/plan.js +29 -0
- package/lib/harness/operations/release.js +83 -0
- package/lib/harness/operations/resume.js +44 -0
- package/lib/harness/operations/verify.js +163 -0
- package/lib/harness/planner.js +141 -0
- package/lib/harness/schemas.js +108 -0
- package/lib/harness/store.js +240 -0
- package/package.json +9 -1
|
@@ -1,103 +1,17 @@
|
|
|
1
|
-
# flow-spec/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| `scripts/entry-gate.sh` | 统一入口检查 | ~150 |
|
|
17
|
-
| `scripts/parallel-orchestrator.sh` | 并行调度逻辑文档 | ~200 |
|
|
18
|
-
| `scripts/exit-gate.sh` | 统一出口检查 | ~180 |
|
|
19
|
-
| `scripts/team-init.sh` | Team Mode 初始化脚本 [v4.7] | ~190 |
|
|
20
|
-
| `scripts/team-communication.sh` | Team 通信协议脚本 [v4.7] | ~280 |
|
|
21
|
-
|
|
22
|
-
## Execution Flow
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
PRD (sequential) → Tech + UI (parallel) → Epic (sequential)
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Mode Matrix
|
|
29
|
-
|
|
30
|
-
| Mode | Flags | Agents |
|
|
31
|
-
|------|-------|--------|
|
|
32
|
-
| Full | (default) | PRD + Tech + UI + Epic |
|
|
33
|
-
| Quick | `--skip-tech --skip-ui` | PRD + Epic |
|
|
34
|
-
| Backend | `--skip-ui` | PRD + Tech + Epic |
|
|
35
|
-
| Frontend | `--skip-tech` | PRD + UI + Epic |
|
|
36
|
-
|
|
37
|
-
## Agent References
|
|
38
|
-
|
|
39
|
-
复用现有 agent 指令:
|
|
40
|
-
- `flow-prd/references/prd-writer.md`
|
|
41
|
-
- `flow-tech/references/tech-architect.md`
|
|
42
|
-
- `flow-ui/references/ui-designer.md`
|
|
43
|
-
- `flow-epic/references/planner.md`
|
|
44
|
-
|
|
45
|
-
## Team Mode (v4.7)
|
|
46
|
-
|
|
47
|
-
### 执行模式检测
|
|
48
|
-
|
|
49
|
-
| Mode | Flags | Execution |
|
|
50
|
-
|------|-------|-----------|
|
|
51
|
-
| Team (Full) | (default) | 并行 Team 协作 |
|
|
52
|
-
| Subagent (Quick) | `--skip-tech --skip-ui` | 传统 Subagent |
|
|
53
|
-
| Subagent (Backend) | `--skip-ui` | 传统 Subagent |
|
|
54
|
-
| Subagent (Frontend) | `--skip-tech` | 传统 Subagent |
|
|
55
|
-
|
|
56
|
-
### team-config.json
|
|
57
|
-
|
|
58
|
-
定义 spec-design-team 的完整配置:
|
|
59
|
-
|
|
60
|
-
- **members**: 4 个 Agent (prd-writer, tech-architect, ui-designer, planner)
|
|
61
|
-
- **workflow.stages**: 3 阶段执行流程
|
|
62
|
-
- **communication.negotiate_topics**: 5 个协商主题 (api_format, field_naming, auth_strategy, state_management, component_granularity)
|
|
63
|
-
- **quality_gates**: 入口/出口检查配置
|
|
64
|
-
- **error_handling**: 阶段失败处理策略
|
|
65
|
-
|
|
66
|
-
### scripts/team-init.sh
|
|
67
|
-
|
|
68
|
-
Team Mode 初始化脚本,提供:
|
|
69
|
-
|
|
70
|
-
- `detect`: 检测执行模式 (team/subagent)
|
|
71
|
-
- `init`: 初始化 Team 状态到 orchestration_status.json
|
|
72
|
-
- `config`: 输出 Team 配置 JSON
|
|
73
|
-
|
|
74
|
-
### scripts/team-communication.sh
|
|
75
|
-
|
|
76
|
-
Team 通信协议脚本,提供:
|
|
77
|
-
|
|
78
|
-
- `init`: 初始化 design_decisions.md
|
|
79
|
-
- `record`: 记录设计决策
|
|
80
|
-
- `template`: 获取协商消息模板
|
|
81
|
-
- `participants`: 获取主题参与者
|
|
82
|
-
- `owner`: 获取决策所有者
|
|
83
|
-
- `example-api`: API 格式协商示例
|
|
84
|
-
- `example-state`: 状态管理协商示例
|
|
85
|
-
|
|
86
|
-
### SendMessage 协商协议 (v4.7)
|
|
87
|
-
|
|
88
|
-
Team Mode 下 tech-architect 和 ui-designer 通过 SendMessage 工具进行实时协商:
|
|
89
|
-
|
|
90
|
-
| Topic | Initiator | Decision Owner | 协商内容 |
|
|
91
|
-
|-------|-----------|----------------|----------|
|
|
92
|
-
| api_format | tech-architect | tech-architect | REST/GraphQL, 分页, 错误格式 |
|
|
93
|
-
| field_naming | tech-architect | tech-architect | camelCase/snake_case, 字段命名 |
|
|
94
|
-
| auth_strategy | tech-architect | tech-architect | JWT/Session/OAuth |
|
|
95
|
-
| state_management | ui-designer | ui-designer | Zustand/Redux/Context |
|
|
96
|
-
|
|
97
|
-
协商结果记录到 `devflow/requirements/{REQ}/research/design_decisions.md`。
|
|
98
|
-
|
|
99
|
-
详细协商消息模板见 `SKILL.md` Stage 2 Negotiate Protocol 部分。
|
|
100
|
-
|
|
101
|
-
---
|
|
1
|
+
# flow-spec/
|
|
2
|
+
> L2 | 父级: /Users/dimon/001Area/80-CodeWorld/002-devflow/cc-devflow/.claude/skills/workflow/CLAUDE.md
|
|
3
|
+
|
|
4
|
+
成员清单
|
|
5
|
+
SKILL.md: flow:spec 的核心指令,定义 harness:plan 任务清单生成流程。
|
|
6
|
+
context.jsonl: flow-spec 上下文注入定义(context-package/task-manifest/harness-state)。
|
|
7
|
+
team-config.json: 旧 Team 模式配置资产(兼容保留,当前主链不依赖)。
|
|
8
|
+
scripts/entry-gate.sh: 旧入口脚本资产(兼容保留)。
|
|
9
|
+
scripts/parallel-orchestrator.sh: 旧并行编排脚本资产(兼容保留)。
|
|
10
|
+
scripts/exit-gate.sh: 旧出口脚本资产(兼容保留)。
|
|
11
|
+
scripts/team-init.sh: 旧 Team 初始化脚本资产(兼容保留)。
|
|
12
|
+
scripts/team-communication.sh: 旧 Team 通信脚本资产(兼容保留)。
|
|
13
|
+
scripts/test-team-mode.sh: 旧 Team 模式测试脚本资产(兼容保留)。
|
|
14
|
+
|
|
15
|
+
法则: 成员完整·一行一文件·父级链接·技术词前置
|
|
102
16
|
|
|
103
17
|
[PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
|