cc-devflow 4.3.0 → 4.5.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/skills/cc-act/CHANGELOG.md +70 -0
- package/.claude/skills/cc-act/PLAYBOOK.md +212 -0
- package/.claude/skills/cc-act/SKILL.md +330 -0
- package/.claude/skills/cc-act/assets/PR_BRIEF_TEMPLATE.md +68 -0
- package/.claude/skills/cc-act/assets/RELEASE_NOTE_TEMPLATE.md +29 -0
- package/.claude/skills/cc-act/references/closure-contract.md +49 -0
- package/.claude/skills/cc-act/references/git-commit-guidelines.md +83 -0
- package/.claude/skills/cc-act/scripts/archive-requirement.sh +49 -0
- package/.claude/skills/cc-act/scripts/cc-act-common.sh +245 -0
- package/.claude/skills/cc-act/scripts/detect-ship-target.sh +82 -0
- package/.claude/skills/cc-act/scripts/generate-status-report.sh +83 -0
- package/.claude/skills/cc-act/scripts/render-pr-brief.sh +200 -0
- package/.claude/skills/cc-act/scripts/sync-act-docs.sh +328 -0
- package/.claude/skills/cc-act/scripts/verify-act-gate.sh +63 -0
- package/.claude/skills/cc-check/CHANGELOG.md +78 -0
- package/.claude/skills/cc-check/PLAYBOOK.md +153 -0
- package/.claude/skills/cc-check/SKILL.md +353 -0
- package/.claude/skills/cc-check/assets/REPORT_CARD_TEMPLATE.json +53 -0
- package/.claude/skills/cc-check/references/gate-contract.md +29 -0
- package/.claude/skills/cc-check/references/review-contract.md +45 -0
- package/.claude/skills/cc-check/scripts/render-report-card.js +229 -0
- package/.claude/skills/cc-check/scripts/run-quality-gates.sh +86 -0
- package/.claude/skills/cc-check/scripts/verify-gate.sh +57 -0
- package/.claude/skills/cc-do/CHANGELOG.md +54 -0
- package/.claude/skills/cc-do/PLAYBOOK.md +119 -0
- package/.claude/skills/cc-do/SKILL.md +224 -0
- package/.claude/skills/cc-do/references/execution-recovery.md +86 -0
- package/.claude/skills/cc-do/references/parallel-dispatch.md +80 -0
- package/.claude/skills/cc-do/scripts/build-task-context.sh +184 -0
- package/.claude/skills/cc-do/scripts/cc-do-common.sh +79 -0
- package/.claude/skills/cc-do/scripts/check-task-status.sh +92 -0
- package/.claude/skills/cc-do/scripts/detect-file-conflicts.sh +87 -0
- package/.claude/skills/cc-do/scripts/mark-task-complete.sh +119 -0
- package/.claude/skills/cc-do/scripts/record-review-decision.sh +89 -0
- package/.claude/skills/cc-do/scripts/recover-workflow.sh +84 -0
- package/.claude/skills/cc-do/scripts/run-problem-analysis.sh +70 -0
- package/.claude/skills/cc-do/scripts/select-ready-tasks.sh +135 -0
- package/.claude/skills/cc-do/scripts/verify-task-gates.sh +94 -0
- package/.claude/skills/cc-do/scripts/write-task-checkpoint.sh +102 -0
- package/.claude/skills/cc-investigate/CHANGELOG.md +31 -0
- package/.claude/skills/cc-investigate/PLAYBOOK.md +49 -0
- package/.claude/skills/cc-investigate/SKILL.md +229 -0
- package/.claude/skills/cc-investigate/assets/ANALYSIS_TEMPLATE.md +56 -0
- package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +53 -0
- package/.claude/skills/cc-investigate/assets/TASK_MANIFEST_TEMPLATE.json +106 -0
- package/.claude/skills/cc-investigate/references/investigation-contract.md +28 -0
- package/.claude/skills/cc-investigate/scripts/bootstrap-analysis.sh +38 -0
- package/.claude/skills/cc-plan/CHANGELOG.md +104 -0
- package/.claude/skills/cc-plan/PLAYBOOK.md +106 -0
- package/.claude/skills/cc-plan/SKILL.md +333 -0
- package/.claude/skills/cc-plan/assets/DESIGN_TEMPLATE.md +156 -0
- package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +99 -0
- package/.claude/skills/cc-plan/assets/TASK_MANIFEST_TEMPLATE.json +111 -0
- package/.claude/skills/cc-plan/assets/TINY_DESIGN_TEMPLATE.md +80 -0
- package/.claude/skills/cc-plan/references/planning-contract.md +82 -0
- package/.claude/skills/cc-plan/scripts/bump-skill-version.sh +103 -0
- package/.claude/skills/cc-plan/scripts/parse-task-dependencies.js +75 -0
- package/.claude/skills/cc-plan/scripts/validate-scope.sh +78 -0
- package/.claude/skills/cc-roadmap/CHANGELOG.md +119 -0
- package/.claude/skills/cc-roadmap/PLAYBOOK.md +136 -0
- package/.claude/skills/cc-roadmap/SKILL.md +267 -0
- package/.claude/skills/cc-roadmap/assets/BACKLOG_TEMPLATE.md +46 -0
- package/.claude/skills/cc-roadmap/assets/ROADMAP_TEMPLATE.md +154 -0
- package/.claude/skills/cc-roadmap/assets/TRACKING_TEMPLATE.json +51 -0
- package/.claude/skills/cc-roadmap/references/roadmap-dialogue.md +37 -0
- package/.claude/skills/cc-roadmap/scripts/bump-skill-version.sh +103 -0
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/markdown.js +604 -0
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/query.js +63 -0
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/schema.js +245 -0
- package/.claude/skills/cc-roadmap/scripts/lib/roadmap-tracking/store.js +139 -0
- package/.claude/skills/cc-roadmap/scripts/locate-roadmap-item.sh +109 -0
- package/.claude/skills/cc-roadmap/scripts/roadmap-tracking.js +153 -0
- package/.claude/skills/cc-roadmap/scripts/sync-roadmap-progress.sh +100 -0
- package/.claude/skills/cc-simplify/CHANGELOG.md +10 -0
- package/.claude/skills/cc-simplify/SKILL.md +55 -0
- package/.claude/skills/cc-spec-init/CHANGELOG.md +12 -0
- package/.claude/skills/cc-spec-init/PLAYBOOK.md +55 -0
- package/.claude/skills/cc-spec-init/SKILL.md +135 -0
- package/.claude/skills/cc-spec-init/assets/CAPABILITY_TEMPLATE.md +64 -0
- package/.claude/skills/cc-spec-init/assets/CHANGE_META_TEMPLATE.json +28 -0
- package/.claude/skills/cc-spec-init/assets/INDEX_TEMPLATE.md +35 -0
- package/.claude/skills/cc-spec-init/references/spec-contract.md +22 -0
- package/.claude/skills/cc-spec-init/scripts/bootstrap-specs.sh +31 -0
- package/.claude/skills/cc-spec-init/scripts/validate-spec-links.sh +45 -0
- package/CHANGELOG.md +80 -4
- package/README.md +148 -741
- package/README.zh-CN.md +146 -740
- package/bin/adapt.js +2 -6
- package/bin/cc-devflow-cli.js +287 -166
- package/config/distributable-skills.json +24 -0
- package/config/schema/cc-devflow-config.schema.json +45 -0
- package/config/user-config.template.yml +16 -0
- package/docs/CLAUDE.md +10 -6
- package/docs/commands/README.md +19 -46
- package/docs/commands/README.zh-CN.md +25 -48
- package/docs/examples/BY-ARTIFACT.md +7 -0
- package/docs/examples/README.md +38 -0
- package/docs/examples/START-HERE.md +149 -0
- package/docs/examples/example-bindings.json +38 -0
- package/docs/examples/full-design-blocked/BACKLOG.md +45 -0
- package/docs/examples/full-design-blocked/README.md +55 -0
- package/docs/examples/full-design-blocked/ROADMAP.md +53 -0
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/design.md +154 -0
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/task-manifest.json +146 -0
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/tasks.md +78 -0
- package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/review/report-card.json +52 -0
- package/docs/examples/full-design-blocked/roadmap-tracking.json +50 -0
- package/docs/examples/local-handoff/BACKLOG.md +45 -0
- package/docs/examples/local-handoff/README.md +56 -0
- package/docs/examples/local-handoff/ROADMAP.md +45 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/handoff/resume-index.md +39 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/handoff/status.md +29 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/design.md +71 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/task-manifest.json +98 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/tasks.md +59 -0
- package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/review/report-card.json +44 -0
- package/docs/examples/local-handoff/roadmap-tracking.json +48 -0
- package/docs/examples/pdca-loop/BACKLOG.md +46 -0
- package/docs/examples/pdca-loop/README.md +58 -0
- package/docs/examples/pdca-loop/ROADMAP.md +133 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/handoff/pr-brief.md +72 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/handoff/status.md +29 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/design.md +72 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/task-manifest.json +201 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/tasks.md +73 -0
- package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/review/report-card.json +44 -0
- package/docs/examples/pdca-loop/roadmap-tracking.json +114 -0
- package/docs/examples/scripts/check-example-bindings.sh +116 -0
- package/docs/guides/getting-started.md +94 -129
- package/docs/guides/getting-started.zh-CN.md +103 -84
- package/docs/skill-runtime-migration.md +46 -0
- package/docs/v4.3.0-migration-guide.md +60 -225
- package/lib/compiler/CLAUDE.md +55 -84
- package/lib/compiler/__tests__/drift.test.js +1 -1
- package/lib/compiler/__tests__/errors.test.js +0 -1
- package/lib/compiler/__tests__/integration.test.js +49 -3
- package/lib/compiler/__tests__/manifest.test.js +0 -156
- package/lib/compiler/__tests__/parser.test.js +33 -104
- package/lib/compiler/__tests__/schemas.test.js +30 -34
- package/lib/compiler/__tests__/skills-registry.test.js +114 -0
- package/lib/compiler/__tests__/transformer.test.js +5 -9
- package/lib/compiler/emitters/antigravity-emitter.js +5 -213
- package/lib/compiler/emitters/base-emitter.js +3 -298
- package/lib/compiler/emitters/codex-emitter.js +4 -202
- package/lib/compiler/emitters/cursor-emitter.js +3 -287
- package/lib/compiler/emitters/qwen-emitter.js +4 -176
- package/lib/compiler/index.js +65 -345
- package/lib/compiler/manifest.js +6 -68
- package/lib/compiler/parser.js +31 -63
- package/lib/compiler/platforms.js +32 -277
- package/lib/compiler/resource-copier.js +176 -6
- package/lib/compiler/rules-emitters/__tests__/antigravity-rules-emitter.test.js +3 -3
- package/lib/compiler/rules-emitters/__tests__/cursor-rules-emitter.test.js +14 -4
- package/lib/compiler/rules-emitters/__tests__/qwen-rules-emitter.test.js +16 -7
- package/lib/compiler/rules-emitters/antigravity-rules-emitter.js +10 -15
- package/lib/compiler/rules-emitters/base-rules-emitter.js +5 -5
- package/lib/compiler/rules-emitters/cursor-rules-emitter.js +7 -12
- package/lib/compiler/rules-emitters/index.js +6 -3
- package/lib/compiler/rules-emitters/qwen-rules-emitter.js +7 -7
- package/lib/compiler/schemas.js +8 -4
- package/lib/compiler/skills-registry.js +213 -15
- package/lib/compiler/transformer.js +1 -1
- package/lib/skill-runtime/CLAUDE.md +19 -0
- package/lib/skill-runtime/__tests__/autopilot.test.js +210 -0
- package/lib/skill-runtime/__tests__/cli-bootstrap.integration.test.js +291 -0
- package/lib/skill-runtime/__tests__/config.test.js +161 -0
- package/lib/skill-runtime/__tests__/delegation.test.js +97 -0
- package/lib/skill-runtime/__tests__/dispatch.test.js +267 -0
- package/lib/skill-runtime/__tests__/intent.test.js +219 -0
- package/lib/skill-runtime/__tests__/lifecycle.test.js +169 -0
- package/lib/skill-runtime/__tests__/paths.test.js +42 -0
- package/lib/skill-runtime/__tests__/planner.tdd.test.js +250 -0
- package/lib/skill-runtime/__tests__/prepare-pr.test.js +139 -0
- package/lib/skill-runtime/__tests__/query.test.js +284 -0
- package/lib/skill-runtime/__tests__/runtime.integration.test.js +281 -0
- package/lib/skill-runtime/__tests__/schemas.test.js +207 -0
- package/lib/skill-runtime/__tests__/team-state.test.js +51 -0
- package/lib/skill-runtime/__tests__/worker-run.test.js +253 -0
- package/lib/skill-runtime/__tests__/worker.test.js +56 -0
- package/lib/skill-runtime/artifacts.js +93 -0
- package/lib/skill-runtime/config.js +379 -0
- package/lib/skill-runtime/delegation.js +533 -0
- package/lib/skill-runtime/index.js +36 -0
- package/lib/skill-runtime/intent.js +333 -0
- package/lib/skill-runtime/lifecycle.js +294 -0
- package/lib/skill-runtime/operations/CLAUDE.md +19 -0
- package/lib/skill-runtime/operations/approve.js +66 -0
- package/lib/skill-runtime/operations/autopilot-core.js +337 -0
- package/lib/skill-runtime/operations/autopilot-execution.js +307 -0
- package/lib/skill-runtime/operations/autopilot-shared.js +48 -0
- package/lib/skill-runtime/operations/autopilot.js +163 -0
- package/lib/skill-runtime/operations/dispatch.js +454 -0
- package/lib/skill-runtime/operations/init.js +64 -0
- package/lib/{harness → skill-runtime}/operations/janitor.js +9 -6
- package/lib/skill-runtime/operations/plan.js +59 -0
- package/lib/skill-runtime/operations/prepare-pr.js +25 -0
- package/lib/skill-runtime/operations/release.js +96 -0
- package/lib/skill-runtime/operations/resume.js +143 -0
- package/lib/skill-runtime/operations/snapshot.js +45 -0
- package/lib/skill-runtime/operations/verify.js +170 -0
- package/lib/skill-runtime/operations/worker-run.js +529 -0
- package/lib/skill-runtime/operations/worker.js +33 -0
- package/lib/skill-runtime/paths.js +213 -0
- package/lib/skill-runtime/planner.js +519 -0
- package/lib/skill-runtime/query.js +157 -0
- package/lib/skill-runtime/review.js +557 -0
- package/lib/skill-runtime/schemas.js +400 -0
- package/lib/{harness → skill-runtime}/store.js +45 -30
- package/lib/skill-runtime/team-state.js +122 -0
- package/package.json +13 -11
- package/.claude/CLAUDE.md +0 -125
- package/.claude/agents/architecture-designer.md +0 -443
- package/.claude/agents/bug-analyzer.md +0 -381
- package/.claude/agents/checklist-agent.md +0 -175
- package/.claude/agents/clarify-analyst.md +0 -50
- package/.claude/agents/code-quality-reviewer.md +0 -205
- package/.claude/agents/code-reviewer.md +0 -71
- package/.claude/agents/codex-analyzer.md +0 -39
- package/.claude/agents/compatibility-checker.md +0 -579
- package/.claude/agents/consistency-checker.md +0 -532
- package/.claude/agents/dev-implementer.md +0 -195
- package/.claude/agents/flow-researcher.md +0 -132
- package/.claude/agents/impact-analyzer.md +0 -440
- package/.claude/agents/planner.md +0 -230
- package/.claude/agents/prd-writer.md +0 -320
- package/.claude/agents/project-guidelines-generator.md +0 -1329
- package/.claude/agents/qa-tester.md +0 -313
- package/.claude/agents/release-manager.md +0 -295
- package/.claude/agents/security-reviewer.md +0 -314
- package/.claude/agents/spec-reviewer.md +0 -221
- package/.claude/agents/style-guide-generator.md +0 -458
- package/.claude/agents/tech-architect.md +0 -516
- package/.claude/agents/ui-designer.md +0 -485
- package/.claude/commands/core/architecture.md +0 -459
- package/.claude/commands/core/guidelines.md +0 -511
- package/.claude/commands/core/roadmap.md +0 -468
- package/.claude/commands/core/style.md +0 -83
- package/.claude/commands/flow/CLAUDE.md +0 -24
- package/.claude/commands/flow/archive.md +0 -280
- package/.claude/commands/flow/constitution.md +0 -82
- package/.claude/commands/flow/context.md +0 -150
- package/.claude/commands/flow/delta.md +0 -245
- package/.claude/commands/flow/dev.md +0 -40
- package/.claude/commands/flow/fix.md +0 -217
- package/.claude/commands/flow/ideate.md +0 -214
- package/.claude/commands/flow/init.md +0 -38
- package/.claude/commands/flow/release.md +0 -36
- package/.claude/commands/flow/restart.md +0 -97
- package/.claude/commands/flow/spec.md +0 -36
- package/.claude/commands/flow/status.md +0 -64
- package/.claude/commands/flow/update.md +0 -111
- package/.claude/commands/flow/upgrade.md +0 -115
- package/.claude/commands/flow/verify.md +0 -37
- package/.claude/commands/flow/workspace.md +0 -155
- package/.claude/commands/util/cancel-ralph.md +0 -60
- package/.claude/commands/util/code-review.md +0 -58
- package/.claude/commands/util/git-commit.md +0 -422
- package/.claude/commands/util/problem-analyzer.md +0 -60
- package/.claude/config/quality-gates.yml +0 -305
- package/.claude/config/quality-rules.yml +0 -161
- package/.claude/docs/SPEC_KIT_CONSTITUTION_ANALYSIS.md +0 -426
- package/.claude/docs/design/consistency-conflict-detection-algorithms.md +0 -658
- package/.claude/docs/design/intent-driven-input-design.md +0 -380
- package/.claude/docs/design/prd-version-management-design.md +0 -437
- package/.claude/docs/examples/design-inspiration-pool.md +0 -59
- package/.claude/docs/examples/ui-prototype-constitution-checklist.md +0 -75
- package/.claude/docs/guides/INIT_TROUBLESHOOTING.md +0 -117
- package/.claude/docs/guides/NEW_TROUBLESHOOTING.md +0 -99
- package/.claude/docs/guides/ROADMAP_TROUBLESHOOTING.md +0 -188
- package/.claude/docs/guides/TASK_COMPLETION_MARKING.md +0 -338
- package/.claude/docs/guides/TEAM_MODE_GUIDE.md +0 -312
- package/.claude/docs/implementation-summary-v7.md +0 -449
- package/.claude/docs/spec-format-guide.md +0 -349
- package/.claude/docs/state-consolidation-design.md +0 -323
- package/.claude/docs/templates/ARCHITECTURE_TEMPLATE.md +0 -332
- package/.claude/docs/templates/ATTEMPT_TEMPLATE.md +0 -156
- package/.claude/docs/templates/BACKLOG_TEMPLATE.md +0 -261
- package/.claude/docs/templates/BRAINSTORM_TEMPLATE.md +0 -148
- package/.claude/docs/templates/CHECKLIST_TEMPLATE.md +0 -52
- package/.claude/docs/templates/CLARIFICATION_REPORT_TEMPLATE.md +0 -206
- package/.claude/docs/templates/CODE_REVIEW_TEMPLATE.md +0 -71
- package/.claude/docs/templates/DELTA_SPEC_TEMPLATE.md +0 -91
- package/.claude/docs/templates/DESIGN_DECISIONS_TEMPLATE.md +0 -151
- package/.claude/docs/templates/DESIGN_TEMPLATE.md +0 -157
- package/.claude/docs/templates/ERROR_LOG_TEMPLATE.md +0 -80
- package/.claude/docs/templates/INIT_FLOW_TEMPLATE.md +0 -198
- package/.claude/docs/templates/INTENT_CLARIFICATION_TEMPLATE.md +0 -57
- package/.claude/docs/templates/JOURNAL_TEMPLATE.md +0 -75
- package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +0 -76
- package/.claude/docs/templates/PROPOSAL_TEMPLATE.md +0 -91
- package/.claude/docs/templates/RESEARCH_TEMPLATE.md +0 -276
- package/.claude/docs/templates/REVIEW-HIGH.md +0 -57
- package/.claude/docs/templates/ROADMAP_DIALOGUE_TEMPLATE.md +0 -198
- package/.claude/docs/templates/ROADMAP_TEMPLATE.md +0 -310
- package/.claude/docs/templates/SPEC_TEMPLATE_DELTA.md +0 -139
- package/.claude/docs/templates/SPEC_TEMPLATE_PROJECT.md +0 -93
- package/.claude/docs/templates/STYLE_TEMPLATE.md +0 -479
- package/.claude/docs/templates/UI_PROTOTYPE_TEMPLATE.md +0 -373
- package/.claude/docs/templates/_shared/CLAUDE.md +0 -36
- package/.claude/docs/templates/_shared/CONSTITUTION_CHECK.md +0 -125
- package/.claude/docs/templates/_shared/VALIDATION_CHECKLIST.md +0 -187
- package/.claude/docs/templates/_shared/YAML_FRONTMATTER.md +0 -164
- package/.claude/docs/templates/context/dev.jsonl.template +0 -6
- package/.claude/docs/templates/context/epic.jsonl.template +0 -5
- package/.claude/docs/templates/context/prd.jsonl.template +0 -4
- package/.claude/docs/templates/context/research.jsonl.template +0 -4
- package/.claude/docs/templates/context/review.jsonl.template +0 -5
- package/.claude/docs/templates/context/tech.jsonl.template +0 -5
- package/.claude/guides/agent-guides/agent-coordination-guide.md +0 -459
- package/.claude/guides/project-guidelines-system.md +0 -463
- package/.claude/guides/technical-guides/datetime-handling-guide.md +0 -563
- package/.claude/guides/technical-guides/git-github-guide.md +0 -642
- package/.claude/guides/technical-guides/test-execution-guide.md +0 -618
- package/.claude/guides/workflow-guides/bug-fix-orchestrator.md +0 -217
- package/.claude/guides/workflow-guides/flow-orchestrator.md +0 -48
- package/.claude/hooks/CLAUDE.md +0 -342
- package/.claude/hooks/checklist-gate.js +0 -397
- package/.claude/hooks/error-handling-reminder.sh +0 -12
- package/.claude/hooks/error-handling-reminder.ts +0 -459
- package/.claude/hooks/hooks.json +0 -15
- package/.claude/hooks/inject-agent-context.ts +0 -480
- package/.claude/hooks/inject-skill-context.ts +0 -359
- package/.claude/hooks/post-tool-use-tracker.sh +0 -280
- package/.claude/hooks/pre-tool-use-guardrail.sh +0 -36
- package/.claude/hooks/pre-tool-use-guardrail.ts +0 -342
- package/.claude/hooks/ralph-loop.ts +0 -931
- package/.claude/hooks/ralph-stop-hook.sh +0 -190
- package/.claude/hooks/skill-activation-prompt.sh +0 -36
- package/.claude/hooks/skill-activation-prompt.ts +0 -214
- package/.claude/hooks/state/skills-used-test-guard.json +0 -3
- package/.claude/hooks/task-completed-hook.ts +0 -593
- package/.claude/hooks/teammate-idle-hook.ts +0 -690
- package/.claude/hooks/types/team-types.d.ts +0 -238
- package/.claude/rules/devflow-conventions.md +0 -286
- package/.claude/rules/project-constitution.md +0 -1002
- package/.claude/rules/rationalization-library.md +0 -282
- package/.claude/schemas/constitution.schema.json +0 -43
- package/.claude/scripts/.claude/commands/flow/export-openspec.md +0 -221
- package/.claude/scripts/.claude/commands/flow/import-openspec.md +0 -171
- package/.claude/scripts/CLAUDE.md +0 -76
- package/.claude/scripts/__tests__/openspec.test.js +0 -212
- package/.claude/scripts/analyze-upgrade-impact.sh +0 -200
- package/.claude/scripts/archive-requirement.sh +0 -394
- package/.claude/scripts/calculate-checklist-completion.sh +0 -243
- package/.claude/scripts/calculate-quarter.sh +0 -206
- package/.claude/scripts/check-dependencies.sh +0 -409
- package/.claude/scripts/check-prerequisites.sh +0 -232
- package/.claude/scripts/check-task-status.sh +0 -288
- package/.claude/scripts/checklist-errors.sh +0 -131
- package/.claude/scripts/common.sh +0 -1102
- package/.claude/scripts/consolidate-research.sh +0 -182
- package/.claude/scripts/create-requirement.sh +0 -451
- package/.claude/scripts/delta-parser.ts +0 -637
- package/.claude/scripts/detect-file-conflicts.sh +0 -151
- package/.claude/scripts/export-contracts.sh +0 -117
- package/.claude/scripts/export-openspec.js +0 -222
- package/.claude/scripts/extract-data-model.sh +0 -78
- package/.claude/scripts/flow-context-add.sh +0 -134
- package/.claude/scripts/flow-context-init.sh +0 -133
- package/.claude/scripts/flow-context-validate.sh +0 -144
- package/.claude/scripts/flow-delta-apply.sh +0 -297
- package/.claude/scripts/flow-delta-archive.sh +0 -71
- package/.claude/scripts/flow-delta-create.sh +0 -202
- package/.claude/scripts/flow-delta-list.sh +0 -142
- package/.claude/scripts/flow-delta-status.sh +0 -235
- package/.claude/scripts/flow-quality-full.sh +0 -215
- package/.claude/scripts/flow-quality-quick.sh +0 -119
- package/.claude/scripts/flow-workspace-init.sh +0 -117
- package/.claude/scripts/flow-workspace-record.sh +0 -164
- package/.claude/scripts/generate-clarification-questions.sh +0 -377
- package/.claude/scripts/generate-clarification-report.sh +0 -463
- package/.claude/scripts/generate-quickstart.sh +0 -146
- package/.claude/scripts/generate-research-tasks.sh +0 -157
- package/.claude/scripts/generate-status-report.sh +0 -523
- package/.claude/scripts/generate-tech-analysis.sh +0 -46
- package/.claude/scripts/get-workflow-status.sh +0 -415
- package/.claude/scripts/import-openspec.js +0 -272
- package/.claude/scripts/locate-requirement-in-roadmap.sh +0 -233
- package/.claude/scripts/manage-constitution.sh +0 -602
- package/.claude/scripts/mark-task-complete.sh +0 -198
- package/.claude/scripts/parse-task-dependencies.js +0 -334
- package/.claude/scripts/populate-research-tasks.sh +0 -284
- package/.claude/scripts/record-quality-error.sh +0 -165
- package/.claude/scripts/recover-workflow.sh +0 -463
- package/.claude/scripts/run-clarify-scan.sh +0 -601
- package/.claude/scripts/run-high-review.sh +0 -62
- package/.claude/scripts/run-problem-analysis.sh +0 -68
- package/.claude/scripts/run-quality-gates.sh +0 -242
- package/.claude/scripts/setup-epic.sh +0 -173
- package/.claude/scripts/setup-ralph-loop.sh +0 -155
- package/.claude/scripts/sync-roadmap-progress.sh +0 -300
- package/.claude/scripts/sync-task-marks.sh +0 -199
- package/.claude/scripts/team-dev-init.sh +0 -319
- package/.claude/scripts/team-state-recovery.sh +0 -229
- package/.claude/scripts/test-clarify-scan.sh +0 -515
- package/.claude/scripts/update-agent-context.sh +0 -806
- package/.claude/scripts/validate-constitution.sh +0 -567
- package/.claude/scripts/validate-hooks.sh +0 -487
- package/.claude/scripts/validate-research.sh +0 -332
- package/.claude/scripts/validate-scope-boundary.sh +0 -493
- package/.claude/scripts/validate-scope.sh +0 -200
- package/.claude/scripts/verify-gate.sh +0 -269
- package/.claude/scripts/verify-setup.sh +0 -37
- package/.claude/scripts/workflow-status.ts +0 -433
- package/.claude/settings.json +0 -95
- package/.claude/skills/_reference-implementations/README.md +0 -96
- package/.claude/skills/_reference-implementations/backend-express-prisma/SKILL.md +0 -302
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/architecture-overview.md +0 -451
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/async-and-errors.md +0 -307
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/complete-examples.md +0 -638
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/configuration.md +0 -275
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/database-patterns.md +0 -224
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/middleware-guide.md +0 -213
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/routing-and-controllers.md +0 -756
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/sentry-and-monitoring.md +0 -336
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/services-and-repositories.md +0 -789
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/testing-guide.md +0 -235
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/validation-patterns.md +0 -754
- package/.claude/skills/_reference-implementations/frontend-react-mui/SKILL.md +0 -399
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/common-patterns.md +0 -331
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/complete-examples.md +0 -872
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/component-patterns.md +0 -502
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/data-fetching.md +0 -767
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/file-organization.md +0 -502
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/loading-and-error-states.md +0 -501
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/performance.md +0 -406
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/routing-guide.md +0 -364
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/styling-guide.md +0 -428
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/typescript-standards.md +0 -418
- package/.claude/skills/attention-refresh/SKILL.md +0 -170
- package/.claude/skills/brainstorming/SKILL.md +0 -161
- package/.claude/skills/cc-devflow-orchestrator/SKILL.md +0 -169
- package/.claude/skills/constitution-guardian/SKILL.md +0 -306
- package/.claude/skills/constitution-quick-ref/SKILL.md +0 -374
- package/.claude/skills/debugging/SKILL.md +0 -221
- package/.claude/skills/file-standards/SKILL.md +0 -353
- package/.claude/skills/finishing-branch/SKILL.md +0 -189
- package/.claude/skills/flow-dev/CLAUDE.md +0 -16
- package/.claude/skills/flow-dev/SKILL.md +0 -94
- package/.claude/skills/flow-dev/assets/IMPLEMENTATION_PLAN_TEMPLATE.md +0 -71
- package/.claude/skills/flow-dev/context.jsonl +0 -4
- package/.claude/skills/flow-dev/dev-implementer.jsonl +0 -8
- package/.claude/skills/flow-dev/scripts/entry-gate.sh +0 -116
- package/.claude/skills/flow-dev/scripts/exit-gate.sh +0 -101
- package/.claude/skills/flow-dev/scripts/task-orchestrator.sh +0 -106
- package/.claude/skills/flow-fix/SKILL.md +0 -105
- package/.claude/skills/flow-fix/context.jsonl +0 -6
- package/.claude/skills/flow-fix/references/bug-analyzer.md +0 -381
- package/.claude/skills/flow-init/SKILL.md +0 -105
- package/.claude/skills/flow-init/assets/BRAINSTORM_TEMPLATE.md +0 -148
- package/.claude/skills/flow-init/assets/INIT_FLOW_TEMPLATE.md +0 -198
- package/.claude/skills/flow-init/assets/RESEARCH_TEMPLATE.md +0 -276
- package/.claude/skills/flow-init/context.jsonl +0 -5
- package/.claude/skills/flow-init/references/flow-researcher.md +0 -132
- package/.claude/skills/flow-init/scripts/check-prerequisites.sh +0 -240
- package/.claude/skills/flow-init/scripts/consolidate-research.sh +0 -182
- package/.claude/skills/flow-init/scripts/create-requirement.sh +0 -404
- package/.claude/skills/flow-init/scripts/generate-research-tasks.sh +0 -157
- package/.claude/skills/flow-init/scripts/populate-research-tasks.sh +0 -284
- package/.claude/skills/flow-init/scripts/validate-research.sh +0 -340
- package/.claude/skills/flow-quality/SKILL.md +0 -98
- package/.claude/skills/flow-quality/context.jsonl +0 -6
- package/.claude/skills/flow-quality/references/code-quality-reviewer.md +0 -205
- package/.claude/skills/flow-quality/references/qa-tester.md +0 -313
- package/.claude/skills/flow-quality/references/security-reviewer.md +0 -314
- package/.claude/skills/flow-quality/references/spec-reviewer.md +0 -221
- package/.claude/skills/flow-release/SKILL.md +0 -60
- package/.claude/skills/flow-release/context.jsonl +0 -5
- package/.claude/skills/flow-release/references/release-manager.md +0 -295
- package/.claude/skills/flow-spec/CLAUDE.md +0 -17
- package/.claude/skills/flow-spec/SKILL.md +0 -102
- package/.claude/skills/flow-spec/context.jsonl +0 -5
- package/.claude/skills/flow-spec/scripts/entry-gate.sh +0 -194
- package/.claude/skills/flow-spec/scripts/exit-gate.sh +0 -244
- package/.claude/skills/flow-spec/scripts/parallel-orchestrator.sh +0 -205
- package/.claude/skills/flow-spec/scripts/team-communication.sh +0 -353
- package/.claude/skills/flow-spec/scripts/team-init.sh +0 -195
- package/.claude/skills/flow-spec/scripts/test-team-mode.sh +0 -496
- package/.claude/skills/flow-spec/team-config.json +0 -165
- package/.claude/skills/flow-verify/CLAUDE.md +0 -10
- package/.claude/skills/flow-verify/SKILL.md +0 -53
- package/.claude/skills/flow-verify/context.jsonl +0 -5
- package/.claude/skills/fractal-docs/SKILL.md +0 -45
- package/.claude/skills/journey-checker/SKILL.md +0 -199
- package/.claude/skills/journey-checker/pressure-scenarios.md +0 -164
- package/.claude/skills/receiving-review/SKILL.md +0 -153
- package/.claude/skills/skill-creator/LICENSE.txt +0 -202
- package/.claude/skills/skill-creator/SKILL.md +0 -356
- package/.claude/skills/skill-creator/references/output-patterns.md +0 -82
- package/.claude/skills/skill-creator/references/workflows.md +0 -28
- package/.claude/skills/skill-creator/scripts/init_skill.py +0 -303
- package/.claude/skills/skill-creator/scripts/package_skill.py +0 -110
- package/.claude/skills/skill-creator/scripts/quick_validate.py +0 -95
- package/.claude/skills/skill-rules.json +0 -359
- package/.claude/skills/tdd/SKILL.md +0 -218
- package/.claude/skills/tdd-enforcer/SKILL.md +0 -192
- package/.claude/skills/utility/npm-release/CLAUDE.md +0 -55
- package/.claude/skills/utility/npm-release/SKILL.md +0 -379
- package/.claude/skills/utility/npm-release/references/version-decision-guide.md +0 -134
- package/.claude/skills/utility/npm-release/scripts/atomic-version-bump.sh +0 -95
- package/.claude/skills/utility/npm-release/scripts/validate-version-sync.sh +0 -82
- package/.claude/skills/utility/npm-release/scripts/version-decision-tree.sh +0 -44
- package/.claude/skills/verification/SKILL.md +0 -158
- package/.claude/skills/workflow.yaml +0 -219
- package/.claude/tests/README.md +0 -300
- package/.claude/tests/TODO.md +0 -69
- package/.claude/tests/__pycache__/test_analyze_upgrade_impact.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_consolidate_research.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_export_contracts.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_extract_data_model.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_generate_quickstart.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_generate_research_tasks.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/constitution/run_all_constitution_tests.sh +0 -111
- package/.claude/tests/constitution/test_agent_assignment.sh +0 -207
- package/.claude/tests/constitution/test_article_coverage.sh +0 -201
- package/.claude/tests/constitution/test_template_completeness.sh +0 -150
- package/.claude/tests/constitution/test_version_consistency.sh +0 -120
- package/.claude/tests/fixtures/spec_delta_full.md +0 -16
- package/.claude/tests/fixtures/tasks_progress_sample.md +0 -5
- package/.claude/tests/run-all-tests.sh +0 -229
- package/.claude/tests/scripts/run.sh +0 -30
- package/.claude/tests/scripts/test-framework.sh +0 -128
- package/.claude/tests/scripts/test_check_prerequisites.sh +0 -511
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak +0 -504
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak2 +0 -505
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak3 +0 -506
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak4 +0 -507
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak5 +0 -508
- package/.claude/tests/scripts/test_check_task_status.sh +0 -499
- package/.claude/tests/scripts/test_common.sh +0 -244
- package/.claude/tests/scripts/test_generate_status_report.sh +0 -71
- package/.claude/tests/scripts/test_mark_task_complete.sh +0 -441
- package/.claude/tests/scripts/test_mark_task_complete.sh.backup +0 -410
- package/.claude/tests/scripts/test_recover_workflow.sh +0 -304
- package/.claude/tests/scripts/test_setup_epic.sh +0 -437
- package/.claude/tests/scripts/test_sync_task_marks.sh +0 -196
- package/.claude/tests/scripts/test_validate_constitution.sh +0 -74
- package/.claude/tests/scripts/test_validate_research.sh +0 -462
- package/.claude/tests/slugify.bats +0 -82
- package/.claude/tests/test-framework.sh +0 -732
- package/.claude/tests/test_analyze_upgrade_impact.py +0 -34
- package/.claude/tests/test_consolidate_research.py +0 -48
- package/.claude/tests/test_export_contracts.py +0 -43
- package/.claude/tests/test_extract_data_model.py +0 -33
- package/.claude/tests/test_generate_quickstart.py +0 -50
- package/.claude/tests/test_generate_research_tasks.py +0 -52
- package/.claude/tsc-cache/70d2fc6d-2936-429b-b529-429f1aae8c88/affected-repos.txt +0 -1
- package/.claude/tsc-cache/70d2fc6d-2936-429b-b529-429f1aae8c88/edited-files.log +0 -2
- package/bin/harness.js +0 -22
- package/docs/commands/core-roadmap.md +0 -106
- package/docs/commands/core-roadmap.zh-CN.md +0 -102
- package/docs/commands/core-style.md +0 -53
- package/docs/commands/core-style.zh-CN.md +0 -53
- package/docs/commands/flow-init.md +0 -140
- package/docs/commands/flow-init.zh-CN.md +0 -169
- package/docs/commands/flow-new.md +0 -39
- package/docs/commands/flow-new.zh-CN.md +0 -39
- package/lib/compiler/__tests__/compile-regression.test.js +0 -103
- package/lib/compiler/__tests__/multi-module-emitters.test.js +0 -534
- package/lib/compiler/__tests__/resource-copier.test.js +0 -26
- package/lib/compiler/__tests__/skill-discovery.test.js +0 -72
- package/lib/compiler/context-expander.js +0 -179
- package/lib/compiler/rules-emitters/__tests__/codex-rules-emitter.test.js +0 -109
- package/lib/compiler/rules-emitters/codex-rules-emitter.js +0 -116
- package/lib/compiler/skill-discovery.js +0 -68
- package/lib/harness/CLAUDE.md +0 -22
- package/lib/harness/__tests__/planner.tdd.test.js +0 -125
- package/lib/harness/cli.js +0 -208
- package/lib/harness/index.js +0 -18
- package/lib/harness/operations/dispatch.js +0 -298
- package/lib/harness/operations/init.js +0 -48
- package/lib/harness/operations/pack.js +0 -100
- package/lib/harness/operations/plan.js +0 -83
- package/lib/harness/operations/release.js +0 -170
- package/lib/harness/operations/resume.js +0 -44
- package/lib/harness/operations/verify.js +0 -177
- package/lib/harness/planner.js +0 -272
- package/lib/harness/query.js +0 -126
- package/lib/harness/schemas.js +0 -129
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 🚀 cc-devflow
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Roadmap plus PDCA and IDCA skills for agent coding
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
CC-DevFlow is a stripped-down workflow for the agent coding era. It gives you one front-door planning skill, `cc-roadmap`, then lets each requirement enter one of two closed loops: the planning loop `cc-plan -> cc-do -> cc-check -> cc-act`, or the investigation loop `cc-investigate -> cc-do -> cc-check -> cc-act`.
|
|
6
6
|
|
|
7
7
|
[中文文档](./README.zh-CN.md) | [English](./README.md)
|
|
8
8
|
|
|
@@ -10,827 +10,234 @@ A comprehensive development workflow system built on Claude Code's official sub-
|
|
|
10
10
|
|
|
11
11
|
## 🎯 One-Line Introduction
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
CC-DevFlow exposes six visible skills:
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
- `cc-roadmap`: build the project's mid and long-range roadmap
|
|
16
|
+
- `cc-plan`: clarify a roadmap item, design it, and turn it into tasks
|
|
17
|
+
- `cc-investigate`: freeze symptom, reproduction, root cause, and repair tasks before fixing a bug
|
|
18
|
+
- `cc-do`: implement, resume, repair from investigation, and apply review feedback
|
|
19
|
+
- `cc-check`: verify with evidence
|
|
20
|
+
- `cc-act`: ship, sync docs, and feed the result into the next cycle
|
|
16
21
|
|
|
17
22
|
## ✨ Core Features
|
|
18
23
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
- 📊 **Progress Tracking** - Real-time status monitoring and intelligent restart points
|
|
29
|
-
- 🔍 **Consistency Verification** - Enterprise-grade consistency checking with intelligent conflict detection
|
|
30
|
-
- 🧪 **TDD Enforced** - Strict Test-Driven Development with automatic TDD order validation in harness planner
|
|
31
|
-
- 📜 **Constitution** - 10 Articles governing quality, security, and architecture
|
|
32
|
-
- 🔄 **OpenSpec Interop** - Bidirectional conversion between OpenSpec and CC-DevFlow formats with automatic TDD task generation
|
|
33
|
-
- 🔄 **Autonomous Development** - Ralph × Manus Integration for memory-enhanced continuous iteration
|
|
34
|
-
- 🔌 **Multi-Platform Support** - Compile workflows for Codex, Cursor, Qwen, Antigravity via `npm run adapt`
|
|
35
|
-
- 🔄 **Multi-Module Compiler** - Full module compilation: skills, commands, agents, rules, hooks
|
|
36
|
-
- 🌿 **Git Worktree Integration** - Parallel development with isolated worktrees for 3-5 concurrent Claude sessions
|
|
37
|
-
- 🤝 **Claude Team Integration** - Multi-agent parallel collaboration with automatic task scheduling and conflict detection
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## 💡 Core Concepts
|
|
42
|
-
|
|
43
|
-
### Hooks System
|
|
44
|
-
|
|
45
|
-
Real-time quality guardian: PreToolUse blocks non-compliant operations, PostToolUse auto-records changes.
|
|
46
|
-
|
|
47
|
-
<details>
|
|
48
|
-
<summary>📖 Hooks Details (Click to Expand)</summary>
|
|
49
|
-
|
|
50
|
-
**Hook Types**:
|
|
51
|
-
|
|
52
|
-
| Hook | Trigger Timing | Functionality |
|
|
53
|
-
|------|----------------|---------------|
|
|
54
|
-
| **UserPromptSubmit** | When user input is submitted | Intelligently recommends relevant Skills |
|
|
55
|
-
| **PreToolUse** | Before tool use | Blocks non-compliant operations (TDD violations, etc.) |
|
|
56
|
-
| **PostToolUse** | After tool use | Automatically records file changes |
|
|
57
|
-
| **Stop** | When session stops | Provides error handling hints |
|
|
58
|
-
|
|
59
|
-
**Guardrail Workflow**:
|
|
60
|
-
```
|
|
61
|
-
User edits file → PreToolUse Hook triggers
|
|
62
|
-
↓ Path normalization
|
|
63
|
-
↓ Rule matching
|
|
64
|
-
↓ Content checking
|
|
65
|
-
↓ Violation? Block operation : Allow operation
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Skipping Guardrails**:
|
|
69
|
-
```bash
|
|
70
|
-
# Method 1: File marker
|
|
71
|
-
echo "@skip-tdd-check" >> devflow/requirements/REQ-123/TASKS.md
|
|
72
|
-
|
|
73
|
-
# Method 2: Environment variable
|
|
74
|
-
export SKIP_TDD_ENFORCER=1
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
📚 [Complete Hooks Documentation](docs/guides/hooks-system.md)
|
|
78
|
-
</details>
|
|
79
|
-
|
|
80
|
-
### Skills System (v4.0 Skills-First Architecture)
|
|
24
|
+
- **Minimal visible surface**: one `cc-roadmap` skill plus two entry loops that share the same `cc-do -> cc-check -> cc-act` tail
|
|
25
|
+
- **Multi-platform CLI restored**: `cc-devflow` is back as the distributable CLI for `.claude` installation plus multi-platform adaptation for Codex, Cursor, Qwen, and Antigravity
|
|
26
|
+
- **skills.sh-compatible skill layout**: `.claude/skills/<skill>/SKILL.md` stays compatible with single-skill distribution on skills.sh
|
|
27
|
+
- **Skill-local resources**: each skill carries its own templates, references, and scripts
|
|
28
|
+
- **Explicit, not hidden**: no default context injection, read the files you actually need
|
|
29
|
+
- **Task-template first**: keep `planning/tasks.md` and `task-manifest.json` as the execution backbone
|
|
30
|
+
- **Skill pack first**: the repository distributes `.claude` skills, playbooks, and assets as one pack
|
|
31
|
+
- **Evidence before done**: verification, doc sync, PR brief, and release note live at the end of the loop
|
|
32
|
+
- **Roadmap-first**: decide medium-range direction once, then execute through PDCA or IDCA
|
|
81
33
|
|
|
82
|
-
|
|
34
|
+
## 🧠 Mental Model
|
|
83
35
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
**Skills-First Architecture** (v4.0):
|
|
36
|
+
```text
|
|
37
|
+
cc-roadmap
|
|
88
38
|
|
|
39
|
+
PDCA: cc-plan -> cc-do -> cc-check -> cc-act
|
|
40
|
+
IDCA: cc-investigate -> cc-do -> cc-check -> cc-act
|
|
89
41
|
```
|
|
90
|
-
.claude/skills/
|
|
91
|
-
├── workflow.yaml # Skill dependency graph (OpenSpec-inspired)
|
|
92
|
-
├── workflow/ # 9 Workflow Skills (flow-init, flow-spec, flow-dev, etc.)
|
|
93
|
-
├── domain/ # 7 Domain Skills (tdd, debugging, brainstorming)
|
|
94
|
-
├── guardrail/ # 3 Guardrail Skills (constitution-guardian, tdd-enforcer)
|
|
95
|
-
└── utility/ # 8 Utility Skills (npm-release, skill-creator)
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
**Key Skills by Category**:
|
|
99
|
-
|
|
100
|
-
| Category | Skills | Purpose |
|
|
101
|
-
|----------|--------|---------|
|
|
102
|
-
| **Workflow** | flow-init, flow-spec, flow-dev, flow-verify, flow-release | Core development workflow |
|
|
103
|
-
| **Domain** | tdd, debugging, brainstorming, verification | Domain expertise |
|
|
104
|
-
| **Guardrail** | constitution-guardian, tdd-enforcer | Real-time compliance |
|
|
105
|
-
| **Utility** | npm-release, skill-creator, writing-skills | Development tools |
|
|
106
|
-
|
|
107
|
-
**Context Injection** (Trellis-inspired):
|
|
108
|
-
- Each Skill has `context.jsonl` defining required context files
|
|
109
|
-
- `inject-skill-context.ts` hook auto-loads context before Skill execution
|
|
110
|
-
- Variable substitution: `{REQ}` → actual requirement ID
|
|
111
|
-
|
|
112
|
-
📚 [Complete Skills Documentation](docs/guides/skills-system.md)
|
|
113
|
-
</details>
|
|
114
|
-
|
|
115
|
-
### Agent Orchestration
|
|
116
|
-
|
|
117
|
-
Dual-layer execution model: Research Agents (11, read-only analysis) + Main Agent (execution).
|
|
118
|
-
|
|
119
|
-
<details>
|
|
120
|
-
<summary>📖 Agent Orchestration Details (Click to Expand)</summary>
|
|
121
42
|
|
|
122
|
-
|
|
123
|
-
- **Research Agents**: Read-only analysis, generate Markdown plans and reports
|
|
124
|
-
- **Main Agent (Claude)**: Executes all code operations, owns complete context
|
|
125
|
-
- **Workflow**: Agent Research → Output Plans → Main Agent Executes → Iterate
|
|
43
|
+
Use `cc-roadmap` to decide the next 1-3 stages of the product.
|
|
126
44
|
|
|
127
|
-
|
|
128
|
-
- Research Agents: Read, Grep, Glob (analysis)
|
|
129
|
-
- Main Agent: Edit, Write, Bash, Git (execution)
|
|
45
|
+
Use `cc-plan` when the next problem is scope, design, and task freezing.
|
|
130
46
|
|
|
131
|
-
|
|
132
|
-
</details>
|
|
47
|
+
Use `cc-investigate` when the next problem is root cause, reproduction, and repair boundary.
|
|
133
48
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
## 🚀 Quick Start
|
|
49
|
+
Both loops converge into the same `cc-do -> cc-check -> cc-act` tail.
|
|
137
50
|
|
|
138
|
-
|
|
51
|
+
The visible state machine lives in the public skills themselves. The pack is intentionally skill-first: routing, reroutes, recovery, and evidence rules are described in `SKILL.md` and `PLAYBOOK.md`, while `lib/skill-runtime/` is limited to shared support code that those skills reuse.
|
|
139
52
|
|
|
140
|
-
|
|
53
|
+
## 🚀 Install
|
|
141
54
|
|
|
142
|
-
|
|
143
|
-
# Install globally
|
|
144
|
-
npm install -g cc-devflow
|
|
145
|
-
# or
|
|
146
|
-
pnpm add -g cc-devflow
|
|
147
|
-
|
|
148
|
-
# Initialize in your project
|
|
149
|
-
cc-devflow init
|
|
150
|
-
|
|
151
|
-
# Compile for specific platform (optional)
|
|
152
|
-
cc-devflow adapt --platform cursor
|
|
153
|
-
cc-devflow adapt --platform codex
|
|
154
|
-
cc-devflow adapt --platform antigravity
|
|
155
|
-
cc-devflow adapt --platform qwen
|
|
156
|
-
```
|
|
55
|
+
The built-in CLI is back to the classic `init + adapt` model.
|
|
157
56
|
|
|
158
|
-
|
|
57
|
+
For the packaged CLI, the default entry stays simple:
|
|
159
58
|
|
|
160
59
|
```bash
|
|
161
|
-
|
|
60
|
+
npx cc-devflow init --dir /path/to/your/project
|
|
162
61
|
```
|
|
163
62
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
To update to the latest version and synchronize your local project:
|
|
63
|
+
After installation, the restored CLI supports both pack installation and multi-platform adaptation:
|
|
167
64
|
|
|
168
65
|
```bash
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
cc-devflow
|
|
66
|
+
npx cc-devflow init --dir /path/to/your/project
|
|
67
|
+
npx cc-devflow init --dir /path/to/your/project --force
|
|
68
|
+
npx cc-devflow adapt --cwd /path/to/your/project --platform codex
|
|
69
|
+
npx cc-devflow adapt --cwd /path/to/your/project --platform cursor
|
|
70
|
+
npx cc-devflow adapt --cwd /path/to/your/project --platform qwen
|
|
71
|
+
npx cc-devflow adapt --cwd /path/to/your/project --platform antigravity
|
|
174
72
|
```
|
|
175
73
|
|
|
176
|
-
|
|
74
|
+
Whole-pack installation ships the six visible workflow skills plus the maintenance skills `cc-spec-init` and `cc-simplify`.
|
|
75
|
+
`init --force` now force-upgrades only the managed distributed skills and preserves unrelated project files under `.claude`.
|
|
177
76
|
|
|
178
|
-
|
|
179
|
-
# Initialize in current directory
|
|
180
|
-
cc-devflow init
|
|
77
|
+
If you are running from a source checkout instead of an installed package, use `node bin/cc-devflow-cli.js ...` or `npm exec -- cc-devflow ...`.
|
|
181
78
|
|
|
182
|
-
|
|
183
|
-
cc-devflow init --dir /path/to/project
|
|
79
|
+
## ⚙️ Personal YAML Config
|
|
184
80
|
|
|
185
|
-
|
|
186
|
-
cc-devflow adapt --platform codex
|
|
187
|
-
cc-devflow adapt --cwd /path/to/project --platform cursor
|
|
81
|
+
CC-DevFlow reads personal/project YAML config at runtime before durable workflow documents are written. Create one or more config files:
|
|
188
82
|
|
|
189
|
-
|
|
190
|
-
cc-devflow
|
|
83
|
+
```text
|
|
84
|
+
~/.cc-devflow/config.yml
|
|
85
|
+
<repo>/.cc-devflow/config.yml
|
|
86
|
+
<repo>/.cc-devflow/config.local.yml
|
|
191
87
|
```
|
|
192
88
|
|
|
193
|
-
|
|
89
|
+
Precedence is deterministic: defaults < user < project < local < env < CLI. `output.document_language` is machine-enforced and currently supports only `en` and `zh-CN`. Non-standard user preferences belong under `agent_preferences`; they are advisory and never override workflow contracts.
|
|
194
90
|
|
|
195
|
-
|
|
91
|
+
Example:
|
|
196
92
|
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
|
|
93
|
+
```yaml
|
|
94
|
+
version: 1
|
|
95
|
+
output:
|
|
96
|
+
document_language: zh-CN
|
|
97
|
+
agent_preferences:
|
|
98
|
+
general:
|
|
99
|
+
- Start with the conclusion.
|
|
100
|
+
documentation:
|
|
101
|
+
- Keep headings short and avoid marketing language.
|
|
200
102
|
```
|
|
201
103
|
|
|
202
|
-
|
|
104
|
+
Create or edit config with:
|
|
203
105
|
|
|
204
106
|
```bash
|
|
205
|
-
|
|
107
|
+
npx cc-devflow config init --cwd /path/to/your/project --project
|
|
108
|
+
npx cc-devflow config set output.document_language zh-CN --cwd /path/to/your/project --project
|
|
109
|
+
npx cc-devflow config set output.document_language zh-CN --user
|
|
206
110
|
```
|
|
207
111
|
|
|
208
|
-
|
|
112
|
+
Inspect and diagnose the resolved policy with:
|
|
209
113
|
|
|
210
114
|
```bash
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
/flow:verify "REQ-001" --strict
|
|
215
|
-
/flow:release "REQ-001"
|
|
115
|
+
npx cc-devflow config resolve --cwd /path/to/your/project --format policy
|
|
116
|
+
npx cc-devflow config get output.document_language --cwd /path/to/your/project
|
|
117
|
+
npx cc-devflow config doctor --cwd /path/to/your/project
|
|
216
118
|
```
|
|
217
119
|
|
|
218
|
-
|
|
219
|
-
<summary>🔍 Complete Getting Started Guide (Click to Expand)</summary>
|
|
220
|
-
|
|
221
|
-
**Interactive Demo**:
|
|
222
|
-
```bash
|
|
223
|
-
python3 .claude/scripts/demo.py
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
**Core Scripts**:
|
|
227
|
-
```bash
|
|
228
|
-
# Environment check
|
|
229
|
-
bash .claude/scripts/check-prerequisites.sh
|
|
120
|
+
See `config/user-config.template.yml` for the full sample.
|
|
230
121
|
|
|
231
|
-
|
|
232
|
-
bash .claude/scripts/check-task-status.sh --verbose
|
|
122
|
+
## 🧩 skills.sh Distribution
|
|
233
123
|
|
|
234
|
-
|
|
235
|
-
bash .claude/scripts/mark-task-complete.sh T001
|
|
124
|
+
[skills.sh](https://skills.sh/) is supported only as a distribution channel for the new `.claude` skills.
|
|
236
125
|
|
|
237
|
-
|
|
238
|
-
bash .claude/scripts/generate-status-report.sh --format markdown
|
|
239
|
-
```
|
|
126
|
+
Because skills.sh installs skills one by one, use it to pull the specific skills you want:
|
|
240
127
|
|
|
241
|
-
**Run Tests**:
|
|
242
128
|
```bash
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
129
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-roadmap
|
|
130
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-plan
|
|
131
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-investigate
|
|
132
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-do
|
|
133
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-check
|
|
134
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-act
|
|
135
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-spec-init
|
|
136
|
+
npx skills add https://github.com/Dimon94/cc-devflow --skill cc-simplify
|
|
248
137
|
```
|
|
249
138
|
|
|
250
|
-
|
|
251
|
-
</details>
|
|
252
|
-
|
|
253
|
-
---
|
|
254
|
-
|
|
255
|
-
## 📋 Command Quick Reference
|
|
256
|
-
|
|
257
|
-
### 🏢 Project-Level Commands
|
|
258
|
-
|
|
259
|
-
**Purpose**: Project-wide planning and architecture design, typically executed once per project at the beginning
|
|
139
|
+
Use `cc-devflow init` when you want the whole `.claude` pack.
|
|
260
140
|
|
|
261
|
-
|
|
262
|
-
|---------|---------|---------------|---------------|
|
|
263
|
-
| `/core-roadmap` | 🗺️ Generate Product Roadmap | `/core-roadmap` | [→](docs/commands/core-roadmap.md) |
|
|
264
|
-
| `/core-architecture` | 🏗️ Generate System Architecture | `/core-architecture` | [→](docs/commands/core-architecture.md) |
|
|
265
|
-
| `/core-guidelines` | 📘 Generate Project Guidelines | `/core-guidelines` | [→](docs/commands/core-guidelines.md) |
|
|
141
|
+
Use `cc-devflow adapt` when you want generated multi-platform outputs.
|
|
266
142
|
|
|
267
|
-
|
|
143
|
+
Use skills.sh when you want to install or refresh a single skill.
|
|
268
144
|
|
|
269
|
-
|
|
145
|
+
## 🔁 Upgrade
|
|
270
146
|
|
|
271
|
-
|
|
272
|
-
|---------|---------|---------------|---------------|
|
|
273
|
-
| `/flow:init` | 📦 Initialize Requirement Context | `/flow:init "REQ-123\|Feature"` | [→](.claude/commands/flow/init.md) |
|
|
274
|
-
| `/flow:spec` | 📋 Build Task Manifest | `/flow:spec "REQ-123"` | [→](.claude/commands/flow/spec.md) |
|
|
275
|
-
| `/flow:dev` | 🛠️ Dispatch and Execute Tasks | `/flow:dev "REQ-123"` | [→](.claude/commands/flow/dev.md) |
|
|
276
|
-
| `/flow:verify` | ✅ Run Report Card Gates | `/flow:verify "REQ-123" --strict` | [→](.claude/commands/flow/verify.md) |
|
|
277
|
-
| `/flow:release` | 🚢 Release + Cleanup | `/flow:release "REQ-123"` | [→](.claude/commands/flow/release.md) |
|
|
278
|
-
| `/flow:fix` | 🐛 Systematic Bug Fix | `/flow:fix "BUG-123\|Description"` | [→](.claude/commands/flow/fix.md) |
|
|
279
|
-
| `/flow:new` | ⚠️ Deprecated alias | Use `/flow:init` mainline | [→](.claude/commands/flow/new.md) |
|
|
280
|
-
| `/flow:clarify` | ⚠️ Deprecated | Merged into `/flow:spec` | [→](.claude/commands/flow/clarify.md) |
|
|
281
|
-
| `/flow:checklist` | ⚠️ Deprecated | Use `/flow:verify --strict` | [→](.claude/commands/flow/checklist.md) |
|
|
282
|
-
| `/flow:quality` | ⚠️ Deprecated | Use `/flow:verify` | [→](.claude/commands/flow/quality.md) |
|
|
283
|
-
|
|
284
|
-
📚 [Complete Command Reference](docs/commands/README.md)
|
|
285
|
-
|
|
286
|
-
<details>
|
|
287
|
-
<summary>🎯 Which Command Should I Use? (Click to Expand)</summary>
|
|
288
|
-
|
|
289
|
-
```
|
|
290
|
-
Your Scenario:
|
|
291
|
-
├─ Plan product direction? → /core-roadmap
|
|
292
|
-
├─ Design system architecture? → /core-architecture
|
|
293
|
-
├─ Establish coding standards? → /core-guidelines
|
|
294
|
-
├─ Start requirement delivery? → /flow:init "REQ-123|Feature|URLs"
|
|
295
|
-
├─ Generate task manifest? → /flow:spec "REQ-123"
|
|
296
|
-
├─ Execute planned tasks? → /flow:dev "REQ-123"
|
|
297
|
-
├─ Run strict quality gate? → /flow:verify "REQ-123" --strict
|
|
298
|
-
├─ Continue interrupted development? → /flow:restart "REQ-123"
|
|
299
|
-
├─ Check development progress? → /flow:status REQ-123
|
|
300
|
-
├─ Re-check consistency anytime? → /flow:verify "REQ-123"
|
|
301
|
-
├─ Fix production bug? → /flow:fix "BUG-001|Description"
|
|
302
|
-
└─ Ready to release? → /flow:release "REQ-123"
|
|
303
|
-
```
|
|
304
|
-
</details>
|
|
305
|
-
|
|
306
|
-
---
|
|
307
|
-
|
|
308
|
-
## 🔄 Workflow Diagram
|
|
309
|
-
|
|
310
|
-
The following Mermaid diagram illustrates the complete cc-devflow workflow, including both project-level and requirement-level processes:
|
|
311
|
-
|
|
312
|
-
```mermaid
|
|
313
|
-
graph TB
|
|
314
|
-
Start([Start Project]) --> ProjectLevel{Project-Level Setup}
|
|
315
|
-
|
|
316
|
-
ProjectLevel --> CoreRoadmap["/core-roadmap<br/>ROADMAP.md & BACKLOG.md"]
|
|
317
|
-
ProjectLevel --> CoreArch["/core-architecture<br/>ARCHITECTURE.md"]
|
|
318
|
-
ProjectLevel --> CoreGuidelines["/core-guidelines<br/>frontend/backend guidelines"]
|
|
319
|
-
ProjectLevel --> CoreStyle["/core-style<br/>STYLE.md"]
|
|
320
|
-
|
|
321
|
-
CoreRoadmap --> ReqLevel
|
|
322
|
-
CoreArch --> ReqLevel
|
|
323
|
-
CoreGuidelines --> ReqLevel
|
|
324
|
-
CoreStyle --> ReqLevel
|
|
325
|
-
|
|
326
|
-
ReqLevel([Requirement-Level Development]) --> FlowInit["/flow:init<br/>harness:init + harness:pack"]
|
|
327
|
-
FlowInit --> FlowSpec["/flow:spec<br/>harness:plan<br/>task-manifest"]
|
|
328
|
-
FlowSpec --> FlowDev["/flow:dev<br/>harness:dispatch/resume<br/>runtime-events"]
|
|
329
|
-
FlowDev --> FlowVerify["/flow:verify<br/>harness:verify<br/>report-card"]
|
|
330
|
-
FlowVerify --> FlowRelease["/flow:release<br/>harness:release/janitor<br/>release-note"]
|
|
331
|
-
FlowRelease --> End([Release Complete])
|
|
332
|
-
|
|
333
|
-
FlowVerify -.->|Can be re-run at any stage| ReqLevel
|
|
334
|
-
|
|
335
|
-
style ProjectLevel fill:#e1f5ff
|
|
336
|
-
style ReqLevel fill:#fff4e1
|
|
337
|
-
style FlowInit fill:#e8f5e9
|
|
338
|
-
style FlowSpec fill:#e8f5e9
|
|
339
|
-
style FlowDev fill:#f3e5f5
|
|
340
|
-
style FlowVerify fill:#e1bee7
|
|
341
|
-
style FlowRelease fill:#e0f2f1
|
|
342
|
-
style End fill:#e3f2fd
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
**Workflow Notes**:
|
|
346
|
-
- **Project-Level Commands** (light blue): Execute once at project initialization, establish global standards (SSOT)
|
|
347
|
-
- **Requirement-Level Commands** (light orange): Execute once per requirement (REQ-XXX)
|
|
348
|
-
- **Canonical Mainline**: `/flow:init` → `/flow:spec` → `/flow:dev` → `/flow:verify` → `/flow:release`
|
|
349
|
-
- **Harness Runtime Chain**: Each stage delegates to `npm run harness:*` operations with persisted checkpoints
|
|
350
|
-
- **Unified /flow:spec**: Consolidates planning output into a task manifest
|
|
351
|
-
- **Report Card Gate**: `/flow:verify --strict` blocks release when quality gates fail
|
|
352
|
-
- **TDD Checkpoint**: `/flow:dev` keeps fail-first verification before implementation
|
|
353
|
-
- **Deprecated Commands**: `/flow:new`, `/flow:clarify`, `/flow:checklist`, `/flow:quality` remain as migration stubs
|
|
354
|
-
|
|
355
|
-
---
|
|
356
|
-
|
|
357
|
-
## 🏗️ System Architecture
|
|
358
|
-
|
|
359
|
-
**Execution Model**: Research Agents (11, read-only) + Main Agent (execution)
|
|
360
|
-
**Document Structure**: Single-track architecture, one requirement directory contains all artifacts
|
|
361
|
-
**Quality Assurance**: Constitution v2.0.0 + TDD Enforcement + Real-time Guardrail
|
|
362
|
-
|
|
363
|
-
<details>
|
|
364
|
-
<summary>📖 Architecture Details (Click to Expand)</summary>
|
|
365
|
-
|
|
366
|
-
### Sub-Agents Workflow
|
|
367
|
-
|
|
368
|
-
```text
|
|
369
|
-
clarify-analyst → Clarification questions (11-dimension scan)
|
|
370
|
-
prd-writer → PRD generation (must use PRD_TEMPLATE)
|
|
371
|
-
checklist-agent → Requirement quality validation (5 dimensions, 6 types) ⭐ NEW
|
|
372
|
-
ui-designer → UI prototype (conditional trigger)
|
|
373
|
-
tech-architect → Technical design (Anti-Tech-Creep enforcement)
|
|
374
|
-
planner → EPIC & TASKS (must use EPIC_TEMPLATE, TASKS_TEMPLATE)
|
|
375
|
-
dev-implementer → Implementation plan (research only)
|
|
376
|
-
qa-tester → Test plan + Test report
|
|
377
|
-
security-reviewer → Security plan + Security report
|
|
378
|
-
release-manager → Release plan
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
### Single-Track Architecture
|
|
382
|
-
|
|
383
|
-
```text
|
|
384
|
-
devflow/
|
|
385
|
-
├── ROADMAP.md # Product roadmap
|
|
386
|
-
├── ARCHITECTURE.md # System architecture design
|
|
387
|
-
├── BACKLOG.md # Requirement backlog
|
|
388
|
-
└── requirements/REQ-123/
|
|
389
|
-
├── PRD.md
|
|
390
|
-
├── EPIC.md
|
|
391
|
-
├── TASKS.md
|
|
392
|
-
├── EXECUTION_LOG.md
|
|
393
|
-
├── checklists/ # Requirement quality checklists
|
|
394
|
-
│ ├── ux.md
|
|
395
|
-
│ ├── api.md
|
|
396
|
-
│ └── security.md
|
|
397
|
-
├── TEST_PLAN.md
|
|
398
|
-
├── TEST_REPORT.md
|
|
399
|
-
├── SECURITY_PLAN.md
|
|
400
|
-
├── SECURITY_REPORT.md
|
|
401
|
-
└── RELEASE_PLAN.md
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
### Quality Gates
|
|
405
|
-
|
|
406
|
-
- Pre-push Guard (TypeScript, tests, linting, security, build)
|
|
407
|
-
- Report Card Gate (`/flow:verify --strict` before `/flow:release`)
|
|
408
|
-
- Constitution Compliance (enforced at every stage)
|
|
409
|
-
- TDD Checkpoint (TEST VERIFICATION CHECKPOINT)
|
|
410
|
-
- Guardrail Hooks (PreToolUse real-time blocking of non-compliant operations)
|
|
411
|
-
|
|
412
|
-
📚 [Complete Architecture Documentation](docs/architecture/)
|
|
413
|
-
</details>
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
## ⚙️ Configuration
|
|
418
|
-
|
|
419
|
-
**Minimum Configuration** (`.claude/settings.json`):
|
|
420
|
-
|
|
421
|
-
```json
|
|
422
|
-
{
|
|
423
|
-
"permissions": {
|
|
424
|
-
"allowGitOperations": true,
|
|
425
|
-
"allowNetworkRequests": true,
|
|
426
|
-
"allowSubprocesses": true
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
<details>
|
|
432
|
-
<summary>🔧 Complete Configuration Options (Click to Expand)</summary>
|
|
433
|
-
|
|
434
|
-
### Hooks Configuration
|
|
435
|
-
|
|
436
|
-
```json
|
|
437
|
-
{
|
|
438
|
-
"hooks": {
|
|
439
|
-
"PreToolUse": [{
|
|
440
|
-
"matcher": "Edit|Write",
|
|
441
|
-
"hooks": [{"type": "command", "command": "..."}]
|
|
442
|
-
}]
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
### Environment Variables
|
|
147
|
+
Refresh the packaged `.claude` bundle with the latest CLI:
|
|
448
148
|
|
|
449
149
|
```bash
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
export MIN_TEST_COVERAGE=80
|
|
453
|
-
export STRICT_TYPE_CHECKING=true
|
|
454
|
-
|
|
455
|
-
# Guardrail skip
|
|
456
|
-
export SKIP_TDD_ENFORCER=1
|
|
457
|
-
export SKIP_CONSTITUTION_CHECK=1
|
|
150
|
+
npx cc-devflow@latest init --dir /path/to/your/project
|
|
151
|
+
npx cc-devflow@latest adapt --cwd /path/to/your/project --all
|
|
458
152
|
```
|
|
459
153
|
|
|
460
|
-
|
|
461
|
-
</details>
|
|
462
|
-
|
|
463
|
-
---
|
|
464
|
-
|
|
465
|
-
## 🧪 Test Coverage
|
|
466
|
-
|
|
467
|
-
**Script Tests**: 8/8 Passed ✅ (100%)
|
|
468
|
-
**Constitution Tests**: 38/38 Passed ✅ (100%)
|
|
154
|
+
Upgrade installed skills with the skills CLI lifecycle commands:
|
|
469
155
|
|
|
470
156
|
```bash
|
|
471
|
-
|
|
472
|
-
|
|
157
|
+
npx skills check
|
|
158
|
+
npx skills update
|
|
473
159
|
```
|
|
474
160
|
|
|
475
|
-
|
|
476
|
-
<summary>📊 Test Framework Details (Click to Expand)</summary>
|
|
161
|
+
If you only want to refresh one skill immediately, re-run its `npx skills add ... --skill ...` command.
|
|
477
162
|
|
|
478
|
-
|
|
163
|
+
## 🧱 Repository Format
|
|
479
164
|
|
|
480
|
-
|
|
481
|
-
|------------|-----------|--------|
|
|
482
|
-
| `test_check_prerequisites` | 18 | ✅ 100% |
|
|
483
|
-
| `test_check_task_status` | 18 | ✅ 100% |
|
|
484
|
-
| `test_common` | 15 | ✅ 100% |
|
|
485
|
-
| `test_mark_task_complete` | 15 | ✅ 100% |
|
|
486
|
-
| `test_setup_epic` | 13 | ✅ 100% |
|
|
487
|
-
| `test_validate_constitution` | 4 | ✅ 100% |
|
|
165
|
+
CC-DevFlow keeps the `.claude` skill folders compatible with skills.sh single-skill distribution:
|
|
488
166
|
|
|
489
|
-
|
|
490
|
-
|
|
167
|
+
- one skill per folder
|
|
168
|
+
- one `SKILL.md` per distributed skill
|
|
169
|
+
- YAML frontmatter at the top of each `SKILL.md`
|
|
170
|
+
- public skills declare structured runtime contract fields in frontmatter: `triggers`, `reads`, structured `writes`, `effects`, `entry_gate`, `exit_criteria`, `reroutes`, `recovery_modes`, `tool_budget`
|
|
171
|
+
- bundled local resources beside the skill, such as `PLAYBOOK.md`, `assets/`, `scripts/`, and `references/`
|
|
491
172
|
|
|
492
|
-
|
|
173
|
+
Public skills also carry two explicit text contracts:
|
|
493
174
|
|
|
494
|
-
|
|
175
|
+
- `SKILL.md` includes a `Harness Contract` section
|
|
176
|
+
- `PLAYBOOK.md` includes a `Visible State Machine` section
|
|
495
177
|
|
|
496
|
-
|
|
178
|
+
In this repository, the distributed skill folders are:
|
|
497
179
|
|
|
498
|
-
|
|
180
|
+
- `.claude/skills/cc-roadmap/`
|
|
181
|
+
- `.claude/skills/cc-plan/`
|
|
182
|
+
- `.claude/skills/cc-investigate/`
|
|
183
|
+
- `.claude/skills/cc-do/`
|
|
184
|
+
- `.claude/skills/cc-check/`
|
|
185
|
+
- `.claude/skills/cc-act/`
|
|
186
|
+
- `.claude/skills/cc-spec-init/`
|
|
187
|
+
- `.claude/skills/cc-simplify/`
|
|
499
188
|
|
|
500
|
-
|
|
189
|
+
## 🛠️ Use
|
|
501
190
|
|
|
502
|
-
|
|
191
|
+
The skill sequence remains:
|
|
503
192
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
193
|
+
```text
|
|
194
|
+
1. cc-roadmap
|
|
195
|
+
2. choose cc-plan or cc-investigate
|
|
196
|
+
3. cc-do
|
|
197
|
+
4. cc-check
|
|
198
|
+
5. cc-act
|
|
199
|
+
6. repeat
|
|
200
|
+
```
|
|
507
201
|
|
|
508
|
-
|
|
509
|
-
- `context-package.md` + `harness-state.json` for bootstrap state
|
|
510
|
-
- `task-manifest.json` + `runtime-events.jsonl` for execution trace
|
|
511
|
-
- `report-card.json` + `release-note.md` for quality and release evidence
|
|
202
|
+
You do not need to remember command names.
|
|
512
203
|
|
|
513
|
-
-
|
|
514
|
-
- `/flow:new` → run the 5-stage mainline explicitly
|
|
515
|
-
- `/flow:clarify` → merged into `/flow:spec` planning loop
|
|
516
|
-
- `/flow:checklist` and `/flow:quality` → replaced by `/flow:verify`
|
|
204
|
+
The `cc-devflow` CLI remains the whole-pack installation and adaptation path.
|
|
517
205
|
|
|
518
|
-
|
|
519
|
-
| Metric | Before | After | Improvement |
|
|
520
|
-
|--------|--------|-------|-------------|
|
|
521
|
-
| Default requirement commands | 8+ mixed paths | 5-stage fixed chain | Simplified |
|
|
522
|
-
| Resume capability | Command-specific | Unified `harness:resume` | Deterministic |
|
|
523
|
-
| Quality evidence | Fragmented outputs | Single report card gate | Auditable |
|
|
206
|
+
skills.sh remains the single-skill distribution path for distributed `.claude/skills/*`.
|
|
524
207
|
|
|
525
|
-
|
|
208
|
+
## 📦 Outputs
|
|
526
209
|
|
|
527
|
-
|
|
210
|
+
- `cc-roadmap` writes `devflow/ROADMAP.md` and `devflow/BACKLOG.md`; helper sync can also maintain `devflow/roadmap-tracking.json` as the shared roadmap/backlog truth source
|
|
211
|
+
- `cc-spec-init` writes `devflow/specs/INDEX.md`, capability specs, and `change-meta.json`
|
|
212
|
+
- `cc-plan` writes `planning/design.md`, `planning/tasks.md`, `task-manifest.json`, and `change-meta.json`
|
|
213
|
+
- `cc-investigate` writes `planning/analysis.md`, `planning/tasks.md`, `task-manifest.json`, and `change-meta.json`
|
|
214
|
+
- `cc-do` writes code, tests, task `checkpoint.json`, and workspace scratch runtime
|
|
215
|
+
- `cc-check` writes `report-card.json`
|
|
216
|
+
- `cc-act` writes exactly one final handoff file: `handoff/pr-brief.md`, `handoff/resume-index.md`, or `handoff/release-note.md`
|
|
528
217
|
|
|
529
|
-
|
|
218
|
+
## Durable vs Ephemeral
|
|
530
219
|
|
|
531
|
-
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
220
|
+
- `devflow/specs/` stores durable capability truth: `INDEX.md` plus `capabilities/*.md`.
|
|
221
|
+
- New change directories must be named `REQ-<number>-<description>` for requirements or `FIX-<number>-<description>` for bug fixes; old lowercase directories are compatibility reads only.
|
|
222
|
+
- `devflow/changes/<change>/` stores durable change truth only: `change-state.json`, `change-meta.json`, planning docs, `task-manifest.json`, `team-state.json`, task `checkpoint.json`, `report-card.json`, and one final handoff file.
|
|
223
|
+
- `devflow/workspaces/<change>/` stores ephemeral runtime scratch such as worker assignment, journals, prompts, and session logs.
|
|
224
|
+
- If a file can be regenerated from durable truth, it should not be persisted under `devflow/changes/`.
|
|
536
225
|
|
|
537
|
-
-
|
|
538
|
-
- `TeammateIdle Hook` - Task assignment and scheduling
|
|
539
|
-
- `TaskCompleted Hook` - Quality verification on completion
|
|
540
|
-
- Timeout detection and alerting
|
|
226
|
+
See [docs/examples/START-HERE.md](./docs/examples/START-HERE.md) for the single entry page to the example set. Example version bindings live in [docs/examples/example-bindings.json](./docs/examples/example-bindings.json).
|
|
541
227
|
|
|
542
|
-
|
|
543
|
-
- `parse-task-dependencies.js` - Parses TASKS.md format
|
|
544
|
-
- Recognizes `[P]` parallel markers, `[US*]` user story groups
|
|
545
|
-
- Phase-based dependency resolution
|
|
228
|
+
## Principles
|
|
546
229
|
|
|
547
|
-
-
|
|
548
|
-
|
|
549
|
-
|
|
230
|
+
- Roadmap before execution
|
|
231
|
+
- Plan before feature code
|
|
232
|
+
- Investigate before bug repair
|
|
233
|
+
- Root cause before fix
|
|
234
|
+
- Evidence before done
|
|
235
|
+
- Ship, then feed the result into the next plan
|
|
550
236
|
|
|
551
|
-
|
|
552
|
-
- `.claude/scripts/parse-task-dependencies.js` - Task parser
|
|
553
|
-
- `.claude/scripts/detect-file-conflicts.sh` - Conflict detection
|
|
554
|
-
- `.claude/scripts/team-dev-init.sh` - Dev team initialization
|
|
555
|
-
- `.claude/scripts/team-state-recovery.sh` - State recovery
|
|
556
|
-
- `.claude/docs/guides/TEAM_MODE_GUIDE.md` - Complete usage guide
|
|
237
|
+
## Verification
|
|
557
238
|
|
|
558
|
-
**📊 v4.7 Improvements**:
|
|
559
|
-
| Metric | Before | After | Improvement |
|
|
560
|
-
|--------|--------|-------|-------------|
|
|
561
|
-
| Parallel agents | 1 | 3-5 | +400% |
|
|
562
|
-
| Requirement completion time | 90 min | 50 min | -45% |
|
|
563
|
-
| Task scheduling | Manual | Automatic | 100% |
|
|
564
|
-
| Quality verification | Single-point | Distributed | 100% |
|
|
565
|
-
|
|
566
|
-
### v4.3.0 (2026-02-07)
|
|
567
|
-
|
|
568
|
-
**🌿 Git Worktree Integration: Parallel Development Support**
|
|
569
|
-
|
|
570
|
-
v4.3.0 introduces Git Worktree integration for parallel development with isolated Claude Code sessions:
|
|
571
|
-
|
|
572
|
-
- **Git Worktree Mode (Default)** - Isolated development environments
|
|
573
|
-
- Creates `../repo-name-REQ-xxx/` worktree directories
|
|
574
|
-
- Each worktree has independent Claude Code session
|
|
575
|
-
- Switch between requirements with `cd` instead of `git checkout`
|
|
576
|
-
- `--branch-only` flag for traditional branch mode
|
|
577
|
-
|
|
578
|
-
- **New Skill: using-git-worktrees** - Complete worktree management
|
|
579
|
-
- `worktree-create.sh` - Create new worktree
|
|
580
|
-
- `worktree-list.sh` - List all worktrees
|
|
581
|
-
- `worktree-switch.sh` - Switch to worktree
|
|
582
|
-
- `worktree-cleanup.sh` - Clean up merged worktrees
|
|
583
|
-
- Shell aliases template (za/zl/zm/zw)
|
|
584
|
-
|
|
585
|
-
- **Modified Commands**
|
|
586
|
-
- `/flow:init` - Default worktree mode, `--branch-only` for compatibility
|
|
587
|
-
- `/flow:release` - Automatic worktree cleanup
|
|
588
|
-
|
|
589
|
-
**📊 v4.3 Improvements**:
|
|
590
|
-
| Metric | Before | After | Improvement |
|
|
591
|
-
|--------|--------|-------|-------------|
|
|
592
|
-
| Parallel requirements | 1 | 3-5 | +400% |
|
|
593
|
-
| Context switch time | 30s | 1s | -97% |
|
|
594
|
-
| Session isolation | None | Full | 100% |
|
|
595
|
-
|
|
596
|
-
### v4.1.0 (2026-02-07)
|
|
597
|
-
|
|
598
|
-
**🎯 Unified Specification Phase: /flow:spec Command**
|
|
599
|
-
|
|
600
|
-
v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single `/flow:spec` command with parallel execution:
|
|
601
|
-
|
|
602
|
-
- **Unified /flow:spec Command** - One command for entire specification phase
|
|
603
|
-
- Full Mode: PRD → Tech + UI (parallel) → Epic/Tasks
|
|
604
|
-
- Quick Mode: `--skip-tech --skip-ui` for small requirements
|
|
605
|
-
- Backend Only: `--skip-ui`
|
|
606
|
-
- Frontend Only: `--skip-tech`
|
|
607
|
-
|
|
608
|
-
- **Parallel Agent Execution** - Tech + UI agents run concurrently
|
|
609
|
-
- ~35% time reduction in design phase
|
|
610
|
-
- Shared template components in `_shared/` directory
|
|
611
|
-
|
|
612
|
-
- **Simplified Workflows** (v4.1)
|
|
613
|
-
```
|
|
614
|
-
Quick (3 steps): /flow:init --quick → /flow:spec --skip-tech --skip-ui → /flow:dev → /flow:release
|
|
615
|
-
Standard (4 steps): /flow:init → /flow:spec → /flow:dev → /flow:verify → /flow:release
|
|
616
|
-
Full (5 steps): /flow:init → /flow:spec → /flow:dev → /flow:verify --strict → /flow:release
|
|
617
|
-
```
|
|
618
|
-
|
|
619
|
-
- **Deprecations**: `/flow-prd`, `/flow-tech`, `/flow-ui`, `/flow-epic` now deprecated (use `/flow:spec`)
|
|
620
|
-
|
|
621
|
-
**📊 v4.1 Improvements**:
|
|
622
|
-
| Metric | Before (v4.0) | After (v4.1) | Improvement |
|
|
623
|
-
|--------|---------------|--------------|-------------|
|
|
624
|
-
| Command calls | 4 | 1 | -75% |
|
|
625
|
-
| Design phase time | 8-12 min | 5-8 min | -35% |
|
|
626
|
-
| Entry/Exit Gate code | ~280 lines | ~100 lines | -64% |
|
|
627
|
-
|
|
628
|
-
### v4.0.0 (2026-02-07)
|
|
629
|
-
|
|
630
|
-
**🏗️ Skills-First Architecture: Unified Skills with Context Injection**
|
|
631
|
-
|
|
632
|
-
v4.0.0 introduces a major architectural refactor, reorganizing 135 files into a unified Skills-First Architecture inspired by Trellis and OpenSpec:
|
|
633
|
-
|
|
634
|
-
- **Skills-First Architecture** - All Skills organized into 4 groups
|
|
635
|
-
- `workflow/`: 9 core workflow Skills (flow-init, flow-spec, flow-dev, etc.)
|
|
636
|
-
- `domain/`: 7 domain expertise Skills (tdd, debugging, brainstorming, verification)
|
|
637
|
-
- `guardrail/`: 3 real-time compliance Skills (constitution-guardian, tdd-enforcer)
|
|
638
|
-
- `utility/`: 8 development tool Skills (npm-release, skill-creator, writing-skills)
|
|
639
|
-
|
|
640
|
-
- **JSONL Context Injection** (Trellis-inspired)
|
|
641
|
-
- Each Skill has `context.jsonl` defining required context files
|
|
642
|
-
- `inject-skill-context.ts` hook auto-loads context before Skill execution
|
|
643
|
-
- Variable substitution: `{REQ}` replaced with actual requirement ID
|
|
644
|
-
- Optional files supported with `"optional": true`
|
|
645
|
-
|
|
646
|
-
- **workflow.yaml Dependency Graph** (OpenSpec-inspired)
|
|
647
|
-
- Defines Skill dependencies with `requires` and `generates`
|
|
648
|
-
- File existence state detection for workflow status
|
|
649
|
-
- Clear visualization of Skill execution order
|
|
650
|
-
|
|
651
|
-
- **Self-Contained Skills**
|
|
652
|
-
- Each Skill directory contains: SKILL.md + context.jsonl + scripts/ + references/ + assets/
|
|
653
|
-
- SKILL.md limited to <500 lines for focused instructions
|
|
654
|
-
- Agent instructions moved to `references/` subdirectory
|
|
655
|
-
- Templates moved to `assets/` subdirectory
|
|
656
|
-
|
|
657
|
-
- **Multi-Module Cross-Platform Compiler** (v3.0)
|
|
658
|
-
- Complete multi-module compilation: skills, commands, agents, rules, hooks
|
|
659
|
-
- Platform-specific output formats:
|
|
660
|
-
- **Codex**: `.codex/skills/`, `.codex/prompts/`, `AGENTS.md`
|
|
661
|
-
- **Cursor**: `.cursor/rules/*.mdc`, `.cursor/subagents/`, `hooks.json`
|
|
662
|
-
- **Qwen**: `.qwen/commands/*.toml`, `.qwen/agents/`, `CONTEXT.md`
|
|
663
|
-
- **Antigravity**: `.agent/skills/`, `.agent/workflows/`, `.agent/rules/`
|
|
664
|
-
- `context.jsonl` compilation-time expansion with platform-specific formats
|
|
665
|
-
- 197 tests passing (24 new multi-module tests)
|
|
666
|
-
|
|
667
|
-
**📊 v4.0 Improvements**:
|
|
668
|
-
| Metric | Before | After | Improvement |
|
|
669
|
-
|--------|--------|-------|-------------|
|
|
670
|
-
| Maintenance points | 4 directories | 1 directory | -75% |
|
|
671
|
-
| Context loading | Manual full load | On-demand auto | -70% tokens |
|
|
672
|
-
| Dependency visibility | Implicit | Explicit (workflow.yaml) | +100% |
|
|
673
|
-
| Platform module support | Commands only | All modules | +400% |
|
|
674
|
-
|
|
675
|
-
**📁 New Files**:
|
|
676
|
-
- `.claude/skills/workflow.yaml` - Skill dependency graph
|
|
677
|
-
- `.claude/hooks/inject-skill-context.ts` - Context injection hook
|
|
678
|
-
- `.claude/skills/workflow/*/context.jsonl` - Per-Skill context definitions
|
|
679
|
-
- `devflow/spec/{frontend,backend,shared}/index.md` - Specification indexes
|
|
680
|
-
- `lib/compiler/context-expander.js` - Context.jsonl expansion module
|
|
681
|
-
- `lib/compiler/__tests__/multi-module-emitters.test.js` - Multi-module tests
|
|
682
|
-
|
|
683
|
-
### v2.3.0 (2026-01-08)
|
|
684
|
-
|
|
685
|
-
**🛡️ Discipline System: Iron Law + Rationalization Defense + Pressure Testing**
|
|
686
|
-
|
|
687
|
-
v2.3.0 upgrades the Constitution from a "document" to an "executable discipline system", borrowing best practices from superpowers project:
|
|
688
|
-
|
|
689
|
-
- **Iron Law + Rationalization Tables** - Pre-block AI Agent rationalization attempts
|
|
690
|
-
- Each of 10 Constitution Articles now has an Iron Law (absolute prohibition)
|
|
691
|
-
- Rationalization Tables with `| Excuse | Reality |` format
|
|
692
|
-
- Red Flags for AI self-check triggers
|
|
693
|
-
- Centralized `rationalization-library.md` for all rationalizations
|
|
694
|
-
|
|
695
|
-
- **Two-Stage Code Review** - `/flow-review` command (NEW)
|
|
696
|
-
- Stage 1: Spec Compliance (don't trust implementer reports, read code directly)
|
|
697
|
-
- Stage 2: Code Quality (only runs after Stage 1 passes)
|
|
698
|
-
- `spec-reviewer.md` and `code-quality-reviewer.md` agents
|
|
699
|
-
|
|
700
|
-
- **Verification Before Completion** - Evidence before assertions
|
|
701
|
-
- `verification-before-completion` skill
|
|
702
|
-
- `verify-gate.sh` script for all flow exit gates
|
|
703
|
-
- No completion claims without fresh verification evidence
|
|
704
|
-
|
|
705
|
-
- **Systematic Debugging** - `/flow-fix` enhanced with 4-phase debugging
|
|
706
|
-
- Phase 1: Root Cause Investigation (NO FIXES YET)
|
|
707
|
-
- Phase 2: Pattern Analysis
|
|
708
|
-
- Phase 3: Hypothesis and Testing
|
|
709
|
-
- Phase 4: TDD Implementation
|
|
710
|
-
- `flow-debugging` and `flow-tdd` skills
|
|
711
|
-
|
|
712
|
-
- **Brainstorming Integration** - `/flow:init` now includes brainstorming
|
|
713
|
-
- `BRAINSTORM.md` as requirement "North Star"
|
|
714
|
-
- `/flow:spec` requires BRAINSTORM alignment check
|
|
715
|
-
- `flow-brainstorming` skill
|
|
716
|
-
|
|
717
|
-
- **Pressure Testing Framework** - TDD for Skills
|
|
718
|
-
- `tests/pressure-scenarios/` with 4 scenarios
|
|
719
|
-
- Tests AI behavior under time/sunk cost/authority/exhaustion pressure
|
|
720
|
-
- `run-pressure-tests.sh` runner
|
|
721
|
-
|
|
722
|
-
- **Skills Fusion** - Superpowers skills migrated to local
|
|
723
|
-
- `flow-tdd`, `flow-debugging`, `flow-receiving-review`, `flow-finishing-branch`
|
|
724
|
-
- All `superpowers:xxx` references replaced with local skills
|
|
725
|
-
|
|
726
|
-
- **Ralph × Manus Integration** - Autonomous development with memory (NEW)
|
|
727
|
-
- Merged into `/flow:dev` (Autonomous by default)
|
|
728
|
-
- `flow-attention-refresh` skill with 4 refresh protocols
|
|
729
|
-
- `ERROR_LOG.md` structured error tracking
|
|
730
|
-
- `research/attempts/` failure trace recording
|
|
731
|
-
- Stop Hook for self-referential loops
|
|
732
|
-
- Manus method in `/flow:init` Stage 2.5 Research
|
|
733
|
-
- Target: ≥85% task completion rate without human intervention
|
|
734
|
-
|
|
735
|
-
**📋 Constitution v2.1.0**:
|
|
736
|
-
- All 10 Articles now have Iron Law + Rationalization Defense + Red Flags
|
|
737
|
-
- Cross-reference to `rationalization-library.md`
|
|
738
|
-
|
|
739
|
-
**📁 New Files**:
|
|
740
|
-
- `.claude/commands/util/cancel-ralph.md` - Cancel Ralph loop command
|
|
741
|
-
- `.claude/skills/flow-attention-refresh/SKILL.md` - 4 attention refresh protocols
|
|
742
|
-
- `.claude/hooks/ralph-stop-hook.sh` - Stop Hook for self-referential loops
|
|
743
|
-
- `.claude/hooks/hooks.json` - Hook registration configuration
|
|
744
|
-
- `.claude/scripts/setup-ralph-loop.sh` - Ralph state initialization script
|
|
745
|
-
- `.claude/docs/templates/ERROR_LOG_TEMPLATE.md` - Execution error log format
|
|
746
|
-
- `.claude/docs/templates/ATTEMPT_TEMPLATE.md` - Research attempt log format
|
|
747
|
-
- `.claude/agents/spec-reviewer.md` - Stage 1 spec compliance reviewer
|
|
748
|
-
- `.claude/agents/code-quality-reviewer.md` - Stage 2 code quality reviewer
|
|
749
|
-
- `.claude/commands/flow-review.md` - Two-stage review command (legacy, replaced by `.claude/commands/flow/quality.md`)
|
|
750
|
-
- `.claude/rules/rationalization-library.md` - Centralized rationalization defense
|
|
751
|
-
- `.claude/scripts/verify-gate.sh` - Exit gate verification script
|
|
752
|
-
- `.claude/skills/flow-brainstorming/` - Brainstorming skill
|
|
753
|
-
- `.claude/skills/flow-debugging/` - Systematic debugging skill
|
|
754
|
-
- `.claude/skills/flow-tdd/` - TDD enforcement skill
|
|
755
|
-
- `.claude/skills/flow-receiving-review/` - Review feedback handling skill
|
|
756
|
-
- `.claude/skills/flow-finishing-branch/` - Branch completion decision skill
|
|
757
|
-
- `.claude/skills/verification-before-completion/` - Completion verification skill
|
|
758
|
-
- `tests/` - Pressure testing framework
|
|
759
|
-
|
|
760
|
-
### v2.2.0 (2025-12-19)
|
|
761
|
-
|
|
762
|
-
**🔌 Multi-Platform Adaptation: Agent Adapter Architecture + Command Emitter**
|
|
763
|
-
|
|
764
|
-
v2.2.0 introduces comprehensive multi-platform support, enabling cc-devflow workflows to run on multiple AI coding assistants:
|
|
765
|
-
|
|
766
|
-
- **Agent Adapter Architecture (REQ-004)** - Pluggable adapter layer for platform differences
|
|
767
|
-
- Unified Agent Adapter abstraction (environment detection, command execution, capability declaration)
|
|
768
|
-
- Adapter Registry with auto-detection and explicit override support
|
|
769
|
-
- Built-in adapters: Claude Code (default), Codex CLI, Cursor, Qwen, Antigravity
|
|
770
|
-
- Security-first design: capability allow-list with default deny for high-risk operations
|
|
771
|
-
- Structured logging for debugging and auditing
|
|
772
|
-
|
|
773
|
-
- **Command Emitter Compiler (REQ-005)** - Single Source of Truth compilation
|
|
774
|
-
- `.claude/` as SSOT, compiles to platform-native formats
|
|
775
|
-
- `npm run adapt` CLI for multi-platform compilation
|
|
776
|
-
- Supported platforms: Codex (`.codex/`), Cursor (`.cursor/`), Qwen (`.qwen/`), Antigravity (`.agent/`)
|
|
777
|
-
- Placeholder expansion: `{SCRIPT:*}`, `{TEMPLATE:*}`, `{GUIDE:*}`, `{AGENT_SCRIPT}`, `$ARGUMENTS`
|
|
778
|
-
- Template/Guide inlining with automatic content embedding
|
|
779
|
-
- Resource copying with path rewriting (scripts, templates, guides → platform directories)
|
|
780
|
-
- Manifest-based incremental compilation with drift detection
|
|
781
|
-
|
|
782
|
-
- **Adapter Compiler (REQ-006)** - Multi-platform rules entry file generation
|
|
783
|
-
- Platform-specific rules emitters for 4 platforms (Cursor MDC, Codex SKILL.md, Qwen TOML, Antigravity with 12K splitting)
|
|
784
|
-
- Skills registry compilation (merges `skill-rules.json` + `skill.md` metadata)
|
|
785
|
-
- Manifest v2.0 extension with `skills` and `rulesEntry` tracking
|
|
786
|
-
- `--rules` and `--skills` CLI options for selective compilation
|
|
787
|
-
- **Bug Fix**: Disabled template inlining by default (keeps path references instead of inline expansion)
|
|
788
|
-
- 173 tests, 87% coverage for new modules
|
|
789
|
-
|
|
790
|
-
**📦 New CLI Tool**:
|
|
791
239
|
```bash
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
npm run
|
|
795
|
-
npm run adapt -- --verbose # Show detailed output
|
|
240
|
+
find .claude/skills -mindepth 2 -maxdepth 2 -name SKILL.md | sort
|
|
241
|
+
find .claude/skills -mindepth 2 -maxdepth 3 -type f | sort
|
|
242
|
+
npm run verify
|
|
796
243
|
```
|
|
797
|
-
|
|
798
|
-
### v2.1.0 (2025-11-07)
|
|
799
|
-
|
|
800
|
-
**🏢 Core Breakthrough: Introduction of Project-Level Commands**
|
|
801
|
-
|
|
802
|
-
v2.1.0's core breakthrough is the introduction of **Project-Level Commands**, forming a two-tier system with previous **Requirement-Level Commands**:
|
|
803
|
-
|
|
804
|
-
- **Project-Level Commands** - Project-wide planning and architecture design (executed once per project at the beginning)
|
|
805
|
-
- `/core-roadmap` - Interactive product roadmap generation (6-stage dialogue)
|
|
806
|
-
- `/core-architecture` - 4 architecture diagram generation (Mermaid format)
|
|
807
|
-
- `/core-guidelines` - Project guidelines generation (frontend/backend separation)
|
|
808
|
-
|
|
809
|
-
- **Requirement-Level Commands Enhancement** - Stage 1.5 Roadmap & Architecture context loading (flow-init)
|
|
810
|
-
- Automatically load project-level context when initializing requirements
|
|
811
|
-
- Automatic requirement-to-roadmap mapping (RM-ID, Milestone, Quarter)
|
|
812
|
-
- Automatic architecture context association (Feature Layer, Tech Stack, Module)
|
|
813
|
-
|
|
814
|
-
**📚 Documentation Improvements**:
|
|
815
|
-
- README complete refactoring (complete TOC + folding + external documentation links)
|
|
816
|
-
- Added 25+ detailed documents
|
|
817
|
-
|
|
818
|
-
📋 [Complete Changelog](CHANGELOG.md)
|
|
819
|
-
|
|
820
|
-
---
|
|
821
|
-
|
|
822
|
-
## 🤝 Contributing & Support
|
|
823
|
-
|
|
824
|
-
**Contributing**: [Contributing Guide](CONTRIBUTING.md)
|
|
825
|
-
**Issues**: [GitHub Issues](https://github.com/Dimon94/cc-devflow/issues)
|
|
826
|
-
**Documentation**: [Complete Documentation](docs/)
|
|
827
|
-
|
|
828
|
-
---
|
|
829
|
-
|
|
830
|
-
## 📄 License
|
|
831
|
-
|
|
832
|
-
MIT License - See [LICENSE](LICENSE) file
|
|
833
|
-
|
|
834
|
-
---
|
|
835
|
-
|
|
836
|
-
**🌟 Star this repository if cc-devflow helps streamline your development workflow!**
|