@odarino/haren 1.1.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/content/agents/architect.md +69 -0
- package/content/agents/developer.md +62 -0
- package/content/agents/feedback.md +42 -0
- package/content/agents/ideator.md +68 -0
- package/content/agents/planner.md +81 -0
- package/content/agents/qa-engineer.md +337 -0
- package/content/agents/researcher.md +57 -0
- package/content/agents/reviewer.md +74 -0
- package/content/skills/audit-workspace/SKILL.md +183 -0
- package/content/skills/create-artifact/SKILL.md +41 -0
- package/content/skills/decompose/SKILL.md +74 -0
- package/content/skills/discover/SKILL.md +54 -0
- package/content/skills/discover/blueprint.md +27 -0
- package/content/skills/discover/explore.md +33 -0
- package/content/skills/discover/inherit.md +34 -0
- package/content/skills/evaluate/SKILL.md +99 -0
- package/content/skills/extract-stories/SKILL.md +287 -0
- package/content/skills/generate-mockup/SKILL.md +140 -0
- package/content/skills/ideate/SKILL.md +150 -0
- package/content/skills/implement/SKILL.md +68 -0
- package/content/skills/plan/SKILL.md +138 -0
- package/content/skills/read-context/SKILL.md +84 -0
- package/content/skills/research/SKILL.md +44 -0
- package/content/skills/resolve-next-id/SKILL.md +27 -0
- package/content/skills/search-artifact/SKILL.md +30 -0
- package/content/skills/update-links/SKILL.md +35 -0
- package/content/skills/update-tracking/SKILL.md +68 -0
- package/content/skills/validate-artifact/SKILL.md +78 -0
- package/content/templates/architecture.md +51 -0
- package/content/templates/concept-brief.md +45 -0
- package/content/templates/context-brief.md +34 -0
- package/content/templates/design.md +25 -0
- package/content/templates/iteration.md +49 -0
- package/content/templates/module-map.md +25 -0
- package/content/templates/module.md +34 -0
- package/content/templates/research.md +33 -0
- package/content/templates/review.md +29 -0
- package/content/templates/session-log.md +21 -0
- package/content/templates/spec.md +50 -0
- package/content/templates/tasks.md +24 -0
- package/content/templates/team-workflow.md +203 -0
- package/dist/index.js +1458 -0
- package/package.json +49 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: extract-stories
|
|
3
|
+
description: Extract user stories from baseline documents (PDF, DOCX, XLSX) into module specs
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: researcher
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Extract Stories
|
|
9
|
+
|
|
10
|
+
Read baseline documents and produce structured user stories in `03-modules/{module}/spec.md`.
|
|
11
|
+
|
|
12
|
+
This is a **BA-owned** skill. It bridges raw input documents and actionable specs that devs can plan against.
|
|
13
|
+
|
|
14
|
+
## When to Use
|
|
15
|
+
|
|
16
|
+
- After baseline docs are dropped into `artifacts/00-baseline/`
|
|
17
|
+
- After discover + decompose phases (modules must exist)
|
|
18
|
+
- Before the plan phase (devs need stories to write tasks)
|
|
19
|
+
|
|
20
|
+
## Prerequisites
|
|
21
|
+
|
|
22
|
+
<HARD-GATE>
|
|
23
|
+
Before running this skill, verify:
|
|
24
|
+
1. `artifacts/00-baseline/` has at least one document
|
|
25
|
+
2. `artifacts/03-modules/module-map.md` exists (decompose was done)
|
|
26
|
+
3. Module folders exist in `artifacts/03-modules/{module}/`
|
|
27
|
+
|
|
28
|
+
If modules don't exist yet, tell the user to run discover → decompose first.
|
|
29
|
+
</HARD-GATE>
|
|
30
|
+
|
|
31
|
+
## Process
|
|
32
|
+
|
|
33
|
+
### Step 1: Inventory baseline documents
|
|
34
|
+
|
|
35
|
+
1. List all files in `artifacts/00-baseline/`
|
|
36
|
+
2. For any `.docx` or `.xlsx` files, convert to markdown first — most agents can't read binary formats, and even those that can will misparse tables:
|
|
37
|
+
```bash
|
|
38
|
+
pandoc "artifacts/00-baseline/doc.docx" -t markdown --columns=300 -o "artifacts/00-baseline/doc.md"
|
|
39
|
+
```
|
|
40
|
+
The `--columns=300` flag is critical: docx files often contain Field Description tables where pandoc's default 72-column wrapping splits cell content and bold markers across lines, causing data loss during extraction.
|
|
41
|
+
3. Read each document (PDF, DOCX, XLSX, markdown, images)
|
|
42
|
+
4. For each document, note:
|
|
43
|
+
- Document type (PRD, wireframe, spreadsheet, meeting notes, etc.)
|
|
44
|
+
- What modules it likely relates to
|
|
45
|
+
- How detailed it is (high-level goals vs. specific requirements)
|
|
46
|
+
|
|
47
|
+
Present the inventory to the user:
|
|
48
|
+
> "I found N documents in baseline. Here's what I see:
|
|
49
|
+
> - `requirements.pdf` — PRD covering auth and billing modules
|
|
50
|
+
> - `data-model.xlsx` — database schema for user and payments tables
|
|
51
|
+
> - `notes.md` — meeting notes with misc requirements
|
|
52
|
+
>
|
|
53
|
+
> I'll extract stories from these. Ready to proceed?"
|
|
54
|
+
|
|
55
|
+
### Step 2: Read the module map
|
|
56
|
+
|
|
57
|
+
1. Read `artifacts/03-modules/module-map.md` for the list of modules
|
|
58
|
+
2. Read each `artifacts/03-modules/{module}/module.md` for responsibilities
|
|
59
|
+
3. This tells you which module each requirement belongs to
|
|
60
|
+
|
|
61
|
+
### Step 3: Build a section map
|
|
62
|
+
|
|
63
|
+
Before extracting, build a mapping of baseline sections → modules. This is the critical step that prevents missed sections.
|
|
64
|
+
|
|
65
|
+
1. List every use case section in the baseline doc (headings, bold-text headings, numbered sections)
|
|
66
|
+
2. Count them and record the total — this is your **expected story count**
|
|
67
|
+
3. Map each section to a module based on module responsibilities
|
|
68
|
+
4. Flag any section that doesn't fit a module — ask user where it belongs
|
|
69
|
+
5. Flag any contradictions between documents — ask user to resolve
|
|
70
|
+
|
|
71
|
+
Present the section map to the user:
|
|
72
|
+
> "I found 23 use case sections in the baseline. Here's the mapping:
|
|
73
|
+
>
|
|
74
|
+
> | Section | Title | Module |
|
|
75
|
+
> |---------|-------|--------|
|
|
76
|
+
> | 1.1 | View ShareAll Listing | share-all |
|
|
77
|
+
> | 1.2 | Export ShareAll Data | share-all |
|
|
78
|
+
> | ... | ... | ... |
|
|
79
|
+
>
|
|
80
|
+
> Does this mapping look right?"
|
|
81
|
+
|
|
82
|
+
This map is your checklist — every section must produce a story. You'll verify against it in Step 6.
|
|
83
|
+
|
|
84
|
+
### Step 4: Write stories — one module at a time
|
|
85
|
+
|
|
86
|
+
<HARD-GATE>
|
|
87
|
+
Process ONE module at a time. Do NOT batch all modules in a single pass — long outputs cause attention degradation and dropped sections.
|
|
88
|
+
|
|
89
|
+
If subagents are available (Claude Code with Agent tool, or similar), dispatch one subagent per module in parallel. Each subagent receives:
|
|
90
|
+
- The skill instructions (this file)
|
|
91
|
+
- Only the relevant baseline sections for its module (not the full doc)
|
|
92
|
+
- The module.md for context
|
|
93
|
+
- The section map entries for its module (so it knows exactly which sections to extract)
|
|
94
|
+
|
|
95
|
+
If subagents are not available, process sequentially. Present stories to the user for review before moving to the next module.
|
|
96
|
+
</HARD-GATE>
|
|
97
|
+
|
|
98
|
+
For each module:
|
|
99
|
+
|
|
100
|
+
1. Group related requirements into user stories
|
|
101
|
+
2. Assign IDs: `STORY-001`, `STORY-002`, etc. (sequential per module)
|
|
102
|
+
3. Present the stories to the user for approval before writing the spec
|
|
103
|
+
|
|
104
|
+
### Step 5: Fill in the spec
|
|
105
|
+
|
|
106
|
+
<HARD-GATE>
|
|
107
|
+
Every story MUST follow this exact structure. No exceptions, no variations, no renaming sections, no merging sections, no skipping sections. This applies whether you are the main agent or a subagent.
|
|
108
|
+
</HARD-GATE>
|
|
109
|
+
|
|
110
|
+
For each approved module, write the full spec using this template:
|
|
111
|
+
|
|
112
|
+
```markdown
|
|
113
|
+
---
|
|
114
|
+
module: {module name}
|
|
115
|
+
date: {today}
|
|
116
|
+
status: draft
|
|
117
|
+
owner: BA
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
# Spec: {module name}
|
|
121
|
+
|
|
122
|
+
## Changelog
|
|
123
|
+
|
|
124
|
+
| Date | Story | Change | Reason |
|
|
125
|
+
|------------|-------|-------------------------|-------------------|
|
|
126
|
+
| {today} | — | Initial extraction from baseline | Project kickoff |
|
|
127
|
+
|
|
128
|
+
## Requirements
|
|
129
|
+
|
|
130
|
+
### Functional
|
|
131
|
+
{Extracted from baseline — number each requirement}
|
|
132
|
+
|
|
133
|
+
### Non-Functional
|
|
134
|
+
{Extracted from baseline — measurable targets}
|
|
135
|
+
|
|
136
|
+
## User Stories
|
|
137
|
+
|
|
138
|
+
### STORY-001: {title}
|
|
139
|
+
- As a {role}, I want to {action} so that {benefit}
|
|
140
|
+
- Acceptance:
|
|
141
|
+
- {testable criterion}
|
|
142
|
+
- Source: {document name, section}
|
|
143
|
+
|
|
144
|
+
#### Primary Actors
|
|
145
|
+
{Copy from baseline. If not present, write "N/A"}
|
|
146
|
+
|
|
147
|
+
#### Trigger
|
|
148
|
+
{Copy from baseline. If not present, write "N/A"}
|
|
149
|
+
|
|
150
|
+
#### Precondition
|
|
151
|
+
{Copy from baseline. If not present, write "N/A"}
|
|
152
|
+
|
|
153
|
+
#### Screen Design
|
|
154
|
+
{Copy image reference from baseline. If not present, write "N/A"}
|
|
155
|
+
|
|
156
|
+
#### Field Description
|
|
157
|
+
|
|
158
|
+
{Copy the field table from baseline in pipe format. If not present, write "N/A"}
|
|
159
|
+
|
|
160
|
+
| Field Name | Control Type | Filter | Edit | Default Value | Description |
|
|
161
|
+
|------------|-------------|--------|------|---------------|-------------|
|
|
162
|
+
| {field} | {type} | {value} | {Y/N} | {value} | {description} |
|
|
163
|
+
|
|
164
|
+
#### Business Rules
|
|
165
|
+
|
|
166
|
+
{Copy the bullet list from baseline verbatim. If not present, write "N/A"}
|
|
167
|
+
|
|
168
|
+
- {rule 1 — copied exactly from baseline, not rephrased}
|
|
169
|
+
- {rule 2}
|
|
170
|
+
|
|
171
|
+
#### Postcondition
|
|
172
|
+
{Copy from baseline. If not present, write "N/A"}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Formatting rules for subsections
|
|
176
|
+
|
|
177
|
+
These rules are non-negotiable:
|
|
178
|
+
|
|
179
|
+
1. **Use the exact `####` heading names listed above** — do NOT rename them (e.g., "Acceptance (Behavior & Business Rules)" is wrong, use "Business Rules")
|
|
180
|
+
2. **Every story gets ALL subsection headings** — even if the baseline doesn't have that subsection, write the heading with "N/A" under it. This ensures uniform structure across all stories and modules.
|
|
181
|
+
3. **Tables MUST use pipe format** (`| col | col |`). The baseline may use grid tables (`+---+---+`) from pandoc — convert them. Do NOT use grid format. Copy every row — do NOT summarize or omit fields.
|
|
182
|
+
4. **Business Rules are bullet lists** — copy them exactly as written in the baseline. Do NOT rephrase, merge, or fold them into Acceptance criteria. Acceptance is a concise summary; Business Rules are the verbatim source-of-truth.
|
|
183
|
+
5. **If the baseline has extra subsections** not listed above (e.g., "Notification Rules", "Validation Rules"), add them as additional `####` headings after Postcondition. Keep the original name from the baseline.
|
|
184
|
+
|
|
185
|
+
### STORY-002: {title}
|
|
186
|
+
{Same structure as above — all subsection headings present}
|
|
187
|
+
...
|
|
188
|
+
|
|
189
|
+
## Interface Contracts
|
|
190
|
+
|
|
191
|
+
### Exposed by this module
|
|
192
|
+
{Derived from module.md interfaces}
|
|
193
|
+
|
|
194
|
+
### Required from other modules
|
|
195
|
+
{Derived from module.md dependencies}
|
|
196
|
+
|
|
197
|
+
## Definition of Done
|
|
198
|
+
- [ ] All acceptance criteria met
|
|
199
|
+
- [ ] Tests cover each story
|
|
200
|
+
- [ ] API contracts match interface section
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Step 6: Verify completeness
|
|
204
|
+
|
|
205
|
+
<HARD-GATE>
|
|
206
|
+
Before moving on, verify against the section map from Step 3. This is not optional.
|
|
207
|
+
</HARD-GATE>
|
|
208
|
+
|
|
209
|
+
1. Count the total stories written across all specs
|
|
210
|
+
2. Compare against the **expected story count** from Step 3
|
|
211
|
+
3. For each section in the section map, confirm a matching story exists in the spec
|
|
212
|
+
4. If any section is missing, go back and extract it — do not skip
|
|
213
|
+
|
|
214
|
+
Present the verification:
|
|
215
|
+
> "Verification against section map:
|
|
216
|
+
> - Expected: 23 sections
|
|
217
|
+
> - Extracted: 23 stories
|
|
218
|
+
> - Missing: none (or: missing section 3.1.1 — extracting now)"
|
|
219
|
+
|
|
220
|
+
### Step 7: Handle unmapped requirements
|
|
221
|
+
|
|
222
|
+
After verification passes:
|
|
223
|
+
1. List any requirements that couldn't be mapped to a module
|
|
224
|
+
2. Ask user: create a new module, or assign to an existing one?
|
|
225
|
+
3. If creating a new module, flag that decompose artifacts need updating
|
|
226
|
+
|
|
227
|
+
### Step 8: Generate story index
|
|
228
|
+
|
|
229
|
+
After all modules are written, generate (or update) `artifacts/_registry/story-index.md` — a cross-module view of every story:
|
|
230
|
+
|
|
231
|
+
```markdown
|
|
232
|
+
# Story Index
|
|
233
|
+
|
|
234
|
+
> Auto-generated by extract-stories. Do not edit manually.
|
|
235
|
+
|
|
236
|
+
| Story ID | Module | Title | PIC | Status | Source |
|
|
237
|
+
|-----------|----------|------------------------------|-----|--------|----------------------------|
|
|
238
|
+
| STORY-001 | auth | User can sign up with email | — | draft | requirements.pdf p.3 |
|
|
239
|
+
| STORY-002 | auth | User can reset password | — | draft | requirements.pdf p.4 |
|
|
240
|
+
| STORY-001 | billing | Monthly invoice generation | — | draft | data-model.xlsx |
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Rules for the story index:
|
|
244
|
+
- **PIC** defaults to `—` (assigned later by BA/PM)
|
|
245
|
+
- **Status** defaults to `draft` (mirrors the spec status)
|
|
246
|
+
- **Source** comes from the story's `Source:` line
|
|
247
|
+
- If the index already exists, merge new stories — do not drop existing rows that may have updated PIC/Status values
|
|
248
|
+
- Register the file in `artifacts/_registry/artifact-index.md` if that file exists
|
|
249
|
+
|
|
250
|
+
### Step 9: Summary
|
|
251
|
+
|
|
252
|
+
Present a final summary:
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
Extraction complete:
|
|
256
|
+
|
|
257
|
+
| Module | Stories | Source Documents |
|
|
258
|
+
|----------|---------|--------------------------|
|
|
259
|
+
| auth | 5 | requirements.pdf, notes.md |
|
|
260
|
+
| billing | 3 | requirements.pdf, data-model.xlsx |
|
|
261
|
+
| reports | 2 | notes.md |
|
|
262
|
+
|
|
263
|
+
Unmapped: 0 requirements
|
|
264
|
+
Story index: artifacts/_registry/story-index.md (N total stories)
|
|
265
|
+
|
|
266
|
+
Next step: devs can now run the plan skill on each module.
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
## Rules
|
|
270
|
+
|
|
271
|
+
- **One module at a time** — present, get approval, write, then next
|
|
272
|
+
- **Trace every story to its source** — include `Source:` line so BA can verify
|
|
273
|
+
- **Don't invent requirements** — only extract what's in the documents. If something seems implied but isn't stated, ask rather than assume
|
|
274
|
+
- **Flag gaps** — if a module has no stories from baseline, tell the user
|
|
275
|
+
- **Story IDs are per-module** — auth gets STORY-001, billing also gets STORY-001. They're namespaced by folder.
|
|
276
|
+
- **Acceptance criteria must be testable** — "should be fast" → "response time < 200ms"
|
|
277
|
+
- **Ask about ambiguity** — "the system should handle users" is not a story. Ask what specifically.
|
|
278
|
+
- **Update the story index** — after writing specs, always generate/update `artifacts/_registry/story-index.md`
|
|
279
|
+
- **Preserve all baseline subsections verbatim** — every subsection under a use case (tables, business rules, triggers, screen designs, etc.) must be copied into the story as-is. Do not summarize, paraphrase, or fold into acceptance criteria. These are the source-of-truth details.
|
|
280
|
+
- **Changelog on every spec edit** — when modifying an existing `spec.md` (adding stories, changing requirements), always add a new row to the Changelog table (Date, Story if applicable, Change summary, Reason)
|
|
281
|
+
|
|
282
|
+
## Tips
|
|
283
|
+
|
|
284
|
+
- Spreadsheets often contain data models — extract stories about CRUD operations on those entities
|
|
285
|
+
- PRDs often mix requirements with implementation details — extract the "what", ignore the "how"
|
|
286
|
+
- Meeting notes are messy — focus on action items and decisions, not discussions
|
|
287
|
+
- If a document is too vague to extract stories, flag it and ask the BA for clarification
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: generate-mockup
|
|
3
|
+
description: Generate ASCII wireframe mockups for screens during design phase
|
|
4
|
+
type: utility
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Generate Mockup
|
|
8
|
+
|
|
9
|
+
Generate ASCII wireframes for UI screens described in specs or designs. Output is markdown-formatted ASCII art — git-friendly, no external tools needed.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- During the **plan** phase when designing screens for a module
|
|
14
|
+
- When the user asks to visualize a UI layout
|
|
15
|
+
- When the spec references screens that need visual definition
|
|
16
|
+
|
|
17
|
+
## Input
|
|
18
|
+
|
|
19
|
+
- Screen name and purpose
|
|
20
|
+
- Key UI elements (components, fields, actions)
|
|
21
|
+
- Layout hints (sidebar, modal, table, form, tabs, etc.)
|
|
22
|
+
|
|
23
|
+
## ASCII Wireframe Conventions
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
┌─────────────────────────────────────────────┐ ← outer border
|
|
27
|
+
│ Page Title [Button] │ ← header bar
|
|
28
|
+
├─────────────────────────────────────────────┤ ← divider
|
|
29
|
+
│ ┌──────────┐ ┌───────────────────────────┐ │ ← two-column
|
|
30
|
+
│ │ Sidebar │ │ Main Content │ │
|
|
31
|
+
│ │ │ │ │ │
|
|
32
|
+
│ │ - Item 1 │ │ ┌─────────────────────┐ │ │ ← nested panel
|
|
33
|
+
│ │ - Item 2 │ │ │ Card / Panel │ │ │
|
|
34
|
+
│ │ │ │ └─────────────────────┘ │ │
|
|
35
|
+
│ └──────────┘ └───────────────────────────┘ │
|
|
36
|
+
└─────────────────────────────────────────────┘
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Component Library
|
|
40
|
+
|
|
41
|
+
**Text input:**
|
|
42
|
+
```
|
|
43
|
+
Label: [________________________]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Dropdown:**
|
|
47
|
+
```
|
|
48
|
+
Filter: [All Types ▼]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Button:**
|
|
52
|
+
```
|
|
53
|
+
[Primary Action] [Secondary] [Cancel]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Table:**
|
|
57
|
+
```
|
|
58
|
+
┌──────────────┬────────┬──────────┬────────┐
|
|
59
|
+
│ Column 1 │ Col 2 │ Col 3 │ Action │
|
|
60
|
+
├──────────────┼────────┼──────────┼────────┤
|
|
61
|
+
│ Row data │ value │ value │ [Edit] │
|
|
62
|
+
│ Row data │ value │ value │ [Edit] │
|
|
63
|
+
└──────────────┴────────┴──────────┴────────┘
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Badge / status:**
|
|
67
|
+
```
|
|
68
|
+
● Active ○ Inactive ◌ Unknown
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Progress:**
|
|
72
|
+
```
|
|
73
|
+
Loading... [████████░░░░░░░░] 52%
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Modal:**
|
|
77
|
+
```
|
|
78
|
+
╔═══════════════════════════════╗
|
|
79
|
+
║ Modal Title ✕ ║
|
|
80
|
+
╠═══════════════════════════════╣
|
|
81
|
+
║ Content here ║
|
|
82
|
+
║ ║
|
|
83
|
+
║ [Confirm] [Cancel] ║
|
|
84
|
+
╚═══════════════════════════════╝
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Tabs:**
|
|
88
|
+
```
|
|
89
|
+
┌────────┐────────┐────────┐
|
|
90
|
+
│ Tab 1 │ Tab 2 │ Tab 3 │
|
|
91
|
+
└────────┴────────┴────────┘
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Navigation bar:**
|
|
95
|
+
```
|
|
96
|
+
┌─────────────────────────────────────────┐
|
|
97
|
+
│ Logo Home Dashboard Settings 👤 │
|
|
98
|
+
└─────────────────────────────────────────┘
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Card grid:**
|
|
102
|
+
```
|
|
103
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
104
|
+
│ Card Title │ │ Card Title │ │ Card Title │
|
|
105
|
+
│ │ │ │ │ │
|
|
106
|
+
│ Description │ │ Description │ │ Description │
|
|
107
|
+
│ [Action] │ │ [Action] │ │ [Action] │
|
|
108
|
+
└──────────────┘ └──────────────┘ └──────────────┘
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Toast / notification:**
|
|
112
|
+
```
|
|
113
|
+
┌──────────────────────────────────┐
|
|
114
|
+
│ ✓ Success message here ✕ │
|
|
115
|
+
└──────────────────────────────────┘
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Output Format
|
|
119
|
+
|
|
120
|
+
Place wireframes in the design.md under the relevant screen:
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
### Screen: {Screen Name}
|
|
124
|
+
**Purpose:** {one sentence}
|
|
125
|
+
**Key elements:** {brief list}
|
|
126
|
+
|
|
127
|
+
\```
|
|
128
|
+
[ASCII wireframe here]
|
|
129
|
+
\```
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Rules
|
|
133
|
+
|
|
134
|
+
- Keep wireframes simple — communicate layout, not pixel-perfect design
|
|
135
|
+
- Use placeholder text: `[Field Label]`, `[Button Text]`, `Row data`
|
|
136
|
+
- Show realistic column counts and proportions
|
|
137
|
+
- Max width: 60 characters for wireframe content
|
|
138
|
+
- If a screen has tabs or states, show the primary state unless asked
|
|
139
|
+
- **Ask the user** if the layout looks right before moving to the next screen
|
|
140
|
+
- Wireframes go into `design.md`, not a separate file
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ideate
|
|
3
|
+
description: Transform raw ideas into research-backed concept briefs through structured research, user interviews, and synthesis
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: ideator
|
|
6
|
+
delegates:
|
|
7
|
+
- research
|
|
8
|
+
- resolve-next-id
|
|
9
|
+
- create-artifact
|
|
10
|
+
- validate-artifact
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Ideate
|
|
14
|
+
|
|
15
|
+
> **Trigger:** When the user presents a raw idea, concept, or "I want to build X" statement — read and follow this skill. Also read the agent definition at `haren/agents/ideator.md`.
|
|
16
|
+
|
|
17
|
+
Take a raw idea at any maturity level and transform it into a validated, research-backed concept brief. The concept brief becomes a baseline document for the Discover phase (blueprint mode).
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
When the Discover intent router detects a raw idea input — no baseline docs, no repos, and the user provides a statement of intent. This skill is invoked automatically; users do not need to call it directly.
|
|
22
|
+
|
|
23
|
+
## Pipeline
|
|
24
|
+
|
|
25
|
+
Six stages, always in order. Intensity adapts based on idea maturity.
|
|
26
|
+
|
|
27
|
+
### Stage 1: Intake & Assessment
|
|
28
|
+
|
|
29
|
+
Accept the user's input and classify idea maturity:
|
|
30
|
+
|
|
31
|
+
- **Nascent**: One-liner, vague idea, no context beyond the core concept
|
|
32
|
+
- **Emerging**: Concept with some context — the user knows the problem, audience, or constraints
|
|
33
|
+
- **Formed**: Hypothesis to validate — the user has a clear thesis and needs research to confirm or challenge it
|
|
34
|
+
|
|
35
|
+
Maturity determines intensity for Stages 2 and 3:
|
|
36
|
+
- Nascent → deep research (broad), deep interview (full)
|
|
37
|
+
- Emerging → moderate research (targeted gaps), targeted interview (specific gaps)
|
|
38
|
+
- Formed → light research (validation-focused), light interview (gap-filling)
|
|
39
|
+
|
|
40
|
+
**Output**: Maturity classification with rationale, stored in working memory for later stages.
|
|
41
|
+
|
|
42
|
+
### Stage 2: Research Spikes (automatic, parallel)
|
|
43
|
+
|
|
44
|
+
Resolve all required research IDs upfront using the `resolve-next-id` skill (call it once per spike, sequentially, before launching spikes in parallel).
|
|
45
|
+
|
|
46
|
+
Launch up to 3 research spikes by delegating to the `research` skill:
|
|
47
|
+
|
|
48
|
+
| Spike | Research Question | Intensity Guide |
|
|
49
|
+
|-------|-------------------|-----------------|
|
|
50
|
+
| Market | "What is the market landscape for {idea}? Existing solutions, competitors, market size, trends, gaps." | Nascent: broad survey. Emerging: targeted gaps. Formed: validation only. |
|
|
51
|
+
| Technical | "What are the technical feasibility considerations for {idea}? Tech options, known pitfalls, prior art." | Nascent: broad survey. Emerging: specific tech questions. Formed: validate chosen approach. |
|
|
52
|
+
| Internal | "What relevant prior work, lessons, or reusable assets exist in our projects and memory for {idea}?" | All levels: search memory / knowledge base, past project repos, git history. |
|
|
53
|
+
|
|
54
|
+
Each spike produces: `artifacts/01-research/RESEARCH-{NNN}-{slug}.md`
|
|
55
|
+
|
|
56
|
+
**Research artifact format**: Each spike MUST use the research template (`templates/research.md`). Required structure:
|
|
57
|
+
- Frontmatter: `id`, `title`, `question`, `status`, `date`, `related`
|
|
58
|
+
- Sections: `## Research Question`, `## Context`, `## Findings` (with `###` sub-topics), `## Recommendations`, `## Open Questions`, `## Related Artifacts`
|
|
59
|
+
|
|
60
|
+
Do NOT improvise section names — follow the template exactly.
|
|
61
|
+
|
|
62
|
+
**Failure handling**: If a spike fails (web search unavailable, memory unavailable, no past projects), log the failure, continue with available results, and note the gap in the concept brief's Research Summary.
|
|
63
|
+
|
|
64
|
+
**Intensity adjustment**: For "formed" ideas, the market and technical spikes focus on validating the user's thesis rather than broad exploration. The internal spike always runs at full depth.
|
|
65
|
+
|
|
66
|
+
### Stage 3: User Interview
|
|
67
|
+
|
|
68
|
+
Ask structured questions to capture domain expertise that research cannot find. Questions are adaptive — informed by Stage 2 findings.
|
|
69
|
+
|
|
70
|
+
**Core questions** (adapt based on maturity and research):
|
|
71
|
+
- "What problem are you personally experiencing?"
|
|
72
|
+
- "Who is this for? How do they solve this today?"
|
|
73
|
+
- "What would success look like in 3 months?"
|
|
74
|
+
- "What constraints do you already know about?"
|
|
75
|
+
|
|
76
|
+
**Adaptive rules**:
|
|
77
|
+
- If market research already identified competitors → skip "how do they solve this today?" and instead ask "Research found {competitors}. How is your idea different?"
|
|
78
|
+
- If technical research flagged a risk → ask about it: "Research flagged {risk}. Is that a concern for you?"
|
|
79
|
+
- If internal search found prior art → ask: "We found {prior project}. Is this related? Can we reuse anything?"
|
|
80
|
+
|
|
81
|
+
**Intensity**:
|
|
82
|
+
- Nascent: ask all core questions + follow-ups
|
|
83
|
+
- Emerging: ask only questions not already answered by the user's initial input
|
|
84
|
+
- Formed: ask only gap-filling questions based on research findings
|
|
85
|
+
|
|
86
|
+
### Stage 4: Synthesis
|
|
87
|
+
|
|
88
|
+
Combine research findings and user interview responses into a draft concept:
|
|
89
|
+
|
|
90
|
+
1. **Core value proposition** — what does this do and why does it matter?
|
|
91
|
+
2. **Target users** — who specifically benefits?
|
|
92
|
+
3. **Key goals** — break the concept into measurable outcomes (use G-1, G-2, ... format with success criteria and priority: must/should/could)
|
|
93
|
+
4. **Known risks** — from research findings, with severity and proposed mitigations
|
|
94
|
+
5. **Technical direction** — high-level only (language, major frameworks, deployment model if obvious)
|
|
95
|
+
6. **Open questions** — what still needs investigation in Discover?
|
|
96
|
+
|
|
97
|
+
Present the synthesis to the user as a summary before proceeding.
|
|
98
|
+
|
|
99
|
+
### Stage 5: Pivot Check
|
|
100
|
+
|
|
101
|
+
Review research findings for significant problems:
|
|
102
|
+
- Saturated market with no clear differentiator
|
|
103
|
+
- Technical infeasibility or extreme complexity
|
|
104
|
+
- Existing near-identical solution that's well-established
|
|
105
|
+
- Legal, regulatory, or compliance blockers
|
|
106
|
+
|
|
107
|
+
**If problems found**:
|
|
108
|
+
1. Brainstorm 2-3 alternative angles, differentiators, or pivots
|
|
109
|
+
2. Present to user: "Research found {problem}. Here are 3 ways to approach this differently: ..."
|
|
110
|
+
3. User picks a direction or insists on original
|
|
111
|
+
4. Update synthesis with chosen direction and document the pivot rationale
|
|
112
|
+
|
|
113
|
+
**If no problems found**: Quick pass-through — confirm with user that the synthesis looks good.
|
|
114
|
+
|
|
115
|
+
### Stage 6: Concept Brief
|
|
116
|
+
|
|
117
|
+
1. Present final summary to user and get explicit confirmation
|
|
118
|
+
2. Write `artifacts/00-baseline/concept-brief.md` using `create-artifact` skill with `templates/concept-brief.md` (the concept-brief template, not the context-brief template)
|
|
119
|
+
3. Validate with `validate-artifact` skill
|
|
120
|
+
4. Update `manifest.yaml`:
|
|
121
|
+
- Set `mode: blueprint`
|
|
122
|
+
- Add concept brief to `sources` array:
|
|
123
|
+
```yaml
|
|
124
|
+
sources:
|
|
125
|
+
- path: artifacts/00-baseline/concept-brief.md
|
|
126
|
+
type: concept-brief
|
|
127
|
+
generated_by: ideate
|
|
128
|
+
```
|
|
129
|
+
5. Update `progress.json` with ideate phase status:
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"ideate": {
|
|
133
|
+
"status": "completed",
|
|
134
|
+
"maturity": "{assessed maturity}",
|
|
135
|
+
"research_spikes": {number of successful spikes},
|
|
136
|
+
"pivoted": {true|false},
|
|
137
|
+
"concept_brief": "artifacts/00-baseline/concept-brief.md"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Output
|
|
143
|
+
|
|
144
|
+
- Research artifacts: `artifacts/01-research/RESEARCH-{NNN}-{slug}.md` (1-3 per ideation)
|
|
145
|
+
- Concept brief: `artifacts/00-baseline/concept-brief.md`
|
|
146
|
+
- Updated `manifest.yaml` with mode and sources
|
|
147
|
+
- Updated `progress.json` with ideate status
|
|
148
|
+
- Updated `artifacts/_registry/artifact-index.md`
|
|
149
|
+
|
|
150
|
+
After completion, the Discover phase picks up the concept brief as a baseline doc in blueprint mode. No manual handoff required.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement
|
|
3
|
+
description: Implement a module's planned features one at a time
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: developer
|
|
6
|
+
delegates:
|
|
7
|
+
- superpowers:subagent-driven-development
|
|
8
|
+
- superpowers:test-driven-development
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Implement
|
|
12
|
+
|
|
13
|
+
Execute the implementation plan for a module, one feature at a time.
|
|
14
|
+
|
|
15
|
+
## Pre-Implementation (every session)
|
|
16
|
+
|
|
17
|
+
1. Run read-context skill to orient
|
|
18
|
+
2. Read tasks from the **active plan path** (see skill.md Plan Paths convention)
|
|
19
|
+
3. Read `progress.json` to find current feature status
|
|
20
|
+
4. Read `artifacts/05-implementation/{module}/task-{N}-{slug}.md` if it exists for the target feature (previous session context)
|
|
21
|
+
4. If iterations enabled, also read the **master plan path** for broader module context if needed
|
|
22
|
+
5. Pick the highest-priority feature in "pending" status
|
|
23
|
+
|
|
24
|
+
## Implementation Loop
|
|
25
|
+
|
|
26
|
+
For each feature:
|
|
27
|
+
|
|
28
|
+
1. Update feature status to "in-progress" via update-tracking skill
|
|
29
|
+
2. Delegate to superpowers:subagent-driven-development:
|
|
30
|
+
- Pass the full task description from tasks.md
|
|
31
|
+
- Pass the design context from design.md
|
|
32
|
+
- Ensure TDD discipline via superpowers:test-driven-development
|
|
33
|
+
3. After implementation:
|
|
34
|
+
- Commit code in the target repo with descriptive message
|
|
35
|
+
- Update feature status to "evaluating" via update-tracking skill
|
|
36
|
+
- Append to task session log (`task-{N}-{slug}.md`): what was done, decisions made, any deviations from plan
|
|
37
|
+
- Emit "feature-ready" event to events/events.jsonl
|
|
38
|
+
|
|
39
|
+
## Session Log
|
|
40
|
+
|
|
41
|
+
Each task gets its own session log file under `artifacts/05-implementation/{module}/`:
|
|
42
|
+
|
|
43
|
+
- **Convention:** `task-{number}-{slug}.md` where slug matches the feature key in `progress.json`
|
|
44
|
+
- **Examples:** `task-1-scaffold.md`, `task-2-sync-skills-api.md`, `task-5-analytics.md`
|
|
45
|
+
- This allows parallel development — each developer owns their task file with no merge conflicts
|
|
46
|
+
|
|
47
|
+
If iterations are enabled (check manifest.yaml for `iterations` block), include the **Iteration:** field in session log header with the value of `currentIteration` from progress.json. If not enabled, omit it.
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Session {date} {time}
|
|
51
|
+
|
|
52
|
+
### Working on: {feature-name}
|
|
53
|
+
- Key decisions made and why
|
|
54
|
+
- Files created/modified
|
|
55
|
+
- Commit hash
|
|
56
|
+
- Any deviations from the plan
|
|
57
|
+
|
|
58
|
+
### Next up
|
|
59
|
+
{next feature or "all features complete"}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Rules
|
|
63
|
+
|
|
64
|
+
- One feature at a time — finish and commit before starting the next
|
|
65
|
+
- Always write tests before implementation (TDD)
|
|
66
|
+
- If blocked, set feature to "blocked" and surface to user — don't guess
|
|
67
|
+
- If you need to deviate from the plan, document why in the session log
|
|
68
|
+
- Never modify haren/ files except progress.json and session logs
|