@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,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
iteration: {N}
|
|
3
|
+
start: {start_date}
|
|
4
|
+
end: {end_date}
|
|
5
|
+
demo: {demo_date}
|
|
6
|
+
status: planned | in-progress | complete
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Iteration {N}: {title}
|
|
10
|
+
|
|
11
|
+
## Goal
|
|
12
|
+
|
|
13
|
+
{one-line theme for this iteration}
|
|
14
|
+
|
|
15
|
+
## Planned Deliverables
|
|
16
|
+
|
|
17
|
+
### {module-1}
|
|
18
|
+
|
|
19
|
+
| Task | Assignee | Status |
|
|
20
|
+
|------|----------|--------|
|
|
21
|
+
| {task description} | {assignee} | pending |
|
|
22
|
+
|
|
23
|
+
### {module-2}
|
|
24
|
+
|
|
25
|
+
| Task | Assignee | Status |
|
|
26
|
+
|------|----------|--------|
|
|
27
|
+
| {task description} | {assignee} | pending |
|
|
28
|
+
|
|
29
|
+
## Demo Script
|
|
30
|
+
|
|
31
|
+
### {module-1}
|
|
32
|
+
1. {what to show}
|
|
33
|
+
2. {expected outcome}
|
|
34
|
+
|
|
35
|
+
### {module-2}
|
|
36
|
+
1. {what to show}
|
|
37
|
+
2. {expected outcome}
|
|
38
|
+
|
|
39
|
+
## Actual Outcomes
|
|
40
|
+
<!-- filled at end of iteration, split by module -->
|
|
41
|
+
|
|
42
|
+
### {module-1}
|
|
43
|
+
- {what shipped}
|
|
44
|
+
|
|
45
|
+
### {module-2}
|
|
46
|
+
- {what shipped}
|
|
47
|
+
|
|
48
|
+
## Retro Notes
|
|
49
|
+
<!-- what went well, what to improve -->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
date: {date}
|
|
3
|
+
total_modules: {N}
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Module Map
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
{Brief description of the module decomposition}
|
|
10
|
+
|
|
11
|
+
## Modules
|
|
12
|
+
|
|
13
|
+
| Module | Complexity | Repos | Dependencies |
|
|
14
|
+
|--------|-----------|-------|--------------|
|
|
15
|
+
|
|
16
|
+
## Dependency Graph
|
|
17
|
+
|
|
18
|
+
```mermaid
|
|
19
|
+
graph TD
|
|
20
|
+
A[module-a] --> B[module-b]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Implementation Order
|
|
24
|
+
1. {module} — {why first}
|
|
25
|
+
2. {module} — {depends on 1}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: {module name}
|
|
3
|
+
repos: [{repo keys from manifest}]
|
|
4
|
+
dependencies: [{module names}]
|
|
5
|
+
complexity: small | medium | large
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Module: {name}
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
{One paragraph — what this module does}
|
|
12
|
+
|
|
13
|
+
## Responsibilities
|
|
14
|
+
- {what this module owns}
|
|
15
|
+
|
|
16
|
+
## Interfaces
|
|
17
|
+
|
|
18
|
+
### Exposed
|
|
19
|
+
{What this module provides to others}
|
|
20
|
+
|
|
21
|
+
| Interface | Type | Description |
|
|
22
|
+
|-----------|------|-------------|
|
|
23
|
+
|
|
24
|
+
### Consumed
|
|
25
|
+
{What this module needs from others}
|
|
26
|
+
|
|
27
|
+
| Dependency | Interface | Description |
|
|
28
|
+
|------------|-----------|-------------|
|
|
29
|
+
|
|
30
|
+
## Target Repos
|
|
31
|
+
- {repo}: {what goes here}
|
|
32
|
+
|
|
33
|
+
## Related Artifacts
|
|
34
|
+
- Spec: `artifacts/03-modules/{module}/spec.md`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: RESEARCH-{NNN}
|
|
3
|
+
title: {title}
|
|
4
|
+
question: {research question}
|
|
5
|
+
status: in-progress
|
|
6
|
+
date: {date}
|
|
7
|
+
related: []
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# {title}
|
|
11
|
+
|
|
12
|
+
## Research Question
|
|
13
|
+
{What are we trying to find out?}
|
|
14
|
+
|
|
15
|
+
## Context
|
|
16
|
+
{Why does this matter? What decision does it inform?}
|
|
17
|
+
|
|
18
|
+
## Findings
|
|
19
|
+
|
|
20
|
+
### {Sub-topic 1}
|
|
21
|
+
{findings}
|
|
22
|
+
|
|
23
|
+
### {Sub-topic 2}
|
|
24
|
+
{findings}
|
|
25
|
+
|
|
26
|
+
## Recommendations
|
|
27
|
+
{What should we do based on these findings?}
|
|
28
|
+
|
|
29
|
+
## Open Questions
|
|
30
|
+
- {questions that remain unanswered}
|
|
31
|
+
|
|
32
|
+
## Related Artifacts
|
|
33
|
+
- {links to related artifacts}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
module: {module name}
|
|
3
|
+
feature: {feature name}
|
|
4
|
+
task: {task number}
|
|
5
|
+
verdict: pass | fail
|
|
6
|
+
attempt: {1|2|3}
|
|
7
|
+
date: {date}
|
|
8
|
+
reviewer: {assignee}
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Review: {module} — Task {N}: {feature name}
|
|
12
|
+
|
|
13
|
+
## Summary
|
|
14
|
+
{Brief assessment}
|
|
15
|
+
|
|
16
|
+
## Criteria
|
|
17
|
+
|
|
18
|
+
| Criterion | Result | Detail |
|
|
19
|
+
|-----------|--------|--------|
|
|
20
|
+
| Functionality | pass/fail | {detail} |
|
|
21
|
+
| Completeness | pass/fail | {detail} |
|
|
22
|
+
| Correctness | pass/fail | {detail} |
|
|
23
|
+
| Integration | pass/fail | {detail} |
|
|
24
|
+
|
|
25
|
+
## Issues
|
|
26
|
+
{If fail — numbered list with file:line, description, suggested fix}
|
|
27
|
+
|
|
28
|
+
## Test Report
|
|
29
|
+
{Test execution summary and coverage}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Task {N}: {task title}
|
|
2
|
+
|
|
3
|
+
**Module:** {module name}
|
|
4
|
+
**Assignee:** {assignee}
|
|
5
|
+
**Status:** {pending | in-progress | evaluating | passing | fixing | blocked}
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Session {date} {time}
|
|
10
|
+
|
|
11
|
+
### Working on: {feature name}
|
|
12
|
+
- {key decisions and reasoning}
|
|
13
|
+
- {files created/modified}
|
|
14
|
+
- {commit hash}
|
|
15
|
+
- {any deviations from plan and why}
|
|
16
|
+
|
|
17
|
+
### Blockers
|
|
18
|
+
{none | description}
|
|
19
|
+
|
|
20
|
+
### Next up
|
|
21
|
+
{next step or "task complete"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
module: {module name}
|
|
3
|
+
date: {date}
|
|
4
|
+
status: draft
|
|
5
|
+
owner: BA
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Spec: {module name}
|
|
9
|
+
|
|
10
|
+
## Changelog
|
|
11
|
+
|
|
12
|
+
| Date | Story | Change | Reason |
|
|
13
|
+
|------|-------|--------|--------|
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
### Functional
|
|
18
|
+
1. {requirement with acceptance criteria}
|
|
19
|
+
|
|
20
|
+
### Non-Functional
|
|
21
|
+
1. {requirement with measurable target}
|
|
22
|
+
|
|
23
|
+
## User Stories
|
|
24
|
+
|
|
25
|
+
### STORY-001: {title}
|
|
26
|
+
- As a {role}, I want to {action} so that {benefit}
|
|
27
|
+
- Acceptance:
|
|
28
|
+
- {testable criterion}
|
|
29
|
+
- {testable criterion}
|
|
30
|
+
|
|
31
|
+
### STORY-002: {title}
|
|
32
|
+
- As a {role}, I want to {action} so that {benefit}
|
|
33
|
+
- Acceptance:
|
|
34
|
+
- {testable criterion}
|
|
35
|
+
|
|
36
|
+
## Interface Contracts
|
|
37
|
+
|
|
38
|
+
### Exposed by this module
|
|
39
|
+
{APIs, events, types this module provides}
|
|
40
|
+
|
|
41
|
+
### Required from other modules
|
|
42
|
+
{What this module needs from dependencies}
|
|
43
|
+
|
|
44
|
+
## Definition of Done
|
|
45
|
+
- [ ] {checklist item}
|
|
46
|
+
|
|
47
|
+
<!-- SPEC EDIT RULE: Any edit to this file that changes business logic,
|
|
48
|
+
requirements, stories, or acceptance criteria MUST add a new row to the
|
|
49
|
+
Changelog table above (Date, Story if applicable, Change summary, Reason).
|
|
50
|
+
Agents: validate the Changelog was updated before finishing a spec touch. -->
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
module: {module name}
|
|
3
|
+
date: {date}
|
|
4
|
+
total_tasks: {N}
|
|
5
|
+
owner: Dev
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Tasks: {module name}
|
|
9
|
+
|
|
10
|
+
## Task 1: {title}
|
|
11
|
+
|
|
12
|
+
**Story:** STORY-{NNN}
|
|
13
|
+
**Description:** {what to do}
|
|
14
|
+
**Files:**
|
|
15
|
+
- Create: `{path}`
|
|
16
|
+
- Modify: `{path}`
|
|
17
|
+
- Test: `{path}`
|
|
18
|
+
**Dependencies:** none | Task N
|
|
19
|
+
**Estimated size:** small | medium
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Task 2: {title}
|
|
24
|
+
...
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Team Workflow Guide
|
|
2
|
+
|
|
3
|
+
How BA, Dev, and PM work together in Haren.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Roles & Ownership
|
|
8
|
+
|
|
9
|
+
| Role | Owns | Folder | Rule |
|
|
10
|
+
|------|------|--------|------|
|
|
11
|
+
| BA | Requirements, user stories | `03-modules/{module}/spec.md` | Never touch `04-plans/` |
|
|
12
|
+
| Dev | Design, tasks, implementation | `04-plans/{module}/` | Never touch `spec.md` |
|
|
13
|
+
| PM | Progress tracking | Reads both folders | Doesn't write artifacts |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Folder Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
artifacts/
|
|
21
|
+
├── 03-modules/{module}/
|
|
22
|
+
│ ├── module.md ← Module definition (from discover phase)
|
|
23
|
+
│ └── spec.md ← BA owns this
|
|
24
|
+
│
|
|
25
|
+
├── 04-plans/{module}/
|
|
26
|
+
│ ├── design.md ← Dev owns this
|
|
27
|
+
│ ├── iteration-1/
|
|
28
|
+
│ │ └── tasks.md ← Dev owns this
|
|
29
|
+
│ └── iteration-2/
|
|
30
|
+
│ └── tasks.md
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Story ID Convention
|
|
36
|
+
|
|
37
|
+
Every user story gets a stable ID: `STORY-001`, `STORY-002`, etc.
|
|
38
|
+
|
|
39
|
+
These IDs are the **link** between what BA writes (specs) and what Dev builds (tasks). They never change once assigned, even if the story content is updated.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## For BA: Writing and Updating Specs
|
|
44
|
+
|
|
45
|
+
### Creating a new story
|
|
46
|
+
|
|
47
|
+
Add it to `03-modules/{module}/spec.md` with the next available ID:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
### STORY-005: User can export reports
|
|
51
|
+
- As an admin, I want to export reports as CSV
|
|
52
|
+
- Acceptance:
|
|
53
|
+
- Supports date range filter
|
|
54
|
+
- Max 10,000 rows per export
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Add a changelog row:
|
|
58
|
+
|
|
59
|
+
```markdown
|
|
60
|
+
## Changelog
|
|
61
|
+
|
|
62
|
+
| Date | Story | Change | Reason |
|
|
63
|
+
|------------|-----------|---------------------|-----------------|
|
|
64
|
+
| 2026-05-08 | — | Add STORY-005 | Product roadmap |
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Updating an existing story
|
|
68
|
+
|
|
69
|
+
Edit the story **in place** (always show the current state, not history). Add a changelog row and an `Updated` line:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
### STORY-002: User can reset password
|
|
73
|
+
- As a user, I want to reset my password
|
|
74
|
+
- Acceptance:
|
|
75
|
+
- SMS + email, 24h expiry
|
|
76
|
+
- Old password invalidated immediately
|
|
77
|
+
- Updated: 2026-05-05 — add SMS option, extend expiry to 24h
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
| 2026-05-05 | STORY-002 | Add SMS option, extend expiry to 24h | Compliance |
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Rules for BA
|
|
85
|
+
|
|
86
|
+
1. **Every spec edit = one changelog row**
|
|
87
|
+
2. **Never edit a completed story silently** — always add the `Updated` line and changelog row
|
|
88
|
+
3. **Story IDs are permanent** — don't renumber or reuse them
|
|
89
|
+
4. **Keep stories as current state** — the changelog captures history
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## For Dev: Reading Specs and Creating Tasks
|
|
94
|
+
|
|
95
|
+
### When a new spec arrives
|
|
96
|
+
|
|
97
|
+
1. Read `03-modules/{module}/spec.md`
|
|
98
|
+
2. Write `04-plans/{module}/design.md` (architecture, data model, decisions)
|
|
99
|
+
3. Write `04-plans/{module}/iteration-{N}/tasks.md` (task breakdown)
|
|
100
|
+
4. Every task references a STORY-ID:
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
## Task 1: Create signup endpoint
|
|
104
|
+
|
|
105
|
+
**Story:** STORY-001
|
|
106
|
+
**Description:** POST /auth/signup with email validation
|
|
107
|
+
**Files:**
|
|
108
|
+
- Create: `src/routes/auth/signup.ts`
|
|
109
|
+
- Test: `src/routes/auth/signup.test.ts`
|
|
110
|
+
**Dependencies:** none
|
|
111
|
+
**Estimated size:** medium
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### When BA updates a spec
|
|
115
|
+
|
|
116
|
+
Check the changelog, then follow this decision tree:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
BA updates a story
|
|
120
|
+
│
|
|
121
|
+
▼
|
|
122
|
+
"Is this story implemented?"
|
|
123
|
+
├── No → update existing tasks to match new acceptance criteria
|
|
124
|
+
└── Yes → "Does this change the design?"
|
|
125
|
+
├── No → add task(s) to current iteration
|
|
126
|
+
└── Yes → update design.md first
|
|
127
|
+
│
|
|
128
|
+
▼
|
|
129
|
+
add task(s) referencing the story
|
|
130
|
+
│
|
|
131
|
+
▼
|
|
132
|
+
"Does it fit this iteration's capacity?"
|
|
133
|
+
├── Yes → add to current iteration
|
|
134
|
+
└── No → add to next iteration
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### New story vs. new task?
|
|
138
|
+
|
|
139
|
+
| Question | Story | Task |
|
|
140
|
+
|----------|-------|------|
|
|
141
|
+
| Is there a new "As a user, I want to..." ? | New story | — |
|
|
142
|
+
| Does existing acceptance criteria change? | — | Update tasks |
|
|
143
|
+
| Can PM demo this as a separate feature? | New story | — |
|
|
144
|
+
| Can you describe it without naming the original story? | New story | Task |
|
|
145
|
+
|
|
146
|
+
**Simple test:** "Add SMS to password reset" → tied to reset → **task**.
|
|
147
|
+
"Users can enable 2FA" → standalone → **new story**.
|
|
148
|
+
|
|
149
|
+
### Rules for Dev
|
|
150
|
+
|
|
151
|
+
1. **Every task references a STORY-ID**
|
|
152
|
+
2. **Never edit spec.md** — flag issues to BA instead
|
|
153
|
+
3. **Note why** when adding tasks from spec updates (e.g., "Added after STORY-002 update on 2026-05-05")
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## For PM: Tracking Progress
|
|
158
|
+
|
|
159
|
+
### How to check story coverage
|
|
160
|
+
|
|
161
|
+
Look at which STORY-IDs appear in task files across iterations:
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
STORY-001 → iteration-1/tasks.md, all tasks done ✓
|
|
165
|
+
STORY-002 → iteration-1/tasks.md, all tasks done ✓
|
|
166
|
+
STORY-003 → iteration-2/tasks.md, in-progress
|
|
167
|
+
STORY-004 → not in any tasks.md ← unplanned
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
If a story has no tasks referencing it, it hasn't been picked up by devs yet.
|
|
171
|
+
|
|
172
|
+
### How to spot spec changes
|
|
173
|
+
|
|
174
|
+
Read the Changelog table in `03-modules/{module}/spec.md`. Any row with a date after the last iteration start means something changed that devs need to assess.
|
|
175
|
+
|
|
176
|
+
### Rules for PM
|
|
177
|
+
|
|
178
|
+
1. **Don't write artifacts** — read and track only
|
|
179
|
+
2. **Flag unplanned stories** — if a STORY-ID has no tasks, ask devs about it
|
|
180
|
+
3. **Flag stale updates** — if changelog shows a change but no new tasks appeared, follow up
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Quick Reference
|
|
185
|
+
|
|
186
|
+
### File locations
|
|
187
|
+
|
|
188
|
+
| What you need | Where to find it |
|
|
189
|
+
|---------------|------------------|
|
|
190
|
+
| Module requirements and stories | `artifacts/03-modules/{module}/spec.md` |
|
|
191
|
+
| What changed recently | Changelog table at top of `spec.md` |
|
|
192
|
+
| Technical design | `artifacts/04-plans/{module}/design.md` |
|
|
193
|
+
| Current iteration tasks | `artifacts/04-plans/{module}/iteration-{N}/tasks.md` |
|
|
194
|
+
| Module definition | `artifacts/03-modules/{module}/module.md` |
|
|
195
|
+
|
|
196
|
+
### Workflow summary
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
BA writes spec → Dev reads spec → Dev writes design + tasks → PM tracks coverage
|
|
200
|
+
│ │
|
|
201
|
+
▼ ▼
|
|
202
|
+
BA updates spec → Dev checks changelog → Dev assesses impact → Dev adds tasks
|
|
203
|
+
```
|