@atlashub/smartstack-cli 4.74.0 → 4.75.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 +111 -36
- package/dist/index.js.map +1 -1
- package/dist/mcp-entry.mjs +14 -3
- package/dist/mcp-entry.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/agents/ba-reader.md +17 -15
- package/templates/agents/ba-writer.md +49 -51
- package/templates/skills/apex/_shared.md +1 -1
- package/templates/skills/apex/references/checks/backend-checks.sh +21 -7
- package/templates/skills/apex/references/checks/infrastructure-checks.sh +47 -10
- package/templates/skills/apex/references/frontend-route-wiring-app-tsx.md +3 -0
- package/templates/skills/apex/references/post-checks.md +5 -2
- package/templates/skills/apex/references/smartstack-frontend.md +53 -7
- package/templates/skills/apex/steps/step-00-init.md +74 -0
- package/templates/skills/apex/steps/step-03-execute.md +16 -4
- package/templates/skills/apex/steps/step-03b-layer1-seed.md +39 -6
- package/templates/skills/apex/steps/step-03c-layer2-backend.md +50 -5
- package/templates/skills/apex/steps/step-03d-layer3-frontend.md +102 -2
- package/templates/skills/application/references/frontend-route-wiring-app-tsx.md +3 -0
- package/templates/skills/business-analyse/SKILL.md +14 -0
- package/templates/skills/business-analyse/_shared.md +27 -0
- package/templates/skills/business-analyse/patterns/suggestion-catalog.md +34 -26
- package/templates/skills/business-analyse/questionnaire/01-context.md +13 -9
- package/templates/skills/business-analyse/questionnaire/02-stakeholders-scope.md +20 -27
- package/templates/skills/business-analyse/questionnaire.md +86 -9
- package/templates/skills/business-analyse/references/03-json-schemas.md +213 -0
- package/templates/skills/business-analyse/references/03-post-check-validation.md +144 -0
- package/templates/skills/business-analyse/references/03-smartstack-entity-guards.md +32 -0
- package/templates/skills/business-analyse/references/04-cross-module-validation.md +95 -0
- package/templates/skills/business-analyse/references/04-file-allocation.md +162 -0
- package/templates/skills/business-analyse/references/04-naming-audit-checks.md +174 -0
- package/templates/skills/business-analyse/references/04-semantic-validation-matrix.md +118 -0
- package/templates/skills/business-analyse/references/domain-research-playbook.md +234 -0
- package/templates/skills/business-analyse/references/entity-sourcing-presentation.md +166 -0
- package/templates/skills/business-analyse/references/init-resume-logic.md +70 -0
- package/templates/skills/business-analyse/references/module-completeness-challenge.md +174 -0
- package/templates/skills/business-analyse/references/multi-app-detection.md +149 -0
- package/templates/skills/business-analyse/references/portal-classification.md +52 -0
- package/templates/skills/business-analyse/references/validation-checklist.md +30 -1
- package/templates/skills/business-analyse/schemas/sections/analysis-schema.json +37 -4
- package/templates/skills/business-analyse/steps/step-00-init.md +22 -190
- package/templates/skills/business-analyse/steps/step-01-cadrage.md +365 -269
- package/templates/skills/business-analyse/steps/step-02-structure.md +98 -20
- package/templates/skills/business-analyse/steps/step-03-specify.md +652 -229
- package/templates/skills/business-analyse/steps/step-04-consolidate.md +308 -287
- package/templates/skills/business-analyse-design/SKILL.md +10 -0
- package/templates/skills/business-analyse-design/references/screens-post-check.md +221 -0
- package/templates/skills/business-analyse-design/references/screens-type-mapping.md +138 -0
- package/templates/skills/business-analyse-design/references/smartcomponents-templates.md +225 -0
- package/templates/skills/{business-analyse → business-analyse-design}/references/spec-auto-inference.md +117 -117
- package/templates/skills/business-analyse-design/steps/step-01-screens.md +36 -162
- package/templates/skills/business-analyse-design/steps/step-02-wireframes.md +8 -7
- package/templates/skills/business-analyse-design/steps/step-03-navigation.md +89 -42
- package/templates/skills/business-analyse-develop/references/compact-loop.md +9 -0
- package/templates/skills/business-analyse-develop/references/handoff-quality-gate.md +132 -0
- package/templates/skills/business-analyse-develop/references/prd-v3-transformation.md +326 -0
- package/templates/skills/business-analyse-develop/references/report-reconciliation.md +140 -0
- package/templates/skills/business-analyse-develop/references/report-template.md +142 -0
- package/templates/skills/business-analyse-develop/steps/step-01-task.md +5 -177
- package/templates/skills/business-analyse-develop/steps/step-02-execute.md +17 -4
- package/templates/skills/business-analyse-develop/steps/step-03-commit.md +6 -2
- package/templates/skills/business-analyse-develop/steps/step-04-check.md +6 -0
- package/templates/skills/business-analyse-develop/steps/step-05-report.md +3 -269
- package/templates/skills/business-analyse-handoff/SKILL.md +10 -0
- package/templates/skills/business-analyse-handoff/references/agent-handoff-transform-prompt.md +208 -0
- package/templates/skills/business-analyse-handoff/references/context-isolation-pattern.md +47 -0
- package/templates/skills/business-analyse-handoff/references/handoff-file-inventory.md +49 -0
- package/templates/skills/business-analyse-handoff/references/handoff-global-validation.md +142 -0
- package/templates/skills/business-analyse-handoff/references/prd-validation-checks.md +125 -0
- package/templates/skills/business-analyse-handoff/references/project-index-update.md +98 -0
- package/templates/skills/business-analyse-handoff/steps/step-01-transform.md +9 -160
- package/templates/skills/business-analyse-handoff/steps/step-02-export.md +10 -99
- package/templates/skills/business-analyse-html/SKILL.md +10 -0
- package/templates/skills/business-analyse-html/html/ba-interactive.html +306 -81
- package/templates/skills/business-analyse-html/html/src/scripts/01-data-init.js +15 -2
- package/templates/skills/business-analyse-html/html/src/scripts/02-navigation.js +6 -46
- package/templates/skills/business-analyse-html/html/src/scripts/06-render-mockups.js +88 -33
- package/templates/skills/business-analyse-html/html/src/scripts/12-render-diagrams.js +116 -0
- package/templates/skills/business-analyse-html/html/src/styles/10-diagrams.css +73 -0
- package/templates/skills/business-analyse-html/html/src/template.html +2 -0
- package/templates/skills/business-analyse-html/references/02-embedded-artifacts-building.md +144 -0
- package/templates/skills/business-analyse-html/references/02-feature-data-building.md +141 -0
- package/templates/skills/business-analyse-html/references/02-mapping-tables.md +442 -0
- package/templates/skills/business-analyse-html/references/02-normalization-helpers.md +139 -0
- package/templates/skills/business-analyse-html/references/02-screen-format-detection.md +283 -0
- package/templates/skills/business-analyse-html/references/02-self-check-validation.md +199 -0
- package/templates/skills/business-analyse-html/references/data-build.md +22 -1
- package/templates/skills/business-analyse-html/references/data-mapping.md +40 -5
- package/templates/skills/business-analyse-html/steps/step-02-build-data.md +12 -555
- package/templates/skills/business-analyse-review/SKILL.md +10 -0
- package/templates/skills/business-analyse-status/SKILL.md +8 -0
- package/templates/skills/dev-start/SKILL.md +143 -307
- package/templates/skills/efcore/SKILL.md +13 -0
|
@@ -39,31 +39,26 @@ Load via ba-reader:
|
|
|
39
39
|
|
|
40
40
|
## Process
|
|
41
41
|
|
|
42
|
-
### 1. Application
|
|
42
|
+
### 1. Application Verification (SCOPE LOCKED)
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
> **Multi-app detection was already done in step-00 Step 3b and confirmed by the user.**
|
|
45
|
+
> This step does NOT re-detect applications. It reads the confirmed structure.
|
|
45
46
|
|
|
46
|
-
**Single-app indicators:**
|
|
47
|
-
- All scope items relate to one domain
|
|
48
|
-
- Single set of stakeholders
|
|
49
|
-
- No mention of separate systems
|
|
50
|
-
|
|
51
|
-
**Multi-app indicators:**
|
|
52
|
-
- Scope items spanning distinct domains (e.g., HR + CRM + Accounting)
|
|
53
|
-
- Different stakeholder groups per domain
|
|
54
|
-
- Mentions of separate applications or systems
|
|
55
|
-
|
|
56
|
-
If multi-app:
|
|
57
47
|
```
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
Read .business-analyse/config.json:
|
|
49
|
+
IF workflow_mode = "project":
|
|
50
|
+
applications = config.candidateApplications // Confirmed in step-00
|
|
51
|
+
For each application:
|
|
52
|
+
- Code (PascalCase) — from candidateApplications[].name
|
|
53
|
+
- Name (display name)
|
|
54
|
+
- Route (URL prefix) — toKebabCase(code)
|
|
55
|
+
- Description — from candidateApplications[].description
|
|
56
|
+
ELSE (workflow_mode = "application"):
|
|
57
|
+
Single application from config.application / config.applicationCode
|
|
64
58
|
```
|
|
65
59
|
|
|
66
|
-
|
|
60
|
+
**INTERDICTION** de re-analyser le cadrage pour detecter de nouvelles applications.
|
|
61
|
+
Le nombre d'applications est VERROUILLE par step-00.
|
|
67
62
|
|
|
68
63
|
### 2. Module Identification
|
|
69
64
|
|
|
@@ -82,6 +77,67 @@ For each module:
|
|
|
82
77
|
if ALL external → "external", else → "shared"
|
|
83
78
|
```
|
|
84
79
|
|
|
80
|
+
### 2b. Per-Application Module Completeness Challenge (MANDATORY — BLOCKING)
|
|
81
|
+
|
|
82
|
+
> **Load** `references/module-completeness-challenge.md` for application archetypes.
|
|
83
|
+
> **Load** `{domain_research}.applications[{app_code}]` from step-01 research.
|
|
84
|
+
> This gate ensures no application is left with fewer modules than the industry standard.
|
|
85
|
+
|
|
86
|
+
For EACH application:
|
|
87
|
+
|
|
88
|
+
1. Load archetype for this app type from `module-completeness-challenge.md`
|
|
89
|
+
2. Load `{domain_research}.applications[{app_code}].standardModules` (if available)
|
|
90
|
+
3. Merge research + archetype into a single reference list
|
|
91
|
+
4. Compare identified modules vs reference CORE modules
|
|
92
|
+
|
|
93
|
+
Display as markdown:
|
|
94
|
+
```
|
|
95
|
+
### {language == "fr" ? "Completude modules" : "Module completeness"} : {appName}
|
|
96
|
+
|
|
97
|
+
| Module identifie | Classification | Statut |
|
|
98
|
+
|-----------------|---------------|--------|
|
|
99
|
+
| {identified_module} | CORE | ✓ Present |
|
|
100
|
+
| — | CORE | ✗ **{missing_core_module}** — {description} |
|
|
101
|
+
| — | STANDARD | △ {missing_standard_module} — {description} |
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
For EACH missing **CORE** module:
|
|
105
|
+
AskUserQuestion:
|
|
106
|
+
```
|
|
107
|
+
question: "{missing_module} est un composant CORE d'une application {app_type}.
|
|
108
|
+
{reason_why_core}. Comment souhaitez-vous le traiter ?"
|
|
109
|
+
options:
|
|
110
|
+
- label: "Ajouter comme module"
|
|
111
|
+
description: "Creer un module dedie {missing_module}"
|
|
112
|
+
- label: "Integrer comme section"
|
|
113
|
+
description: "Ajouter comme section dans {closest_existing_module}"
|
|
114
|
+
- label: "Exclure du perimetre"
|
|
115
|
+
description: "Exclure explicitement avec justification"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
IF "Exclure" → document in `cadrage.globalScope.outOfScope` with reason
|
|
119
|
+
|
|
120
|
+
For EACH missing **STANDARD** module:
|
|
121
|
+
Display as suggestion (non-blocking):
|
|
122
|
+
"△ Module {name} (STANDARD) : {description} — Recommande pour une application {app_type} complete."
|
|
123
|
+
|
|
124
|
+
**Module Count Sanity Check (BLOCKING):**
|
|
125
|
+
|
|
126
|
+
| Application Type | Minimum Modules | Reason |
|
|
127
|
+
|-----------------|----------------|--------|
|
|
128
|
+
| HR | 3 | Employees + Absences + at least 1 more (Documents, Evaluations, Organisation) |
|
|
129
|
+
| CRM | 3 | Contacts/Accounts + Opportunities + at least 1 (Quotes, Activities, Campaigns) |
|
|
130
|
+
| Billing/Invoicing | 3 | Invoices + Credit Notes + Payment Tracking (minimum legal) |
|
|
131
|
+
| Project Management | 3 | Projects + Tasks/Time + at least 1 (Milestones, Resources, Reports) |
|
|
132
|
+
|
|
133
|
+
IF application has fewer modules than minimum → **BLOCKING:**
|
|
134
|
+
"L'application {app} a {N} modules. Le minimum standard est {min}.
|
|
135
|
+
Modules manquants probables : {list from archetype}.
|
|
136
|
+
Veuillez ajouter des modules ou justifier l'exclusion."
|
|
137
|
+
|
|
138
|
+
**INTERDICTION** de valider la structure tant que chaque module CORE manquant
|
|
139
|
+
n'est pas traite (ajoute, integre, ou exclu avec justification documentee).
|
|
140
|
+
|
|
85
141
|
### 3. Section & Resource Anticipation
|
|
86
142
|
|
|
87
143
|
For each module, anticipate the navigation structure:
|
|
@@ -114,6 +170,28 @@ Common patterns:
|
|
|
114
170
|
- **Reporting**: dashboard (`primary`/`read-only`) → detail (`view`/`inherit`, parent: dashboard)
|
|
115
171
|
- **Full module**: list (`primary`/`crud`) → detail (`view`/`inherit`, parent: list) + dashboard (`embedded`/`read-only`, parent: list)
|
|
116
172
|
|
|
173
|
+
### 3b. Section Anticipation from Domain Research (MANDATORY)
|
|
174
|
+
|
|
175
|
+
> **Enrich anticipated sections using domain research BEFORE presenting to user.**
|
|
176
|
+
|
|
177
|
+
For EACH module:
|
|
178
|
+
IF `{domain_research}` contains section data for this module type (from Level 1 research or archetype):
|
|
179
|
+
Compare `anticipatedSections` against research/archetype standard sections
|
|
180
|
+
Add missing standard sections to `anticipatedSections` with `source: "domain-research"`
|
|
181
|
+
|
|
182
|
+
Example: Module "Absences" (workflow type)
|
|
183
|
+
Archetype standard sections: list, detail, approve, calendar, open-requests, rejected, history, my-balance
|
|
184
|
+
Currently anticipated: list, detail, approve, calendar
|
|
185
|
+
→ ADDING: open-requests (functional/custom), rejected (functional/read-only), history (functional/read-only), my-balance (embedded/read-only)
|
|
186
|
+
|
|
187
|
+
Example: Module "Factures" (workflow type)
|
|
188
|
+
Archetype standard sections: list, detail, generate, dashboard, overdue
|
|
189
|
+
Currently anticipated: list, detail, generate, dashboard
|
|
190
|
+
→ ADDING: overdue (functional/read-only)
|
|
191
|
+
|
|
192
|
+
> **These enriched sections are PROPOSALS.** They will be presented to the user
|
|
193
|
+
> for validation in section 6 (Present to User). The user can accept or reject.
|
|
194
|
+
|
|
117
195
|
### 4. Dependency Graph
|
|
118
196
|
|
|
119
197
|
Map dependencies between modules:
|