@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,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: researcher
|
|
3
|
+
description: Conducts research and discovery — ingests docs, analyzes code, explores ideas
|
|
4
|
+
phases: [research, discover]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Researcher
|
|
8
|
+
|
|
9
|
+
## Role
|
|
10
|
+
|
|
11
|
+
You are a researcher and discovery agent within the Haren framework. Your job is to understand the problem space before any code is written.
|
|
12
|
+
|
|
13
|
+
## When Active
|
|
14
|
+
|
|
15
|
+
- **Research phase** (on-demand): When the user or another agent needs a spike, deep-dive, or tech evaluation
|
|
16
|
+
- **Discover phase**: When starting a new project or module, to produce a context brief
|
|
17
|
+
|
|
18
|
+
## Capabilities
|
|
19
|
+
|
|
20
|
+
- Read and analyze documentation (PDFs, markdown, text files)
|
|
21
|
+
- Explore existing codebases (for `inherit` mode)
|
|
22
|
+
- Brainstorm with the user (for `explore` mode)
|
|
23
|
+
- Produce structured research documents and context briefs
|
|
24
|
+
|
|
25
|
+
## Inputs
|
|
26
|
+
|
|
27
|
+
- `manifest.yaml` — project config, mode, source docs
|
|
28
|
+
- Previous research artifacts in `artifacts/01-research/`
|
|
29
|
+
- For `inherit` mode: access to sibling repos listed in manifest
|
|
30
|
+
|
|
31
|
+
## Outputs
|
|
32
|
+
|
|
33
|
+
- **Research:** `artifacts/01-research/RESEARCH-{NNN}-{slug}.md` (use resolve-next-id skill)
|
|
34
|
+
- **Discover:** `artifacts/02-discovery/context-brief.md`
|
|
35
|
+
|
|
36
|
+
## Scope Control
|
|
37
|
+
|
|
38
|
+
**Stay focused.** Before expanding research beyond the initial question, ask:
|
|
39
|
+
- "Should I also investigate {related topic}, or stay focused on {original question}?"
|
|
40
|
+
- "I found something interesting about {tangent}. Want me to dig into that, or save it for later?"
|
|
41
|
+
|
|
42
|
+
**Don't silently expand scope** — a research spike on "which database to use" should not become a full evaluation of 15 databases unless the user asks for it.
|
|
43
|
+
|
|
44
|
+
## Rules
|
|
45
|
+
|
|
46
|
+
1. Always read `progress.json` via read-context skill before starting
|
|
47
|
+
2. Use the appropriate discover sub-strategy based on `manifest.yaml` mode:
|
|
48
|
+
- `blueprint` → read `skills/discover/blueprint.md`
|
|
49
|
+
- `explore` → read `skills/discover/explore.md`
|
|
50
|
+
- `inherit` → read `skills/discover/inherit.md`
|
|
51
|
+
- If mode is unrecognized or missing → **ask the user**, don't guess
|
|
52
|
+
3. Use `create-artifact` skill to write artifacts with correct templates
|
|
53
|
+
4. Update `artifacts/_registry/artifact-index.md` after creating artifacts
|
|
54
|
+
5. Never write code — your job is understanding, not implementation
|
|
55
|
+
6. **If you encounter ambiguity, ask the user rather than guessing**
|
|
56
|
+
7. For `inherit` mode: if no sibling repos are listed in manifest, ask the user which repos to analyze
|
|
57
|
+
8. Before writing the context brief, **present a summary to the user** and ask: "Does this capture the project correctly? Anything missing or wrong?"
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reviewer
|
|
3
|
+
description: Evaluates implementations against specs — the skeptical, independent reviewer
|
|
4
|
+
phases: [evaluate]
|
|
5
|
+
delegates:
|
|
6
|
+
- superpowers:requesting-code-review
|
|
7
|
+
- superpowers:verification-before-completion
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Reviewer
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
You are a code reviewer and evaluator within the Haren framework. Your job is to independently verify that implementations meet their specs. You are intentionally skeptical — assume nothing works until proven.
|
|
15
|
+
|
|
16
|
+
## When Active
|
|
17
|
+
|
|
18
|
+
- **Evaluate phase**: After a developer marks a feature as ready for evaluation
|
|
19
|
+
|
|
20
|
+
## Capabilities
|
|
21
|
+
|
|
22
|
+
- Read and understand specs
|
|
23
|
+
- Read and analyze code in target repos
|
|
24
|
+
- Run tests and verify functionality
|
|
25
|
+
- Write structured review feedback
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
|
|
29
|
+
- `artifacts/03-modules/{module}/spec.md` — BA-owned spec (requirements, stories, acceptance criteria) — the contract to evaluate against
|
|
30
|
+
- Code in target repo(s)
|
|
31
|
+
- `progress.json` — which features are in "evaluating" status
|
|
32
|
+
|
|
33
|
+
## Outputs
|
|
34
|
+
|
|
35
|
+
- `artifacts/06-evaluation/{module}/task-{N}-{slug}-review.md` — structured review with verdict (per-task files supporting parallel evaluation)
|
|
36
|
+
- `artifacts/06-evaluation/{module}/task-{N}-{slug}-test-report.md` — test execution results (per-task files supporting parallel evaluation)
|
|
37
|
+
- Updated `progress.json` — feature status changes
|
|
38
|
+
|
|
39
|
+
## Evaluation Criteria
|
|
40
|
+
|
|
41
|
+
1. **Functionality** — does it do what the spec says?
|
|
42
|
+
2. **Completeness** — are all spec requirements covered?
|
|
43
|
+
3. **Correctness** — do tests pass? edge cases handled?
|
|
44
|
+
4. **Integration** — does it work with other modules' interfaces?
|
|
45
|
+
|
|
46
|
+
## Judgment Calls
|
|
47
|
+
|
|
48
|
+
When the spec is ambiguous or you need to make a judgment call, **ask instead of assuming:**
|
|
49
|
+
|
|
50
|
+
- **Spec ambiguity:** "The spec says 'user can log in' — should I also verify lockout after failed attempts, or just the happy path?"
|
|
51
|
+
- **Coverage threshold:** "Test coverage for this feature is 72%. Is that acceptable, or should the developer add more tests?"
|
|
52
|
+
- **Integration scope:** "This module exposes an API to the dashboard module. Should I verify the integration end-to-end, or is unit-level interface testing sufficient?"
|
|
53
|
+
- **Gut feeling:** If all criteria technically pass but something feels wrong, surface it: "All checks pass, but I noticed {concern}. Should I flag this or let it go?"
|
|
54
|
+
|
|
55
|
+
**Rule of thumb:** If the spec clearly defines it, evaluate against it. If the spec is silent or ambiguous on a point, ask the user before deciding whether it's a pass or fail.
|
|
56
|
+
|
|
57
|
+
## Rules
|
|
58
|
+
|
|
59
|
+
1. Always check against the **spec**, not the design or tasks — you are independent
|
|
60
|
+
2. Run all tests before writing the review
|
|
61
|
+
3. Write `task-{N}-{slug}-review.md` with:
|
|
62
|
+
- Verdict: pass or fail
|
|
63
|
+
- Attempt number (1, 2, or 3)
|
|
64
|
+
- If iterations are enabled (manifest.yaml has `iterations` block), include the `iteration` field; if not enabled, omit it
|
|
65
|
+
- If fail: specific issues with file paths, line numbers, and suggested fixes
|
|
66
|
+
- If pass: brief summary of what was verified
|
|
67
|
+
- **Assumptions made:** list any spec interpretations you made (so the user can correct them)
|
|
68
|
+
4. Update progress.json via update-tracking skill:
|
|
69
|
+
- Pass → feature status to "passing"
|
|
70
|
+
- Fail (attempt < 3) → feature status to "fixing"
|
|
71
|
+
- Fail (attempt 3) → feature status to "blocked", emit "escalate-human" event
|
|
72
|
+
5. Delegate to superpowers:requesting-code-review for structured review
|
|
73
|
+
6. Do NOT rubber-stamp — a tuned skeptical evaluator catches what a generous one misses
|
|
74
|
+
7. **If unsure about a judgment call, ask the user** — don't silently pass or fail
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audit-workspace
|
|
3
|
+
description: Validate entire Haren workspace structure, file naming, frontmatter, and cross-references
|
|
4
|
+
type: utility
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Audit Workspace
|
|
8
|
+
|
|
9
|
+
Validate the entire Haren workspace for structural correctness, naming conventions, content format, and cross-reference consistency.
|
|
10
|
+
|
|
11
|
+
## When to Trigger
|
|
12
|
+
|
|
13
|
+
- **Phase transitions** — before moving a module to the next phase
|
|
14
|
+
- **Session start** — quick mode (structure only, skip content checks)
|
|
15
|
+
- **Before demo / iteration end** — full mode
|
|
16
|
+
- **On demand** — user says "audit", "validate workspace", "check structure"
|
|
17
|
+
|
|
18
|
+
## Audit Modes
|
|
19
|
+
|
|
20
|
+
| Mode | Checks | When |
|
|
21
|
+
|------|--------|------|
|
|
22
|
+
| **quick** | Directory structure, progress.json validity | Session start |
|
|
23
|
+
| **full** | Everything below | Phase transitions, before demo, on demand |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Checks
|
|
28
|
+
|
|
29
|
+
### 1. Directory Structure
|
|
30
|
+
|
|
31
|
+
Verify all required directories exist under `artifacts/`:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
00-baseline/
|
|
35
|
+
01-research/
|
|
36
|
+
02-discovery/
|
|
37
|
+
03-modules/
|
|
38
|
+
04-plans/
|
|
39
|
+
05-implementation/
|
|
40
|
+
06-evaluation/
|
|
41
|
+
07-iterations/ ← only if iterations enabled
|
|
42
|
+
_registry/
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Report:** missing directories as FAIL.
|
|
46
|
+
|
|
47
|
+
### 2. Core Files
|
|
48
|
+
|
|
49
|
+
Verify these files exist and are valid:
|
|
50
|
+
|
|
51
|
+
| File | Validation |
|
|
52
|
+
|------|-----------|
|
|
53
|
+
| `manifest.yaml` | Valid YAML, has `project`, `mode`, `language` fields |
|
|
54
|
+
| `progress.json` | Valid JSON, has `project`, `version`, `phase`, `status`, `modules`, `dependencies` |
|
|
55
|
+
| `_registry/artifact-index.md` | Exists, has table header |
|
|
56
|
+
| `FEEDBACK.md` | Exists |
|
|
57
|
+
|
|
58
|
+
**If iterations enabled**, also check:
|
|
59
|
+
- `manifest.yaml` has `iterations` block with `duration`, `start_date`, `demo_day`
|
|
60
|
+
- `progress.json` has `currentIteration` field
|
|
61
|
+
- At least one iteration file exists in `07-iterations/`
|
|
62
|
+
|
|
63
|
+
### 3. Module Consistency
|
|
64
|
+
|
|
65
|
+
For each module in `progress.json`:
|
|
66
|
+
|
|
67
|
+
| Module phase | Required artifacts |
|
|
68
|
+
|-------------|-------------------|
|
|
69
|
+
| `decomposed` | `03-modules/{module}/module.md` exists |
|
|
70
|
+
| `planned` (no iterations) | `03-modules/{module}/spec.md` (BA-owned), `04-plans/{module}/design.md`, `tasks.md` exist |
|
|
71
|
+
| `planned` (iterations on) | `03-modules/{module}/spec.md` (BA-owned), `04-plans/{module}/design.md` (master) exist AND at least one `04-plans/{module}/iteration-{N}/` subdir with `design.md`, `tasks.md` |
|
|
72
|
+
| `implementing` (no iterations) | `04-plans/{module}/tasks.md` has tasks, features listed in progress.json |
|
|
73
|
+
| `implementing` (iterations on) | Active iteration `04-plans/{module}/iteration-{N}/tasks.md` has tasks, features listed in progress.json |
|
|
74
|
+
| `evaluating` | At least one `06-evaluation/{module}/task-*-review.md` exists |
|
|
75
|
+
|
|
76
|
+
**Cross-check:** Every feature key in `progress.json` → `features` should have a matching `task-{N}-{slug}` pattern.
|
|
77
|
+
|
|
78
|
+
### 4. File Naming Conventions
|
|
79
|
+
|
|
80
|
+
Scan all files and verify:
|
|
81
|
+
|
|
82
|
+
| Directory | Naming rule |
|
|
83
|
+
|-----------|------------|
|
|
84
|
+
| `05-implementation/{module}/` | `task-{N}-{slug}.md` |
|
|
85
|
+
| `06-evaluation/{module}/` | `task-{N}-{slug}-review.md`, `task-{N}-{slug}-test-report.md` |
|
|
86
|
+
| `07-iterations/` | `iteration-{N}.md` |
|
|
87
|
+
|
|
88
|
+
**Report:** files that don't match the convention as WARN.
|
|
89
|
+
|
|
90
|
+
### 5. Frontmatter Validation
|
|
91
|
+
|
|
92
|
+
#### Session logs (`05-implementation/`)
|
|
93
|
+
|
|
94
|
+
Required header fields:
|
|
95
|
+
- `# Task {N}: {title}`
|
|
96
|
+
- `**Module:**`
|
|
97
|
+
- `**Assignee:**`
|
|
98
|
+
- `**Status:**`
|
|
99
|
+
- `**Iteration:**` (only if iterations enabled)
|
|
100
|
+
|
|
101
|
+
#### Review files (`06-evaluation/`)
|
|
102
|
+
|
|
103
|
+
Required YAML frontmatter:
|
|
104
|
+
- `module`
|
|
105
|
+
- `feature`
|
|
106
|
+
- `task`
|
|
107
|
+
- `verdict` (pass | fail)
|
|
108
|
+
- `attempt`
|
|
109
|
+
- `date`
|
|
110
|
+
- `reviewer`
|
|
111
|
+
- `iteration` (only if iterations enabled)
|
|
112
|
+
|
|
113
|
+
#### Iteration files (`07-iterations/`)
|
|
114
|
+
|
|
115
|
+
Required YAML frontmatter:
|
|
116
|
+
- `iteration` (number)
|
|
117
|
+
- `start` (date)
|
|
118
|
+
- `end` (date)
|
|
119
|
+
- `demo` (date)
|
|
120
|
+
- `status` (planned | in-progress | complete)
|
|
121
|
+
|
|
122
|
+
Required sections:
|
|
123
|
+
- `## Goal`
|
|
124
|
+
- `## Planned Deliverables` (with module sub-headers `###`)
|
|
125
|
+
- `## Demo Script` (with module sub-headers `###`)
|
|
126
|
+
|
|
127
|
+
### 6. Artifact Registry Consistency
|
|
128
|
+
|
|
129
|
+
Cross-check `_registry/artifact-index.md` against actual files:
|
|
130
|
+
|
|
131
|
+
- Every file in `02-discovery/` through `07-iterations/` should have a registry entry
|
|
132
|
+
- Every registry entry should point to an existing file
|
|
133
|
+
- **Report:** unregistered files as WARN, broken registry entries as FAIL
|
|
134
|
+
|
|
135
|
+
### 7. Progress.json ↔ Tasks.md Consistency
|
|
136
|
+
|
|
137
|
+
For each module in `implementing` or later phase:
|
|
138
|
+
|
|
139
|
+
- Every feature in `progress.json` → `features` should correspond to a task in `tasks.md`
|
|
140
|
+
- Feature status in `progress.json` should be consistent with:
|
|
141
|
+
- `passing` → review file exists with `verdict: pass`
|
|
142
|
+
- `evaluating` → no passing review yet
|
|
143
|
+
- `in-progress` → session log file should exist
|
|
144
|
+
- **If iterations enabled:** every task in `tasks.md` should have an `Iteration` column value
|
|
145
|
+
|
|
146
|
+
### 8. Iteration Consistency (only if iterations enabled)
|
|
147
|
+
|
|
148
|
+
- `currentIteration` in `progress.json` matches the highest non-complete iteration
|
|
149
|
+
- Every iteration file's task list is consistent with `tasks.md` Iteration column
|
|
150
|
+
- No task is assigned to a non-existent iteration
|
|
151
|
+
- Iteration dates don't overlap
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Output Format
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
=== Haren Workspace Audit ({mode}) ===
|
|
159
|
+
Project: {name}
|
|
160
|
+
Date: {date}
|
|
161
|
+
|
|
162
|
+
✓ Directory structure ............... PASS
|
|
163
|
+
✓ Core files ....................... PASS
|
|
164
|
+
✗ Module consistency ............... FAIL
|
|
165
|
+
- skill-marketplace: implementing but missing session log for task-2-sync-skills-api
|
|
166
|
+
✓ File naming ...................... PASS
|
|
167
|
+
⚠ Frontmatter ...................... WARN
|
|
168
|
+
- 05-implementation/skill-marketplace/task-1-scaffold.md: missing Iteration field
|
|
169
|
+
✓ Registry consistency ............. PASS
|
|
170
|
+
✓ Progress ↔ Tasks ................. PASS
|
|
171
|
+
✓ Iteration consistency ............ PASS (or SKIP if not enabled)
|
|
172
|
+
|
|
173
|
+
Result: FAIL (1 error, 1 warning)
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Rules
|
|
177
|
+
|
|
178
|
+
- FAIL blocks phase transitions — must be fixed first
|
|
179
|
+
- WARN is informational — note but don't block
|
|
180
|
+
- In quick mode, only run checks 1-2
|
|
181
|
+
- In full mode, run all checks
|
|
182
|
+
- Always report the full list of findings, don't stop at first error
|
|
183
|
+
- If iterations are not enabled (no `iterations` block in manifest.yaml), skip checks 5-8 iteration-related fields and check 8 entirely
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-artifact
|
|
3
|
+
description: Write new artifact files with correct templates and registry updates
|
|
4
|
+
type: utility
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Create Artifact
|
|
8
|
+
|
|
9
|
+
Write a new artifact file using the correct template and update the artifact registry.
|
|
10
|
+
|
|
11
|
+
## Process
|
|
12
|
+
|
|
13
|
+
1. **Determine artifact type** from the caller's context:
|
|
14
|
+
- RESEARCH → `artifacts/01-research/`
|
|
15
|
+
- Context brief → `artifacts/02-discovery/`
|
|
16
|
+
- Module definition → `artifacts/03-modules/`
|
|
17
|
+
- Master Spec/Design → `artifacts/04-plans/{module}/` (always at root)
|
|
18
|
+
- Iteration-scoped Spec/Design/Tasks → `artifacts/04-plans/{module}/iteration-{N}/` (only when iterations enabled, use active plan path from skill.md)
|
|
19
|
+
- Iteration file → `artifacts/07-iterations/iteration-{N}.md` (only when iterations enabled)
|
|
20
|
+
- Session log → `artifacts/05-implementation/{module}/`
|
|
21
|
+
- Review/Test report → `artifacts/06-evaluation/{module}/`
|
|
22
|
+
|
|
23
|
+
2. **Load template** from `templates/{type}.md`
|
|
24
|
+
|
|
25
|
+
3. **Fill template** with provided content
|
|
26
|
+
|
|
27
|
+
4. **Write file** to the correct path
|
|
28
|
+
|
|
29
|
+
5. **Update registry**: Append entry to `artifacts/_registry/artifact-index.md`:
|
|
30
|
+
```
|
|
31
|
+
| {ID} | {type} | {module} | {status} | {path} |
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
6. **Update links**: Call update-links skill if this artifact references others
|
|
35
|
+
|
|
36
|
+
## Rules
|
|
37
|
+
|
|
38
|
+
- Always use the template — don't write freeform artifacts
|
|
39
|
+
- Always update the registry — it's the master index
|
|
40
|
+
- Create parent directories if they don't exist
|
|
41
|
+
- Use resolve-next-id skill for sequential IDs (RESEARCH artifacts)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: decompose
|
|
3
|
+
description: Break project into bounded modules with interfaces and dependency graph
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: architect
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Decompose
|
|
9
|
+
|
|
10
|
+
Break the project into bounded modules that can be planned and implemented independently.
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
### Step 1: Architecture Overview (project-level decisions)
|
|
15
|
+
|
|
16
|
+
<HARD-GATE>
|
|
17
|
+
Before defining any modules, establish the system-level architecture.
|
|
18
|
+
These decisions affect ALL modules and must be resolved first.
|
|
19
|
+
</HARD-GATE>
|
|
20
|
+
|
|
21
|
+
1. Read `artifacts/02-discovery/context-brief.md`
|
|
22
|
+
2. Read `manifest.yaml` for repo mapping
|
|
23
|
+
3. Present the following cross-cutting decisions to the user (one at a time, with 2-3 options each):
|
|
24
|
+
- **Deployment model** — monolith, microservices, modular monolith, serverless?
|
|
25
|
+
- **Communication patterns** — REST, gRPC, event bus, message queue, in-process?
|
|
26
|
+
- **Shared infrastructure** — shared DB or DB-per-module? Shared auth/identity?
|
|
27
|
+
- **Repo structure** — monorepo or multi-repo? (may already be in manifest)
|
|
28
|
+
- **Deployment topology** — containers, serverless, PaaS? Cloud provider?
|
|
29
|
+
- Any other project-specific cross-cutting concerns
|
|
30
|
+
4. Write `artifacts/03-modules/architecture.md` (use create-artifact skill)
|
|
31
|
+
|
|
32
|
+
### Step 2: Module Decomposition
|
|
33
|
+
|
|
34
|
+
5. With the architecture established, identify natural module boundaries:
|
|
35
|
+
- Group related requirements together
|
|
36
|
+
- Look for data ownership boundaries
|
|
37
|
+
- Identify independent deployment units
|
|
38
|
+
- Consider team/repo boundaries
|
|
39
|
+
6. For each module, define:
|
|
40
|
+
- Name and one-line description
|
|
41
|
+
- Responsibilities (what it owns)
|
|
42
|
+
- Interfaces (what it exposes — APIs, events, shared types)
|
|
43
|
+
- Dependencies (what it needs from other modules)
|
|
44
|
+
- Target repo(s) from manifest
|
|
45
|
+
7. Build dependency graph — must be a DAG (no cycles)
|
|
46
|
+
8. Write outputs:
|
|
47
|
+
- `artifacts/03-modules/module-map.md` (use create-artifact skill)
|
|
48
|
+
- `artifacts/03-modules/{module}/module.md` for each module (use create-artifact skill) — each module gets its own folder so that `spec.md` (BA-owned) can sit alongside it later
|
|
49
|
+
9. Validate with validate-artifact skill (checks for cycles, missing interfaces)
|
|
50
|
+
10. Update progress.json — each module gets "decomposed" status
|
|
51
|
+
|
|
52
|
+
## Module Map Format
|
|
53
|
+
|
|
54
|
+
The module-map.md should contain:
|
|
55
|
+
- Overview of all modules
|
|
56
|
+
- Dependency graph (mermaid diagram)
|
|
57
|
+
- Suggested implementation order (topological sort of dependencies)
|
|
58
|
+
- Cross-module interface contracts summary
|
|
59
|
+
|
|
60
|
+
## Module Definition Format
|
|
61
|
+
|
|
62
|
+
Each module .md file should follow `templates/module.md`:
|
|
63
|
+
- Frontmatter: name, repos, dependencies
|
|
64
|
+
- Description and responsibilities
|
|
65
|
+
- Interfaces (exposed)
|
|
66
|
+
- Dependencies (consumed)
|
|
67
|
+
- Estimated complexity (small/medium/large)
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
- Prefer more, smaller modules over fewer, larger ones
|
|
72
|
+
- Every module must have at least one interface (even if it's "none — leaf module")
|
|
73
|
+
- Cyclic dependencies are forbidden — if A needs B and B needs A, extract the shared concern into C
|
|
74
|
+
- A module can span multiple repos, but document which parts go where
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: discover
|
|
3
|
+
description: Produce a context brief from project sources — strategy varies by mode
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: researcher
|
|
6
|
+
delegates:
|
|
7
|
+
- ideate
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Discover
|
|
11
|
+
|
|
12
|
+
Analyze project sources and produce a standardized context brief that feeds into the Decompose phase.
|
|
13
|
+
|
|
14
|
+
## Intent Routing
|
|
15
|
+
|
|
16
|
+
Before starting discovery, determine the intent:
|
|
17
|
+
|
|
18
|
+
0. **User provides a raw idea** (no baseline docs in `manifest.yaml` sources, no repos to inherit, and input is a statement of intent) → route to `ideate` skill. Ideate produces a concept brief, adds it to `manifest.yaml` sources, and sets mode to `blueprint`. Discovery then proceeds in blueprint mode with the concept brief as a baseline document.
|
|
19
|
+
1. **No prior context + unclear task** → ask the user: "Is this research, or a new feature to design?"
|
|
20
|
+
- Research → route to `research` skill
|
|
21
|
+
- New feature → route to `ideate` skill (ideate now handles the research + design flow)
|
|
22
|
+
2. **Module already exists + needs clarification** → invoke brainstorming, output to `artifacts/04-plans/{module}/`
|
|
23
|
+
3. **Module already planned** → skip brainstorming, proceed to implement
|
|
24
|
+
|
|
25
|
+
**Disambiguation between 0 and 1:** Priority 0 triggers when the user provides an idea statement (even vague — "I want to build X"). Priority 1 triggers when there is genuinely no input and the task is unclear. The key distinction: Priority 0 has *something* to work with; Priority 1 has nothing.
|
|
26
|
+
|
|
27
|
+
**Mode-specific behavior:**
|
|
28
|
+
- **explore** mode: routes through brainstorming for collaborative design (preserved for users who explicitly set `mode: explore` in manifest.yaml — the default path for new ideas is now through `ideate`)
|
|
29
|
+
- **blueprint** mode: if baseline docs exist in `artifacts/00-baseline/`, the existing blueprint strategy processes them first. Brainstorming triggers only for new features not covered by baseline docs.
|
|
30
|
+
- **inherit** mode: existing codebase analysis runs first. Brainstorming triggers for new features on top of the existing code.
|
|
31
|
+
- **undecided** mode: brainstorming helps determine the mode as part of the discovery process
|
|
32
|
+
|
|
33
|
+
## Process
|
|
34
|
+
|
|
35
|
+
1. Read `manifest.yaml` to determine mode and sources
|
|
36
|
+
2. Load the mode-specific strategy:
|
|
37
|
+
- `blueprint` → read `skills/discover/blueprint.md`
|
|
38
|
+
- `explore` → read `skills/discover/explore.md`
|
|
39
|
+
- `inherit` → read `skills/discover/inherit.md`
|
|
40
|
+
3. Follow the strategy to produce a context brief
|
|
41
|
+
4. Write output using create-artifact skill: `artifacts/02-discovery/context-brief.md`
|
|
42
|
+
5. Validate output with validate-artifact skill
|
|
43
|
+
6. Update progress.json — project moves past discovery
|
|
44
|
+
|
|
45
|
+
## Output
|
|
46
|
+
|
|
47
|
+
A single `context-brief.md` that contains:
|
|
48
|
+
- Project overview and goals
|
|
49
|
+
- Key requirements (functional and non-functional)
|
|
50
|
+
- Constraints and assumptions
|
|
51
|
+
- Identified risks
|
|
52
|
+
- Suggested module boundaries (high-level, refined in Decompose)
|
|
53
|
+
|
|
54
|
+
All three modes produce the same output format — the strategy only changes how the information is gathered.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: blueprint
|
|
3
|
+
description: Discovery strategy for projects with existing documentation
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Blueprint Mode
|
|
7
|
+
|
|
8
|
+
You have existing documentation to work from.
|
|
9
|
+
|
|
10
|
+
## Process
|
|
11
|
+
|
|
12
|
+
1. Read all source documents listed in `manifest.yaml` sources
|
|
13
|
+
2. Extract and organize:
|
|
14
|
+
- Business goals and user needs
|
|
15
|
+
- Functional requirements
|
|
16
|
+
- Non-functional requirements (performance, security, scale)
|
|
17
|
+
- Technical constraints (existing systems, APIs, compliance)
|
|
18
|
+
- Glossary of domain terms
|
|
19
|
+
3. Identify gaps — requirements that are mentioned but not detailed
|
|
20
|
+
4. Ask the user to clarify gaps (one question at a time)
|
|
21
|
+
5. Synthesize into context-brief.md format
|
|
22
|
+
|
|
23
|
+
## Tips
|
|
24
|
+
|
|
25
|
+
- Don't assume the docs are complete or consistent — flag contradictions
|
|
26
|
+
- Prioritize requirements by how often they appear and how specifically they're described
|
|
27
|
+
- Separate "must have" from "nice to have" based on language cues
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explore
|
|
3
|
+
description: Discovery strategy for greenfield projects starting from scratch
|
|
4
|
+
delegates:
|
|
5
|
+
- superpowers:brainstorming
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Explore Mode
|
|
9
|
+
|
|
10
|
+
No existing documentation — discover what to build through conversation and research.
|
|
11
|
+
|
|
12
|
+
## Artifact Output Location
|
|
13
|
+
|
|
14
|
+
Design specs for this project go to `artifacts/02-discovery/`, NOT `docs/superpowers/specs/`.
|
|
15
|
+
This overrides the default brainstorming output location.
|
|
16
|
+
|
|
17
|
+
After brainstorming completes, register all output artifacts using the create-artifact skill.
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
1. Invoke superpowers:brainstorming to collaboratively design the feature
|
|
22
|
+
- Brainstorming will ask clarifying questions, propose approaches, present design
|
|
23
|
+
- All design output writes to `artifacts/02-discovery/` (context-brief.md, {topic}-design.md)
|
|
24
|
+
2. If the domain is unfamiliar, use the research skill to investigate first
|
|
25
|
+
3. After brainstorming produces the design, register artifacts via create-artifact skill
|
|
26
|
+
4. Validate output with validate-artifact skill
|
|
27
|
+
5. Synthesize into context-brief.md format if brainstorming didn't produce one directly
|
|
28
|
+
|
|
29
|
+
## Tips
|
|
30
|
+
|
|
31
|
+
- Start broad, then narrow — understand the problem before discussing solutions
|
|
32
|
+
- Challenge assumptions gently — "Why does it need to be real-time?" is a valid question
|
|
33
|
+
- Document decisions and their reasoning — future you will thank present you
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: inherit
|
|
3
|
+
description: Discovery strategy for brownfield projects with existing code
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Inherit Mode
|
|
7
|
+
|
|
8
|
+
Existing codebase plus documentation — understand what exists before planning what's new.
|
|
9
|
+
|
|
10
|
+
## Process
|
|
11
|
+
|
|
12
|
+
1. Read source docs from `manifest.yaml` sources
|
|
13
|
+
2. Analyze each repo listed in `manifest.yaml`:
|
|
14
|
+
- Read README, package.json/go.mod/etc for tech stack
|
|
15
|
+
- Scan directory structure for architecture patterns
|
|
16
|
+
- Identify key entry points and data flows
|
|
17
|
+
- Note existing tests and their coverage
|
|
18
|
+
3. Document the current state:
|
|
19
|
+
- What's built and working
|
|
20
|
+
- What's partially built
|
|
21
|
+
- Known tech debt or issues
|
|
22
|
+
- Architecture decisions (inferred or documented)
|
|
23
|
+
4. Compare current state against source docs:
|
|
24
|
+
- What requirements are met?
|
|
25
|
+
- What's missing?
|
|
26
|
+
- What's been built but isn't in the docs?
|
|
27
|
+
5. Ask the user to clarify goals for the next phase of work
|
|
28
|
+
6. Synthesize into context-brief.md format
|
|
29
|
+
|
|
30
|
+
## Tips
|
|
31
|
+
|
|
32
|
+
- Don't judge existing code quality — document it objectively
|
|
33
|
+
- Pay attention to the gap between docs and reality — that's where the real requirements live
|
|
34
|
+
- Identify which parts of the codebase are stable vs actively changing
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: evaluate
|
|
3
|
+
description: Independently verify implementations against specs
|
|
4
|
+
type: sequential
|
|
5
|
+
agent: reviewer
|
|
6
|
+
delegates:
|
|
7
|
+
- superpowers:requesting-code-review
|
|
8
|
+
- superpowers:verification-before-completion
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Evaluate
|
|
12
|
+
|
|
13
|
+
Independently verify that a feature implementation meets its spec.
|
|
14
|
+
|
|
15
|
+
## Process
|
|
16
|
+
|
|
17
|
+
1. Read the spec from the **active plan path** (see skill.md Plan Paths convention). If iterations enabled, also check the **master plan path** for full module context.
|
|
18
|
+
2. Read the code in target repo(s) for the feature being evaluated
|
|
19
|
+
3. Read progress.json to confirm feature is in "evaluating" status
|
|
20
|
+
4. Check previous review attempts if they exist (task-{N}-{slug}-review.md)
|
|
21
|
+
|
|
22
|
+
## Evaluation
|
|
23
|
+
|
|
24
|
+
Run through each criterion:
|
|
25
|
+
|
|
26
|
+
1. **Functionality**: Does the code do what the spec says?
|
|
27
|
+
- Test each user story / acceptance criterion
|
|
28
|
+
- Check edge cases mentioned in the spec
|
|
29
|
+
2. **Completeness**: Are all spec requirements addressed?
|
|
30
|
+
- Cross-reference spec checklist against implementation
|
|
31
|
+
3. **Correctness**: Do tests pass?
|
|
32
|
+
- Run the test suite
|
|
33
|
+
- Check test coverage for the feature
|
|
34
|
+
4. **Integration**: Does it work with module interfaces?
|
|
35
|
+
- Verify exposed interfaces match the spec's interface contracts
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
Each task gets its own evaluation files using a per-task naming convention:
|
|
40
|
+
|
|
41
|
+
- **Review:** `artifacts/06-evaluation/{module}/task-{N}-{slug}-review.md`
|
|
42
|
+
- **Test report:** `artifacts/06-evaluation/{module}/task-{N}-{slug}-test-report.md`
|
|
43
|
+
|
|
44
|
+
### Naming Convention
|
|
45
|
+
|
|
46
|
+
- Format: `task-{number}-{slug}-review.md` and `task-{number}-{slug}-test-report.md`
|
|
47
|
+
- The slug matches the feature key in `progress.json`
|
|
48
|
+
- Examples: `task-1-scaffold-review.md`, `task-2-sync-skills-api-review.md`
|
|
49
|
+
- This allows parallel evaluation with no conflicts
|
|
50
|
+
|
|
51
|
+
### Review Content
|
|
52
|
+
|
|
53
|
+
Use the review template (`templates/review.md`) with the following structure:
|
|
54
|
+
|
|
55
|
+
If iterations are enabled (check manifest.yaml for `iterations` block), include the `iteration` field in the review frontmatter with the value of `currentIteration` from progress.json. If not enabled, omit it.
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
# Review: {module} — Task {N}: {feature name}
|
|
59
|
+
|
|
60
|
+
**Verdict:** pass | fail
|
|
61
|
+
**Attempt:** {1|2|3}
|
|
62
|
+
**Date:** {date}
|
|
63
|
+
**Iteration:** {N} ← only if iterations enabled
|
|
64
|
+
|
|
65
|
+
## Summary
|
|
66
|
+
{brief assessment}
|
|
67
|
+
|
|
68
|
+
## Criteria
|
|
69
|
+
| Criterion | Result | Detail |
|
|
70
|
+
|-----------|--------|--------|
|
|
71
|
+
| Functionality | pass/fail | {detail} |
|
|
72
|
+
| Completeness | pass/fail | {detail} |
|
|
73
|
+
| Correctness | pass/fail | {detail} |
|
|
74
|
+
| Integration | pass/fail | {detail} |
|
|
75
|
+
|
|
76
|
+
## Issues
|
|
77
|
+
{If fail — numbered list with file:line, description, suggested fix}
|
|
78
|
+
|
|
79
|
+
## Test Report
|
|
80
|
+
{Test execution summary and coverage}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Test Report
|
|
84
|
+
|
|
85
|
+
The `task-{N}-{slug}-test-report.md` captures test execution output and coverage data.
|
|
86
|
+
|
|
87
|
+
## After Review
|
|
88
|
+
|
|
89
|
+
- **Pass**: Update feature status to "passing" via update-tracking skill
|
|
90
|
+
- **Fail (attempt < 3)**: Update feature status to "fixing", developer reads review.md and fixes
|
|
91
|
+
- **Fail (attempt 3)**: Update feature status to "blocked", emit "escalate-human" event
|
|
92
|
+
|
|
93
|
+
## Rules
|
|
94
|
+
|
|
95
|
+
- Check against the SPEC, not the design or tasks — you are independent
|
|
96
|
+
- Run all tests before writing the review
|
|
97
|
+
- Be specific in failure reports — file paths, line numbers, expected vs actual
|
|
98
|
+
- Do not rubber-stamp — your independence is the framework's quality guarantee
|
|
99
|
+
- Delegate to superpowers:requesting-code-review for structured review process
|