@pavp/storywright 1.3.0 → 1.4.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/commands/story-refine.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Audit an existing user story and fill gaps in place
|
|
3
|
-
argument-hint: <paste existing story>
|
|
2
|
+
description: Audit an existing user story and fill gaps in place (supports text + optional image / Figma companion)
|
|
3
|
+
argument-hint: <paste existing story> [+ attach image or paste Figma URL for cross-source check]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Invoke the `story-refine` skill from the storywright pack to audit and improve this story:
|
|
@@ -9,6 +9,7 @@ $ARGUMENTS
|
|
|
9
9
|
|
|
10
10
|
Follow the skill's procedure:
|
|
11
11
|
|
|
12
|
+
0. Detect companion sources (image, figma-link). If present, run conflict detection between the story text and the design BEFORE filling sections. Surface conflicts as BLOCKING clarifications; never silently rewrite the story to match the design.
|
|
12
13
|
1. Parse the existing story into the section taxonomy. Mark each section: present / missing / weak.
|
|
13
14
|
2. Gap-check weak sections via `clarification-questions`. Ask only BLOCKING questions.
|
|
14
15
|
3. Detect language and preserve it in output.
|
package/commands/story-split.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Split an oversize story into an epic + child stories using INVEST + Humanizing Work patterns
|
|
3
|
-
argument-hint: <paste oversize story>
|
|
3
|
+
argument-hint: <paste oversize story> [+ optional image / Figma URL for flow inventory]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Invoke the `story-split` skill from the storywright pack to split this story:
|
|
@@ -9,6 +9,7 @@ $ARGUMENTS
|
|
|
9
9
|
|
|
10
10
|
Follow the skill's procedure:
|
|
11
11
|
|
|
12
|
+
0. Detect companion sources (image, figma-link). If present, use them to inventory candidate sub-flows (prototype links, frame structure). If Figma shows N flows but text mentions K (K < N), surface as BLOCKING clarification before drafting the split plan. Text is canonical for scope of the epic; design is canonical for flow structure.
|
|
12
13
|
1. Run `invest-checklist` and apply the pre-split gates:
|
|
13
14
|
- If Valuable FAILS → NOT A STORY. Don't split. Stop.
|
|
14
15
|
- If Testable / Negotiable FAILS → fix in place, don't split. Stop.
|
package/package.json
CHANGED
|
@@ -6,6 +6,8 @@ intent: Refinement skill for stories that already exist but are incomplete or we
|
|
|
6
6
|
version: 1.0.0
|
|
7
7
|
inputs:
|
|
8
8
|
- text
|
|
9
|
+
- image
|
|
10
|
+
- figma-link
|
|
9
11
|
outputs:
|
|
10
12
|
- story.jira-wiki.md
|
|
11
13
|
- story.standard.md
|
|
@@ -37,9 +39,19 @@ For oversized stories that fail `Independent / Estimable / Small`, hand off to `
|
|
|
37
39
|
## Inputs & interpretation
|
|
38
40
|
|
|
39
41
|
- **text** — existing story. Detect which sections are present, which are missing, which are weak.
|
|
42
|
+
- **image (optional)** — companion screenshot/mockup the story references. Use to validate UI claims and surface missing edge cases / states.
|
|
43
|
+
- **figma-link (optional)** — companion design. Use to enrich Technical Considerations, Edge Cases (states shown but not in story), and to detect scope mismatches.
|
|
44
|
+
|
|
45
|
+
### Mixed inputs
|
|
46
|
+
|
|
47
|
+
When the user pastes a story plus an image / Figma link, apply the source-priority matrix from `[[story-generate]]` "Mixed inputs" section:
|
|
48
|
+
- Story text remains canonical for `User Story / Scope / Business Goal`.
|
|
49
|
+
- Image/Figma is canonical for `Components / States / Edge Cases / UX flow`.
|
|
50
|
+
- Surface conflicts as BLOCKING clarifications (e.g., story says "single provider" but Figma shows multiple). Never silently rewrite the story to match the design without asking.
|
|
40
51
|
|
|
41
52
|
## Application (step-by-step)
|
|
42
53
|
|
|
54
|
+
0. **Detect companion sources** (image, figma-link). If present, run conflict detection against the story text BEFORE filling sections. Add detected conflicts to the gap-check output.
|
|
43
55
|
1. **Parse the existing story.** Map content into the 15-section taxonomy. Note: present / missing / weak.
|
|
44
56
|
2. **Gap-check the weak sections** via `[[clarification-questions]]`. If gaps are inferrable, mark `⚠️ Assumed` and proceed. Only ask BLOCKING questions.
|
|
45
57
|
3. **Detect language** of the existing story; preserve it in the output.
|
|
@@ -6,6 +6,8 @@ intent: Splitting skill that uses the INVEST failure reasons (from invest-checkl
|
|
|
6
6
|
version: 1.0.0
|
|
7
7
|
inputs:
|
|
8
8
|
- text
|
|
9
|
+
- image
|
|
10
|
+
- figma-link
|
|
9
11
|
outputs:
|
|
10
12
|
- split-plan.md
|
|
11
13
|
- epic.md
|
|
@@ -28,6 +30,16 @@ When a story is an epic in disguise, splitting badly is worse than not splitting
|
|
|
28
30
|
## Inputs & interpretation
|
|
29
31
|
|
|
30
32
|
- **text** — the oversize story (or a one-line goal that's clearly epic-scoped).
|
|
33
|
+
- **image (optional)** — companion mockup. Use to validate scope and reveal hidden sub-flows the text doesn't mention.
|
|
34
|
+
- **figma-link (optional)** — companion design. Often makes splitting easier: prototype links and frame structure reveal natural flow boundaries that map to children.
|
|
35
|
+
|
|
36
|
+
### Mixed inputs
|
|
37
|
+
|
|
38
|
+
When the user provides text + image / Figma alongside the story:
|
|
39
|
+
- **Text is canonical for User Story / Scope / Business Goal** of the epic.
|
|
40
|
+
- **Figma / image is canonical for flow structure** — use prototype links to enumerate candidate sub-flows. Each flow is a candidate child story.
|
|
41
|
+
- **Conflict handling:** if Figma shows N flows but text only mentions K (K < N), surface this in the gap-check via `[[clarification-questions]]` BEFORE drafting the split plan. Ask: "Figma includes flows for X, Y, Z — include in this epic, or scope out?" Never silently expand or shrink scope.
|
|
42
|
+
- See `[[story-generate]]` "Mixed inputs" for the full source-priority matrix.
|
|
31
43
|
|
|
32
44
|
## Application (step-by-step)
|
|
33
45
|
|