Commit 0d0e848
fix(claude): address review feedback on CLAUDE.md generation
- Introduce CONSTITUTION_REL_PATH constant in specify_cli and reuse it
in ensure_constitution_from_template and ClaudeIntegration.ensure_claude_md
so the path cannot drift between init scaffolding and integration setup.
- Make ensure_claude_md a classmethod that uses cls.context_file instead
of hardcoding "CLAUDE.md".
- Expand CLAUDE.md body to list all core speckit workflow commands
(constitution, specify, clarify, plan, tasks, analyze, checklist,
implement) so Claude Code sees the full workflow.
- Strengthen tests to assert every section header and every command
line via shared EXPECTED_CLAUDE_MD_SECTIONS / _COMMANDS constants.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 43836ef commit 0d0e848
3 files changed
Lines changed: 52 additions & 12 deletions
File tree
- src/specify_cli
- integrations/claude
- tests/integrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
753 | 758 | | |
754 | 759 | | |
755 | 760 | | |
756 | | - | |
| 761 | + | |
757 | 762 | | |
758 | 763 | | |
759 | 764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
| 169 | + | |
164 | 170 | | |
165 | 171 | | |
166 | | - | |
| 172 | + | |
167 | 173 | | |
168 | 174 | | |
| 175 | + | |
169 | 176 | | |
| 177 | + | |
170 | 178 | | |
171 | 179 | | |
| 180 | + | |
| 181 | + | |
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
175 | 185 | | |
176 | 186 | | |
177 | | - | |
178 | | - | |
| 187 | + | |
| 188 | + | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
289 | 306 | | |
290 | 307 | | |
291 | 308 | | |
| |||
303 | 320 | | |
304 | 321 | | |
305 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
306 | 327 | | |
307 | 328 | | |
308 | 329 | | |
| |||
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
357 | 382 | | |
358 | 383 | | |
359 | 384 | | |
| |||
0 commit comments