baldart 3.41.0 → 4.0.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 +34 -0
- package/VERSION +1 -1
- package/framework/.claude/agents/REGISTRY.md +72 -24
- package/framework/.claude/agents/api-perf-cost-auditor.md +12 -5
- package/framework/.claude/agents/code-reviewer.md +30 -23
- package/framework/.claude/agents/codebase-architect.md +47 -43
- package/framework/.claude/agents/coder.md +29 -18
- package/framework/.claude/agents/doc-reviewer.md +55 -28
- package/framework/.claude/agents/plan-auditor.md +77 -12
- package/framework/.claude/agents/prd-card-writer.md +43 -13
- package/framework/.claude/agents/prd.md +22 -3
- package/framework/.claude/agents/qa-sentinel.md +33 -15
- package/framework/.claude/agents/security-reviewer.md +65 -10
- package/framework/.claude/agents/senior-researcher.md +8 -1
- package/framework/.claude/agents/ui-expert.md +22 -7
- package/framework/.claude/commands/check.md +31 -11
- package/framework/.claude/commands/codexreview.md +48 -29
- package/framework/.claude/commands/new.md +29 -330
- package/framework/.claude/commands/qa.md +57 -37
- package/framework/.claude/skills/context-primer/SKILL.md +29 -8
- package/framework/.claude/skills/doc-writing-for-rag/SKILL.md +36 -36
- package/framework/.claude/skills/frontend-design/SKILL.md +10 -8
- package/framework/.claude/skills/new/SKILL.md +409 -302
- package/framework/.claude/skills/prd/SKILL.md +67 -38
- package/framework/.claude/skills/prd/assets/card-template.yml +22 -26
- package/framework/.claude/skills/prd/assets/epic-template.yml +5 -5
- package/framework/.claude/skills/prd/assets/state-template.md +25 -3
- package/framework/.claude/skills/prd/references/api-perf-gate.md +143 -33
- package/framework/.claude/skills/prd/references/audit-phase.md +48 -34
- package/framework/.claude/skills/prd/references/backlog-phase.md +38 -11
- package/framework/.claude/skills/prd/references/discovery-phase.md +121 -44
- package/framework/.claude/skills/prd/references/impact-analysis.md +127 -23
- package/framework/.claude/skills/prd/references/prd-add-phase.md +18 -214
- package/framework/.claude/skills/prd/references/prd-writing-phase.md +52 -42
- package/framework/.claude/skills/prd/references/research-phase.md +105 -19
- package/framework/.claude/skills/prd/references/ui-design-phase.md +20 -8
- package/framework/.claude/skills/prd/references/validation-phase.md +97 -72
- package/framework/.claude/skills/prd-add/SKILL.md +70 -20
- package/framework/.claude/skills/simplify/SKILL.md +22 -12
- package/framework/.claude/skills/ui-design/SKILL.md +26 -7
- package/framework/.claude/skills/webapp-testing/SKILL.md +6 -4
- package/framework/.claude/skills/worktree-manager/SKILL.md +206 -143
- package/framework/agents/coding-standards.md +85 -0
- package/framework/agents/skills-mapping.md +85 -82
- package/framework/agents/testing.md +6 -4
- package/framework/templates/baldart.config.template.yml +29 -7
- package/package.json +1 -1
- package/src/commands/configure.js +43 -9
- package/framework/.claude/skills/prd-add/references/impact-analysis.md +0 -233
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# ICIAS Impact Analysis Protocol
|
|
2
|
-
|
|
3
|
-
Full protocol for Change Impact Analysis on PRD sessions.
|
|
4
|
-
Based on ProReFiCIA (Etezadi et al. 2025), CodePlan (Bairi et al. 2023),
|
|
5
|
-
and FMEA-adapted scoring.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Phase 1 — Semantic Scan
|
|
10
|
-
|
|
11
|
-
Evaluate each dimension against the change request description.
|
|
12
|
-
|
|
13
|
-
### Procedure
|
|
14
|
-
|
|
15
|
-
For each of the 10 dimensions, determine:
|
|
16
|
-
- **Is there a direct impact?** (yes/no)
|
|
17
|
-
- **Impact depth** (I):
|
|
18
|
-
- 0 = no impact
|
|
19
|
-
- 1 = cosmetic (labels, copy, minor display)
|
|
20
|
-
- 2 = logic (new conditions, validation, flow branches)
|
|
21
|
-
- 3 = structural (new entities, schemas, endpoints, pages)
|
|
22
|
-
|
|
23
|
-
### Refinement pass (mandatory)
|
|
24
|
-
|
|
25
|
-
After initial scan, re-read the change request and check dimensions 4-7
|
|
26
|
-
again (the "middle" of the list — LLMs tend to under-evaluate items in
|
|
27
|
-
the middle of lists, per "lost-in-the-middle" research). Adjust any
|
|
28
|
-
dimension that was initially scored 0 but deserves >= 1 on second look.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Phase 2 — Structural Propagation (Coupling Matrix)
|
|
33
|
-
|
|
34
|
-
Apply the coupling matrix to find transitive (cascade) impacts.
|
|
35
|
-
|
|
36
|
-
### Rules
|
|
37
|
-
|
|
38
|
-
1. Start from all dimensions with direct impact (I > 0 from Phase 1).
|
|
39
|
-
2. For each directly impacted dimension, check outgoing edges in the matrix.
|
|
40
|
-
3. If edge strength >= 2 AND target dimension has I = 0: mark as cascade impact.
|
|
41
|
-
- Cascade I = max(1, source_I - 1) (degrades by hop)
|
|
42
|
-
- Cascade C = source_C - 1 (min 1) (confidence degrades)
|
|
43
|
-
4. Max hop depth = 2. Do NOT propagate beyond 2 hops.
|
|
44
|
-
5. If a dimension is reached by both direct and cascade: use direct (higher confidence).
|
|
45
|
-
|
|
46
|
-
### Coupling Matrix (10x10)
|
|
47
|
-
|
|
48
|
-
Rows = source dimension, Columns = target dimension.
|
|
49
|
-
Values: 0 = independent, 1 = weak, 2 = moderate, 3 = strong (almost always co-impacted).
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
D1 D2 D3 D4 D5 D6 D7 D8 D9 D10
|
|
53
|
-
D1 U - 1 0 0 1 1 0 0 0 0
|
|
54
|
-
D2 J 0 - 1 1 3 0 2 0 1 1
|
|
55
|
-
D3 DM 0 0 - 3 0 0 1 3 1 2
|
|
56
|
-
D4 API 0 1 3 - 1 1 1 0 3 3
|
|
57
|
-
D5 UI 0 2 0 0 - 0 1 0 1 2
|
|
58
|
-
D6 P 0 0 0 1 1 - 1 0 1 3
|
|
59
|
-
D7 EC 0 0 0 0 0 0 - 0 0 1
|
|
60
|
-
D8 RM 0 0 1 0 0 0 1 - 0 1
|
|
61
|
-
D9 IS 0 0 0 1 0 0 0 0 - 1
|
|
62
|
-
D10 TS 0 0 0 0 0 0 0 0 0 -
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**Key:**
|
|
66
|
-
- D1=Users, D2=Journey, D3=Data Model, D4=API, D5=UI
|
|
67
|
-
- D6=Permissions, D7=Edge Cases, D8=Rollout/Migration
|
|
68
|
-
- D9=Integration Surface, D10=Test Strategy
|
|
69
|
-
|
|
70
|
-
### High-coupling pairs (strength=3, rationale)
|
|
71
|
-
|
|
72
|
-
| Source → Target | Why |
|
|
73
|
-
|-----------------|-----|
|
|
74
|
-
| D2 Journey → D5 UI | New flow = new interface almost always |
|
|
75
|
-
| D3 Data → D4 API | Schema change = API contract change |
|
|
76
|
-
| D3 Data → D8 Rollout | Schema change = migration needed |
|
|
77
|
-
| D4 API → D3 Data | New endpoint often needs new/modified schema |
|
|
78
|
-
| D4 API → D9 Integration | New endpoint = new touchpoints in existing code |
|
|
79
|
-
| D4 API → D10 Tests | New endpoint = new test scenarios |
|
|
80
|
-
| D6 Perms → D10 Tests | Permission change = critical test update |
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Phase 3 — ICIAS Scoring
|
|
85
|
-
|
|
86
|
-
For each dimension with I > 0 (direct or cascade):
|
|
87
|
-
|
|
88
|
-
### Score = I x C x A
|
|
89
|
-
|
|
90
|
-
**I = Impact Depth** (from Phase 1/2):
|
|
91
|
-
| Value | Meaning | Examples |
|
|
92
|
-
|-------|---------|----------|
|
|
93
|
-
| 1 | Cosmetic | Label, copy, minor display change |
|
|
94
|
-
| 2 | Logic | New condition, validation, flow branch, field |
|
|
95
|
-
| 3 | Structural | New entity, endpoint, page, collection, role |
|
|
96
|
-
|
|
97
|
-
**C = Confidence** (how certain the impact is):
|
|
98
|
-
| Value | Meaning | When to use |
|
|
99
|
-
|-------|---------|-------------|
|
|
100
|
-
| 1 | Inferred | Cascade-only, no direct evidence |
|
|
101
|
-
| 2 | Probable | Logical deduction, codebase pattern suggests it |
|
|
102
|
-
| 3 | Certain | Explicitly stated in CR, or direct code dependency |
|
|
103
|
-
|
|
104
|
-
**A = Artifact Stakes** (pre-assigned, fixed per dimension):
|
|
105
|
-
| A=3 (High stakes) | A=2 (Medium stakes) | A=1 (Low stakes) |
|
|
106
|
-
|-------------------|---------------------|-------------------|
|
|
107
|
-
| D3 Data Model | D2 User Journey | D1 Target Users |
|
|
108
|
-
| D4 API | D5 UI | D7 Edge Cases |
|
|
109
|
-
| D9 Integration Surface | D6 Permissions | D8 Rollout/Migration |
|
|
110
|
-
| | D10 Test Strategy | |
|
|
111
|
-
|
|
112
|
-
### Verdict thresholds
|
|
113
|
-
|
|
114
|
-
| Score Range | Verdict | Meaning |
|
|
115
|
-
|-------------|---------|---------|
|
|
116
|
-
| 0 | SKIP | No impact detected |
|
|
117
|
-
| 1–3 | SKIP | Negligible impact, no revision needed |
|
|
118
|
-
| 4–9 | PATCH | Moderate impact, surgical update to affected sections |
|
|
119
|
-
| 10–27 | REDO | Major impact, phase must be substantially re-executed |
|
|
120
|
-
|
|
121
|
-
### Bias rule
|
|
122
|
-
|
|
123
|
-
**False negatives are worse than false positives.** When uncertain:
|
|
124
|
-
- Round C up, not down
|
|
125
|
-
- Prefer PATCH over SKIP when on the boundary (score = 3)
|
|
126
|
-
- Prefer REDO over PATCH only when I = 3 (structural)
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## Phase Mapping
|
|
131
|
-
|
|
132
|
-
After scoring all dimensions, map to PRD phases:
|
|
133
|
-
|
|
134
|
-
### Discovery phase impact
|
|
135
|
-
- ANY dimension with PATCH/REDO → Discovery needs delta update
|
|
136
|
-
- PATCH: update state file checklist, run codebase-architect on affected dims
|
|
137
|
-
- REDO: re-run discovery question loop for affected dims
|
|
138
|
-
|
|
139
|
-
### UI Design phase impact
|
|
140
|
-
- D2 Journey REDO OR D5 UI REDO → UI Design REDO
|
|
141
|
-
- D5 UI PATCH → UI Design PATCH (update existing design)
|
|
142
|
-
- Otherwise → UI Design SKIP
|
|
143
|
-
|
|
144
|
-
### PRD document impact
|
|
145
|
-
- ANY dimension with PATCH/REDO → PRD needs update
|
|
146
|
-
- Map dimensions to PRD sections:
|
|
147
|
-
|
|
148
|
-
| Dimension | PRD Sections Affected |
|
|
149
|
-
|-----------|----------------------|
|
|
150
|
-
| D1 Users | 3 (Personas) |
|
|
151
|
-
| D2 Journey | 4 (User Stories), 7 (UI Specs) |
|
|
152
|
-
| D3 Data | 5 (Data Model), 12 (Dependencies) |
|
|
153
|
-
| D4 API | 6 (API Contract), 14 (Pipeline) |
|
|
154
|
-
| D5 UI | 7 (UI Specs), 8 (i18n) |
|
|
155
|
-
| D6 Perms | 9 (Acceptance Criteria) |
|
|
156
|
-
| D7 Edge Cases | 10 (Edge Cases) |
|
|
157
|
-
| D8 Rollout | 12 (Dependencies) |
|
|
158
|
-
| D9 Integration | 15 (ISA) |
|
|
159
|
-
| D10 Tests | 13 (Test Plan) |
|
|
160
|
-
|
|
161
|
-
### Backlog Cards impact
|
|
162
|
-
- New structural entities (I=3) → new cards needed
|
|
163
|
-
- Changed acceptance criteria → update existing cards
|
|
164
|
-
- Changed dependencies → update `depends_on` fields
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## Worked Example
|
|
169
|
-
|
|
170
|
-
**CR: "Add POST /api/v1/merchant/reservations/bulk-confirm for batch confirmation"**
|
|
171
|
-
|
|
172
|
-
Change type: Addition (new endpoint)
|
|
173
|
-
|
|
174
|
-
### Phase 1 — Semantic Scan
|
|
175
|
-
|
|
176
|
-
| Dim | Direct? | I | Rationale |
|
|
177
|
-
|-----|---------|---|-----------|
|
|
178
|
-
| D1 Users | no | 0 | Same users (merchant staff) |
|
|
179
|
-
| D2 Journey | yes | 2 | New batch flow alongside single confirm |
|
|
180
|
-
| D3 Data | no | 0 | Same reservation schema |
|
|
181
|
-
| D4 API | yes | 3 | New endpoint, new payload, new validation |
|
|
182
|
-
| D5 UI | yes | 2 | Need selection mode + bulk button |
|
|
183
|
-
| D6 Perms | no | 0 | Same permission (manage_reservations) |
|
|
184
|
-
| D7 Edge | yes | 2 | Partial failure in batch, max batch size |
|
|
185
|
-
| D8 Rollout | no | 0 | No migration needed |
|
|
186
|
-
| D9 Integration | no | 0 | (check in Phase 2) |
|
|
187
|
-
| D10 Tests | no | 0 | (check in Phase 2) |
|
|
188
|
-
|
|
189
|
-
### Phase 2 — Structural Propagation
|
|
190
|
-
|
|
191
|
-
From D4 (API, I=3):
|
|
192
|
-
- D4→D3 (strength=3): cascade. D3 I=max(1, 3-1)=2, C=2 → but wait,
|
|
193
|
-
CR says "same schema" → override to I=0. No cascade (semantic override).
|
|
194
|
-
- D4→D9 (strength=3): cascade. D9 I=2, C=2
|
|
195
|
-
- D4→D10 (strength=3): cascade. D10 I=2, C=2
|
|
196
|
-
|
|
197
|
-
### Phase 3 — ICIAS Score
|
|
198
|
-
|
|
199
|
-
| Dim | I | C | A | Score | Verdict |
|
|
200
|
-
|-----|---|---|---|-------|---------|
|
|
201
|
-
| D1 | 0 | - | 1 | 0 | SKIP |
|
|
202
|
-
| D2 | 2 | 3 | 2 | 12 | REDO |
|
|
203
|
-
| D3 | 0 | - | 3 | 0 | SKIP |
|
|
204
|
-
| D4 | 3 | 3 | 3 | 27 | REDO |
|
|
205
|
-
| D5 | 2 | 3 | 2 | 12 | REDO |
|
|
206
|
-
| D6 | 0 | - | 2 | 0 | SKIP |
|
|
207
|
-
| D7 | 2 | 3 | 1 | 6 | PATCH |
|
|
208
|
-
| D8 | 0 | - | 1 | 0 | SKIP |
|
|
209
|
-
| D9 | 2 | 2 | 3 | 12 | REDO |
|
|
210
|
-
| D10 | 2 | 2 | 2 | 8 | PATCH |
|
|
211
|
-
|
|
212
|
-
### Phase mapping result
|
|
213
|
-
|
|
214
|
-
| Phase | Verdict | Scope |
|
|
215
|
-
|-------|---------|-------|
|
|
216
|
-
| Discovery | PATCH | Update D2, D4, D5, D7, D9, D10 in checklist |
|
|
217
|
-
| UI Design | REDO | New batch selection flow |
|
|
218
|
-
| PRD | REDO | Sections 4, 6, 7, 10, 13, 15 |
|
|
219
|
-
| Backlog Cards | PATCH | New cards for bulk endpoint + UI; update deps |
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## Calibration Notes
|
|
224
|
-
|
|
225
|
-
These thresholds are FMEA-adapted heuristics, not empirically validated
|
|
226
|
-
for PRD CIA. After 10-15 real change requests, review:
|
|
227
|
-
|
|
228
|
-
1. Were any SKIPs that should have been PATCHes? → Lower threshold.
|
|
229
|
-
2. Were any REDOs that could have been PATCHes? → Raise threshold.
|
|
230
|
-
3. Did the coupling matrix miss any real cascades? → Add/strengthen edges.
|
|
231
|
-
4. Did the coupling matrix produce false cascades? → Weaken/remove edges.
|
|
232
|
-
|
|
233
|
-
Track calibration data in state file `## Change Requests` section.
|