@avesta-hq/prevention 0.6.0-pre.21 → 0.6.0-pre.22

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.
@@ -16,4 +16,4 @@ If `success` is false: Display the `error` to the user and stop.
16
16
  Show the result to the user:
17
17
  - Project type
18
18
  - Whether it needs scaffolding (`needs_scaffold`)
19
- - Next step from `next_step` field: if "scaffold" → tell user to run `/avesta-scaffold`, if "vision" tell user to run `/avesta-vision`
19
+ - Next step: tell user to run `/avesta-vision` to define what they're building.
@@ -7,21 +7,18 @@ Call `avesta_dispatch(user_input="$ARGUMENTS", current_command="scaffold")`.
7
7
 
8
8
  If `gate_check.allowed` is false: Display the `error_message` to the user and stop.
9
9
 
10
- ## Feature name
11
-
12
- Use `AskUserQuestion` to ask: "What is the main thing your app does? This becomes your first feature folder (e.g. 'todo', 'identity', 'catalog'). Use a short, lowercase, singular noun."
13
-
14
- Wait for the answer. Store it as `feature_name`.
15
-
16
10
  ## Spawn
17
11
 
18
- Use the **Agent tool** with `subagent_type: "avesta-scaffolder"` and the following promptsubstituting actual values for `[project_type]` and `[feature_name]`:
12
+ Do NOT ask the user for a feature name. The scaffolder agent derives it automatically from `.avesta/docs/user-story-map/story-map.html` (rendered by `/avesta-shape` Step 6) first MVP story text, falling back to the product name from `<h1><em>` or `<title>`.
13
+
14
+ Use the **Agent tool** with `subagent_type: "avesta-scaffolder"` and the following prompt — substituting the actual value for `[project_type]`:
19
15
 
20
16
  ```
21
17
  IMPORTANT: Your FIRST action must be to call avesta_get_prompt("scaffolder") with context {project_type: "[project_type from dispatch]"} to load your full instructions. Then call avesta_load_skill for EVERY skill in skills_to_load before doing anything else. Read the checkpoint manifest via avesta_get_checkpoint_manifest() and resume from the next un-advanced checkpoint — do not re-ask questions whose answers were already captured.
22
18
 
19
+ When you call avesta_scaffold, omit the feature_name parameter — the tool resolves it from .avesta/docs/user-story-map/story-map.html and returns the resolved value in feature_name with feature_name_source. If the tool errors because the HTML is missing, surface the error and tell the user to run /avesta-shape to completion before scaffolding. Do NOT ask the user for a feature name and do NOT volunteer example names.
20
+
23
21
  User request: $ARGUMENTS
24
- Feature name: [feature_name]
25
22
  Dispatch result: [full dispatch response]
26
23
  ```
27
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avesta-hq/prevention",
3
- "version": "0.6.0-pre.21",
3
+ "version": "0.6.0-pre.22",
4
4
  "description": "XP/CD development agent commands for Claude Code - achieve Elite DORA metrics through disciplined TDD and Continuous Delivery practices",
5
5
  "keywords": [
6
6
  "claude-code",