@atlashub/smartstack-cli 1.34.0 → 1.36.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/.documentation/installation.html +56 -31
- package/dist/index.js +1098 -582
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/agents/docs-context-reader.md +125 -0
- package/templates/agents/docs-sync-checker.md +122 -0
- package/templates/hooks/docs-drift-check.md +97 -0
- package/templates/skills/_resources/context-digest-template.md +53 -0
- package/templates/skills/_resources/doc-context-cache.md +62 -0
- package/templates/skills/_resources/docs-manifest-schema.md +157 -0
- package/templates/skills/_resources/mcp-validate-documentation-spec.md +183 -0
- package/templates/skills/_shared.md +15 -7
- package/templates/skills/apex/SKILL.md +6 -0
- package/templates/skills/apex/steps/step-00-init.md +9 -0
- package/templates/skills/apex/steps/step-01-analyze.md +36 -0
- package/templates/skills/apex/steps/step-02-plan.md +38 -0
- package/templates/skills/apex/steps/step-03-execute.md +39 -0
- package/templates/skills/apex/steps/step-04-validate.md +31 -1
- package/templates/skills/apex/steps/step-04b-doc-sync.md +162 -0
- package/templates/skills/apex/steps/step-05-examine.md +7 -0
- package/templates/skills/apex/templates/04b-doc-sync.md +31 -0
- package/templates/skills/apex/templates/context-digest.md +35 -0
- package/templates/skills/application/steps/step-04-backend.md +17 -17
- package/templates/skills/application/steps/step-05-frontend.md +4 -1
- package/templates/skills/application/templates-backend.md +8 -8
- package/templates/skills/application/templates-frontend.md +8 -8
- package/templates/skills/business-analyse/SKILL.md +18 -5
- package/templates/skills/business-analyse/_shared.md +306 -4
- package/templates/skills/business-analyse/questionnaire/01-context.md +21 -6
- package/templates/skills/business-analyse/questionnaire/02-stakeholders.md +34 -0
- package/templates/skills/business-analyse/questionnaire/03-scope.md +23 -0
- package/templates/skills/business-analyse/questionnaire/04-data.md +44 -0
- package/templates/skills/business-analyse/questionnaire/05-integrations.md +29 -7
- package/templates/skills/business-analyse/questionnaire/06-security.md +28 -0
- package/templates/skills/business-analyse/questionnaire/07-ui.md +32 -7
- package/templates/skills/business-analyse/questionnaire/08-performance.md +21 -0
- package/templates/skills/business-analyse/questionnaire/09-constraints.md +29 -6
- package/templates/skills/business-analyse/questionnaire/10-documentation.md +27 -6
- package/templates/skills/business-analyse/questionnaire/11-data-lifecycle.md +59 -0
- package/templates/skills/business-analyse/questionnaire/12-migration.md +58 -0
- package/templates/skills/business-analyse/questionnaire/13-cross-module.md +69 -0
- package/templates/skills/business-analyse/steps/step-00-init.md +110 -16
- package/templates/skills/business-analyse/steps/step-01-discover.md +530 -85
- package/templates/skills/business-analyse/steps/step-02-analyse.md +81 -25
- package/templates/skills/business-analyse/steps/step-03-specify.md +116 -24
- package/templates/skills/business-analyse/steps/step-04-validate.md +107 -33
- package/templates/skills/business-analyse/steps/step-05-handoff.md +256 -33
- package/templates/skills/business-analyse/steps/step-06-doc-html.md +84 -25
- package/templates/skills/business-analyse/templates/{frd-handoff.md → tpl-handoff.md} +18 -4
- package/templates/skills/business-analyse/templates-frd.md +19 -5
- package/templates/skills/business-analyse/tracking/change-template.md +30 -0
- package/templates/skills/documentation/SKILL.md +68 -31
- package/templates/skills/documentation/data-schema.md +198 -0
- package/templates/skills/documentation/templates.md +30 -1
- package/templates/skills/gitflow/_shared.md +188 -53
- package/templates/skills/gitflow/phases/abort.md +28 -16
- package/templates/skills/gitflow/phases/cleanup.md +13 -9
- package/templates/skills/gitflow/phases/status.md +16 -17
- package/templates/skills/gitflow/steps/step-commit.md +11 -5
- package/templates/skills/gitflow/steps/step-finish.md +43 -33
- package/templates/skills/gitflow/steps/step-init.md +134 -2
- package/templates/skills/gitflow/steps/step-merge.md +24 -10
- package/templates/skills/gitflow/steps/step-pr.md +42 -28
- package/templates/skills/gitflow/steps/step-start.md +19 -13
- package/templates/skills/gitflow/templates/config.json +14 -4
- package/templates/skills/ralph-loop/SKILL.md +58 -9
- package/templates/skills/ralph-loop/steps/step-00-init.md +170 -30
- package/templates/skills/ralph-loop/steps/step-01-task.md +243 -40
- package/templates/skills/ralph-loop/steps/step-02-execute.md +142 -24
- package/templates/skills/ralph-loop/steps/step-03-commit.md +140 -36
- package/templates/skills/ralph-loop/steps/step-04-check.md +128 -44
- package/templates/skills/ralph-loop/steps/step-05-report.md +175 -88
- /package/templates/skills/business-analyse/templates/{frd-brd.md → tpl-brd.md} +0 -0
- /package/templates/skills/business-analyse/templates/{frd-discovery.md → tpl-discovery.md} +0 -0
- /package/templates/skills/business-analyse/templates/{frd-spec.md → tpl-frd.md} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: step-00-init
|
|
3
3
|
description: Initialize Business Analysis - Parse flags, create structure, setup state
|
|
4
|
-
model: haiku
|
|
5
4
|
next_step: steps/step-01-discover.md
|
|
6
5
|
---
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
## YOUR TASK:
|
|
8
|
+
|
|
9
9
|
Parse command-line flags, create feature directory structure, and initialize state variables for the Business Analysis workflow.
|
|
10
|
-
</objective>
|
|
11
10
|
|
|
12
11
|
<defaults>
|
|
13
12
|
```yaml
|
|
@@ -18,7 +17,7 @@ context: business # BA is RESTRICTED to business context
|
|
|
18
17
|
```
|
|
19
18
|
</defaults>
|
|
20
19
|
|
|
21
|
-
## EXECUTION SEQUENCE
|
|
20
|
+
## EXECUTION SEQUENCE:
|
|
22
21
|
|
|
23
22
|
### 1. Parse Flags and Input
|
|
24
23
|
|
|
@@ -57,9 +56,10 @@ After removing flags, remaining text becomes `{feature_description}`
|
|
|
57
56
|
|
|
58
57
|
If `{resume_task}` is set:
|
|
59
58
|
1. Search for matching feature in `.business-analyse/`
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
Use Glob tool to search for matching feature:
|
|
60
|
+
- Pattern: `.business-analyse/**/features/*{resume_task}*`
|
|
61
|
+
- If match found: read 00-context.md from that directory
|
|
62
|
+
- If no match: list available features for user selection
|
|
63
63
|
2. If found: Read `00-context.md` to restore state variables
|
|
64
64
|
3. Find last completed step (look for "Status: Complete" in progress table)
|
|
65
65
|
4. Load next incomplete step
|
|
@@ -72,6 +72,30 @@ If NOT found:
|
|
|
72
72
|
|
|
73
73
|
---
|
|
74
74
|
|
|
75
|
+
### 2b. Verify MCP Availability
|
|
76
|
+
|
|
77
|
+
**Check SmartStack MCP (non-blocking):**
|
|
78
|
+
|
|
79
|
+
Call `mcp__smartstack__validate_conventions` with minimal parameters to verify connectivity.
|
|
80
|
+
|
|
81
|
+
| MCP Status | Behavior |
|
|
82
|
+
|------------|----------|
|
|
83
|
+
| Available | Full mode - use MCP tools in all steps |
|
|
84
|
+
| Unavailable | Degraded mode - warn user, skip MCP calls, use manual exploration |
|
|
85
|
+
|
|
86
|
+
Store: `{mcp_available}` = true/false
|
|
87
|
+
|
|
88
|
+
**Display if unavailable:**
|
|
89
|
+
```
|
|
90
|
+
Warning: SmartStack MCP unavailable. Running in degraded mode.
|
|
91
|
+
Run `smartstack check-mcp` to diagnose.
|
|
92
|
+
BA will continue without MCP validation.
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Add to state variables:** `{mcp_available}` persisted in 00-context.md
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
75
99
|
### 3. Interactive Mode (if -i flag)
|
|
76
100
|
|
|
77
101
|
If `{interactive_mode}` = true:
|
|
@@ -151,6 +175,36 @@ Store in:
|
|
|
151
175
|
|
|
152
176
|
---
|
|
153
177
|
|
|
178
|
+
### 5b. Select Communication Language
|
|
179
|
+
|
|
180
|
+
```json
|
|
181
|
+
{
|
|
182
|
+
"questions": [
|
|
183
|
+
{
|
|
184
|
+
"question": "Dans quelle langue souhaitez-vous communiquer ?",
|
|
185
|
+
"header": "Langue",
|
|
186
|
+
"options": [
|
|
187
|
+
{"label": "Français (Recommandé)", "description": "Toutes les interactions et documents en français"},
|
|
188
|
+
{"label": "English", "description": "All interactions and documents in English"},
|
|
189
|
+
{"label": "Italiano", "description": "Tutte le interazioni e i documenti in italiano"},
|
|
190
|
+
{"label": "Deutsch", "description": "Alle Interaktionen und Dokumente auf Deutsch"}
|
|
191
|
+
],
|
|
192
|
+
"multiSelect": false
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Map selection to `{language}`:
|
|
199
|
+
- "Français" → `fr`
|
|
200
|
+
- "English" → `en`
|
|
201
|
+
- "Italiano" → `it`
|
|
202
|
+
- "Deutsch" → `de`
|
|
203
|
+
|
|
204
|
+
**Default:** `fr` (si non spécifié)
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
154
208
|
### 6. Generate Feature ID
|
|
155
209
|
|
|
156
210
|
```bash
|
|
@@ -233,8 +287,26 @@ Create initial context file with state variables:
|
|
|
233
287
|
| application_name | {{application_name}} |
|
|
234
288
|
| module_name | {{module_name}} |
|
|
235
289
|
| context | business |
|
|
290
|
+
| language | {{language}} |
|
|
291
|
+
| mcp_available | {{mcp_available}} |
|
|
236
292
|
| permission_base | business.{{application_name}}.{{module_name}} |
|
|
237
293
|
|
|
294
|
+
## Discovery Metadata (updated by step-01)
|
|
295
|
+
|
|
296
|
+
| Variable | Value |
|
|
297
|
+
|----------|-------|
|
|
298
|
+
| feature_type | (TBD in step-01) |
|
|
299
|
+
| mcp_available | {{mcp_available}} |
|
|
300
|
+
| categories_loaded | (TBD in step-01) |
|
|
301
|
+
|
|
302
|
+
## Risk Register (updated by step-01)
|
|
303
|
+
|
|
304
|
+
(TBD in step-01)
|
|
305
|
+
|
|
306
|
+
## Codebase Context Summary (updated by step-01)
|
|
307
|
+
|
|
308
|
+
(TBD in step-01)
|
|
309
|
+
|
|
238
310
|
## Acceptance Criteria
|
|
239
311
|
|
|
240
312
|
To be defined in step-01-discover.
|
|
@@ -257,6 +329,7 @@ Update `.business-analyse/config.json`:
|
|
|
257
329
|
"project": "{ProjectName}",
|
|
258
330
|
"lastFeatureId": {NEW_ID},
|
|
259
331
|
"context": "business",
|
|
332
|
+
"language": "{language}",
|
|
260
333
|
"standards": ["BABOK-v3", "IEEE-830"],
|
|
261
334
|
"contact": "support@atlshub.ch"
|
|
262
335
|
}
|
|
@@ -267,14 +340,16 @@ Update `.business-analyse/config.json`:
|
|
|
267
340
|
### 10. Display Summary and Load Next Step
|
|
268
341
|
|
|
269
342
|
**Display:**
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
343
|
+
|
|
344
|
+
| Field | Value |
|
|
345
|
+
|-------|-------|
|
|
346
|
+
| Step | INIT |
|
|
347
|
+
| Feature | {{feature_id}} |
|
|
348
|
+
| Application | business/{{application_name}} |
|
|
349
|
+
| Module | {{module_name}} |
|
|
350
|
+
| Output | {{output_dir}} |
|
|
351
|
+
| Mode | {{auto_mode ? "Autonomous" : "Interactive"}} |
|
|
352
|
+
| Next | step-01-discover (ULTRATHINK elicitation) |
|
|
278
353
|
|
|
279
354
|
**Load next step:**
|
|
280
355
|
```
|
|
@@ -283,7 +358,7 @@ Read and execute: steps/step-01-discover.md
|
|
|
283
358
|
|
|
284
359
|
---
|
|
285
360
|
|
|
286
|
-
## OUTPUT
|
|
361
|
+
## OUTPUT FORMAT:
|
|
287
362
|
|
|
288
363
|
This step produces:
|
|
289
364
|
- `.business-analyse/config.json` (updated)
|
|
@@ -291,3 +366,22 @@ This step produces:
|
|
|
291
366
|
- `{output_dir}/tracking/` directories (created)
|
|
292
367
|
|
|
293
368
|
State variables persisted for next steps.
|
|
369
|
+
|
|
370
|
+
## ERROR HANDLING:
|
|
371
|
+
|
|
372
|
+
**If resume feature not found:**
|
|
373
|
+
1. List available features in `.business-analyse/`
|
|
374
|
+
2. Ask user to select or start new analysis
|
|
375
|
+
|
|
376
|
+
**If config.json missing or corrupted:**
|
|
377
|
+
1. Create fresh config.json with defaults
|
|
378
|
+
2. Set lastFeatureId to 0
|
|
379
|
+
3. Warn user: "Config reset to defaults"
|
|
380
|
+
|
|
381
|
+
**If directory creation fails:**
|
|
382
|
+
1. Check write permissions
|
|
383
|
+
2. Suggest running with elevated privileges
|
|
384
|
+
|
|
385
|
+
## NEXT STEP:
|
|
386
|
+
|
|
387
|
+
After completion, proceed to `steps/step-01-discover.md`
|