@atlashub/smartstack-cli 3.17.0 → 3.19.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/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/agents/gitflow/start.md +2 -2
- package/templates/skills/business-analyse/SKILL.md +5 -5
- package/templates/skills/business-analyse/_shared.md +46 -20
- package/templates/skills/business-analyse/html/ba-interactive.html +57 -107
- package/templates/skills/business-analyse/html/src/scripts/01-data-init.js +13 -0
- package/templates/skills/business-analyse/html/src/scripts/02-navigation.js +1 -1
- package/templates/skills/business-analyse/html/src/scripts/03-render-cadrage.js +11 -20
- package/templates/skills/business-analyse/html/src/scripts/11-review-panel.js +1 -3
- package/templates/skills/business-analyse/html/src/template.html +31 -83
- package/templates/skills/business-analyse/patterns/suggestion-catalog.md +71 -3
- package/templates/skills/business-analyse/references/cadrage-pre-analysis.md +11 -8
- package/templates/skills/business-analyse/references/cadrage-structure-cards.md +7 -5
- package/templates/skills/business-analyse/references/deploy-data-build.md +42 -14
- package/templates/skills/business-analyse/references/deploy-modes.md +1 -1
- package/templates/skills/business-analyse/references/entity-architecture-decision.md +218 -0
- package/templates/skills/business-analyse/references/robustness-checks.md +2 -1
- package/templates/skills/business-analyse/references/spec-auto-inference.md +70 -16
- package/templates/skills/business-analyse/references/ui-resource-cards.md +149 -0
- package/templates/skills/business-analyse/steps/step-00-init.md +23 -5
- package/templates/skills/business-analyse/steps/step-01-cadrage.md +220 -32
- package/templates/skills/business-analyse/steps/step-02-decomposition.md +35 -26
- package/templates/skills/business-analyse/steps/step-03a1-setup.md +122 -32
- package/templates/skills/business-analyse/steps/step-03a2-analysis.md +8 -0
- package/templates/skills/business-analyse/steps/step-03b-ui.md +68 -5
- package/templates/skills/business-analyse/steps/step-03d-validate.md +34 -1
- package/templates/skills/business-analyse/steps/step-05a-handoff.md +99 -2
- package/templates/skills/business-analyse/steps/step-05b-deploy.md +44 -8
- package/templates/skills/business-analyse/steps/step-05c-ralph-readiness.md +226 -41
- package/templates/skills/business-analyse/steps/step-06-review.md +2 -1
- package/templates/skills/business-analyse/templates/tpl-handoff.md +5 -4
- package/templates/skills/business-analyse/templates/tpl-launch-displays.md +4 -1
- package/templates/skills/business-analyse/templates-frd.md +5 -4
- package/templates/skills/gitflow/references/start-local-config.md +6 -3
- package/templates/skills/gitflow/steps/step-start.md +2 -2
- package/templates/skills/ralph-loop/SKILL.md +41 -1
- package/templates/skills/ralph-loop/references/category-rules.md +96 -2
- package/templates/skills/ralph-loop/references/compact-loop.md +85 -24
- package/templates/skills/ralph-loop/steps/step-00-init.md +30 -54
- package/templates/skills/ralph-loop/steps/step-01-task.md +102 -1
- package/templates/skills/ralph-loop/steps/step-04-check.md +87 -40
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: step-05c-ralph-readiness
|
|
3
|
-
description:
|
|
4
|
-
model:
|
|
3
|
+
description: ULTRATHINK quality review + validation gate before ralph-loop
|
|
4
|
+
model: opus
|
|
5
5
|
next_step: null
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
> **Context files:** `_shared.md`
|
|
9
9
|
|
|
10
|
-
# Step 5c: Ralph Readiness Check
|
|
10
|
+
# Step 5c: ULTRATHINK Quality Review & Ralph Readiness Check
|
|
11
11
|
|
|
12
12
|
## MANDATORY EXECUTION RULES
|
|
13
13
|
|
|
14
|
+
- **ALWAYS** use ULTRATHINK mode for the quality review (section 0b)
|
|
14
15
|
- **ALWAYS** run ALL validation checks (NEVER skip)
|
|
15
16
|
- **BLOCKING RULE:** If ANY check fails → STOP, DO NOT proceed to ralph-loop
|
|
16
17
|
- **ALWAYS** provide actionable fix instructions for failures
|
|
@@ -19,7 +20,7 @@ next_step: null
|
|
|
19
20
|
|
|
20
21
|
## YOUR TASK
|
|
21
22
|
|
|
22
|
-
Perform
|
|
23
|
+
Perform a deep ULTRATHINK quality review of the entire business analysis output, then run comprehensive structural validation to ensure readiness for /ralph-loop. This is a **BLOCKING** gate — all checks must pass before development can proceed.
|
|
23
24
|
|
|
24
25
|
---
|
|
25
26
|
|
|
@@ -31,9 +32,177 @@ Display validation banner:
|
|
|
31
32
|
|
|
32
33
|
```
|
|
33
34
|
═══════════════════════════════════════════════════════════════
|
|
34
|
-
RALPH READINESS CHECK
|
|
35
|
+
ULTRATHINK QUALITY REVIEW & RALPH READINESS CHECK
|
|
36
|
+
{application_name}
|
|
35
37
|
═══════════════════════════════════════════════════════════════
|
|
36
|
-
|
|
38
|
+
Phase 1: Deep quality review (ULTRATHINK)...
|
|
39
|
+
Phase 2: Structural validation (8 checks)...
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### 0b. ULTRATHINK Deep Quality Review (MANDATORY)
|
|
45
|
+
|
|
46
|
+
> **This section MUST be executed in ULTRATHINK mode.**
|
|
47
|
+
> Take the time to deeply analyze the ENTIRE business analysis output.
|
|
48
|
+
> This is the last chance to catch quality issues before development begins.
|
|
49
|
+
|
|
50
|
+
**Objective:** Perform a thorough, deep-thinking review of the business analysis quality — not just structural checks, but semantic coherence, completeness, and production-readiness.
|
|
51
|
+
|
|
52
|
+
**Process:**
|
|
53
|
+
|
|
54
|
+
1. **Read ALL module feature.json files** (master + each module)
|
|
55
|
+
2. **Activate ULTRATHINK** and analyze the following 6 dimensions:
|
|
56
|
+
|
|
57
|
+
#### Dimension 1: Specification Coherence
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
For EACH module:
|
|
61
|
+
- Do use cases (UCs) tell a coherent story?
|
|
62
|
+
- Are functional requirements (FRs) logically derived from UCs?
|
|
63
|
+
- Do business rules (BRs) cover all edge cases mentioned in UCs?
|
|
64
|
+
- Are gherkin scenarios testing the RIGHT behaviors (not trivial CRUD)?
|
|
65
|
+
- Do entity relationships make domain sense?
|
|
66
|
+
|
|
67
|
+
Flag: Orphan FRs (not linked to any UC), UCs with no FR coverage,
|
|
68
|
+
BRs that don't map to any entity/field
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### Dimension 2: Permission & Security Model
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
For EACH module:
|
|
75
|
+
- Is the permission hierarchy logical? (admin > manager > contributor > viewer)
|
|
76
|
+
- Are there actions that should be restricted but aren't?
|
|
77
|
+
- Do API endpoints all have permissions assigned?
|
|
78
|
+
- Are there over-permissive roles? (e.g., contributor with delete access)
|
|
79
|
+
- Cross-module: can a user in Module A access data in Module B through indirect routes?
|
|
80
|
+
|
|
81
|
+
Flag: Endpoints without permissions, roles with excessive access,
|
|
82
|
+
missing permission paths
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### Dimension 3: Data Model Integrity
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
For EACH module:
|
|
89
|
+
- Are all entity relationships bidirectional where needed?
|
|
90
|
+
- Are FK references correct (target entity exists, correct field type)?
|
|
91
|
+
- Are there missing audit fields (CreatedAt, UpdatedAt, CreatedBy)?
|
|
92
|
+
- Do lifecycle states cover all business scenarios?
|
|
93
|
+
- Are cascade delete/update rules safe? (no orphan risk)
|
|
94
|
+
|
|
95
|
+
Cross-module:
|
|
96
|
+
- Are shared entity references correct?
|
|
97
|
+
- Is the dependency graph honest? (no hidden dependencies)
|
|
98
|
+
|
|
99
|
+
Flag: Missing relationships, unsafe cascades, missing audit fields,
|
|
100
|
+
hidden cross-module dependencies
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Dimension 4: UI/UX Completeness
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
For EACH module:
|
|
107
|
+
- Does every section have at least one wireframe?
|
|
108
|
+
- Do wireframes cover ALL use cases? (no UC without UI representation)
|
|
109
|
+
- Are navigation entries correct and complete?
|
|
110
|
+
- Do wireframe actions map to real API endpoints?
|
|
111
|
+
- Are form fields aligned with entity attributes?
|
|
112
|
+
- Are validation rules defined for all user-input fields?
|
|
113
|
+
|
|
114
|
+
Flag: UCs with no wireframe, wireframes with unmapped actions,
|
|
115
|
+
missing form validations, navigation gaps
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Dimension 5: i18n & Messages Quality
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
For EACH module:
|
|
122
|
+
- Are all user-facing strings covered by i18n keys?
|
|
123
|
+
- Are error messages specific enough? (not generic "Error occurred")
|
|
124
|
+
- Do validation messages reference the field name?
|
|
125
|
+
- Are success/confirmation messages present for all write operations?
|
|
126
|
+
- Are there missing translations in any language?
|
|
127
|
+
|
|
128
|
+
Flag: Generic error messages, missing field-specific validations,
|
|
129
|
+
incomplete language coverage
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
#### Dimension 6: Implementation Feasibility
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
For EACH module:
|
|
136
|
+
- Is the handoff.filesToCreate list realistic? (no missing files, no impossible paths)
|
|
137
|
+
- Do brToCodeMapping entries have enough detail for generation?
|
|
138
|
+
- Are API endpoint paths following REST conventions?
|
|
139
|
+
- Are DTO structures aligned with entity attributes?
|
|
140
|
+
- Is the seed data sufficient for testing all use cases?
|
|
141
|
+
- Are there any features that would require infrastructure not in the stack?
|
|
142
|
+
|
|
143
|
+
Flag: Unrealistic file counts, vague BR mappings, non-RESTful routes,
|
|
144
|
+
missing seed data for critical test scenarios
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
3. **Produce Quality Verdict:**
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
═══════════════════════════════════════════════════════════════
|
|
151
|
+
ULTRATHINK QUALITY REVIEW - RESULTS
|
|
152
|
+
═══════════════════════════════════════════════════════════════
|
|
153
|
+
|
|
154
|
+
| Dimension | Score | Issues |
|
|
155
|
+
|-----------|-------|--------|
|
|
156
|
+
| Specification Coherence | A/B/C/D | {count} issues |
|
|
157
|
+
| Permission & Security | A/B/C/D | {count} issues |
|
|
158
|
+
| Data Model Integrity | A/B/C/D | {count} issues |
|
|
159
|
+
| UI/UX Completeness | A/B/C/D | {count} issues |
|
|
160
|
+
| i18n & Messages | A/B/C/D | {count} issues |
|
|
161
|
+
| Implementation Feasibility | A/B/C/D | {count} issues |
|
|
162
|
+
|
|
163
|
+
Overall Quality: {A/B/C/D}
|
|
164
|
+
A = Production-ready (0 critical, ≤3 warnings)
|
|
165
|
+
B = Good (0 critical, >3 warnings)
|
|
166
|
+
C = Needs fixes (1-2 critical issues)
|
|
167
|
+
D = Major rework needed (>2 critical issues)
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
4. **Display Issues (if any):**
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
Critical Issues (MUST fix before /ralph-loop):
|
|
174
|
+
✗ [Dimension] Issue description
|
|
175
|
+
→ Fix: Specific action to resolve
|
|
176
|
+
|
|
177
|
+
Warnings (SHOULD fix, not blocking):
|
|
178
|
+
⚠ [Dimension] Issue description
|
|
179
|
+
→ Recommendation: How to improve
|
|
180
|
+
|
|
181
|
+
Suggestions (nice-to-have):
|
|
182
|
+
ℹ [Dimension] Suggestion
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
5. **Decision:**
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
IF overall quality = D:
|
|
189
|
+
BLOCKING ERROR: Major quality issues detected
|
|
190
|
+
→ Return to appropriate step to fix critical issues
|
|
191
|
+
→ DO NOT proceed to structural validation
|
|
192
|
+
|
|
193
|
+
IF overall quality = C:
|
|
194
|
+
Ask via AskUserQuestion:
|
|
195
|
+
question: "Des problèmes de qualité ont été détectés. Comment souhaitez-vous procéder ?"
|
|
196
|
+
header: "Qualité"
|
|
197
|
+
options:
|
|
198
|
+
- label: "Corriger les problèmes critiques"
|
|
199
|
+
description: "Retourner aux étapes concernées pour corriger"
|
|
200
|
+
- label: "Continuer malgré les problèmes"
|
|
201
|
+
description: "Accepter les risques et poursuivre la validation structurelle"
|
|
202
|
+
|
|
203
|
+
IF overall quality = A or B:
|
|
204
|
+
Display: "✓ Quality review passed — proceeding to structural validation..."
|
|
205
|
+
→ Continue to section 1
|
|
37
206
|
```
|
|
38
207
|
|
|
39
208
|
---
|
|
@@ -394,10 +563,11 @@ Progress Tracker Validation:
|
|
|
394
563
|
|
|
395
564
|
**Process:**
|
|
396
565
|
|
|
397
|
-
1. Aggregate all validation results
|
|
566
|
+
1. Aggregate all validation results (quality review + 7 structural checks)
|
|
398
567
|
2. Calculate readiness score:
|
|
399
568
|
```
|
|
400
569
|
passedChecks / totalChecks * 100
|
|
570
|
+
Quality gate: overall quality must be A or B
|
|
401
571
|
```
|
|
402
572
|
|
|
403
573
|
3. Display final report:
|
|
@@ -407,17 +577,23 @@ Progress Tracker Validation:
|
|
|
407
577
|
RALPH READINESS CHECK - COMPLETE
|
|
408
578
|
═══════════════════════════════════════════════════════════════
|
|
409
579
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
580
|
+
ULTRATHINK Quality Review:
|
|
581
|
+
Quality Score: {A/B} — {Production-ready / Good}
|
|
582
|
+
Dimensions: {6/6 reviewed}
|
|
583
|
+
Critical issues: {0}
|
|
584
|
+
Warnings: {count}
|
|
585
|
+
|
|
586
|
+
Structural Validation Summary:
|
|
587
|
+
✓ Module status validation: PASS ({n}/{n} modules)
|
|
588
|
+
✓ PRD files validation: PASS ({n}/{n} files)
|
|
589
|
+
✓ Dependency graph validation: PASS ({n} edges)
|
|
590
|
+
✓ Cross-module references validation: PASS ({n} references)
|
|
591
|
+
✓ Handoff completeness check: PASS ({n}/{n} modules)
|
|
592
|
+
⚠ i18n keys validation: WARNING ({n} missing translation)
|
|
417
593
|
✓ Master feature validation: PASS
|
|
418
594
|
✓ Progress tracker validation: PASS
|
|
419
595
|
|
|
420
|
-
Readiness Score: 100% (
|
|
596
|
+
Readiness Score: 100% (8/8 checks passed, {n} warnings)
|
|
421
597
|
|
|
422
598
|
═══════════════════════════════════════════════════════════════
|
|
423
599
|
|
|
@@ -425,23 +601,26 @@ Status: READY FOR DEVELOPMENT ✓
|
|
|
425
601
|
|
|
426
602
|
Next Steps:
|
|
427
603
|
1. Address warnings (recommended but not blocking):
|
|
428
|
-
-
|
|
604
|
+
- {list warnings from quality review + structural checks}
|
|
429
605
|
|
|
430
606
|
2. Review progress tracker: .ralph/progress.txt
|
|
431
607
|
|
|
432
608
|
3. When ready, launch development:
|
|
433
609
|
|
|
434
|
-
/ralph-loop
|
|
610
|
+
/ralph-loop
|
|
611
|
+
|
|
612
|
+
Note: Use /ralph-loop -r ONLY to resume an interrupted loop.
|
|
613
|
+
After a fresh /business-analyse, always use /ralph-loop (without -r).
|
|
435
614
|
|
|
436
615
|
4. Ralph-loop will:
|
|
437
|
-
- Process modules in topological order: [
|
|
438
|
-
- Generate
|
|
439
|
-
- Execute
|
|
616
|
+
- Process modules in topological order: [{module list}]
|
|
617
|
+
- Generate {n} files across 7 layers
|
|
618
|
+
- Execute {n} tasks tracked in progress.txt
|
|
440
619
|
|
|
441
620
|
═══════════════════════════════════════════════════════════════
|
|
442
621
|
```
|
|
443
622
|
|
|
444
|
-
**IF readiness score < 100% (critical checks failed):**
|
|
623
|
+
**IF readiness score < 100% OR quality = C/D (critical checks failed):**
|
|
445
624
|
|
|
446
625
|
```
|
|
447
626
|
═══════════════════════════════════════════════════════════════
|
|
@@ -450,21 +629,24 @@ Next Steps:
|
|
|
450
629
|
|
|
451
630
|
Status: NOT READY FOR DEVELOPMENT ✗
|
|
452
631
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
-
|
|
632
|
+
{IF quality = C/D:}
|
|
633
|
+
Quality Issues Found:
|
|
634
|
+
✗ ULTRATHINK quality review: {C/D} — {Needs fixes / Major rework}
|
|
635
|
+
- {List critical quality issues from section 0b}
|
|
636
|
+
- Fix: Return to appropriate step (see quality review details above)
|
|
457
637
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
638
|
+
{IF structural checks failed:}
|
|
639
|
+
Structural Issues Found:
|
|
640
|
+
✗ {check name}: FAIL ({details})
|
|
641
|
+
- {specific issue}
|
|
642
|
+
- Fix: {specific action}
|
|
461
643
|
|
|
462
644
|
Required Actions:
|
|
463
645
|
1. Fix all critical issues listed above
|
|
464
646
|
2. Re-run validation: load step-05c-ralph-readiness.md
|
|
465
|
-
3. Only proceed to /ralph-loop when all
|
|
647
|
+
3. Only proceed to /ralph-loop when all checks pass AND quality ≥ B
|
|
466
648
|
|
|
467
|
-
DO NOT PROCEED TO /ralph-loop UNTIL ALL
|
|
649
|
+
DO NOT PROCEED TO /ralph-loop UNTIL ALL CHECKS PASS
|
|
468
650
|
═══════════════════════════════════════════════════════════════
|
|
469
651
|
```
|
|
470
652
|
|
|
@@ -474,22 +656,25 @@ DO NOT PROCEED TO /ralph-loop UNTIL ALL CRITICAL CHECKS PASS
|
|
|
474
656
|
|
|
475
657
|
Before displaying final report, VERIFY:
|
|
476
658
|
|
|
477
|
-
1. **
|
|
478
|
-
2. **
|
|
479
|
-
3. **
|
|
480
|
-
4. **
|
|
481
|
-
5. **
|
|
482
|
-
6. **
|
|
659
|
+
1. **ULTRATHINK quality review executed** (6 dimensions analyzed)
|
|
660
|
+
2. **Quality verdict displayed** with scores per dimension
|
|
661
|
+
3. **ALL 8 structural validation checks executed** (never skip)
|
|
662
|
+
4. **Results clearly marked** (PASS/FAIL/WARNING)
|
|
663
|
+
5. **Actionable fixes provided** for all failures
|
|
664
|
+
6. **Readiness score calculated** correctly
|
|
665
|
+
7. **Next steps displayed** with exact commands
|
|
666
|
+
8. **Blocking errors prevent progression** (no false positives)
|
|
483
667
|
|
|
484
668
|
---
|
|
485
669
|
|
|
486
670
|
## SUCCESS CRITERIA
|
|
487
671
|
|
|
488
|
-
-
|
|
672
|
+
- ULTRATHINK quality review completed with overall score A or B
|
|
673
|
+
- All 8 critical validation checks executed (quality review + 7 structural)
|
|
489
674
|
- Clear PASS/FAIL/WARNING status for each check
|
|
490
675
|
- Readiness score displayed (100% = all critical checks passed)
|
|
491
676
|
- Actionable fix instructions for all failures
|
|
492
|
-
- User can proceed to /ralph-loop only if readiness score = 100%
|
|
677
|
+
- User can proceed to /ralph-loop only if readiness score = 100% AND quality ≥ B
|
|
493
678
|
- Warnings documented but not blocking
|
|
494
679
|
|
|
495
680
|
---
|
|
@@ -498,6 +683,7 @@ Before displaying final report, VERIFY:
|
|
|
498
683
|
|
|
499
684
|
**Why this gate matters:**
|
|
500
685
|
|
|
686
|
+
- **ULTRATHINK catches semantic issues** that structural checks miss (orphan UCs, incoherent permissions, missing UI flows)
|
|
501
687
|
- Prevents incomplete handoffs from reaching development
|
|
502
688
|
- Catches structural issues early (PRD validation)
|
|
503
689
|
- Verifies cross-module integrity before code generation
|
|
@@ -506,8 +692,7 @@ Before displaying final report, VERIFY:
|
|
|
506
692
|
|
|
507
693
|
**When to run this gate:**
|
|
508
694
|
|
|
509
|
-
- Automatically at end of step-05b-deploy.md (
|
|
510
|
-
- Manually before /ralph-loop if user wants to verify
|
|
695
|
+
- **Automatically at end of step-05b-deploy.md (MANDATORY)**
|
|
511
696
|
- After fixing any handoff issues to re-validate
|
|
512
697
|
|
|
513
698
|
**What happens if checks fail:**
|
|
@@ -515,4 +700,4 @@ Before displaying final report, VERIFY:
|
|
|
515
700
|
- Development is BLOCKED until issues are fixed
|
|
516
701
|
- User returns to appropriate step to fix issues
|
|
517
702
|
- Re-run validation after fixes
|
|
518
|
-
- Only proceed when all critical checks pass
|
|
703
|
+
- Only proceed when all critical checks pass AND quality review passes
|
|
@@ -262,7 +262,8 @@ Artifacts regenerated:
|
|
|
262
262
|
|
|
263
263
|
NEXT STEPS:
|
|
264
264
|
1. Open the new ba-interactive.html to verify corrections
|
|
265
|
-
2. Run /ralph-loop
|
|
265
|
+
2. Run /ralph-loop to start development from the updated analysis
|
|
266
|
+
(Use /ralph-loop -r ONLY to resume an interrupted loop)
|
|
266
267
|
═══════════════════════════════════════════════════════════════
|
|
267
268
|
```
|
|
268
269
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
> **Version:** {version}
|
|
13
13
|
> **Validated Specs:** feature.json (validation.decision = APPROVED)
|
|
14
14
|
> **Source:** `docs/business/{app}/{module}/business-analyse/v{version}/feature.json`
|
|
15
|
-
> **Implementation:** `/ralph-loop
|
|
15
|
+
> **Implementation:** `/ralph-loop`
|
|
16
16
|
|
|
17
17
|
## DEVELOPER INSTRUCTIONS
|
|
18
18
|
|
|
@@ -20,9 +20,10 @@ This document is a self-contained prompt for Claude Code.
|
|
|
20
20
|
|
|
21
21
|
**Lancement:**
|
|
22
22
|
```
|
|
23
|
-
/ralph-loop
|
|
23
|
+
/ralph-loop
|
|
24
24
|
```
|
|
25
|
-
>
|
|
25
|
+
> Ralph-loop auto-detects BA artifacts and derives PRD task breakdowns.
|
|
26
|
+
> Use `/ralph-loop -r` only to resume an interrupted loop.
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
|
@@ -178,6 +179,6 @@ From: `feature.specification.seedDataCore` (5 core files), `feature.specificatio
|
|
|
178
179
|
|
|
179
180
|
**Lancement:**
|
|
180
181
|
```bash
|
|
181
|
-
/ralph-loop
|
|
182
|
+
/ralph-loop
|
|
182
183
|
```
|
|
183
184
|
```
|
|
@@ -34,7 +34,10 @@ Effort: {total_days} days ({total_hours} hours)
|
|
|
34
34
|
3. Si retours --> relancer /business-analyse pour une nouvelle itération
|
|
35
35
|
4. Une fois validé, lancer le développement:
|
|
36
36
|
|
|
37
|
-
/ralph-loop
|
|
37
|
+
/ralph-loop
|
|
38
|
+
|
|
39
|
+
Note: /ralph-loop -r sert UNIQUEMENT à reprendre une boucle interrompue.
|
|
40
|
+
Après un /business-analyse, toujours utiliser /ralph-loop (sans -r).
|
|
38
41
|
|
|
39
42
|
═══════════════════════════════════════════════════════════════
|
|
40
43
|
```
|
|
@@ -353,7 +353,7 @@ Feature: {FEAT-XXX} {Feature Name}
|
|
|
353
353
|
> **Module:** business/{application}/{module}
|
|
354
354
|
> **Version:** 1.0
|
|
355
355
|
> **Validated Specs:** Specification v1.0 (validation.json)
|
|
356
|
-
> **Implementation:** `/ralph-loop
|
|
356
|
+
> **Implementation:** `/ralph-loop`
|
|
357
357
|
|
|
358
358
|
## DEVELOPER INSTRUCTIONS
|
|
359
359
|
|
|
@@ -361,9 +361,10 @@ This document is a self-contained prompt for Claude Code.
|
|
|
361
361
|
|
|
362
362
|
**Lancement:**
|
|
363
363
|
```
|
|
364
|
-
/ralph-loop
|
|
364
|
+
/ralph-loop
|
|
365
365
|
```
|
|
366
|
-
>
|
|
366
|
+
> Ralph-loop auto-detects BA artifacts and derives PRD task breakdowns.
|
|
367
|
+
> Use `/ralph-loop -r` only to resume an interrupted loop.
|
|
367
368
|
|
|
368
369
|
---
|
|
369
370
|
|
|
@@ -459,7 +460,7 @@ FRONTEND:
|
|
|
459
460
|
|
|
460
461
|
**Lancement:**
|
|
461
462
|
```bash
|
|
462
|
-
/ralph-loop
|
|
463
|
+
/ralph-loop
|
|
463
464
|
```
|
|
464
465
|
```
|
|
465
466
|
|
|
@@ -50,11 +50,14 @@ EOF
|
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
## 7b. Frontend: .env.
|
|
53
|
+
## 7b. Frontend: .env.standalone + npm script
|
|
54
|
+
|
|
55
|
+
> **IMPORTANT**: Vite 7+ forbids `"local"` as a mode name (conflicts with `.env.local` suffix).
|
|
56
|
+
> The Vite mode is `standalone`, but the npm script stays `local` for user convenience.
|
|
54
57
|
|
|
55
58
|
```bash
|
|
56
59
|
[ -n "$WEB_DIR" ] && [ -f "$WEB_DIR/package.json" ] && {
|
|
57
|
-
cat > "$WEB_DIR/.env.
|
|
60
|
+
cat > "$WEB_DIR/.env.standalone" << EOF
|
|
58
61
|
VITE_API_URL=http://localhost:${API_PORT}
|
|
59
62
|
VITE_APP_ENV=local
|
|
60
63
|
VITE_DEBUG=true
|
|
@@ -66,7 +69,7 @@ EOF
|
|
|
66
69
|
const fs = require('fs');
|
|
67
70
|
const pkg = JSON.parse(fs.readFileSync('$WEB_DIR/package.json', 'utf8'));
|
|
68
71
|
if (!pkg.scripts.local) {
|
|
69
|
-
pkg.scripts.local = 'vite --mode
|
|
72
|
+
pkg.scripts.local = 'vite --mode standalone --port ${WEB_PORT}';
|
|
70
73
|
fs.writeFileSync('$WEB_DIR/package.json', JSON.stringify(pkg, null, 2) + '\n');
|
|
71
74
|
}
|
|
72
75
|
"
|
|
@@ -190,7 +190,7 @@ fi
|
|
|
190
190
|
See [references/start-local-config.md](../references/start-local-config.md) for the full configuration:
|
|
191
191
|
- **Port generation:** Unique ports per branch (API: 5200+, Web: 5300+) based on branch name hash
|
|
192
192
|
- **7a. Backend:** `appsettings.Local.json` (DB connection, SmartStack config, Kestrel port)
|
|
193
|
-
- **7b. Frontend:** `.env.
|
|
193
|
+
- **7b. Frontend:** `.env.standalone` + `npm run local` script (Vite mode=standalone, not "local" which conflicts with .env.local in Vite 7+)
|
|
194
194
|
- **7c. Backend:** `launchSettings.json` Local profile with unique port
|
|
195
195
|
- **7d. Summary:** Display configured DB name, API port, Web port
|
|
196
196
|
|
|
@@ -276,7 +276,7 @@ See [references/start-local-config.md](../references/start-local-config.md) for
|
|
|
276
276
|
- Worktree set up (if enabled)
|
|
277
277
|
- Backend local config created: `appsettings.Local.json` (if .NET API detected)
|
|
278
278
|
- Backend launch profile created: `launchSettings.json` Local profile with unique port (if .NET API detected)
|
|
279
|
-
- Frontend local config created: `.env.
|
|
279
|
+
- Frontend local config created: `.env.standalone` + `npm run local` script (if web project detected)
|
|
280
280
|
- Ports synchronized between backend and frontend (unique per branch)
|
|
281
281
|
- State stored for subsequent steps
|
|
282
282
|
|
|
@@ -95,8 +95,41 @@ LOAD → GENERATE → COMPILE → TEST → [FAIL?] → FIX → RE-TEST → [PASS
|
|
|
95
95
|
- `scaffold_tests` — test generation
|
|
96
96
|
</mcp_requirements>
|
|
97
97
|
|
|
98
|
+
<execution_guarantee>
|
|
99
|
+
|
|
100
|
+
## EXECUTION GUARANTEE — READ THIS FIRST
|
|
101
|
+
|
|
102
|
+
**Ralph-loop executes ALL tasks from start to finish. No exceptions.**
|
|
103
|
+
|
|
104
|
+
When the user invokes `/ralph-loop`, they are giving you the instruction to:
|
|
105
|
+
1. Initialize the loop (step-00)
|
|
106
|
+
2. Load ALL tasks (step-01)
|
|
107
|
+
3. Execute the FIRST task (step-02)
|
|
108
|
+
4. Commit (step-03)
|
|
109
|
+
5. Enter the COMPACT LOOP (step-04 → compact-loop.md)
|
|
110
|
+
6. **Execute ALL remaining tasks autonomously** (compact loop repeats)
|
|
111
|
+
7. Generate the final report (step-05)
|
|
112
|
+
|
|
113
|
+
**You MUST NOT:**
|
|
114
|
+
- Stop after the first task to "ask for confirmation"
|
|
115
|
+
- Set `max_iterations = 1` or any reduced value
|
|
116
|
+
- Ask the user to choose between supervised/autonomous mode
|
|
117
|
+
- Ask the user to choose a completion promise
|
|
118
|
+
- Wait for user input between iterations
|
|
119
|
+
- Delegate the loop to sub-agents (except team mode)
|
|
120
|
+
|
|
121
|
+
**The ONLY valid stop conditions are:**
|
|
122
|
+
- ALL tasks completed (→ step-05 report)
|
|
123
|
+
- `max_iterations` reached (user set via `-m N`)
|
|
124
|
+
- Dead-end (all remaining blocked/failed)
|
|
125
|
+
- User Ctrl+C
|
|
126
|
+
|
|
127
|
+
**If you stop for any other reason, you have VIOLATED this guarantee.**
|
|
128
|
+
|
|
129
|
+
</execution_guarantee>
|
|
130
|
+
|
|
98
131
|
<entry_point>
|
|
99
|
-
**FIRST ACTION:** Load `steps/step-00-init.md`
|
|
132
|
+
**FIRST ACTION:** Load `steps/step-00-init.md` — then execute ALL steps through to step-05 without stopping.
|
|
100
133
|
</entry_point>
|
|
101
134
|
|
|
102
135
|
<step_files>
|
|
@@ -134,6 +167,13 @@ LOAD → GENERATE → COMPILE → TEST → [FAIL?] → FIX → RE-TEST → [PASS
|
|
|
134
167
|
|
|
135
168
|
<execution_rules>
|
|
136
169
|
|
|
170
|
+
### NON-NEGOTIABLE — Autonomous Full Execution
|
|
171
|
+
- **EXECUTE ALL TASKS** — from first to last, no user interaction, no pause, no confirmation
|
|
172
|
+
- **NEVER ask the user** — no mode selection, no completion promise choice, no "shall I continue?"
|
|
173
|
+
- **NEVER stop after first task** — the first task is just the beginning, NOT the end
|
|
174
|
+
- **NEVER set max_iterations = 1** — unless the user explicitly passed `-m 1`
|
|
175
|
+
|
|
176
|
+
### Loop Mechanics
|
|
137
177
|
- **Single module:** Main agent runs compact loop (NEVER delegate to sub-agent)
|
|
138
178
|
- **Multi-module (2+):** Team lead + module workers via TeamCreate (see references/team-orchestration.md)
|
|
139
179
|
- **Load step files ONCE** — after first iteration, use compact-loop.md
|