wdi-method 0.6.0 → 0.6.2
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/README.md +14 -4
- package/bin/wdi-method.js +2 -0
- package/kit/.constitution/method/README.md +1 -1
- package/kit/.constitution/method/document/decision-guide.md +208 -199
- package/kit/.constitution/method/document/delivery-flow-guide.md +412 -409
- package/kit/.constitution/method/document/templates/decision.md +6 -1
- package/kit/.constitution/method/method-glossary.md +183 -182
- package/kit/.constitution/method/scripts/validate.py +102 -2
- package/kit/.constitution/method/why/README.md +3 -1
- package/kit/.constitution/method/why/artifact-map.md +1 -1
- package/kit/.constitution/method/why/portability.md +98 -98
- package/kit/skills/wdi-autopilot/SKILL.md +366 -0
- package/kit/skills/wdi-build/SKILL.md +371 -357
- package/kit/skills/wdi-decision/SKILL.md +197 -187
- package/kit/skills/wdi-explain-to-me/SKILL.md +84 -0
- package/kit/skills/wdi-help/SKILL.md +102 -99
- package/kit/skills/wdi-question/SKILL.md +176 -170
- package/kit-overlay/AGENTS.md +223 -216
- package/kit-overlay/README.md +1 -1
- package/kit-overlay/portability.md +98 -98
- package/package.json +1 -1
package/kit-overlay/AGENTS.md
CHANGED
|
@@ -1,216 +1,223 @@
|
|
|
1
|
-
# Agent Rules — {product}
|
|
2
|
-
|
|
3
|
-
<!-- BEGIN:wdi-method -->
|
|
4
|
-
This repo uses **WDI Method**. It wraps BMad; it does not replace it. This marked
|
|
5
|
-
block is owned by the WDI Method package and is **replaced on every update**.
|
|
6
|
-
Product rules belong **outside** it (extra boundaries, `## Code`, stack notes).
|
|
7
|
-
A fact written inside this block will be overwritten.
|
|
8
|
-
|
|
9
|
-
Product identity lives in `.control/registry/index.yaml` (`product.name`, optional
|
|
10
|
-
`product.client`). G1 confirms it. This file MUST NOT become a second source of the name.
|
|
11
|
-
|
|
12
|
-
## Install and update
|
|
13
|
-
|
|
14
|
-
BMad first, then WDI Method. In the product repo:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npx bmad-method install
|
|
18
|
-
npx wdi-method
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
No subcommand opens the installer TUI. It detects an existing install and offers
|
|
22
|
-
**update**. Non-interactive:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npx wdi-method install --yes
|
|
26
|
-
npx wdi-method update --yes
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
BMad: https://github.com/bmad-code-org/BMAD-METHOD
|
|
30
|
-
WDI Method: https://github.com/wiradigitalid/wdi-method
|
|
31
|
-
|
|
32
|
-
A method file MUST NOT be invented here. If a rule is wrong, fix it in the WDI
|
|
33
|
-
Method package, then update.
|
|
34
|
-
|
|
35
|
-
This file is loaded every session; everything else is loaded **lazily**, only when
|
|
36
|
-
the task matches.
|
|
37
|
-
|
|
38
|
-
## Language
|
|
39
|
-
|
|
40
|
-
**Two settings decide this, and they live in `.control/registry/index.yaml` under `policy:`.** Both are
|
|
41
|
-
free text and both default to English:
|
|
42
|
-
|
|
43
|
-
| Setting | Governs |
|
|
44
|
-
|---|---|
|
|
45
|
-
| `doc_language` | The prose of working documents in `.what/` · `.how/` · `.control/` |
|
|
46
|
-
| `doc_filename_language` | The slug part of a document filename |
|
|
47
|
-
|
|
48
|
-
Read those two before writing a document. A technical term the industry writes in English MUST be left in
|
|
49
|
-
English whatever the setting says — an equivalent MUST NOT be invented for it.
|
|
50
|
-
|
|
51
|
-
**These files are always English, whatever the settings say:** `AGENTS.md`, `CLAUDE.md`, and everything
|
|
52
|
-
under `.constitution/`. They are agent instructions, and they travel to every repo through the
|
|
53
|
-
`wdi-method` package. The one exception is `.constitution/project/`, which is this product's own room.
|
|
54
|
-
|
|
55
|
-
**Always English and never a setting**, because a script matches them:
|
|
56
|
-
|
|
57
|
-
- method terminology — `DEC` `SRS` `SDD` `UC` `FR` `AD`, the gate names, the values of `mode` and
|
|
58
|
-
`risk_accepted`
|
|
59
|
-
- document code prefixes — `UC-` `DEC-` `SRS-`; only the slug after them follows `doc_filename_language`
|
|
60
|
-
- markers — `[NEEDS CONFIRMATION]` `[MISSING]` `[ASSUMED]` `[PARTIAL]`, and `yes`/`no` in a `critical`
|
|
61
|
-
column
|
|
62
|
-
- registry values — `mode: catalog`, `status: applied`, `risk_accepted: low`. Used as written in prose
|
|
63
|
-
too: one thing, one name
|
|
64
|
-
- code identifiers, database columns, config keys — `language-guide.md` owns these
|
|
65
|
-
|
|
66
|
-
**A corpus written before these settings existed MUST NOT be migrated for them.** The readers accept more
|
|
67
|
-
than one language, so existing documents keep working and only new writing follows the setting.
|
|
68
|
-
|
|
69
|
-
## The thing in your hand → its folder
|
|
70
|
-
|
|
71
|
-
Read this instead of reasoning about what `.what/` and `.how/` mean.
|
|
72
|
-
|
|
73
|
-
| The thing in your hand | Its folder |
|
|
74
|
-
|---|---|
|
|
75
|
-
| A rule, a guide, a template — how we work | `.constitution/method/` — **overwritten in full by `update`** |
|
|
76
|
-
| A rule that binds **only this product** | `.constitution/project/` — `update` never writes over it, `promote` never publishes it |
|
|
77
|
-
| The explanation of a rule, never a rule itself | `.constitution/method/why/` |
|
|
78
|
-
| A decision, an open question, a registry, a structure map, minutes | `.control/` |
|
|
79
|
-
| The brief, a PRD, a use case, a business rule — what is promised | `.what/` |
|
|
80
|
-
| The spine, C4, an inventory, an SDD, a contract — how it is built | `.how/` |
|
|
81
|
-
| A skill run's working output, and documents that predate the method | `_bmad-output/` |
|
|
82
|
-
| Scratch that empties when the task closes | `.work/` |
|
|
83
|
-
| The application | named under `## Code` below |
|
|
84
|
-
|
|
85
|
-
## Layer boundaries
|
|
86
|
-
|
|
87
|
-
| Layer | Answers | MUST NOT hold |
|
|
88
|
-
|---|---|---|
|
|
89
|
-
| `.constitution/` | How we work | State, decisions, product content |
|
|
90
|
-
| `.control/` | What currently holds and what has been decided | Rules |
|
|
91
|
-
| `.what/` | What is promised | Solution shape — tables, endpoints, technology |
|
|
92
|
-
| `.how/` | How it is built | Promises to the user |
|
|
93
|
-
| `_bmad-output/` | Work in progress; committed, not curated | Anything still correct after its wave has passed |
|
|
94
|
-
| `.work/` | Scratch; emptied when a task closes | Secrets, commercial figures, anything meant as authority |
|
|
95
|
-
|
|
96
|
-
The placement test: **is this file still correct after its wave has passed?** Yes → the corpus. No →
|
|
97
|
-
`_bmad-output/`. In doubt → `.constitution/method/document/corpus-guide.md`.
|
|
98
|
-
|
|
99
|
-
The method does not use a `docs/` layer for corpus or rules. A leftover `docs/` folder is inventory
|
|
100
|
-
to sort, not a second home.
|
|
101
|
-
|
|
102
|
-
## Depth and review intensity — two fields, never merged
|
|
103
|
-
|
|
104
|
-
| Field | Where | Controls |
|
|
105
|
-
|---|---|---|
|
|
106
|
-
| `mode` | `index.yaml` globally, `components.yaml` per component | **Document depth**, and only that. `catalog` · `outline` · `guarded` · `deep`; default `catalog` |
|
|
107
|
-
| `risk_accepted` | `components.yaml` per component | **Review intensity**, and only that. `low` · `medium` · `high` |
|
|
108
|
-
|
|
109
|
-
Per-component `mode` wins over global, and there is no third scope — `mode` MUST NOT be overridden per
|
|
110
|
-
wave or per `SPEC.md`. A component at `mode: catalog` **skips G4 entirely**. Neither field MUST be
|
|
111
|
-
derived from the other: one component MAY be thin on purpose and reviewed the hardest.
|
|
112
|
-
`.constitution/method/document/delivery-flow-guide.md` owns both;
|
|
113
|
-
`.constitution/method/why/rationale.md` says why they are separate.
|
|
114
|
-
|
|
115
|
-
## The five gates and the
|
|
116
|
-
|
|
117
|
-
| Gate | Decides | Skill |
|
|
118
|
-
|---|---|---|
|
|
119
|
-
| **G1 Problem** | What the problem is, whose it is, why it earns work | `wdi-problem` |
|
|
120
|
-
| **G2 Product** | What is built, and how it feels to use | `wdi-product` · optional `wdi-ux` |
|
|
121
|
-
| **G3 Blueprint** | The whole portrait, once per product | `wdi-blueprint` |
|
|
122
|
-
| **G4 Component** | How one component is built — **skipped at `catalog`** | `wdi-component` |
|
|
123
|
-
| **G5 Release** | Whether it is done and proven | `wdi-build` |
|
|
124
|
-
|
|
125
|
-
Before G1 and at the tail of G2: `wdi-init`, five intents — `setup` · `component` · `mode` · `risk` ·
|
|
126
|
-
`structure`.
|
|
127
|
-
|
|
128
|
-
Any time: `wdi-decision` · `wdi-question` · `wdi-log` · `wdi-help` · `wdi-reconcile` · `wdi-review` ·
|
|
129
|
-
`wdi-report` · `wdi-systematic-debugging`.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
|
161
|
-
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
| Unsure
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
| Writing
|
|
177
|
-
|
|
|
178
|
-
| Writing or
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
| Writing or
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
`.constitution/
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
- A
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
1
|
+
# Agent Rules — {product}
|
|
2
|
+
|
|
3
|
+
<!-- BEGIN:wdi-method -->
|
|
4
|
+
This repo uses **WDI Method**. It wraps BMad; it does not replace it. This marked
|
|
5
|
+
block is owned by the WDI Method package and is **replaced on every update**.
|
|
6
|
+
Product rules belong **outside** it (extra boundaries, `## Code`, stack notes).
|
|
7
|
+
A fact written inside this block will be overwritten.
|
|
8
|
+
|
|
9
|
+
Product identity lives in `.control/registry/index.yaml` (`product.name`, optional
|
|
10
|
+
`product.client`). G1 confirms it. This file MUST NOT become a second source of the name.
|
|
11
|
+
|
|
12
|
+
## Install and update
|
|
13
|
+
|
|
14
|
+
BMad first, then WDI Method. In the product repo:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx bmad-method install
|
|
18
|
+
npx wdi-method
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
No subcommand opens the installer TUI. It detects an existing install and offers
|
|
22
|
+
**update**. Non-interactive:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx wdi-method install --yes
|
|
26
|
+
npx wdi-method update --yes
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
BMad: https://github.com/bmad-code-org/BMAD-METHOD
|
|
30
|
+
WDI Method: https://github.com/wiradigitalid/wdi-method
|
|
31
|
+
|
|
32
|
+
A method file MUST NOT be invented here. If a rule is wrong, fix it in the WDI
|
|
33
|
+
Method package, then update.
|
|
34
|
+
|
|
35
|
+
This file is loaded every session; everything else is loaded **lazily**, only when
|
|
36
|
+
the task matches.
|
|
37
|
+
|
|
38
|
+
## Language
|
|
39
|
+
|
|
40
|
+
**Two settings decide this, and they live in `.control/registry/index.yaml` under `policy:`.** Both are
|
|
41
|
+
free text and both default to English:
|
|
42
|
+
|
|
43
|
+
| Setting | Governs |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `doc_language` | The prose of working documents in `.what/` · `.how/` · `.control/` |
|
|
46
|
+
| `doc_filename_language` | The slug part of a document filename |
|
|
47
|
+
|
|
48
|
+
Read those two before writing a document. A technical term the industry writes in English MUST be left in
|
|
49
|
+
English whatever the setting says — an equivalent MUST NOT be invented for it.
|
|
50
|
+
|
|
51
|
+
**These files are always English, whatever the settings say:** `AGENTS.md`, `CLAUDE.md`, and everything
|
|
52
|
+
under `.constitution/`. They are agent instructions, and they travel to every repo through the
|
|
53
|
+
`wdi-method` package. The one exception is `.constitution/project/`, which is this product's own room.
|
|
54
|
+
|
|
55
|
+
**Always English and never a setting**, because a script matches them:
|
|
56
|
+
|
|
57
|
+
- method terminology — `DEC` `SRS` `SDD` `UC` `FR` `AD`, the gate names, the values of `mode` and
|
|
58
|
+
`risk_accepted`
|
|
59
|
+
- document code prefixes — `UC-` `DEC-` `SRS-`; only the slug after them follows `doc_filename_language`
|
|
60
|
+
- markers — `[NEEDS CONFIRMATION]` `[MISSING]` `[ASSUMED]` `[PARTIAL]`, and `yes`/`no` in a `critical`
|
|
61
|
+
column
|
|
62
|
+
- registry values — `mode: catalog`, `status: applied`, `risk_accepted: low`. Used as written in prose
|
|
63
|
+
too: one thing, one name
|
|
64
|
+
- code identifiers, database columns, config keys — `language-guide.md` owns these
|
|
65
|
+
|
|
66
|
+
**A corpus written before these settings existed MUST NOT be migrated for them.** The readers accept more
|
|
67
|
+
than one language, so existing documents keep working and only new writing follows the setting.
|
|
68
|
+
|
|
69
|
+
## The thing in your hand → its folder
|
|
70
|
+
|
|
71
|
+
Read this instead of reasoning about what `.what/` and `.how/` mean.
|
|
72
|
+
|
|
73
|
+
| The thing in your hand | Its folder |
|
|
74
|
+
|---|---|
|
|
75
|
+
| A rule, a guide, a template — how we work | `.constitution/method/` — **overwritten in full by `update`** |
|
|
76
|
+
| A rule that binds **only this product** | `.constitution/project/` — `update` never writes over it, `promote` never publishes it |
|
|
77
|
+
| The explanation of a rule, never a rule itself | `.constitution/method/why/` |
|
|
78
|
+
| A decision, an open question, a registry, a structure map, minutes | `.control/` |
|
|
79
|
+
| The brief, a PRD, a use case, a business rule — what is promised | `.what/` |
|
|
80
|
+
| The spine, C4, an inventory, an SDD, a contract — how it is built | `.how/` |
|
|
81
|
+
| A skill run's working output, and documents that predate the method | `_bmad-output/` |
|
|
82
|
+
| Scratch that empties when the task closes | `.work/` |
|
|
83
|
+
| The application | named under `## Code` below |
|
|
84
|
+
|
|
85
|
+
## Layer boundaries
|
|
86
|
+
|
|
87
|
+
| Layer | Answers | MUST NOT hold |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| `.constitution/` | How we work | State, decisions, product content |
|
|
90
|
+
| `.control/` | What currently holds and what has been decided | Rules |
|
|
91
|
+
| `.what/` | What is promised | Solution shape — tables, endpoints, technology |
|
|
92
|
+
| `.how/` | How it is built | Promises to the user |
|
|
93
|
+
| `_bmad-output/` | Work in progress; committed, not curated | Anything still correct after its wave has passed |
|
|
94
|
+
| `.work/` | Scratch; emptied when a task closes | Secrets, commercial figures, anything meant as authority |
|
|
95
|
+
|
|
96
|
+
The placement test: **is this file still correct after its wave has passed?** Yes → the corpus. No →
|
|
97
|
+
`_bmad-output/`. In doubt → `.constitution/method/document/corpus-guide.md`.
|
|
98
|
+
|
|
99
|
+
The method does not use a `docs/` layer for corpus or rules. A leftover `docs/` folder is inventory
|
|
100
|
+
to sort, not a second home.
|
|
101
|
+
|
|
102
|
+
## Depth and review intensity — two fields, never merged
|
|
103
|
+
|
|
104
|
+
| Field | Where | Controls |
|
|
105
|
+
|---|---|---|
|
|
106
|
+
| `mode` | `index.yaml` globally, `components.yaml` per component | **Document depth**, and only that. `catalog` · `outline` · `guarded` · `deep`; default `catalog` |
|
|
107
|
+
| `risk_accepted` | `components.yaml` per component | **Review intensity**, and only that. `low` · `medium` · `high` |
|
|
108
|
+
|
|
109
|
+
Per-component `mode` wins over global, and there is no third scope — `mode` MUST NOT be overridden per
|
|
110
|
+
wave or per `SPEC.md`. A component at `mode: catalog` **skips G4 entirely**. Neither field MUST be
|
|
111
|
+
derived from the other: one component MAY be thin on purpose and reviewed the hardest.
|
|
112
|
+
`.constitution/method/document/delivery-flow-guide.md` owns both;
|
|
113
|
+
`.constitution/method/why/rationale.md` says why they are separate.
|
|
114
|
+
|
|
115
|
+
## The five gates and the eighteen skills
|
|
116
|
+
|
|
117
|
+
| Gate | Decides | Skill |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| **G1 Problem** | What the problem is, whose it is, why it earns work | `wdi-problem` |
|
|
120
|
+
| **G2 Product** | What is built, and how it feels to use | `wdi-product` · optional `wdi-ux` |
|
|
121
|
+
| **G3 Blueprint** | The whole portrait, once per product | `wdi-blueprint` |
|
|
122
|
+
| **G4 Component** | How one component is built — **skipped at `catalog`** | `wdi-component` |
|
|
123
|
+
| **G5 Release** | Whether it is done and proven | `wdi-build` |
|
|
124
|
+
|
|
125
|
+
Before G1 and at the tail of G2: `wdi-init`, five intents — `setup` · `component` · `mode` · `risk` ·
|
|
126
|
+
`structure`.
|
|
127
|
+
|
|
128
|
+
Any time: `wdi-decision` · `wdi-question` · `wdi-log` · `wdi-help` · `wdi-explain-to-me` · `wdi-reconcile` · `wdi-review` ·
|
|
129
|
+
`wdi-report` · `wdi-systematic-debugging`.
|
|
130
|
+
|
|
131
|
+
When the owner asks for it: `wdi-autopilot` — one mandate the owner accepts, then every skill above runs
|
|
132
|
+
unattended and every decision lands in one ledger. It is never the default next step.
|
|
133
|
+
|
|
134
|
+
**No BMad skill is invoked directly.** Each has a wrapper, and the wrapper is what checks position,
|
|
135
|
+
verifies the result, and lands the memlog.
|
|
136
|
+
|
|
137
|
+
## What MUST NOT be done
|
|
138
|
+
|
|
139
|
+
- A method file MUST NOT be invented or patched here to improve the method. If a rule is wrong, it is
|
|
140
|
+
fixed in the WDI Method package, then brought here with `npx wdi-method update`.
|
|
141
|
+
- A file in `_bmad-output/prior-knowledge/` MUST NOT be copied into `.what/` or `.how/`. It enters
|
|
142
|
+
the corpus only through the skill that owns the slot.
|
|
143
|
+
- `.control/generated/`, `.what-rendered/`, and `.how-rendered/` MUST NOT be written by hand — they are the output of `validate.py` and
|
|
144
|
+
`timeline.py`.
|
|
145
|
+
- The two structure maps in `.control/` MUST NOT be edited by hand — `wdi-init` intent `structure`
|
|
146
|
+
re-derives them.
|
|
147
|
+
- A `DEC-` with status `applied` MUST NOT be edited, except to record its supersession — status moves
|
|
148
|
+
to `superseded` and names its replacement. A change of mind produces a new `DEC-`.
|
|
149
|
+
- A file in `.constitution/method/why/` MUST NOT be cited as the reason to reject a change. It is
|
|
150
|
+
`status: Reference` — it explains, it does not bind, and where it disagrees with a guide the guide
|
|
151
|
+
wins and the disagreement is a defect. This covers `why/` ONLY: a guide in
|
|
152
|
+
`.constitution/method/document/` is `status: Accepted` and it binds.
|
|
153
|
+
- More than the component's `mode` demands MUST NOT be written. Exceeding the depth the owner set is
|
|
154
|
+
not diligence.
|
|
155
|
+
- `.claude/skills/bmad-*/customize.toml` MUST NOT be edited — it is overwritten on every BMad update;
|
|
156
|
+
customise through `_bmad/custom/`.
|
|
157
|
+
|
|
158
|
+
## Routing — load a guide when the task matches
|
|
159
|
+
|
|
160
|
+
| Task | Load |
|
|
161
|
+
|---|---|
|
|
162
|
+
| Wanting the whole method in five minutes | `.constitution/method/why/README.md` |
|
|
163
|
+
| About to change a rule, and needing to know what breaks | `.constitution/method/why/rationale.md` |
|
|
164
|
+
| Asking whether a document exists at this `mode`, or where a file goes | `.constitution/method/why/artifact-map.md` |
|
|
165
|
+
| Unsure whether a file may exist in this repo | `.constitution/method/repo-guide.md` |
|
|
166
|
+
| Unsure where a file lives | `.constitution/method/document/corpus-guide.md` |
|
|
167
|
+
| Unsure what a method term means | `.constitution/method/method-glossary.md` |
|
|
168
|
+
| Unsure about a domain term | `.control/product-glossary.md` |
|
|
169
|
+
| Looking for a non-technical fact — a domain, an account, a legal entity, a locked date | `.control/project-non-technical-log.md` |
|
|
170
|
+
| Naming anything — a code identifier, a file, a database column | `.constitution/method/language-guide.md` |
|
|
171
|
+
| Asking "which gate now, what next" | `.constitution/method/document/delivery-flow-guide.md` · skill `wdi-help` |
|
|
172
|
+
| Having to decide something, and wanting the reading done first | skill `wdi-explain-to-me` — it briefs, and changes nothing |
|
|
173
|
+
| Wanting every `FR` delivered without being asked in between | skill `wdi-autopilot` — preflight, one mandate, then the loop |
|
|
174
|
+
| Setting or changing `mode` or `risk_accepted` | `.constitution/method/document/delivery-flow-guide.md` · skill `wdi-init` |
|
|
175
|
+
| Invoking a BMad skill | `.constitution/method/document/bmad-guide.md` · `.constitution/method/document/bmad-skill-register.md` |
|
|
176
|
+
| Writing or reviewing a product brief | `.constitution/method/document/brief-guide.md` |
|
|
177
|
+
| Writing or reviewing a PRD | `.constitution/method/document/prd-guide.md` |
|
|
178
|
+
| Writing or reviewing UX | `.constitution/method/document/ux-guide.md` |
|
|
179
|
+
| Writing or reviewing an SRS | `.constitution/method/document/srs-guide.md` |
|
|
180
|
+
| Writing or reviewing an SDD | `.constitution/method/document/sdd-guide.md` |
|
|
181
|
+
| Writing the spine, an `AD-N`, C4, or one of the three inventories | `.constitution/method/document/architecture-guide.md` |
|
|
182
|
+
| Opening, accepting, or applying a `DEC-` | `.constitution/method/document/decision-guide.md` |
|
|
183
|
+
| Writing or reading a structure map | `.constitution/method/structure-guide.md` |
|
|
184
|
+
| Looking for where code lives, or placing new code | `.control/structure-codebase.md` |
|
|
185
|
+
| Looking for where a document lives | `.control/structure-document.md` |
|
|
186
|
+
| Writing or reviewing code | `.constitution/project/codebase-stack-guide.md` · `.constitution/project/codebase-conventions-guide.md` · `.constitution/project/codebase-brownfield-guide.md` |
|
|
187
|
+
|
|
188
|
+
All three `.constitution/project/codebase-*-guide.md` start as `status: Draft`. While they are, their contents MAY be read
|
|
189
|
+
as guidance but MUST NOT be used to reject a change.
|
|
190
|
+
|
|
191
|
+
The two structure maps MUST NOT be installed as `doc_standards` — they are facts, not standards. Nor
|
|
192
|
+
MUST anything in `.constitution/method/why/`; `status: Reference` forbids it. A guide in
|
|
193
|
+
`.constitution/method/document/` MAY be installed that way, and several already are — see
|
|
194
|
+
`_bmad/custom/bmad-prd.toml`.
|
|
195
|
+
|
|
196
|
+
## Bugs, decisions, questions
|
|
197
|
+
|
|
198
|
+
- A bug, a failing test, or unexpected behaviour → skill `wdi-systematic-debugging`, **before** any
|
|
199
|
+
fix is proposed.
|
|
200
|
+
- A decision worth remembering → skill `wdi-decision` → `.control/decisions/`. Recording is **not
|
|
201
|
+
mandatory**: if the answer to *why is it like this* is readable from the code, it MUST NOT be
|
|
202
|
+
recorded. One case is mandatory — contradicting an `AD-N`.
|
|
203
|
+
- Something that cannot be decided now → skill `wdi-question` → `.control/questions/`. The default
|
|
204
|
+
class is `assumptions.md`, not `blocking.md`; filing something as blocking "to be safe" is the
|
|
205
|
+
habit that produced unreadable question lists.
|
|
206
|
+
- A non-technical fact that constrains the build → skill `wdi-log` intent `fact` →
|
|
207
|
+
`.control/project-non-technical-log.md`.
|
|
208
|
+
|
|
209
|
+
## Method policy
|
|
210
|
+
|
|
211
|
+
- A skill MUST NOT be invoked automatically. Name the one that fits and wait for the owner's
|
|
212
|
+
go-ahead — this holds even when the skill's own description says it must be used. Reading a
|
|
213
|
+
skill as reference is fine. The one exception is `wdi-autopilot` under a `DEC-` of `type: mandate`
|
|
214
|
+
at `status: accepted` that has not expired: the mandate **is** the go-ahead, for every skill it
|
|
215
|
+
needs, until it lapses.
|
|
216
|
+
- `.work/` is not production code. It MUST NOT be imported by the application, and MUST be
|
|
217
|
+
excluded when searching for code.
|
|
218
|
+
<!-- END:wdi-method -->
|
|
219
|
+
|
|
220
|
+
## Code
|
|
221
|
+
|
|
222
|
+
Rewrite this section for the product. Stack, how to run tests, and known pitfalls belong here.
|
|
223
|
+
`wdi-init` intent `structure` derives `.control/structure-codebase.md`; do not duplicate that map.
|
package/kit-overlay/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Never a rule. When it disagrees with a guide, the guide wins and the disagreemen
|
|
|
29
29
|
|
|
30
30
|
| File | Opened when |
|
|
31
31
|
|---|---|
|
|
32
|
-
| [`why/README.md`](why/README.md) | You want the whole shape in five minutes — five gates, two settings,
|
|
32
|
+
| [`why/README.md`](why/README.md) | You want the whole shape in five minutes — five gates, two settings, eighteen skills, WDI ↔ BMad |
|
|
33
33
|
| [`why/artifact-map.md`](why/artifact-map.md) | "Where does this file go", or "does this document exist at my `mode`" |
|
|
34
34
|
| [`why/mode-risk-map.md`](why/mode-risk-map.md) | A `mode` and a `risk_accepted` are set and you want the two side by side — all twelve cells |
|
|
35
35
|
| [`why/rationale.md`](why/rationale.md) | Before changing a rule, to know what you would break |
|