@atlashub/smartstack-cli 4.18.0 → 4.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/package.json +1 -1
- package/templates/agents/ba-reader.md +86 -80
- package/templates/agents/ba-writer.md +318 -415
- package/templates/agents/docs-context-reader.md +3 -3
- package/templates/mcp-scaffolding/frontend/nav-routes.ts.hbs +133 -0
- package/templates/mcp-scaffolding/frontend/routes.tsx.hbs +126 -0
- package/templates/skills/apex/SKILL.md +29 -16
- package/templates/skills/apex/_shared.md +62 -9
- package/templates/skills/apex/references/analysis-methods.md +8 -6
- package/templates/skills/apex/references/challenge-questions.md +5 -5
- package/templates/skills/apex/references/core-seed-data.md +68 -45
- package/templates/skills/apex/references/frontend-route-wiring-app-tsx.md +26 -21
- package/templates/skills/apex/references/parallel-execution.md +156 -0
- package/templates/skills/apex/references/person-extension-pattern.md +12 -12
- package/templates/skills/apex/references/post-checks.md +1748 -1726
- package/templates/skills/apex/references/smartstack-api.md +63 -57
- package/templates/skills/apex/references/smartstack-frontend-compliance.md +594 -0
- package/templates/skills/apex/references/smartstack-frontend.md +1246 -1842
- package/templates/skills/apex/references/smartstack-layers.md +98 -145
- package/templates/skills/apex/steps/step-00-init.md +30 -6
- package/templates/skills/apex/steps/step-01-analyze.md +27 -23
- package/templates/skills/apex/steps/step-02-plan.md +12 -12
- package/templates/skills/apex/steps/step-03-execute.md +198 -143
- package/templates/skills/apex/steps/step-04-examine.md +24 -93
- package/templates/skills/apex/steps/step-05-deep-review.md +16 -16
- package/templates/skills/apex/steps/step-06-resolve.md +9 -9
- package/templates/skills/apex/steps/step-07-tests.md +3 -1
- package/templates/skills/apex/steps/step-08-run-tests.md +1 -1
- package/templates/skills/business-analyse/SKILL.md +182 -301
- package/templates/skills/business-analyse/_shared.md +119 -336
- package/templates/skills/business-analyse/html/ba-interactive.html +703 -82
- package/templates/skills/business-analyse/html/build-html.js +41 -3
- package/templates/skills/business-analyse/html/src/partials/cadrage-context.html +34 -0
- package/templates/skills/business-analyse/html/src/partials/cadrage-risks.html +48 -0
- package/templates/skills/business-analyse/html/src/partials/cadrage-scope.html +49 -0
- package/templates/skills/business-analyse/html/src/partials/cadrage-stakeholders.html +55 -0
- package/templates/skills/business-analyse/html/src/partials/cadrage-success.html +34 -0
- package/templates/skills/business-analyse/html/src/partials/consol-datamodel.html +8 -0
- package/templates/skills/business-analyse/html/src/partials/consol-flows.html +29 -0
- package/templates/skills/business-analyse/html/src/partials/consol-interactions.html +8 -0
- package/templates/skills/business-analyse/html/src/partials/consol-permissions.html +8 -0
- package/templates/skills/business-analyse/html/src/partials/decomp-dependencies.html +38 -0
- package/templates/skills/business-analyse/html/src/partials/decomp-modules.html +51 -0
- package/templates/skills/business-analyse/html/src/partials/handoff-summary.html +24 -0
- package/templates/skills/business-analyse/html/src/partials/module-spec-container.html +4 -0
- package/templates/skills/business-analyse/html/src/scripts/01-data-init.js +17 -1
- package/templates/skills/business-analyse/html/src/scripts/02-navigation.js +31 -5
- package/templates/skills/business-analyse/html/src/scripts/05-render-specs.js +100 -63
- package/templates/skills/business-analyse/html/src/scripts/06-render-mockups.js +372 -0
- package/templates/skills/business-analyse/html/src/scripts/10-comments.js +41 -13
- package/templates/skills/business-analyse/html/src/styles/09-mockups-html.css +136 -0
- package/templates/skills/business-analyse/patterns/suggestion-catalog.md +7 -5
- package/templates/skills/business-analyse/questionnaire/02-stakeholders-scope.md +142 -0
- package/templates/skills/business-analyse/questionnaire/03-data-ui.md +94 -0
- package/templates/skills/business-analyse/questionnaire/04-risks-metrics.md +150 -0
- package/templates/skills/business-analyse/questionnaire/05-cross-module.md +69 -0
- package/templates/skills/business-analyse/questionnaire.md +23 -280
- package/templates/skills/business-analyse/react/application-viewer.md +2 -2
- package/templates/skills/business-analyse/react/components.md +4 -4
- package/templates/skills/business-analyse/react/i18n-template.md +1 -1
- package/templates/skills/business-analyse/react/schema.md +14 -14
- package/templates/skills/business-analyse/references/acceptance-criteria.md +21 -21
- package/templates/skills/business-analyse/references/analysis-semantic-checks.md +3 -3
- package/templates/skills/business-analyse/references/compilation-structure-cards.md +1 -1
- package/templates/skills/business-analyse/references/consolidation-structural-checks.md +5 -5
- package/templates/skills/business-analyse/references/deploy-data-build.md +12 -11
- package/templates/skills/business-analyse/references/deploy-modes.md +10 -10
- package/templates/skills/business-analyse/references/detection-strategies.md +6 -6
- package/templates/skills/business-analyse/references/html-data-mapping.md +15 -15
- package/templates/skills/business-analyse/references/naming-conventions.md +4 -4
- package/templates/skills/business-analyse/references/review-data-mapping.md +29 -29
- package/templates/skills/business-analyse/references/robustness-checks.md +36 -36
- package/templates/skills/business-analyse/references/spec-auto-inference.md +2 -2
- package/templates/skills/business-analyse/references/ui-dashboard-spec.md +1 -1
- package/templates/skills/business-analyse/references/ui-resource-cards.md +1 -1
- package/templates/skills/business-analyse/references/validation-checklist.md +3 -3
- package/templates/skills/business-analyse/references/wireframe-svg-style-guide.md +2 -2
- package/templates/skills/business-analyse/schemas/application-schema.json +8 -8
- package/templates/skills/business-analyse/schemas/feature-schema.json +3 -3
- package/templates/skills/business-analyse/schemas/index-schema.json +47 -0
- package/templates/skills/business-analyse/schemas/project-schema.json +6 -6
- package/templates/skills/business-analyse/schemas/sections/analysis-schema.json +1 -1
- package/templates/skills/business-analyse/schemas/sections/handoff-schema.json +5 -3
- package/templates/skills/business-analyse/schemas/sections/metadata-schema.json +4 -4
- package/templates/skills/business-analyse/schemas/sections/specification-schema.json +1 -1
- package/templates/skills/business-analyse/schemas/shared/common-defs.json +4 -4
- package/templates/skills/business-analyse/steps/step-00-init.md +68 -77
- package/templates/skills/business-analyse/steps/step-01-cadrage.md +54 -180
- package/templates/skills/business-analyse/steps/step-02-structure.md +175 -0
- package/templates/skills/business-analyse/steps/step-03-specify.md +198 -0
- package/templates/skills/business-analyse/steps/step-04-consolidate.md +478 -0
- package/templates/skills/business-analyse/steps/step-05-deploy.md +220 -0
- package/templates/skills/business-analyse/steps/step-06-review.md +51 -69
- package/templates/skills/business-analyse/templates/tpl-frd.md +1 -1
- package/templates/skills/business-analyse/templates/tpl-handoff.md +20 -17
- package/templates/skills/business-analyse/templates/tpl-launch-displays.md +2 -2
- package/templates/skills/business-analyse/templates-react.md +2 -2
- package/templates/skills/derive-prd/SKILL.md +92 -0
- package/templates/skills/derive-prd/references/acceptance-criteria.md +169 -0
- package/templates/skills/derive-prd/references/entity-domain-mapping.md +115 -0
- package/templates/skills/{business-analyse → derive-prd}/references/handoff-file-templates.md +131 -120
- package/templates/skills/{business-analyse → derive-prd}/references/handoff-mappings.md +95 -95
- package/templates/skills/{business-analyse → derive-prd}/references/handoff-seeddata-generation.md +312 -312
- package/templates/skills/{business-analyse → derive-prd}/references/prd-generation.md +262 -263
- package/templates/skills/derive-prd/references/readiness-scoring.md +104 -0
- package/templates/skills/derive-prd/schemas/handoff-schema.json +95 -0
- package/templates/skills/derive-prd/steps/step-00-validate.md +130 -0
- package/templates/skills/derive-prd/steps/step-01-transform.md +206 -0
- package/templates/skills/derive-prd/steps/step-02-export.md +181 -0
- package/templates/skills/{business-analyse → derive-prd}/templates/tpl-progress.md +172 -172
- package/templates/skills/ralph-loop/SKILL.md +2 -1
- package/templates/skills/ralph-loop/references/init-resume-recovery.md +1 -1
- package/templates/skills/ralph-loop/steps/step-01-task.md +2 -2
- package/templates/skills/apex/references/agent-teams-protocol.md +0 -203
- package/templates/skills/business-analyse/_architecture.md +0 -124
- package/templates/skills/business-analyse/_elicitation.md +0 -206
- package/templates/skills/business-analyse/_module-loop.md +0 -115
- package/templates/skills/business-analyse/_rules.md +0 -142
- package/templates/skills/business-analyse/_suggestions.md +0 -34
- package/templates/skills/business-analyse/questionnaire/00-application.md +0 -160
- package/templates/skills/business-analyse/questionnaire/00b-project.md +0 -85
- package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +0 -189
- package/templates/skills/business-analyse/questionnaire/03-scope.md +0 -164
- package/templates/skills/business-analyse/questionnaire/04-data.md +0 -88
- package/templates/skills/business-analyse/questionnaire/05-integrations.md +0 -58
- package/templates/skills/business-analyse/questionnaire/06-security.md +0 -68
- package/templates/skills/business-analyse/questionnaire/07-ui.md +0 -76
- package/templates/skills/business-analyse/questionnaire/08-performance.md +0 -42
- package/templates/skills/business-analyse/questionnaire/09-constraints.md +0 -45
- package/templates/skills/business-analyse/questionnaire/10-documentation.md +0 -58
- package/templates/skills/business-analyse/questionnaire/11-data-lifecycle.md +0 -59
- package/templates/skills/business-analyse/questionnaire/12-migration.md +0 -58
- package/templates/skills/business-analyse/questionnaire/13-cross-module.md +0 -69
- package/templates/skills/business-analyse/questionnaire/14-risk-assumptions.md +0 -135
- package/templates/skills/business-analyse/questionnaire/15-success-metrics.md +0 -136
- package/templates/skills/business-analyse/references/agent-module-prompt.md +0 -366
- package/templates/skills/business-analyse/references/agent-pooling-best-practices.md +0 -557
- package/templates/skills/business-analyse/references/cache-warming-strategy.md +0 -566
- package/templates/skills/business-analyse/references/cadrage-challenge-patterns.md +0 -41
- package/templates/skills/business-analyse/references/cadrage-coverage-matrix.md +0 -74
- package/templates/skills/business-analyse/references/cadrage-pre-analysis.md +0 -115
- package/templates/skills/business-analyse/references/cadrage-shared-modules.md +0 -68
- package/templates/skills/business-analyse/references/cadrage-structure-cards.md +0 -85
- package/templates/skills/business-analyse/references/team-orchestration.md +0 -1093
- package/templates/skills/business-analyse/references/validate-incremental-html.md +0 -121
- package/templates/skills/business-analyse/steps/step-01b-applications.md +0 -419
- package/templates/skills/business-analyse/steps/step-02-decomposition.md +0 -387
- package/templates/skills/business-analyse/steps/step-03a-data.md +0 -16
- package/templates/skills/business-analyse/steps/step-03a1-setup.md +0 -486
- package/templates/skills/business-analyse/steps/step-03a2-analysis.md +0 -300
- package/templates/skills/business-analyse/steps/step-03b-ui.md +0 -405
- package/templates/skills/business-analyse/steps/step-03c-compile.md +0 -516
- package/templates/skills/business-analyse/steps/step-03d-validate.md +0 -691
- package/templates/skills/business-analyse/steps/step-04-consolidation.md +0 -17
- package/templates/skills/business-analyse/steps/step-04a-collect.md +0 -415
- package/templates/skills/business-analyse/steps/step-04b-analyze.md +0 -163
- package/templates/skills/business-analyse/steps/step-04c-decide.md +0 -186
- package/templates/skills/business-analyse/steps/step-05a-handoff.md +0 -937
- package/templates/skills/business-analyse/steps/step-05b-deploy.md +0 -522
- package/templates/skills/business-analyse/steps/step-05c-ralph-readiness.md +0 -703
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
# Handoff Mappings: BR-to-Code & API Summary
|
|
2
|
-
|
|
3
|
-
## Business Rules to Code Mapping
|
|
4
|
-
|
|
5
|
-
Derive from `analysis.businessRules[]` of **EACH module**.
|
|
6
|
-
|
|
7
|
-
Generate complete mapping for each BR:
|
|
8
|
-
|
|
9
|
-
```json
|
|
10
|
-
{
|
|
11
|
-
"brToCodeMapping": [
|
|
12
|
-
{
|
|
13
|
-
"ruleId": "BR-VAL-001",
|
|
14
|
-
"title": "Order total must equal sum of item prices",
|
|
15
|
-
"module": "{moduleCode}",
|
|
16
|
-
"severity": "critical",
|
|
17
|
-
"implementationPoints": [
|
|
18
|
-
{ "layer": "Domain", "component": "Order.cs", "method": "CalculateTotal()", "implementation": "Validate sum equals sum of OrderItems.Price" },
|
|
19
|
-
{ "layer": "Application", "component": "CreateOrderService.cs", "method": "Handle()", "implementation": "Calculate total before persisting" },
|
|
20
|
-
{ "layer": "API", "component": "OrdersController.cs", "method": "CreateOrder()", "implementation": "Return validation error if total mismatch" },
|
|
21
|
-
{ "layer": "Frontend", "component": "OrderForm.tsx", "method": "calculateTotal()", "implementation": "Real-time calculation on item change" }
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
For each BR include:
|
|
29
|
-
- **ruleId**: Reference to analysis.businessRules[].id
|
|
30
|
-
- **title**: The rule statement
|
|
31
|
-
- **module**: Which module it belongs to
|
|
32
|
-
- **severity**: "critical", "high", "medium", "low"
|
|
33
|
-
- **implementationPoints**: Array of {layer, component, method, implementation}
|
|
34
|
-
|
|
35
|
-
Layers: Domain, Application, Infrastructure, API, Frontend
|
|
36
|
-
|
|
37
|
-
## Person Extension Mapping
|
|
38
|
-
|
|
39
|
-
When an entity has `personRoleConfig` in its analysis data, it MUST be carried into the PRD:
|
|
40
|
-
|
|
41
|
-
| Source (
|
|
42
|
-
|----------------------|--------------|
|
|
43
|
-
| `analysis.entities[].personRoleConfig` | `modules[].entities[].personRoleConfig` |
|
|
44
|
-
| `personRoleConfig.userLinkMode` | Determines scaffold options: `isPersonRole: true, userLinkMode: "{mode}"` |
|
|
45
|
-
| `personRoleConfig.inheritedFields` | Fields to exclude from entity (mandatory) or mark as fallback (optional) |
|
|
46
|
-
|
|
47
|
-
The `personRoleConfig` object is passed through verbatim to ensure `/apex` and `/ralph-loop` receive the person extension configuration.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## API Endpoint Summary
|
|
52
|
-
|
|
53
|
-
> **ABSOLUTE RULE:** Copy **EXACTLY** from `specification.apiEndpoints[]`. **NEVER** reinvent routes.
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
{
|
|
57
|
-
"apiEndpointSummary": [
|
|
58
|
-
{
|
|
59
|
-
"operation": "ListOrders",
|
|
60
|
-
"method": "GET",
|
|
61
|
-
"route": "/api/orders",
|
|
62
|
-
"linkedUC": "UC-001",
|
|
63
|
-
"linkedFR": "FR-001",
|
|
64
|
-
"permissions": ["orders.read"],
|
|
65
|
-
"requestSchema": { "type": "query", "params": ["pageNumber", "pageSize", "status"] },
|
|
66
|
-
"responseSchema": { "type": "PaginatedOrderDto[]" },
|
|
67
|
-
"errorCodes": [401, 403, 400, 500],
|
|
68
|
-
"module": "{moduleCode}"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"operation": "CreateOrder",
|
|
72
|
-
"method": "POST",
|
|
73
|
-
"route": "/api/orders",
|
|
74
|
-
"linkedUC": "UC-002",
|
|
75
|
-
"linkedFR": "FR-002",
|
|
76
|
-
"permissions": ["orders.create"],
|
|
77
|
-
"requestSchema": { "type": "body", "schema": "CreateOrderDto" },
|
|
78
|
-
"responseSchema": { "type": "OrderDto" },
|
|
79
|
-
"errorCodes": [400, 401, 403, 422, 500],
|
|
80
|
-
"module": "{moduleCode}"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
For each endpoint:
|
|
87
|
-
- **operation**: Use case name
|
|
88
|
-
- **method**: HTTP method (GET, POST, PUT, DELETE, PATCH)
|
|
89
|
-
- **route**: Full API path from specification
|
|
90
|
-
- **linkedUC/linkedFR**: Use case and feature requirement IDs
|
|
91
|
-
- **permissions**: Array of exact permission paths
|
|
92
|
-
- **requestSchema**: Input contract (query params or body)
|
|
93
|
-
- **responseSchema**: Output contract
|
|
94
|
-
- **errorCodes**: Expected HTTP error codes
|
|
95
|
-
- **module**: Which module
|
|
1
|
+
# Handoff Mappings: BR-to-Code & API Summary
|
|
2
|
+
|
|
3
|
+
## Business Rules to Code Mapping
|
|
4
|
+
|
|
5
|
+
Derive from module index.json `analysis.businessRules[]` of **EACH module**.
|
|
6
|
+
|
|
7
|
+
Generate complete mapping for each BR:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"brToCodeMapping": [
|
|
12
|
+
{
|
|
13
|
+
"ruleId": "BR-VAL-001",
|
|
14
|
+
"title": "Order total must equal sum of item prices",
|
|
15
|
+
"module": "{moduleCode}",
|
|
16
|
+
"severity": "critical",
|
|
17
|
+
"implementationPoints": [
|
|
18
|
+
{ "layer": "Domain", "component": "Order.cs", "method": "CalculateTotal()", "implementation": "Validate sum equals sum of OrderItems.Price" },
|
|
19
|
+
{ "layer": "Application", "component": "CreateOrderService.cs", "method": "Handle()", "implementation": "Calculate total before persisting" },
|
|
20
|
+
{ "layer": "API", "component": "OrdersController.cs", "method": "CreateOrder()", "implementation": "Return validation error if total mismatch" },
|
|
21
|
+
{ "layer": "Frontend", "component": "OrderForm.tsx", "method": "calculateTotal()", "implementation": "Real-time calculation on item change" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
For each BR include:
|
|
29
|
+
- **ruleId**: Reference to analysis.businessRules[].id
|
|
30
|
+
- **title**: The rule statement
|
|
31
|
+
- **module**: Which module it belongs to
|
|
32
|
+
- **severity**: "critical", "high", "medium", "low"
|
|
33
|
+
- **implementationPoints**: Array of {layer, component, method, implementation}
|
|
34
|
+
|
|
35
|
+
Layers: Domain, Application, Infrastructure, API, Frontend
|
|
36
|
+
|
|
37
|
+
## Person Extension Mapping
|
|
38
|
+
|
|
39
|
+
When an entity has `personRoleConfig` in its analysis data, it MUST be carried into the PRD:
|
|
40
|
+
|
|
41
|
+
| Source (index.json) | Target (PRD) |
|
|
42
|
+
|----------------------|--------------|
|
|
43
|
+
| `analysis.entities[].personRoleConfig` | `modules[].entities[].personRoleConfig` |
|
|
44
|
+
| `personRoleConfig.userLinkMode` | Determines scaffold options: `isPersonRole: true, userLinkMode: "{mode}"` |
|
|
45
|
+
| `personRoleConfig.inheritedFields` | Fields to exclude from entity (mandatory) or mark as fallback (optional) |
|
|
46
|
+
|
|
47
|
+
The `personRoleConfig` object is passed through verbatim to ensure `/apex` and `/ralph-loop` receive the person extension configuration.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## API Endpoint Summary
|
|
52
|
+
|
|
53
|
+
> **ABSOLUTE RULE:** Copy **EXACTLY** from index.json `specification.apiEndpoints[]`. **NEVER** reinvent routes.
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"apiEndpointSummary": [
|
|
58
|
+
{
|
|
59
|
+
"operation": "ListOrders",
|
|
60
|
+
"method": "GET",
|
|
61
|
+
"route": "/api/orders",
|
|
62
|
+
"linkedUC": "UC-001",
|
|
63
|
+
"linkedFR": "FR-001",
|
|
64
|
+
"permissions": ["orders.read"],
|
|
65
|
+
"requestSchema": { "type": "query", "params": ["pageNumber", "pageSize", "status"] },
|
|
66
|
+
"responseSchema": { "type": "PaginatedOrderDto[]" },
|
|
67
|
+
"errorCodes": [401, 403, 400, 500],
|
|
68
|
+
"module": "{moduleCode}"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"operation": "CreateOrder",
|
|
72
|
+
"method": "POST",
|
|
73
|
+
"route": "/api/orders",
|
|
74
|
+
"linkedUC": "UC-002",
|
|
75
|
+
"linkedFR": "FR-002",
|
|
76
|
+
"permissions": ["orders.create"],
|
|
77
|
+
"requestSchema": { "type": "body", "schema": "CreateOrderDto" },
|
|
78
|
+
"responseSchema": { "type": "OrderDto" },
|
|
79
|
+
"errorCodes": [400, 401, 403, 422, 500],
|
|
80
|
+
"module": "{moduleCode}"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
For each endpoint:
|
|
87
|
+
- **operation**: Use case name
|
|
88
|
+
- **method**: HTTP method (GET, POST, PUT, DELETE, PATCH)
|
|
89
|
+
- **route**: Full API path from specification
|
|
90
|
+
- **linkedUC/linkedFR**: Use case and feature requirement IDs
|
|
91
|
+
- **permissions**: Array of exact permission paths
|
|
92
|
+
- **requestSchema**: Input contract (query params or body)
|
|
93
|
+
- **responseSchema**: Output contract
|
|
94
|
+
- **errorCodes**: Expected HTTP error codes
|
|
95
|
+
- **module**: Which module
|