dflow-sdd-ddd 0.14.0 → 0.16.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/CHANGELOG.md +915 -0
- package/CONTRIBUTING.md +11 -1
- package/README.en.md +160 -212
- package/README.md +93 -147
- package/TEMPLATE-COVERAGE.md +13 -6
- package/TEMPLATE-LANGUAGE-GLOSSARY.md +15 -1
- package/bin/dflow.js +90 -4
- package/docs/closeout-check.en.md +204 -0
- package/docs/closeout-check.md +204 -0
- package/docs/commands.en.md +112 -0
- package/docs/commands.md +103 -0
- package/docs/doctor-uncertainty.en.md +212 -0
- package/docs/doctor-uncertainty.md +212 -0
- package/docs/evaluating-dflow.en.md +29 -11
- package/docs/evaluating-dflow.md +8 -6
- package/docs/release-versioning-policy.md +6 -0
- package/docs/upgrading.en.md +196 -0
- package/docs/upgrading.md +197 -0
- package/docs/using-with-claude-code.en.md +13 -4
- package/docs/using-with-claude-code.md +13 -4
- package/docs/using-with-codex.en.md +13 -4
- package/docs/using-with-codex.md +13 -4
- package/docs/using-with-github-copilot.en.md +13 -4
- package/docs/using-with-github-copilot.md +13 -4
- package/lib/closeout-check.js +690 -0
- package/lib/doc-shapes.json +1195 -0
- package/lib/doctor-checks.js +2500 -24
- package/lib/init.js +2861 -143
- package/lib/render-diagrams.js +1474 -0
- package/lib/render.js +865 -49
- package/package.json +2 -2
- package/templates/brownfield/references/drift-verification.md +4 -0
- package/templates/brownfield/references/finish-feature-flow.md +648 -98
- package/templates/brownfield/references/finish-feature-follow-up.md +60 -0
- package/templates/brownfield/references/finish-feature-minimal-host.md +427 -0
- package/templates/brownfield/references/finish-feature-post-hoc-hotfix.md +95 -0
- package/templates/brownfield/references/finish-feature-record-correction.md +45 -0
- package/templates/brownfield/references/git-integration.md +205 -26
- package/templates/brownfield/references/init-project-flow.md +23 -3
- package/templates/brownfield/references/modify-existing-flow.md +439 -88
- package/templates/brownfield/references/modify-existing-follow-up.md +122 -0
- package/templates/brownfield/references/modify-existing-post-hoc-hotfix.md +200 -0
- package/templates/brownfield/references/new-feature-flow.md +110 -37
- package/templates/brownfield/references/new-phase-flow.md +59 -9
- package/templates/brownfield/references/pr-review-checklist.md +328 -10
- package/templates/brownfield/scaffolding/AI-AGENT-GUIDE.md +151 -34
- package/templates/brownfield/scaffolding/CLAUDE-md-snippet.md +1 -1
- package/templates/brownfield/scaffolding/Git-principles-gitflow.md +85 -8
- package/templates/brownfield/scaffolding/Git-principles-trunk.md +88 -10
- package/templates/brownfield/scaffolding/_conventions.md +50 -28
- package/templates/brownfield/scaffolding/_overview.md +1 -0
- package/templates/brownfield/templates/_index.md +158 -10
- package/templates/brownfield/templates/analysis.md +79 -0
- package/templates/brownfield/templates/behavior.md +1 -0
- package/templates/brownfield/templates/context-definition.md +1 -0
- package/templates/brownfield/templates/context-map.md +2 -1
- package/templates/brownfield/templates/glossary.md +1 -0
- package/templates/brownfield/templates/lightweight-spec.md +154 -11
- package/templates/brownfield/templates/models.md +1 -0
- package/templates/brownfield/templates/phase-spec.md +9 -1
- package/templates/brownfield/templates/rules.md +1 -0
- package/templates/brownfield/templates/tech-debt.md +1 -0
- package/templates/common/references/ddd-modeling-guide.md +33 -16
- package/templates/{greenfield → common}/references/dflow-feedback-flow.md +2 -1
- package/templates/common/references/flow-rationale-registry.md +146 -0
- package/templates/common/skill/SKILL.md +13 -11
- package/templates/greenfield/references/drift-verification.md +4 -0
- package/templates/greenfield/references/finish-feature-flow.md +639 -100
- package/templates/greenfield/references/finish-feature-follow-up.md +60 -0
- package/templates/greenfield/references/finish-feature-minimal-host.md +383 -0
- package/templates/greenfield/references/finish-feature-post-hoc-hotfix.md +95 -0
- package/templates/greenfield/references/finish-feature-record-correction.md +45 -0
- package/templates/greenfield/references/git-integration.md +193 -26
- package/templates/greenfield/references/init-project-flow.md +23 -3
- package/templates/greenfield/references/modify-existing-flow.md +395 -87
- package/templates/greenfield/references/modify-existing-follow-up.md +104 -0
- package/templates/greenfield/references/modify-existing-post-hoc-hotfix.md +200 -0
- package/templates/greenfield/references/new-feature-flow.md +116 -35
- package/templates/greenfield/references/new-phase-flow.md +58 -9
- package/templates/greenfield/references/pr-review-checklist.md +311 -8
- package/templates/greenfield/scaffolding/AI-AGENT-GUIDE.md +146 -32
- package/templates/greenfield/scaffolding/CLAUDE-md-snippet.md +5 -2
- package/templates/greenfield/scaffolding/Git-principles-gitflow.md +84 -8
- package/templates/greenfield/scaffolding/Git-principles-trunk.md +94 -14
- package/templates/greenfield/scaffolding/_conventions.md +50 -28
- package/templates/greenfield/scaffolding/_overview.md +6 -2
- package/templates/greenfield/templates/_index.md +145 -10
- package/templates/greenfield/templates/aggregate-design.md +1 -0
- package/templates/greenfield/templates/analysis.md +79 -0
- package/templates/greenfield/templates/behavior.md +1 -0
- package/templates/greenfield/templates/context-definition.md +1 -0
- package/templates/greenfield/templates/context-map.md +2 -1
- package/templates/greenfield/templates/events.md +4 -1
- package/templates/greenfield/templates/glossary.md +1 -0
- package/templates/greenfield/templates/lightweight-spec.md +154 -11
- package/templates/greenfield/templates/models.md +1 -0
- package/templates/greenfield/templates/phase-spec.md +9 -1
- package/templates/greenfield/templates/rules.md +1 -0
- package/templates/greenfield/templates/tech-debt.md +1 -0
- package/templates/brownfield/references/dflow-feedback-flow.md +0 -251
|
@@ -36,8 +36,17 @@ domain behavior, a new requirement, or a bug-fix workflow — read and follow:
|
|
|
36
36
|
- `dflow/specs/shared/AI-AGENT-GUIDE.md` — command registry, routing rules, and project context.
|
|
37
37
|
- `dflow/specs/shared/dflow-workflows/` — vendored workflow bundle with executable step definitions.
|
|
38
38
|
|
|
39
|
-
For routine work (refactors, renames, chores, formatting, dependency
|
|
40
|
-
general code questions), proceed normally; you need not read the guide
|
|
39
|
+
For routine work (refactors, renames, chores, formatting, routine dependency
|
|
40
|
+
bumps, or general code questions), proceed normally; you need not read the guide
|
|
41
|
+
first. **Routine is narrower than it sounds** — it excludes anything a product
|
|
42
|
+
audience perceives (UI, email, exports, public docs such as a product README or
|
|
43
|
+
API reference, and operator surfaces like dashboard labels and alerts), where
|
|
44
|
+
**size is not the test**: a single-element wording or appearance change still
|
|
45
|
+
counts. It also excludes anything touching architecture, data structure, a
|
|
46
|
+
machine-consumed contract, a BR-ID, operational semantics (security / CVE,
|
|
47
|
+
safety, resilience, compliance, payment), or deliberate performance / resource /
|
|
48
|
+
SLA work. When unsure, read the guide's § Ceremony Scaling —
|
|
49
|
+
it decides, not this page.
|
|
41
50
|
|
|
42
51
|
Keep tool-specific instruction files small. The guide and workflow bundle are
|
|
43
52
|
the authoritative sources for Dflow workflow rules, slash-command behavior,
|
|
@@ -66,8 +75,8 @@ only how you invoke them differs):
|
|
|
66
75
|
|
|
67
76
|
| Command | Use when |
|
|
68
77
|
|---|---|
|
|
69
|
-
| `/dflow:new-feature` | A new user-
|
|
70
|
-
| `/dflow:modify-existing` | Existing behavior
|
|
78
|
+
| `/dflow:new-feature` | A genuinely new feature, page, or capability — a **newly created** navigable surface (its own route and its own content tree), a new user-executable domain operation, or a new independently-consumable output. Adding a control to an existing surface — or a menu entry pointing at a route that already exists — is modify-existing. |
|
|
79
|
+
| `/dflow:modify-existing` | Existing behavior or an existing surface changes — including adding a presentation / interaction control (copy button, filter, sort, quick-view) to an existing screen. |
|
|
71
80
|
| `/dflow:bug-fix` | A defect can be described with expected vs actual behavior. |
|
|
72
81
|
| `/dflow:new-phase` | An active feature needs another implementation slice. |
|
|
73
82
|
| `/dflow:finish-feature` | Implementation is complete and needs drift closure. |
|
|
@@ -45,8 +45,17 @@ domain behavior, a new requirement, or a bug-fix workflow — read and follow:
|
|
|
45
45
|
- `dflow/specs/shared/AI-AGENT-GUIDE.md` — command registry, routing rules, and project context.
|
|
46
46
|
- `dflow/specs/shared/dflow-workflows/` — vendored workflow bundle with executable step definitions.
|
|
47
47
|
|
|
48
|
-
For routine work (refactors, renames, chores, formatting, dependency
|
|
49
|
-
general code questions), proceed normally; you need not read the guide
|
|
48
|
+
For routine work (refactors, renames, chores, formatting, routine dependency
|
|
49
|
+
bumps, or general code questions), proceed normally; you need not read the guide
|
|
50
|
+
first. **Routine is narrower than it sounds** — it excludes anything a product
|
|
51
|
+
audience perceives (UI, email, exports, public docs such as a product README or
|
|
52
|
+
API reference, and operator surfaces like dashboard labels and alerts), where
|
|
53
|
+
**size is not the test**: a single-element wording or appearance change still
|
|
54
|
+
counts. It also excludes anything touching architecture, data structure, a
|
|
55
|
+
machine-consumed contract, a BR-ID, operational semantics (security / CVE,
|
|
56
|
+
safety, resilience, compliance, payment), or deliberate performance / resource /
|
|
57
|
+
SLA work. When unsure, read the guide's § Ceremony Scaling —
|
|
58
|
+
it decides, not this page.
|
|
50
59
|
|
|
51
60
|
Keep tool-specific instruction files small. The guide and workflow bundle are
|
|
52
61
|
the authoritative sources for Dflow workflow rules, slash-command behavior,
|
|
@@ -72,8 +81,8 @@ GitHub Copilot 有兩個介面,Dflow 在兩者的觸發與命令行為不同
|
|
|
72
81
|
|
|
73
82
|
| 指令 | 適用情境 |
|
|
74
83
|
|---|---|
|
|
75
|
-
| `/dflow:new-feature` |
|
|
76
|
-
| `/dflow:modify-existing` |
|
|
84
|
+
| `/dflow:new-feature` | 真正新的功能、頁面或能力——**新建**的可導航介面(自有 route 且自有內容樹)、新的使用者可執行 domain 操作、或新的獨立可消費產出;對既有介面加控制項、或為既有 route 加選單入口,都屬 modify-existing。 |
|
|
85
|
+
| `/dflow:modify-existing` | 既有行為或既有介面要改——含對既有畫面加呈現/互動控制項(copy 按鈕、filter、排序、quick-view)。 |
|
|
77
86
|
| `/dflow:bug-fix` | 可以用預期行為 vs 實際行為描述的缺陷。 |
|
|
78
87
|
| `/dflow:new-phase` | 進行中的 feature 需要另一個實作 slice。 |
|
|
79
88
|
| `/dflow:finish-feature` | 實作完成後需要進行漂移(drift)收尾。 |
|