@soleri/forge 9.0.1 → 9.3.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.
Files changed (64) hide show
  1. package/dist/compose-claude-md.js +1 -1
  2. package/dist/compose-claude-md.js.map +1 -1
  3. package/dist/scaffold-filetree.js +9 -14
  4. package/dist/scaffold-filetree.js.map +1 -1
  5. package/dist/skills/brain-debrief/SKILL.md +28 -24
  6. package/dist/skills/brainstorming/SKILL.md +16 -12
  7. package/dist/skills/code-patrol/SKILL.md +22 -22
  8. package/dist/skills/context-resume/SKILL.md +22 -19
  9. package/dist/skills/deep-review/SKILL.md +197 -0
  10. package/dist/skills/executing-plans/SKILL.md +23 -18
  11. package/dist/skills/fix-and-learn/SKILL.md +20 -16
  12. package/dist/skills/health-check/SKILL.md +32 -28
  13. package/dist/skills/knowledge-harvest/SKILL.md +27 -23
  14. package/dist/skills/onboard-me/SKILL.md +29 -26
  15. package/dist/skills/parallel-execute/SKILL.md +291 -0
  16. package/dist/skills/retrospective/SKILL.md +27 -24
  17. package/dist/skills/second-opinion/SKILL.md +17 -14
  18. package/dist/skills/systematic-debugging/SKILL.md +20 -16
  19. package/dist/skills/test-driven-development/SKILL.md +16 -16
  20. package/dist/skills/vault-capture/SKILL.md +24 -20
  21. package/dist/skills/vault-navigator/SKILL.md +24 -20
  22. package/dist/skills/vault-smells/SKILL.md +259 -0
  23. package/dist/skills/verification-before-completion/SKILL.md +26 -23
  24. package/dist/skills/writing-plans/SKILL.md +23 -20
  25. package/dist/templates/agents-md.js +2 -2
  26. package/dist/templates/agents-md.js.map +1 -1
  27. package/dist/templates/claude-md-template.js +2 -2
  28. package/dist/templates/claude-md-template.js.map +1 -1
  29. package/dist/templates/shared-rules.js +35 -1
  30. package/dist/templates/shared-rules.js.map +1 -1
  31. package/dist/templates/skills.js +28 -6
  32. package/dist/templates/skills.js.map +1 -1
  33. package/dist/types.d.ts +1 -1
  34. package/dist/types.js +6 -2
  35. package/dist/types.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/__tests__/scaffolder.test.ts +17 -35
  38. package/src/compose-claude-md.ts +1 -1
  39. package/src/scaffold-filetree.ts +10 -14
  40. package/src/skills/brain-debrief/SKILL.md +28 -24
  41. package/src/skills/brainstorming/SKILL.md +16 -12
  42. package/src/skills/code-patrol/SKILL.md +22 -22
  43. package/src/skills/context-resume/SKILL.md +22 -19
  44. package/src/skills/deep-review/SKILL.md +197 -0
  45. package/src/skills/executing-plans/SKILL.md +23 -18
  46. package/src/skills/fix-and-learn/SKILL.md +20 -16
  47. package/src/skills/health-check/SKILL.md +32 -28
  48. package/src/skills/knowledge-harvest/SKILL.md +27 -23
  49. package/src/skills/onboard-me/SKILL.md +29 -26
  50. package/src/skills/parallel-execute/SKILL.md +291 -0
  51. package/src/skills/retrospective/SKILL.md +27 -24
  52. package/src/skills/second-opinion/SKILL.md +17 -14
  53. package/src/skills/systematic-debugging/SKILL.md +20 -16
  54. package/src/skills/test-driven-development/SKILL.md +16 -16
  55. package/src/skills/vault-capture/SKILL.md +24 -20
  56. package/src/skills/vault-navigator/SKILL.md +24 -20
  57. package/src/skills/vault-smells/SKILL.md +259 -0
  58. package/src/skills/verification-before-completion/SKILL.md +26 -23
  59. package/src/skills/writing-plans/SKILL.md +23 -20
  60. package/src/templates/agents-md.ts +2 -2
  61. package/src/templates/claude-md-template.ts +2 -2
  62. package/src/templates/shared-rules.ts +36 -1
  63. package/src/templates/skills.ts +27 -6
  64. package/src/types.ts +7 -2
