cc-devflow 4.1.4 → 4.1.6
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 -1183
- package/.claude/commands/core/architecture.md +2 -2
- package/.claude/commands/core/guidelines.md +2 -2
- package/.claude/commands/core/roadmap.md +4 -4
- package/.claude/commands/core/style.md +40 -268
- 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/fix.md +1 -6
- package/.claude/commands/flow/ideate.md +13 -13
- package/.claude/commands/flow/init.md +19 -41
- package/.claude/commands/flow/new.md +12 -268
- package/.claude/commands/flow/quality.md +10 -153
- package/.claude/commands/flow/release.md +18 -131
- 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 +3 -20
- 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/guides/TEAM_MODE_GUIDE.md +0 -1
- 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/hooks/teammate-idle-hook.ts +1 -1
- package/.claude/rules/devflow-conventions.md +2 -93
- package/.claude/scripts/CLAUDE.md +1 -4
- 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/common.sh +12 -147
- 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 +88 -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 +29 -67
- package/.claude/skills/workflow/flow-dev/context.jsonl +4 -8
- package/.claude/skills/workflow/flow-init/SKILL.md +23 -186
- 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/create-requirement.sh +15 -134
- package/.claude/skills/workflow/flow-init/scripts/validate-research.sh +1 -1
- package/.claude/skills/workflow/flow-release/SKILL.md +20 -110
- 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 +15 -518
- 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 -270
- package/CHANGELOG.md +72 -0
- package/README.md +91 -69
- package/README.zh-CN.md +90 -67
- 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
- package/.claude/scripts/flow-workspace-start.sh +0 -217
- package/.claude/scripts/flow-workspace-switch.sh +0 -234
- package/.claude/skills/domain/using-git-worktrees/SKILL.md +0 -252
- package/.claude/skills/domain/using-git-worktrees/assets/SHELL_ALIASES.md +0 -133
- package/.claude/skills/domain/using-git-worktrees/context.jsonl +0 -4
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-cleanup.sh +0 -218
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-create.sh +0 -232
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-list.sh +0 -130
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-status.sh +0 -140
- package/.claude/skills/domain/using-git-worktrees/scripts/worktree-switch.sh +0 -70
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 🚀 cc-devflow
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Harness-First Requirement Development Flow for Claude Code
|
|
4
4
|
|
|
5
|
-
A comprehensive development workflow system built on Claude Code's official sub-agents, hooks, and settings mechanisms. Transform
|
|
5
|
+
A comprehensive development workflow system built on Claude Code's official sub-agents, hooks, and settings mechanisms. Transform requirements from planning to code delivery with a deterministic command chain.
|
|
6
6
|
|
|
7
7
|
[中文文档](./README.zh-CN.md) | [English](./README.md)
|
|
8
8
|
|
|
@@ -10,17 +10,17 @@ A comprehensive development workflow system built on Claude Code's official sub-
|
|
|
10
10
|
|
|
11
11
|
## 🎯 One-Line Introduction
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Harness-first five-stage workflow from requirement setup to release: `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
## ✨ Core Features
|
|
18
18
|
|
|
19
|
-
- 🎯 **
|
|
20
|
-
- 🔄 **
|
|
19
|
+
- 🎯 **Harness-First Mainline** - Default chain is `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
20
|
+
- 🔄 **NPM Command Chain** - Flow commands map to `harness:*` runtime operations with checkpoints and resume
|
|
21
21
|
- 📋 **Document-Driven** - Automatic PRD → UI Prototype → EPIC → TASKS → Implementation chain
|
|
22
22
|
- 📝 **Template-Driven** - Self-executable templates (PRD_TEMPLATE, EPIC_TEMPLATE, TASKS_TEMPLATE)
|
|
23
|
-
- 🔄 **Smart Recovery** -
|
|
23
|
+
- 🔄 **Smart Recovery** - `harness:resume` restores interrupted dispatch from persisted checkpoints
|
|
24
24
|
- 🛡️ **Quality Gates** - Automated TypeScript checking, testing, linting, and security scanning
|
|
25
25
|
- 🤖 **Sub-Agent Orchestration** - 12 specialized research agents for different development phases
|
|
26
26
|
- 🎨 **UI Prototype Generation** - Conditional HTML prototype with artistic design inspiration
|
|
@@ -98,7 +98,7 @@ Intelligent knowledge base activation with grouped Skills and automatic context
|
|
|
98
98
|
|
|
99
99
|
| Category | Skills | Purpose |
|
|
100
100
|
|----------|--------|---------|
|
|
101
|
-
| **Workflow** | flow-init, flow-spec, flow-dev, flow-
|
|
101
|
+
| **Workflow** | flow-init, flow-spec, flow-dev, flow-verify, flow-release | Core development workflow |
|
|
102
102
|
| **Domain** | tdd, debugging, brainstorming, verification | Domain expertise |
|
|
103
103
|
| **Guardrail** | constitution-guardian, tdd-enforcer | Real-time compliance |
|
|
104
104
|
| **Utility** | npm-release, skill-creator, writing-skills | Development tools |
|
|
@@ -202,7 +202,11 @@ pip install pypinyin
|
|
|
202
202
|
### First Requirement
|
|
203
203
|
|
|
204
204
|
```bash
|
|
205
|
-
/flow
|
|
205
|
+
/flow:init "REQ-001|User Authentication|https://docs.example.com/auth"
|
|
206
|
+
/flow:spec "REQ-001"
|
|
207
|
+
/flow:dev "REQ-001"
|
|
208
|
+
/flow:verify "REQ-001" --strict
|
|
209
|
+
/flow:release "REQ-001"
|
|
206
210
|
```
|
|
207
211
|
|
|
208
212
|
<details>
|
|
@@ -260,15 +264,16 @@ bash .claude/tests/constitution/run_all_constitution_tests.sh
|
|
|
260
264
|
|
|
261
265
|
| Command | Purpose | Quick Example | Detailed Docs |
|
|
262
266
|
|---------|---------|---------------|---------------|
|
|
263
|
-
| `/flow
|
|
264
|
-
| `/flow
|
|
265
|
-
| `/flow
|
|
266
|
-
| `/flow
|
|
267
|
-
| `/flow
|
|
268
|
-
| `/flow
|
|
269
|
-
| `/flow
|
|
270
|
-
| `/flow
|
|
271
|
-
| `/flow
|
|
267
|
+
| `/flow:init` | 📦 Initialize Requirement Context | `/flow:init "REQ-123\|Feature"` | [→](.claude/commands/flow/init.md) |
|
|
268
|
+
| `/flow:spec` | 📋 Build Task Manifest | `/flow:spec "REQ-123"` | [→](.claude/commands/flow/spec.md) |
|
|
269
|
+
| `/flow:dev` | 🛠️ Dispatch and Execute Tasks | `/flow:dev "REQ-123"` | [→](.claude/commands/flow/dev.md) |
|
|
270
|
+
| `/flow:verify` | ✅ Run Report Card Gates | `/flow:verify "REQ-123" --strict` | [→](.claude/commands/flow/verify.md) |
|
|
271
|
+
| `/flow:release` | 🚢 Release + Cleanup | `/flow:release "REQ-123"` | [→](.claude/commands/flow/release.md) |
|
|
272
|
+
| `/flow:fix` | 🐛 Systematic Bug Fix | `/flow:fix "BUG-123\|Description"` | [→](.claude/commands/flow/fix.md) |
|
|
273
|
+
| `/flow:new` | ⚠️ Deprecated alias | Use `/flow:init` mainline | [→](.claude/commands/flow/new.md) |
|
|
274
|
+
| `/flow:clarify` | ⚠️ Deprecated | Merged into `/flow:spec` | [→](.claude/commands/flow/clarify.md) |
|
|
275
|
+
| `/flow:checklist` | ⚠️ Deprecated | Use `/flow:verify --strict` | [→](.claude/commands/flow/checklist.md) |
|
|
276
|
+
| `/flow:quality` | ⚠️ Deprecated | Use `/flow:verify` | [→](.claude/commands/flow/quality.md) |
|
|
272
277
|
|
|
273
278
|
📚 [Complete Command Reference](docs/commands/README.md)
|
|
274
279
|
|
|
@@ -280,16 +285,15 @@ Your Scenario:
|
|
|
280
285
|
├─ Plan product direction? → /core-roadmap
|
|
281
286
|
├─ Design system architecture? → /core-architecture
|
|
282
287
|
├─ Establish coding standards? → /core-guidelines
|
|
283
|
-
├─ Start
|
|
284
|
-
├─
|
|
285
|
-
├─
|
|
286
|
-
├─
|
|
287
|
-
├─ Continue interrupted development? → /flow
|
|
288
|
-
├─ Check development progress? → /flow
|
|
289
|
-
├─
|
|
290
|
-
├─
|
|
291
|
-
|
|
292
|
-
└─ Ready to release? → /flow-release "REQ-123"
|
|
288
|
+
├─ Start requirement delivery? → /flow:init "REQ-123|Feature|URLs"
|
|
289
|
+
├─ Generate task manifest? → /flow:spec "REQ-123"
|
|
290
|
+
├─ Execute planned tasks? → /flow:dev "REQ-123"
|
|
291
|
+
├─ Run strict quality gate? → /flow:verify "REQ-123" --strict
|
|
292
|
+
├─ Continue interrupted development? → /flow:restart "REQ-123"
|
|
293
|
+
├─ Check development progress? → /flow:status REQ-123
|
|
294
|
+
├─ Re-check consistency anytime? → /flow:verify "REQ-123"
|
|
295
|
+
├─ Fix production bug? → /flow:fix "BUG-001|Description"
|
|
296
|
+
└─ Ready to release? → /flow:release "REQ-123"
|
|
293
297
|
```
|
|
294
298
|
</details>
|
|
295
299
|
|
|
@@ -313,45 +317,34 @@ graph TB
|
|
|
313
317
|
CoreGuidelines --> ReqLevel
|
|
314
318
|
CoreStyle --> ReqLevel
|
|
315
319
|
|
|
316
|
-
ReqLevel([Requirement-Level Development]) --> FlowInit["/flow
|
|
320
|
+
ReqLevel([Requirement-Level Development]) --> FlowInit["/flow:init<br/>harness:init + harness:pack"]
|
|
321
|
+
FlowInit --> FlowSpec["/flow:spec<br/>harness:plan<br/>task-manifest"]
|
|
322
|
+
FlowSpec --> FlowDev["/flow:dev<br/>harness:dispatch/resume<br/>runtime-events"]
|
|
323
|
+
FlowDev --> FlowVerify["/flow:verify<br/>harness:verify<br/>report-card"]
|
|
324
|
+
FlowVerify --> FlowRelease["/flow:release<br/>harness:release/janitor<br/>release-note"]
|
|
325
|
+
FlowRelease --> End([Release Complete])
|
|
317
326
|
|
|
318
|
-
|
|
319
|
-
FlowClarify --> FlowSpec["/flow-spec (v4.1)<br/>PRD → Tech+UI (parallel) → Epic<br/>Unified specification phase"]
|
|
320
|
-
FlowInit -.->|Skip clarify| FlowSpec
|
|
321
|
-
|
|
322
|
-
FlowSpec --> FlowDev["/flow-dev<br/>TASKS.md execution<br/>TDD Checkpoint"]
|
|
323
|
-
|
|
324
|
-
FlowDev --> FlowQuality["/flow-quality<br/>Quick/Full Verification<br/>Spec + Quality + Security"]
|
|
325
|
-
|
|
326
|
-
FlowQuality --> FlowRelease["/flow-release<br/>PR creation<br/>Branch decision"]
|
|
327
|
-
|
|
328
|
-
FlowRelease --> FlowVerify["/flow-verify<br/>Consistency check"]
|
|
329
|
-
|
|
330
|
-
FlowVerify --> End([Release Complete])
|
|
331
|
-
|
|
332
|
-
FlowVerify -.->|Can be called at any stage| ReqLevel
|
|
327
|
+
FlowVerify -.->|Can be re-run at any stage| ReqLevel
|
|
333
328
|
|
|
334
329
|
style ProjectLevel fill:#e1f5ff
|
|
335
330
|
style ReqLevel fill:#fff4e1
|
|
336
331
|
style FlowInit fill:#e8f5e9
|
|
337
|
-
style FlowClarify fill:#fff9c4
|
|
338
332
|
style FlowSpec fill:#e8f5e9
|
|
339
333
|
style FlowDev fill:#f3e5f5
|
|
340
|
-
style
|
|
334
|
+
style FlowVerify fill:#e1bee7
|
|
341
335
|
style FlowRelease fill:#e0f2f1
|
|
342
|
-
style
|
|
336
|
+
style End fill:#e3f2fd
|
|
343
337
|
```
|
|
344
338
|
|
|
345
339
|
**Workflow Notes**:
|
|
346
340
|
- **Project-Level Commands** (light blue): Execute once at project initialization, establish global standards (SSOT)
|
|
347
341
|
- **Requirement-Level Commands** (light orange): Execute once per requirement (REQ-XXX)
|
|
348
|
-
- **
|
|
349
|
-
- **
|
|
350
|
-
- **Unified
|
|
351
|
-
- **
|
|
352
|
-
- **TDD Checkpoint
|
|
353
|
-
- **
|
|
354
|
-
- **Consistency Check**: `/flow-verify` can be called at any stage to ensure document consistency
|
|
342
|
+
- **Canonical Mainline**: `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
343
|
+
- **Harness Runtime Chain**: Each stage delegates to `npm run harness:*` operations with persisted checkpoints
|
|
344
|
+
- **Unified /flow:spec**: Consolidates planning output into a task manifest
|
|
345
|
+
- **Report Card Gate**: `/flow:verify --strict` blocks release when quality gates fail
|
|
346
|
+
- **TDD Checkpoint**: `/flow:dev` keeps fail-first verification before implementation
|
|
347
|
+
- **Deprecated Commands**: `/flow:new`, `/flow:clarify`, `/flow:checklist`, `/flow:quality` remain as migration stubs
|
|
355
348
|
|
|
356
349
|
---
|
|
357
350
|
|
|
@@ -405,7 +398,7 @@ devflow/
|
|
|
405
398
|
### Quality Gates
|
|
406
399
|
|
|
407
400
|
- Pre-push Guard (TypeScript, tests, linting, security, build)
|
|
408
|
-
-
|
|
401
|
+
- Report Card Gate (`/flow:verify --strict` before `/flow:release`)
|
|
409
402
|
- Constitution Compliance (enforced at every stage)
|
|
410
403
|
- TDD Checkpoint (TEST VERIFICATION CHECKPOINT)
|
|
411
404
|
- Guardrail Hooks (PreToolUse real-time blocking of non-compliant operations)
|
|
@@ -494,13 +487,42 @@ bash .claude/tests/run-all-tests.sh --scripts
|
|
|
494
487
|
|
|
495
488
|
## 📝 Version History
|
|
496
489
|
|
|
497
|
-
|
|
490
|
+
Note: entries before v6.0.0 keep their original command syntax for historical accuracy.
|
|
491
|
+
|
|
492
|
+
### v6.0.0 (2026-02-18) - Latest Release
|
|
493
|
+
|
|
494
|
+
**🧩 Harness-First Mainline: Simpler default flow with auditable runtime state**
|
|
495
|
+
|
|
496
|
+
v6.0.0 simplifies cc-devflow around a single default chain and internal runtime engine:
|
|
497
|
+
|
|
498
|
+
- **Default Command Chain**
|
|
499
|
+
- `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
500
|
+
- Every stage maps to `npm run harness:*` operations for deterministic orchestration
|
|
501
|
+
|
|
502
|
+
- **Runtime Artifacts**
|
|
503
|
+
- `context-package.md` + `harness-state.json` for bootstrap state
|
|
504
|
+
- `task-manifest.json` + `runtime-events.jsonl` for execution trace
|
|
505
|
+
- `report-card.json` + `release-note.md` for quality and release evidence
|
|
506
|
+
|
|
507
|
+
- **Deprecated Command Migrations**
|
|
508
|
+
- `/flow:new` → run the 5-stage mainline explicitly
|
|
509
|
+
- `/flow:clarify` → merged into `/flow:spec` planning loop
|
|
510
|
+
- `/flow:checklist` and `/flow:quality` → replaced by `/flow:verify`
|
|
511
|
+
|
|
512
|
+
**📊 v6.0 Improvements**:
|
|
513
|
+
| Metric | Before | After | Improvement |
|
|
514
|
+
|--------|--------|-------|-------------|
|
|
515
|
+
| Default requirement commands | 8+ mixed paths | 5-stage fixed chain | Simplified |
|
|
516
|
+
| Resume capability | Command-specific | Unified `harness:resume` | Deterministic |
|
|
517
|
+
| Quality evidence | Fragmented outputs | Single report card gate | Auditable |
|
|
518
|
+
|
|
519
|
+
### v4.7.0 (2026-02-07)
|
|
498
520
|
|
|
499
521
|
**🤝 Claude Team Integration: Multi-Agent Parallel Collaboration**
|
|
500
522
|
|
|
501
523
|
v4.7.0 introduces Claude Team integration for multi-agent parallel development:
|
|
502
524
|
|
|
503
|
-
- **Team Mode for /flow
|
|
525
|
+
- **Team Mode for /flow:dev** - Parallel task execution with multiple agents
|
|
504
526
|
- `--team` flag enables Team mode (default 3 agents)
|
|
505
527
|
- `--agents N` specifies agent count (2-5)
|
|
506
528
|
- Automatic task dependency analysis and conflict detection
|
|
@@ -555,8 +577,8 @@ v4.3.0 introduces Git Worktree integration for parallel development with isolate
|
|
|
555
577
|
- Shell aliases template (za/zl/zm/zw)
|
|
556
578
|
|
|
557
579
|
- **Modified Commands**
|
|
558
|
-
- `/flow
|
|
559
|
-
- `/flow
|
|
580
|
+
- `/flow:init` - Default worktree mode, `--branch-only` for compatibility
|
|
581
|
+
- `/flow:release` - Automatic worktree cleanup
|
|
560
582
|
|
|
561
583
|
**📊 v4.3 Improvements**:
|
|
562
584
|
| Metric | Before | After | Improvement |
|
|
@@ -567,11 +589,11 @@ v4.3.0 introduces Git Worktree integration for parallel development with isolate
|
|
|
567
589
|
|
|
568
590
|
### v4.1.0 (2026-02-07)
|
|
569
591
|
|
|
570
|
-
**🎯 Unified Specification Phase: /flow
|
|
592
|
+
**🎯 Unified Specification Phase: /flow:spec Command**
|
|
571
593
|
|
|
572
|
-
v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow
|
|
594
|
+
v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow:spec` command with parallel execution:
|
|
573
595
|
|
|
574
|
-
- **Unified /flow
|
|
596
|
+
- **Unified /flow:spec Command** - One command for entire specification phase
|
|
575
597
|
- Full Mode: PRD → Tech + UI (parallel) → Epic/Tasks
|
|
576
598
|
- Quick Mode: `--skip-tech --skip-ui` for small requirements
|
|
577
599
|
- Backend Only: `--skip-ui`
|
|
@@ -583,12 +605,12 @@ v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow-spec` co
|
|
|
583
605
|
|
|
584
606
|
- **Simplified Workflows** (v4.1)
|
|
585
607
|
```
|
|
586
|
-
Quick (3 steps): /flow
|
|
587
|
-
Standard (4 steps): /flow
|
|
588
|
-
Full (5 steps): /flow
|
|
608
|
+
Quick (3 steps): /flow:init --quick → /flow:spec --skip-tech --skip-ui → /flow:dev → /flow:release
|
|
609
|
+
Standard (4 steps): /flow:init → /flow:spec → /flow:dev → /flow:verify → /flow:release
|
|
610
|
+
Full (5 steps): /flow:init → /flow:spec → /flow:dev → /flow:verify --strict → /flow:release
|
|
589
611
|
```
|
|
590
612
|
|
|
591
|
-
- **Deprecations**: `/flow-prd`, `/flow-tech`, `/flow-ui`, `/flow-epic` now deprecated (use `/flow
|
|
613
|
+
- **Deprecations**: `/flow-prd`, `/flow-tech`, `/flow-ui`, `/flow-epic` now deprecated (use `/flow:spec`)
|
|
592
614
|
|
|
593
615
|
**📊 v4.1 Improvements**:
|
|
594
616
|
| Metric | Before (v4.0) | After (v4.1) | Improvement |
|
|
@@ -681,9 +703,9 @@ v2.3.0 upgrades the Constitution from a "document" to an "executable discipline
|
|
|
681
703
|
- Phase 4: TDD Implementation
|
|
682
704
|
- `flow-debugging` and `flow-tdd` skills
|
|
683
705
|
|
|
684
|
-
- **Brainstorming Integration** - `/flow
|
|
706
|
+
- **Brainstorming Integration** - `/flow:init` now includes brainstorming
|
|
685
707
|
- `BRAINSTORM.md` as requirement "North Star"
|
|
686
|
-
- `/flow
|
|
708
|
+
- `/flow:spec` requires BRAINSTORM alignment check
|
|
687
709
|
- `flow-brainstorming` skill
|
|
688
710
|
|
|
689
711
|
- **Pressure Testing Framework** - TDD for Skills
|
|
@@ -696,12 +718,12 @@ v2.3.0 upgrades the Constitution from a "document" to an "executable discipline
|
|
|
696
718
|
- All `superpowers:xxx` references replaced with local skills
|
|
697
719
|
|
|
698
720
|
- **Ralph × Manus Integration** - Autonomous development with memory (NEW)
|
|
699
|
-
- Merged into `/flow
|
|
721
|
+
- Merged into `/flow:dev` (Autonomous by default)
|
|
700
722
|
- `flow-attention-refresh` skill with 4 refresh protocols
|
|
701
723
|
- `ERROR_LOG.md` structured error tracking
|
|
702
724
|
- `research/attempts/` failure trace recording
|
|
703
725
|
- Stop Hook for self-referential loops
|
|
704
|
-
- Manus method in `/flow
|
|
726
|
+
- Manus method in `/flow:init` Stage 2.5 Research
|
|
705
727
|
- Target: ≥85% task completion rate without human intervention
|
|
706
728
|
|
|
707
729
|
**📋 Constitution v2.1.0**:
|
package/README.zh-CN.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 🚀 cc-devflow
|
|
2
2
|
|
|
3
|
-
> Claude Code
|
|
3
|
+
> Claude Code Harness 主链需求开发流系统
|
|
4
4
|
|
|
5
|
-
基于 Claude Code
|
|
5
|
+
基于 Claude Code 官方子代理、钩子和设置机制构建的完整开发工作流系统。通过可恢复的命令链将需求从规划推进到代码交付。
|
|
6
6
|
|
|
7
7
|
[中文文档](./README.zh-CN.md) | [English](./README.md)
|
|
8
8
|
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
## 🎯 一句话介绍
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
基于 harness 的 5 阶段主链:`/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`。
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
## ✨ 核心特性
|
|
18
18
|
|
|
19
|
-
- 🎯
|
|
20
|
-
- 🔄
|
|
19
|
+
- 🎯 **Harness 主链** - 默认路径固定为 `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
20
|
+
- 🔄 **NPM 命令链** - 流程命令统一映射到 `harness:*` 运行时操作,支持断点与恢复
|
|
21
21
|
- 📋 **文档驱动** - 自动化 PRD → UI原型 → EPIC → TASKS → 实现链条
|
|
22
22
|
- 📝 **模板驱动** - 自执行模板(PRD_TEMPLATE, EPIC_TEMPLATE, TASKS_TEMPLATE)
|
|
23
|
-
- 🔄 **智能恢复** -
|
|
23
|
+
- 🔄 **智能恢复** - `harness:resume` 基于 checkpoint 恢复中断任务
|
|
24
24
|
- 🛡️ **质量闸** - 自动化 TypeScript 检查、测试、代码检查和安全扫描
|
|
25
25
|
- 🤖 **子代理编排** - 12 个专业研究型代理负责不同开发阶段
|
|
26
26
|
- 🎨 **UI原型生成** - 条件触发的HTML原型,融合艺术设计灵感
|
|
@@ -98,7 +98,7 @@ export SKIP_TDD_ENFORCER=1
|
|
|
98
98
|
|
|
99
99
|
| 分类 | Skills | 用途 |
|
|
100
100
|
|------|--------|------|
|
|
101
|
-
| **Workflow** | flow-init, flow-spec, flow-dev, flow-
|
|
101
|
+
| **Workflow** | flow-init, flow-spec, flow-dev, flow-verify, flow-release | 核心开发工作流 |
|
|
102
102
|
| **Domain** | tdd, debugging, brainstorming, verification | 领域专业知识 |
|
|
103
103
|
| **Guardrail** | constitution-guardian, tdd-enforcer | 实时合规检查 |
|
|
104
104
|
| **Utility** | npm-release, skill-creator, writing-skills | 开发工具 |
|
|
@@ -195,7 +195,11 @@ cc-devflow adapt --cwd /path/to/project --platform cursor
|
|
|
195
195
|
### 第一个需求
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
|
-
/flow
|
|
198
|
+
/flow:init "REQ-001|用户认证|https://docs.example.com/auth"
|
|
199
|
+
/flow:spec "REQ-001"
|
|
200
|
+
/flow:dev "REQ-001"
|
|
201
|
+
/flow:verify "REQ-001" --strict
|
|
202
|
+
/flow:release "REQ-001"
|
|
199
203
|
```
|
|
200
204
|
|
|
201
205
|
<details>
|
|
@@ -254,15 +258,16 @@ bash .claude/tests/constitution/run_all_constitution_tests.sh
|
|
|
254
258
|
|
|
255
259
|
| 命令 | 用途 | 快速示例 | 详细文档 |
|
|
256
260
|
|------|------|----------|----------|
|
|
257
|
-
| `/flow
|
|
258
|
-
| `/flow
|
|
259
|
-
| `/flow
|
|
260
|
-
| `/flow
|
|
261
|
-
| `/flow
|
|
262
|
-
| `/flow
|
|
263
|
-
| `/flow
|
|
264
|
-
| `/flow
|
|
265
|
-
| `/flow
|
|
261
|
+
| `/flow:init` | 📦 初始化需求上下文 | `/flow:init "REQ-123\|功能"` | [→](.claude/commands/flow/init.md) |
|
|
262
|
+
| `/flow:spec` | 📋 生成任务清单 | `/flow:spec "REQ-123"` | [→](.claude/commands/flow/spec.md) |
|
|
263
|
+
| `/flow:dev` | 🛠️ 分发并执行任务 | `/flow:dev "REQ-123"` | [→](.claude/commands/flow/dev.md) |
|
|
264
|
+
| `/flow:verify` | ✅ 执行报告卡质量闸 | `/flow:verify "REQ-123" --strict` | [→](.claude/commands/flow/verify.md) |
|
|
265
|
+
| `/flow:release` | 🚢 发布与收尾清理 | `/flow:release "REQ-123"` | [→](.claude/commands/flow/release.md) |
|
|
266
|
+
| `/flow:fix` | 🐛 系统化缺陷修复 | `/flow:fix "BUG-123\|描述"` | [→](.claude/commands/flow/fix.md) |
|
|
267
|
+
| `/flow:new` | ⚠️ 已废弃别名 | 改用 `/flow:init` 主链 | [→](.claude/commands/flow/new.md) |
|
|
268
|
+
| `/flow:clarify` | ⚠️ 已废弃 | 合并入 `/flow:spec` | [→](.claude/commands/flow/clarify.md) |
|
|
269
|
+
| `/flow:checklist` | ⚠️ 已废弃 | 改用 `/flow:verify --strict` | [→](.claude/commands/flow/checklist.md) |
|
|
270
|
+
| `/flow:quality` | ⚠️ 已废弃 | 改用 `/flow:verify` | [→](.claude/commands/flow/quality.md) |
|
|
266
271
|
|
|
267
272
|
📚 [完整命令参考](docs/commands/README.zh-CN.md)
|
|
268
273
|
|
|
@@ -275,16 +280,15 @@ bash .claude/tests/constitution/run_all_constitution_tests.sh
|
|
|
275
280
|
├─ 设计系统架构? → /core-architecture
|
|
276
281
|
├─ 建立编码规范? → /core-guidelines
|
|
277
282
|
├─ 建立设计风格指南? → /core-style
|
|
278
|
-
├─
|
|
279
|
-
├─
|
|
280
|
-
├─
|
|
281
|
-
├─
|
|
282
|
-
├─ 开发中断需要继续? → /flow
|
|
283
|
-
├─ 检查开发进度? → /flow
|
|
284
|
-
├─
|
|
285
|
-
├─
|
|
286
|
-
|
|
287
|
-
└─ 准备发布? → /flow-release "REQ-123"
|
|
283
|
+
├─ 启动需求交付? → /flow:init "REQ-123|功能|URLs"
|
|
284
|
+
├─ 生成任务清单? → /flow:spec "REQ-123"
|
|
285
|
+
├─ 执行任务? → /flow:dev "REQ-123"
|
|
286
|
+
├─ 严格质量闸? → /flow:verify "REQ-123" --strict
|
|
287
|
+
├─ 开发中断需要继续? → /flow:restart "REQ-123"
|
|
288
|
+
├─ 检查开发进度? → /flow:status REQ-123
|
|
289
|
+
├─ 任意阶段复检一致性? → /flow:verify "REQ-123"
|
|
290
|
+
├─ 修复生产 Bug? → /flow:fix "BUG-001|描述"
|
|
291
|
+
└─ 准备发布? → /flow:release "REQ-123"
|
|
288
292
|
```
|
|
289
293
|
</details>
|
|
290
294
|
|
|
@@ -308,44 +312,34 @@ graph TB
|
|
|
308
312
|
CoreGuidelines --> ReqLevel
|
|
309
313
|
CoreStyle --> ReqLevel
|
|
310
314
|
|
|
311
|
-
ReqLevel([需求级开发流程]) --> FlowInit["/flow
|
|
315
|
+
ReqLevel([需求级开发流程]) --> FlowInit["/flow:init<br/>harness:init + harness:pack"]
|
|
316
|
+
FlowInit --> FlowSpec["/flow:spec<br/>harness:plan<br/>task-manifest"]
|
|
317
|
+
FlowSpec --> FlowDev["/flow:dev<br/>harness:dispatch/resume<br/>runtime-events"]
|
|
318
|
+
FlowDev --> FlowVerify["/flow:verify<br/>harness:verify<br/>report-card"]
|
|
319
|
+
FlowVerify --> FlowRelease["/flow:release<br/>harness:release/janitor<br/>release-note"]
|
|
320
|
+
FlowRelease --> End([发布完成])
|
|
312
321
|
|
|
313
|
-
|
|
314
|
-
FlowClarify --> FlowSpec["/flow-spec (v4.1)<br/>PRD → Tech+UI (并行) → Epic<br/>统一规格阶段"]
|
|
315
|
-
FlowInit -.->|跳过澄清| FlowSpec
|
|
316
|
-
|
|
317
|
-
FlowSpec --> FlowDev["/flow-dev<br/>TASKS.md 执行<br/>TDD 强制"]
|
|
318
|
-
|
|
319
|
-
FlowDev --> FlowQuality["/flow-quality<br/>快速/完整验证<br/>规格 + 质量 + 安全"]
|
|
320
|
-
|
|
321
|
-
FlowQuality --> FlowRelease["/flow-release<br/>PR 创建 & 部署"]
|
|
322
|
-
|
|
323
|
-
FlowRelease --> FlowVerify["/flow-verify<br/>一致性检查"]
|
|
324
|
-
|
|
325
|
-
FlowVerify --> End([发布完成])
|
|
326
|
-
|
|
327
|
-
FlowVerify -.->|可在任意阶段调用| ReqLevel
|
|
322
|
+
FlowVerify -.->|可在任意阶段重跑| ReqLevel
|
|
328
323
|
|
|
329
324
|
style ProjectLevel fill:#e1f5ff
|
|
330
325
|
style ReqLevel fill:#fff4e1
|
|
331
326
|
style FlowInit fill:#e8f5e9
|
|
332
|
-
style FlowClarify fill:#fff9c4
|
|
333
327
|
style FlowSpec fill:#e8f5e9
|
|
334
328
|
style FlowDev fill:#f3e5f5
|
|
335
|
-
style
|
|
329
|
+
style FlowVerify fill:#fce4ec
|
|
336
330
|
style FlowRelease fill:#e0f2f1
|
|
337
|
-
style
|
|
331
|
+
style End fill:#e3f2fd
|
|
338
332
|
```
|
|
339
333
|
|
|
340
334
|
**流程说明**:
|
|
341
335
|
- **项目级命令**(浅蓝色):项目初始化时执行一次,建立全局标准(SSOT)
|
|
342
336
|
- **需求级命令**(浅橙色):每个需求(REQ-XXX)执行一次
|
|
343
|
-
-
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
- **TDD 强制执行**:`/flow
|
|
348
|
-
-
|
|
337
|
+
- **默认主链**:`/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
338
|
+
- **Harness 运行时链路**:各阶段统一委托 `npm run harness:*`,并持久化 checkpoint
|
|
339
|
+
- **统一 /flow:spec**:将规格阶段收敛为单一任务清单产出
|
|
340
|
+
- **报告卡质量闸**:`/flow:verify --strict` 不通过时阻断发布
|
|
341
|
+
- **TDD 强制执行**:`/flow:dev` 保留 fail-first 检查
|
|
342
|
+
- **废弃命令**:`/flow:new`、`/flow:clarify`、`/flow:checklist`、`/flow:quality` 仅保留迁移提示
|
|
349
343
|
|
|
350
344
|
---
|
|
351
345
|
|
|
@@ -399,7 +393,7 @@ devflow/
|
|
|
399
393
|
### 质量闸
|
|
400
394
|
|
|
401
395
|
- Pre-push Guard(TypeScript、测试、代码检查、安全、构建)
|
|
402
|
-
-
|
|
396
|
+
- Report Card Gate(`/flow:verify --strict`,在 `/flow:release` 前执行)
|
|
403
397
|
- Constitution Compliance(每个阶段强制执行)
|
|
404
398
|
- TDD Checkpoint(TEST VERIFICATION CHECKPOINT)
|
|
405
399
|
- Guardrail Hooks(PreToolUse 实时阻止不合规操作)
|
|
@@ -488,7 +482,36 @@ bash .claude/tests/run-all-tests.sh --scripts
|
|
|
488
482
|
|
|
489
483
|
## 📝 版本历史
|
|
490
484
|
|
|
491
|
-
|
|
485
|
+
说明:v6.0.0 之前的条目保留当时的命令写法,用于历史追踪。
|
|
486
|
+
|
|
487
|
+
### v6.0.0 (2026-02-18) - 最新版本
|
|
488
|
+
|
|
489
|
+
**🧩 Harness-First 主链:默认流程收敛为可审计运行时**
|
|
490
|
+
|
|
491
|
+
v6.0.0 将 cc-devflow 收敛为单一默认路径,并由内部 runtime 引擎驱动:
|
|
492
|
+
|
|
493
|
+
- **默认命令链**
|
|
494
|
+
- `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
495
|
+
- 每个阶段都映射到 `npm run harness:*`,保证流程可恢复、可追踪
|
|
496
|
+
|
|
497
|
+
- **核心运行时产物**
|
|
498
|
+
- `context-package.md` + `harness-state.json`:初始化状态
|
|
499
|
+
- `task-manifest.json` + `runtime-events.jsonl`:执行轨迹
|
|
500
|
+
- `report-card.json` + `release-note.md`:质量与发布证据
|
|
501
|
+
|
|
502
|
+
- **废弃命令迁移**
|
|
503
|
+
- `/flow:new` → 改为显式执行 5 阶段主链
|
|
504
|
+
- `/flow:clarify` → 合并进 `/flow:spec` 规划闭环
|
|
505
|
+
- `/flow:checklist`、`/flow:quality` → 统一迁移到 `/flow:verify`
|
|
506
|
+
|
|
507
|
+
**📊 v6.0 改进指标**:
|
|
508
|
+
| 指标 | 之前 | 之后 | 改善 |
|
|
509
|
+
|------|------|------|------|
|
|
510
|
+
| 默认需求命令路径 | 8+ 条混合路径 | 固定 5 阶段主链 | 显著简化 |
|
|
511
|
+
| 中断恢复能力 | 命令分散实现 | 统一 `harness:resume` | 更稳定 |
|
|
512
|
+
| 质量证据 | 分散产物 | 单一 report-card 闸门 | 可审计 |
|
|
513
|
+
|
|
514
|
+
### v4.7.0 (2026-02-07)
|
|
492
515
|
|
|
493
516
|
**🤝 Claude Team 集成:多 Agent 并行协作**
|
|
494
517
|
|
|
@@ -549,8 +572,8 @@ v4.3.0 引入 Git Worktree 集成,支持多个隔离的 Claude Code 会话并
|
|
|
549
572
|
- Shell 别名模板 (za/zl/zm/zw)
|
|
550
573
|
|
|
551
574
|
- **修改的命令**
|
|
552
|
-
- `/flow
|
|
553
|
-
- `/flow
|
|
575
|
+
- `/flow:init` - 默认 worktree 模式,`--branch-only` 兼容旧模式
|
|
576
|
+
- `/flow:release` - 自动清理 worktree
|
|
554
577
|
|
|
555
578
|
**📊 v4.3 改进指标**:
|
|
556
579
|
| 指标 | 之前 | 之后 | 改善 |
|
|
@@ -561,11 +584,11 @@ v4.3.0 引入 Git Worktree 集成,支持多个隔离的 Claude Code 会话并
|
|
|
561
584
|
|
|
562
585
|
### v4.1.0 (2026-02-07)
|
|
563
586
|
|
|
564
|
-
**🎯 统一规格阶段:/flow
|
|
587
|
+
**🎯 统一规格阶段:/flow:spec 命令**
|
|
565
588
|
|
|
566
|
-
v4.1.0 将 flow-prd/flow-tech/flow-ui/flow-epic 合并为单一 `/flow
|
|
589
|
+
v4.1.0 将 flow-prd/flow-tech/flow-ui/flow-epic 合并为单一 `/flow:spec` 命令,支持并行执行:
|
|
567
590
|
|
|
568
|
-
- **统一 /flow
|
|
591
|
+
- **统一 /flow:spec 命令** - 一个命令完成整个规格阶段
|
|
569
592
|
- 完整模式:PRD → Tech + UI(并行)→ Epic/Tasks
|
|
570
593
|
- 快速模式:`--skip-tech --skip-ui` 适用于小需求
|
|
571
594
|
- 仅后端:`--skip-ui`
|
|
@@ -577,12 +600,12 @@ v4.1.0 将 flow-prd/flow-tech/flow-ui/flow-epic 合并为单一 `/flow-spec` 命
|
|
|
577
600
|
|
|
578
601
|
- **简化工作流** (v4.1)
|
|
579
602
|
```
|
|
580
|
-
精简 (3 步): /flow
|
|
581
|
-
标准 (4 步): /flow
|
|
582
|
-
完整 (5 步): /flow
|
|
603
|
+
精简 (3 步): /flow:init --quick → /flow:spec --skip-tech --skip-ui → /flow:dev → /flow:release
|
|
604
|
+
标准 (4 步): /flow:init → /flow:spec → /flow:dev → /flow:verify → /flow:release
|
|
605
|
+
完整 (5 步): /flow:init → /flow:spec → /flow:dev → /flow:verify --strict → /flow:release
|
|
583
606
|
```
|
|
584
607
|
|
|
585
|
-
- **废弃命令**:`/flow-prd`、`/flow-tech`、`/flow-ui`、`/flow-epic` 已废弃(请使用 `/flow
|
|
608
|
+
- **废弃命令**:`/flow-prd`、`/flow-tech`、`/flow-ui`、`/flow-epic` 已废弃(请使用 `/flow:spec`)
|
|
586
609
|
|
|
587
610
|
**📊 v4.1 改进指标**:
|
|
588
611
|
| 指标 | 之前 (v4.0) | 之后 (v4.1) | 改善 |
|
|
@@ -675,9 +698,9 @@ v2.3.0 将 Constitution 从"文档"升级为"可执行纪律系统",借鉴 sup
|
|
|
675
698
|
- 阶段 4:TDD 实现
|
|
676
699
|
- `flow-debugging` 和 `flow-tdd` 技能
|
|
677
700
|
|
|
678
|
-
- **头脑风暴集成** - `/flow
|
|
701
|
+
- **头脑风暴集成** - `/flow:init` 现在包含头脑风暴
|
|
679
702
|
- `BRAINSTORM.md` 作为需求"北极星"
|
|
680
|
-
- `/flow
|
|
703
|
+
- `/flow:spec` 需要 BRAINSTORM 对齐检查
|
|
681
704
|
- `flow-brainstorming` 技能
|
|
682
705
|
|
|
683
706
|
- **压力测试框架** - 技能的 TDD
|
|
@@ -690,12 +713,12 @@ v2.3.0 将 Constitution 从"文档"升级为"可执行纪律系统",借鉴 sup
|
|
|
690
713
|
- 所有 `superpowers:xxx` 引用替换为本地技能
|
|
691
714
|
|
|
692
715
|
- **Ralph × Manus 集成** - 有记忆的自主开发(新增)
|
|
693
|
-
- 合并入 `/flow
|
|
716
|
+
- 合并入 `/flow:dev` (默认自主模式)
|
|
694
717
|
- `flow-attention-refresh` 技能提供 4 个刷新协议
|
|
695
718
|
- `ERROR_LOG.md` 结构化错误追踪
|
|
696
719
|
- `research/attempts/` 失败痕迹记录
|
|
697
720
|
- Stop Hook 实现自引用循环
|
|
698
|
-
- `/flow
|
|
721
|
+
- `/flow:init` Stage 2.5 融入 Manus 研究方法
|
|
699
722
|
- 目标:无人工干预任务完成率 ≥85%
|
|
700
723
|
|
|
701
724
|
**📋 Constitution v2.1.0**:
|
package/bin/harness.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* [INPUT]: 依赖 lib/harness/cli 的 runCli 函数与 shell argv。
|
|
5
|
+
* [OUTPUT]: 将 harness 子命令分发到内核,并用 exit code 返回执行结果。
|
|
6
|
+
* [POS]: Harness 命令行入口,被 npm scripts(harness:*) 调用。
|
|
7
|
+
* [PROTOCOL]: 变更时更新此头部,然后检查 CLAUDE.md
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const { runCli } = require('../lib/harness/cli');
|
|
11
|
+
|
|
12
|
+
async function main() {
|
|
13
|
+
try {
|
|
14
|
+
const code = await runCli(process.argv.slice(2));
|
|
15
|
+
process.exit(code);
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error(error.message);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
main();
|