@@ -0,0 +1,291 @@
1
+ ---
2
+ name: parallel-execute
3
+ description: >
4
+ Use when executing a plan where independent tasks can run concurrently. Triggers on "run in
5
+ parallel", "parallelize", "fan out", "concurrent execution", "run simultaneously", "at the
6
+ same time", "dispatch subagents", "batch execute", or when a plan has 3+ tasks with no
7
+ dependency overlap. For sequential task-by-task execution, use executing-plans instead.
8
+ ---
9
+
10
+ # Parallel Execute — Subagent-Driven Plan Execution
11
+
12
+ Execute plan tasks in parallel by dispatching independent tasks to separate subagents. The controller agent (you) never implements — you dispatch, review, and integrate.
13
+
14
+ **Announce at start:** "I'm using the parallel-execute skill to run independent tasks concurrently."
15
+
16
+ <HARD-GATE>
17
+ You MUST have an approved, split plan before using this skill. If no plan exists or it has no tasks, stop and use the writing-plans skill first.
18
+ </HARD-GATE>
19
+
20
+ ## When to Use
21
+
22
+ - Plan has 3+ tasks
23
+ - At least 2 tasks have no dependency overlap (can run simultaneously)
24
+ - Tasks touch different files/modules (low merge conflict risk)
25
+
26
+ **Do NOT use when:**
27
+
28
+ - All tasks are sequential (each depends on the previous)
29
+ - Tasks modify the same files (high conflict risk)
30
+ - Plan has fewer than 3 tasks (use executing-plans instead)
31
+
32
+ ## The Process
33
+
34
+ ### Step 1: Load Plan and Build Dependency Graph
35
+
36
+ ```
37
+ YOUR_AGENT_core op:get_plan
38
+ YOUR_AGENT_core op:plan_list_tasks params:{ planId: "<id>" }
39
+ ```
40
+
41
+ Map out which tasks are independent by checking `dependsOn` for each task. Group tasks into **waves** — sets of tasks that can run in parallel:
42
+
43
+ - **Wave 1**: All tasks with no dependencies (or whose dependencies are already complete)
44
+ - **Wave 2**: Tasks whose dependencies are all in Wave 1
45
+ - **Wave N**: Tasks whose dependencies are all in prior waves
46
+
47
+ Present the wave plan to the user before starting:
48
+
49
+ ```
50
+ ## Execution Waves
51
+
52
+ | Wave | Tasks | Parallel? |
53
+ |------|-------|-----------|
54
+ | 1 | task-1, task-3, task-5 | Yes (3 subagents) |
55
+ | 2 | task-2 (depends on task-1) | Solo |
56
+ | 3 | task-4 (depends on task-2, task-3) | Solo |
57
+ ```
58
+
59
+ ### Step 2: Dispatch a Wave
60
+
61
+ For each task in the current wave:
62
+
63
+ 1. Check readiness:
64
+
65
+ ```
66
+ YOUR_AGENT_core op:plan_dispatch params:{ planId: "<id>", taskId: "<taskId>" }
67
+ ```
68
+
69
+ Only dispatch tasks where `ready: true`.
70
+
71
+ 2. Mark as in_progress:
72
+
73
+ ```
74
+ YOUR_AGENT_core op:update_task params:{ planId: "<id>", taskIndex: <n>, status: "in_progress" }
75
+ ```
76
+
77
+ 3. Gather vault context for the task:
78
+
79
+ ```
80
+ YOUR_AGENT_core op:search params:{ query: "<task topic>", mode: "scan" }
81
+ ```
82
+
83
+ 4. **Launch all ready tasks as parallel Agent calls in a single message.** Each subagent gets:
84
+
85
+ ```
86
+ You are implementing a single task from a plan. Work autonomously.
87
+
88
+ ## Task
89
+ - **ID**: {taskId}
90
+ - **Title**: {title}
91
+ - **Description**: {description}
92
+ - **Acceptance Criteria**: {criteria}
93
+
94
+ ## Context
95
+ - **Plan Objective**: {planObjective}
96
+ - **Vault Patterns to Follow**: {relevantPatterns}
97
+ - **Files Likely Involved**: {fileHints}
98
+
99
+ ## Rules
100
+ - Implement ONLY this task — do not touch files outside your scope
101
+ - Run tests after implementation
102
+ - If blocked, report the blocker and stop — do not guess
103
+ - Do not commit — the controller handles commits
104
+ - When done, report: files changed, tests passing, any concerns
105
+
106
+ ## Self-Review Checklist
107
+ Before reporting completion, verify:
108
+ - [ ] All acceptance criteria met
109
+ - [ ] Tests pass
110
+ - [ ] No files modified outside task scope
111
+ - [ ] No console.log or debug code left behind
112
+ - [ ] No raw colors or hardcoded values (use semantic tokens)
113
+ ```
114
+
115
+ Use the Agent tool with `isolation: "worktree"` when tasks touch nearby files to prevent conflicts.
116
+
117
+ ### Step 3: Collect Results
118
+
119
+ As subagents complete, collect their results. For each completed task:
120
+
121
+ 1. **Run spec review** — spawn a reviewer subagent:
122
+
123
+ ```
124
+ YOUR_AGENT_core op:plan_review_spec params:{ planId: "<id>", taskId: "<taskId>" }
125
+ ```
126
+
127
+ Use the returned prompt to launch a spec-review Agent that reads the ACTUAL code changes (not the implementer's self-report).
128
+
129
+ 2. **Record spec review outcome:**
130
+
131
+ ```
132
+ YOUR_AGENT_core op:plan_review_outcome params:{
133
+ planId: "<id>", taskId: "<taskId>",
134
+ reviewType: "spec", reviewer: "spec-reviewer",
135
+ outcome: "approved|rejected|needs_changes",
136
+ comments: "<specific file:line references>"
137
+ }
138
+ ```
139
+
140
+ 3. **If spec passes, run quality review:**
141
+
142
+ ```
143
+ YOUR_AGENT_core op:plan_review_quality params:{ planId: "<id>", taskId: "<taskId>" }
144
+ ```
145
+
146
+ Launch a quality-review Agent with the returned prompt.
147
+
148
+ 4. **Record quality review outcome:**
149
+
150
+ ```
151
+ YOUR_AGENT_core op:plan_review_outcome params:{
152
+ planId: "<id>", taskId: "<taskId>",
153
+ reviewType: "quality", reviewer: "quality-reviewer",
154
+ outcome: "approved|rejected|needs_changes",
155
+ comments: "<severity-tagged feedback>"
156
+ }
157
+ ```
158
+
159
+ 5. **Handle outcomes:**
160
+
161
+ | Spec | Quality | Action |
162
+ | ---- | ----------------- | ----------------------------------------------------------- |
163
+ | Pass | Pass | Mark task completed |
164
+ | Fail | — | Dispatch fix subagent with failure feedback (max 2 retries) |
165
+ | Pass | Critical issues | Dispatch targeted fix subagent (max 2 retries) |
166
+ | Pass | Minor issues only | Mark completed, note issues for later |
167
+
168
+ 6. **Mark completed:**
169
+ ```
170
+ YOUR_AGENT_core op:update_task params:{ planId: "<id>", taskIndex: <n>, status: "completed" }
171
+ ```
172
+
173
+ ### Step 4: Advance to Next Wave
174
+
175
+ After all tasks in a wave are complete (or failed after retries):
176
+
177
+ 1. Report wave results to the user:
178
+
179
+ ```
180
+ ## Wave N Complete
181
+
182
+ | Task | Status | Review | Notes |
183
+ |------|--------|--------|-------|
184
+ | task-1 | Completed | Spec: Pass, Quality: Pass | — |
185
+ | task-3 | Completed | Spec: Pass, Quality: Minor issues | Noted for cleanup |
186
+ | task-5 | Failed | Spec: Fail (2 retries exhausted) | Escalated |
187
+ ```
188
+
189
+ 2. **Wait for user acknowledgment** before proceeding to the next wave.
190
+
191
+ 3. Check which tasks in the next wave are now ready (dependencies met).
192
+
193
+ 4. Repeat from Step 2.
194
+
195
+ ### Step 5: Final Integration Review
196
+
197
+ After all waves complete:
198
+
199
+ 1. Spawn a final review subagent that checks cross-cutting concerns:
200
+ - Consistency across all task implementations
201
+ - Integration points between tasks
202
+ - No conflicting patterns or duplicate code
203
+ - Tests pass together (not just individually)
204
+
205
+ 2. Report to user with full execution summary.
206
+
207
+ ### Step 6: Complete Plan Lifecycle
208
+
209
+ Same as executing-plans — reconcile, capture knowledge, archive:
210
+
211
+ ```
212
+ YOUR_AGENT_core op:plan_reconcile params:{
213
+ planId: "<id>",
214
+ actualOutcome: "<what happened>",
215
+ driftItems: [{ type: "...", description: "...", impact: "...", rationale: "..." }]
216
+ }
217
+
218
+ YOUR_AGENT_core op:plan_complete_lifecycle params:{
219
+ planId: "<id>",
220
+ patterns: ["<patterns discovered>"],
221
+ antiPatterns: ["<anti-patterns discovered>"]
222
+ }
223
+
224
+ YOUR_AGENT_core op:session_capture params:{
225
+ summary: "<execution summary with parallel metrics>"
226
+ }
227
+ ```
228
+
229
+ ## Subagent Isolation Rules
230
+
231
+ | Situation | Isolation |
232
+ | -------------------------------------------- | ----------------------------------------- |
233
+ | Tasks touch completely different directories | No isolation needed |
234
+ | Tasks touch files in the same package | Use `isolation: "worktree"` |
235
+ | Tasks modify the same file | **Do NOT parallelize** — run sequentially |
236
+
237
+ When using worktree isolation, the controller must merge worktree changes back after review passes.
238
+
239
+ ## Failure Handling
240
+
241
+ | Failure | Response |
242
+ | ---------------------------- | ----------------------------------------------- |
243
+ | Subagent reports blocker | Pause that task, continue others in the wave |
244
+ | Spec review fails | Dispatch fix subagent with feedback (retry 1/2) |
245
+ | Second retry fails | Mark task as `failed`, escalate to user |
246
+ | Merge conflict from worktree | Resolve manually, then re-run quality review |
247
+ | All tasks in wave fail | Stop execution, report to user |
248
+
249
+ ## Capture Learnings
250
+
251
+ During execution, capture insights about parallelization:
252
+
253
+ ```
254
+ YOUR_AGENT_core op:capture_quick params:{
255
+ title: "<what you learned about parallel execution>",
256
+ description: "<context: which tasks parallelized well, which conflicted>"
257
+ }
258
+ ```
259
+
260
+ ## When to Fall Back to Sequential
261
+
262
+ **Switch to executing-plans skill mid-execution when:**
263
+
264
+ - Subagents keep conflicting on shared files
265
+ - Merge resolution is taking longer than the parallelization saves
266
+ - User requests sequential execution
267
+
268
+ ## Agent Tools Reference
269
+
270
+ | Op | When to Use |
271
+ | ------------------------- | ------------------------------------------- |
272
+ | `get_plan` | Load tracked plan |
273
+ | `plan_list_tasks` | List all tasks with dependencies |
274
+ | `plan_dispatch` | Check task readiness (dependencies met?) |
275
+ | `update_task` | Mark tasks in_progress / completed / failed |
276
+ | `plan_review_spec` | Generate spec compliance review prompt |
277
+ | `plan_review_quality` | Generate code quality review prompt |
278
+ | `plan_review_outcome` | Record review pass/fail result |
279
+ | `plan_reconcile` | Post-execution drift analysis |
280
+ | `plan_complete_lifecycle` | Extract knowledge, archive |
281
+ | `session_capture` | Save session context |
282
+ | `capture_quick` | Capture mid-execution learnings |
283
+ | `search` | Vault lookup for task context |
284
+
285
+ ## Integration
286
+
287
+ **Required skills:**
288
+
289
+ - writing-plans — Creates the plan this skill executes
290
+ - verification-before-completion — Verify work before claiming completion
291
+ - executing-plans — Fallback for sequential execution
@@ -1,6 +1,9 @@
1
1
  ---
2
2
  name: retrospective
3
- description: Use when reflecting on recent work — sprint retros, weekly summaries, learning reports, or extracting actionable insights from accumulated session data.
3
+ description: >
4
+ Use for time-bound reflection on recent WORK — "sprint retro", "weekly summary", "what went
5
+ well this week", "end of sprint", "monthly report". Reviews sessions and extracts actionable
6
+ improvements. For brain pattern intelligence and strength scores, use brain-debrief instead.
4
7
  ---
5
8
 
6
9
  # Retrospective — Learning Report From Real Data
@@ -12,24 +15,24 @@ Generate a data-driven retrospective from session data, vault captures, plan out
12
15
  ### 1. Gather Data
13
16
 
14
17
  ```
15
- ernesto_core op:brain_stats
16
- ernesto_core op:brain_stats params: { since: "<start of period>" }
17
- ernesto_core op:brain_strengths
18
- ernesto_core op:vault_recent
19
- ernesto_core op:memory_topics
20
- ernesto_core op:memory_stats
21
- ernesto_core op:plan_stats
22
- ernesto_core op:admin_search_insights
23
- ernesto_core op:admin_vault_analytics
18
+ YOUR_AGENT_core op:brain_stats
19
+ YOUR_AGENT_core op:brain_stats params: { since: "<start of period>" }
20
+ YOUR_AGENT_core op:brain_strengths
21
+ YOUR_AGENT_core op:vault_recent
22
+ YOUR_AGENT_core op:memory_topics
23
+ YOUR_AGENT_core op:memory_stats
24
+ YOUR_AGENT_core op:plan_stats
25
+ YOUR_AGENT_core op:admin_search_insights
26
+ YOUR_AGENT_core op:admin_vault_analytics
24
27
  ```
25
28
 
26
29
  ### 2. Analyze Patterns
27
30
 
28
31
  ```
29
- ernesto_core op:vault_age_report
30
- ernesto_core op:curator_detect_duplicates
31
- ernesto_core op:curator_contradictions
32
- ernesto_core op:curator_health_audit
32
+ YOUR_AGENT_core op:vault_age_report
33
+ YOUR_AGENT_core op:curator_detect_duplicates
34
+ YOUR_AGENT_core op:curator_contradictions
35
+ YOUR_AGENT_core op:curator_health_audit
33
36
  ```
34
37
 
35
38
  ### 3. Present the Retrospective
@@ -62,7 +65,7 @@ Quality: X/100 | Duplicates: N | Contradictions: N | Stale: N
62
65
  ### 4. Capture the Retrospective
63
66
 
64
67
  ```
65
- ernesto_core op:capture_knowledge
68
+ YOUR_AGENT_core op:capture_knowledge
66
69
  params: {
67
70
  title: "Retrospective — [period]",
68
71
  description: "<key findings and action items>",
@@ -84,12 +87,12 @@ If quality issues found: `op:curator_consolidate` then `op:brain_build_intellige
84
87
 
85
88
  ## Quick Reference
86
89
 
87
- | Op | When to Use |
88
- |----|-------------|
89
- | `brain_stats` / `brain_strengths` | Metrics and patterns |
90
- | `vault_recent` | Recent captures |
91
- | `memory_topics` / `memory_stats` | Knowledge clusters |
92
- | `plan_stats` | Plan completion |
93
- | `admin_search_insights` | Search misses |
94
- | `curator_health_audit` | Vault quality |
95
- | `capture_knowledge` | Persist retrospective |
90
+ | Op | When to Use |
91
+ | --------------------------------- | --------------------- |
92
+ | `brain_stats` / `brain_strengths` | Metrics and patterns |
93
+ | `vault_recent` | Recent captures |
94
+ | `memory_topics` / `memory_stats` | Knowledge clusters |
95
+ | `plan_stats` | Plan completion |
96
+ | `admin_search_insights` | Search misses |
97
+ | `curator_health_audit` | Vault quality |
98
+ | `capture_knowledge` | Persist retrospective |
@@ -12,28 +12,31 @@ Get an informed recommendation that synthesizes vault knowledge, brain patterns,
12
12
  ### 1. Understand the Decision
13
13
 
14
14
  ```
15
- ernesto_core op:route_intent
15
+ YOUR_AGENT_core op:route_intent
16
16
  params: { prompt: "<user's question>" }
17
17
  ```
18
18
 
19
19
  ### 2. Search All Knowledge Sources
20
20
 
21
21
  **Vault** — previous decisions, patterns, anti-patterns:
22
+
22
23
  ```
23
- ernesto_core op:search_intelligent
24
+ YOUR_AGENT_core op:search_intelligent
24
25
  params: { query: "<the decision or options>" }
25
26
  ```
26
27
 
27
28
  **Brain** — proven approaches:
29
+
28
30
  ```
29
- ernesto_core op:brain_strengths
30
- ernesto_core op:brain_recommend
31
+ YOUR_AGENT_core op:brain_strengths
32
+ YOUR_AGENT_core op:brain_recommend
31
33
  params: { projectName: "<current project>" }
32
34
  ```
33
35
 
34
36
  **Cross-project** — what other projects chose:
37
+
35
38
  ```
36
- ernesto_core op:memory_cross_project_search
39
+ YOUR_AGENT_core op:memory_cross_project_search
37
40
  params: { query: "<topic>", crossProject: true }
38
41
  ```
39
42
 
@@ -69,7 +72,7 @@ ernesto_core op:memory_cross_project_search
69
72
  ### 4. Capture the Decision
70
73
 
71
74
  ```
72
- ernesto_core op:capture_knowledge
75
+ YOUR_AGENT_core op:capture_knowledge
73
76
  params: {
74
77
  title: "<decision title>",
75
78
  description: "<chosen option, rationale, rejected alternatives>",
@@ -87,11 +90,11 @@ ernesto_core op:capture_knowledge
87
90
 
88
91
  ## Quick Reference
89
92
 
90
- | Op | When to Use |
91
- |----|-------------|
92
- | `route_intent` | Classify decision type |
93
- | `search_intelligent` | Find previous decisions |
94
- | `brain_strengths` / `brain_recommend` | Proven approaches |
95
- | `memory_cross_project_search` | Other projects' choices |
96
- | `memory_search` | Session context |
97
- | `capture_knowledge` | Persist the decision |
93
+ | Op | When to Use |
94
+ | ------------------------------------- | ----------------------- |
95
+ | `route_intent` | Classify decision type |
96
+ | `search_intelligent` | Find previous decisions |
97
+ | `brain_strengths` / `brain_recommend` | Proven approaches |
98
+ | `memory_cross_project_search` | Other projects' choices |
99
+ | `memory_search` | Session context |
100
+ | `capture_knowledge` | Persist the decision |
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  name: systematic-debugging
3
- description: Use when encountering any bug, test failure, or unexpected behavior — before proposing fixes.
3
+ description: >
4
+ Use as the FIRST response when something is broken — "bug", "failing test", "not working",
5
+ "debug this", "error", "crash", "unexpected behavior", "weird issue". Diagnoses root cause
6
+ before proposing fixes. After root cause is found, hand off to fix-and-learn for repair and
7
+ knowledge capture.
4
8
  ---
5
9
 
6
10
  # Systematic Debugging
@@ -12,10 +16,10 @@ description: Use when encountering any bug, test failure, or unexpected behavior
12
16
  **BEFORE touching any code:**
13
17
 
14
18
  ```
15
- ernesto_core op:search_intelligent
19
+ YOUR_AGENT_core op:search_intelligent
16
20
  params: { query: "<bug or error message>" }
17
- ernesto_core op:brain_strengths
18
- ernesto_core op:memory_search
21
+ YOUR_AGENT_core op:brain_strengths
22
+ YOUR_AGENT_core op:memory_search
19
23
  params: { query: "<error or symptom>" }
20
24
  ```
21
25
 
@@ -26,7 +30,7 @@ Only if vault and web produce no answer, proceed to Phase 1.
26
30
  ## Start a Debug Loop
27
31
 
28
32
  ```
29
- ernesto_core op:loop_start
33
+ YOUR_AGENT_core op:loop_start
30
34
  params: { prompt: "Debug: <bug>", mode: "custom" }
31
35
  ```
32
36
 
@@ -60,8 +64,8 @@ Form single hypothesis, test minimally (one variable at a time), verify before c
60
64
  ## Phase 5: Capture the Learning
61
65
 
62
66
  ```
63
- ernesto_core op:loop_complete
64
- ernesto_core op:capture_knowledge
67
+ YOUR_AGENT_core op:loop_complete
68
+ YOUR_AGENT_core op:capture_knowledge
65
69
  params: {
66
70
  title: "<bug>",
67
71
  description: "<root cause, solution, what made it hard to find>",
@@ -69,7 +73,7 @@ ernesto_core op:capture_knowledge
69
73
  category: "<domain>",
70
74
  tags: ["<relevant>"]
71
75
  }
72
- ernesto_core op:session_capture
76
+ YOUR_AGENT_core op:session_capture
73
77
  ```
74
78
 
75
79
  ## Red Flags — STOP and Return to Phase 1
@@ -87,13 +91,13 @@ ernesto_core op:session_capture
87
91
 
88
92
  ## Quick Reference
89
93
 
90
- | Phase | Key Activities | Tools |
91
- |-------|---------------|-------|
92
- | 0. Search | Vault, web, memory | `search_intelligent`, `brain_strengths`, `memory_search` |
93
- | 1. Root Cause | Read errors, reproduce, trace | `loop_iterate` |
94
- | 2. Pattern | Find working examples, compare | `search_intelligent` |
95
- | 3. Hypothesis | Form theory, test minimally | `loop_iterate` |
96
- | 4. Implementation | Test, fix, verify | `loop_iterate` |
97
- | 5. Capture | Persist root cause | `capture_knowledge`, `loop_complete` |
94
+ | Phase | Key Activities | Tools |
95
+ | ----------------- | ------------------------------ | -------------------------------------------------------- |
96
+ | 0. Search | Vault, web, memory | `search_intelligent`, `brain_strengths`, `memory_search` |
97
+ | 1. Root Cause | Read errors, reproduce, trace | `loop_iterate` |
98
+ | 2. Pattern | Find working examples, compare | `search_intelligent` |
99
+ | 3. Hypothesis | Form theory, test minimally | `loop_iterate` |
100
+ | 4. Implementation | Test, fix, verify | `loop_iterate` |
101
+ | 5. Capture | Persist root cause | `capture_knowledge`, `loop_complete` |
98
102
 
99
103
  **Related skills:** test-driven-development, verification-before-completion, fix-and-learn
@@ -10,9 +10,9 @@ description: Use when implementing any feature or bugfix — write failing tests
10
10
  ## Before You Start — Search First
11
11
 
12
12
  ```
13
- ernesto_core op:search_intelligent
13
+ YOUR_AGENT_core op:search_intelligent
14
14
  params: { query: "<what you're about to test>" }
15
- ernesto_core op:brain_strengths
15
+ YOUR_AGENT_core op:brain_strengths
16
16
  ```
17
17
 
18
18
  If vault has testing guidance for this domain, follow it.
@@ -20,7 +20,7 @@ If vault has testing guidance for this domain, follow it.
20
20
  ## Start a TDD Loop
21
21
 
22
22
  ```
23
- ernesto_core op:loop_start
23
+ YOUR_AGENT_core op:loop_start
24
24
  params: { prompt: "TDD: <feature>", mode: "custom" }
25
25
  ```
26
26
 
@@ -63,8 +63,8 @@ Next failing test for next behavior.
63
63
  ## After TDD
64
64
 
65
65
  ```
66
- ernesto_core op:loop_complete
67
- ernesto_core op:capture_quick
66
+ YOUR_AGENT_core op:loop_complete
67
+ YOUR_AGENT_core op:capture_quick
68
68
  params: { title: "<testing pattern>", description: "<what you learned>" }
69
69
  ```
70
70
 
@@ -75,17 +75,17 @@ ernesto_core op:capture_quick
75
75
  - Test passes immediately (testing existing behavior, not new)
76
76
  - Multiple behaviors in one test ("and" in name means split it)
77
77
 
78
- | Problem | Solution |
79
- |---------|----------|
80
- | Don't know how to test | Write wished-for API first |
81
- | Must mock everything | Code too coupled — use DI |
82
- | Test setup huge | Extract helpers or simplify design |
78
+ | Problem | Solution |
79
+ | ---------------------- | ---------------------------------- |
80
+ | Don't know how to test | Write wished-for API first |
81
+ | Must mock everything | Code too coupled — use DI |
82
+ | Test setup huge | Extract helpers or simplify design |
83
83
 
84
84
  ## Quick Reference
85
85
 
86
- | Op | When to Use |
87
- |----|-------------|
88
- | `search_intelligent` | Find testing patterns |
89
- | `brain_strengths` | Proven testing approaches |
90
- | `loop_start` / `loop_iterate` / `loop_complete` | TDD cycle tracking |
91
- | `capture_quick` | Capture new testing patterns |
86
+ | Op | When to Use |
87
+ | ----------------------------------------------- | ---------------------------- |
88
+ | `search_intelligent` | Find testing patterns |
89
+ | `brain_strengths` | Proven testing approaches |
90
+ | `loop_start` / `loop_iterate` / `loop_complete` | TDD cycle tracking |
91
+ | `capture_quick` | Capture new testing patterns |
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  name: vault-capture
3
- description: Use when persisting a pattern, anti-pattern, workflow, decision, or principle to the knowledge base — after discovering something worth remembering.
3
+ description: >
4
+ Use to capture a SINGLE known pattern, anti-pattern, workflow, decision, or principle to the
5
+ vault. Triggers on "save this", "capture this", "remember this pattern", "add to vault". The
6
+ user already knows what to capture. For bulk extraction from documents, code, or PRs, use
7
+ knowledge-harvest instead.
4
8
  ---
5
9
 
6
10
  # Vault Capture — Persist Knowledge
@@ -12,27 +16,27 @@ Capture patterns, anti-patterns, workflows, and principles to the vault. Capture
12
16
  ### 1. Check for Duplicates
13
17
 
14
18
  ```
15
- ernesto_core op:search_intelligent
19
+ YOUR_AGENT_core op:search_intelligent
16
20
  params: { query: "<knowledge title or description>" }
17
- ernesto_core op:curator_detect_duplicates
21
+ YOUR_AGENT_core op:curator_detect_duplicates
18
22
  ```
19
23
 
20
24
  If similar entry exists, update it instead of creating a duplicate.
21
25
 
22
26
  ### 2. Classify the Knowledge
23
27
 
24
- | Type | Description |
25
- |------|-------------|
26
- | **pattern** | Works and should be repeated |
27
- | **anti-pattern** | Fails and should be avoided |
28
- | **workflow** | Steps for a specific task |
29
- | **principle** | Guiding rule or heuristic |
30
- | **decision** | Architectural choice with rationale |
28
+ | Type | Description |
29
+ | ---------------- | ----------------------------------- |
30
+ | **pattern** | Works and should be repeated |
31
+ | **anti-pattern** | Fails and should be avoided |
32
+ | **workflow** | Steps for a specific task |
33
+ | **principle** | Guiding rule or heuristic |
34
+ | **decision** | Architectural choice with rationale |
31
35
 
32
36
  ### 3. Capture
33
37
 
34
38
  ```
35
- ernesto_core op:capture_knowledge
39
+ YOUR_AGENT_core op:capture_knowledge
36
40
  params: {
37
41
  title: "<clear, searchable name>",
38
42
  description: "<what it is and when it applies>",
@@ -44,7 +48,7 @@ ernesto_core op:capture_knowledge
44
48
  }
45
49
  ```
46
50
 
47
- For quick captures: `ernesto_core op:capture_quick params: { title: "<name>", description: "<details>" }`
51
+ For quick captures: `YOUR_AGENT_core op:capture_quick params: { title: "<name>", description: "<details>" }`
48
52
 
49
53
  ### 4. Post-Capture Quality
50
54
 
@@ -72,11 +76,11 @@ For cross-project knowledge: `op:memory_promote_to_global params: { entryId: "<i
72
76
 
73
77
  ## Quick Reference
74
78
 
75
- | Op | When to Use |
76
- |----|-------------|
77
- | `search_intelligent` | Check for duplicates |
78
- | `capture_knowledge` / `capture_quick` | Persist to vault |
79
- | `curator_groom` / `curator_enrich` | Post-capture quality |
80
- | `curator_contradictions` | Find conflicts |
81
- | `memory_promote_to_global` | Share cross-project |
82
- | `admin_health` | Verify health |
79
+ | Op | When to Use |
80
+ | ------------------------------------- | -------------------- |
81
+ | `search_intelligent` | Check for duplicates |
82
+ | `capture_knowledge` / `capture_quick` | Persist to vault |
83
+ | `curator_groom` / `curator_enrich` | Post-capture quality |
84
+ | `curator_contradictions` | Find conflicts |
85
+ | `memory_promote_to_global` | Share cross-project |
86
+ | `admin_health` | Verify health |