@soleri/forge 5.4.0 → 5.6.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 (72) hide show
  1. package/dist/scaffolder.js +98 -6
  2. package/dist/scaffolder.js.map +1 -1
  3. package/dist/skills/brain-debrief.md +186 -0
  4. package/dist/skills/brainstorming.md +170 -0
  5. package/dist/skills/code-patrol.md +176 -0
  6. package/dist/skills/context-resume.md +143 -0
  7. package/dist/skills/executing-plans.md +201 -0
  8. package/dist/skills/fix-and-learn.md +164 -0
  9. package/dist/skills/health-check.md +225 -0
  10. package/dist/skills/knowledge-harvest.md +178 -0
  11. package/dist/skills/onboard-me.md +197 -0
  12. package/dist/skills/retrospective.md +189 -0
  13. package/dist/skills/second-opinion.md +142 -0
  14. package/dist/skills/skills/brain-debrief.md +214 -0
  15. package/dist/skills/skills/brainstorming.md +180 -0
  16. package/dist/skills/skills/code-patrol.md +178 -0
  17. package/dist/skills/skills/context-resume.md +146 -0
  18. package/dist/skills/skills/executing-plans.md +216 -0
  19. package/dist/skills/skills/fix-and-learn.md +167 -0
  20. package/dist/skills/skills/health-check.md +231 -0
  21. package/dist/skills/skills/knowledge-harvest.md +185 -0
  22. package/dist/skills/skills/onboard-me.md +198 -0
  23. package/dist/skills/skills/retrospective.md +205 -0
  24. package/dist/skills/skills/second-opinion.md +149 -0
  25. package/dist/skills/skills/systematic-debugging.md +241 -0
  26. package/dist/skills/skills/test-driven-development.md +281 -0
  27. package/dist/skills/skills/vault-capture.md +170 -0
  28. package/dist/skills/skills/vault-navigator.md +140 -0
  29. package/dist/skills/skills/verification-before-completion.md +182 -0
  30. package/dist/skills/skills/writing-plans.md +215 -0
  31. package/dist/skills/systematic-debugging.md +230 -0
  32. package/dist/skills/test-driven-development.md +266 -0
  33. package/dist/skills/vault-capture.md +154 -0
  34. package/dist/skills/vault-navigator.md +129 -0
  35. package/dist/skills/verification-before-completion.md +170 -0
  36. package/dist/skills/writing-plans.md +207 -0
  37. package/dist/templates/entry-point.js +8 -0
  38. package/dist/templates/entry-point.js.map +1 -1
  39. package/dist/templates/readme.js +38 -0
  40. package/dist/templates/readme.js.map +1 -1
  41. package/dist/templates/setup-script.js +26 -0
  42. package/dist/templates/setup-script.js.map +1 -1
  43. package/dist/templates/skills.d.ts +16 -0
  44. package/dist/templates/skills.js +73 -0
  45. package/dist/templates/skills.js.map +1 -0
  46. package/dist/templates/test-facades.js +35 -6
  47. package/dist/templates/test-facades.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/__tests__/scaffolder.test.ts +115 -2
  50. package/src/scaffolder.ts +100 -6
  51. package/src/skills/brain-debrief.md +214 -0
  52. package/src/skills/brainstorming.md +180 -0
  53. package/src/skills/code-patrol.md +178 -0
  54. package/src/skills/context-resume.md +146 -0
  55. package/src/skills/executing-plans.md +216 -0
  56. package/src/skills/fix-and-learn.md +167 -0
  57. package/src/skills/health-check.md +231 -0
  58. package/src/skills/knowledge-harvest.md +185 -0
  59. package/src/skills/onboard-me.md +198 -0
  60. package/src/skills/retrospective.md +205 -0
  61. package/src/skills/second-opinion.md +149 -0
  62. package/src/skills/systematic-debugging.md +241 -0
  63. package/src/skills/test-driven-development.md +281 -0
  64. package/src/skills/vault-capture.md +170 -0
  65. package/src/skills/vault-navigator.md +140 -0
  66. package/src/skills/verification-before-completion.md +182 -0
  67. package/src/skills/writing-plans.md +215 -0
  68. package/src/templates/entry-point.ts +8 -0
  69. package/src/templates/readme.ts +38 -0
  70. package/src/templates/setup-script.ts +26 -0
  71. package/src/templates/skills.ts +82 -0
  72. package/src/templates/test-facades.ts +35 -6
@@ -0,0 +1,205 @@
1
+ ---
2
+ name: retrospective
3
+ description: Use when the user asks "what did I learn this week", "sprint retro", "retrospective", "learning report", "what went well", "what could improve", "weekly summary", "monthly report", or wants to reflect on recent work and extract actionable insights from accumulated data.
4
+ ---
5
+
6
+ # Retrospective — Learning Report From Real Data
7
+
8
+ Generate a retrospective from actual session data, vault captures, plan outcomes, and brain intelligence. Not opinions — data-driven reflection on what happened, what worked, what didn't, and what to do differently.
9
+
10
+ ## When to Use
11
+
12
+ - End of sprint / week / month
13
+ - "What did I learn this week?"
14
+ - "Sprint retrospective"
15
+ - "What went well? What didn't?"
16
+ - After completing a major feature or milestone
17
+
18
+ ## The Magic: Data-Driven Reflection
19
+
20
+ ### Step 1: Gather the Data
21
+
22
+ **Brain stats — the big picture:**
23
+
24
+ ```
25
+ YOUR_AGENT_core op:brain_stats
26
+ ```
27
+
28
+ **Recent brain stats — compare velocity:**
29
+
30
+ ```
31
+ YOUR_AGENT_core op:brain_stats
32
+ params: { since: "<start of period>" }
33
+ ```
34
+
35
+ **Pattern strengths — what's proven:**
36
+
37
+ ```
38
+ YOUR_AGENT_core op:brain_strengths
39
+ ```
40
+
41
+ **Recent vault captures — what was learned:**
42
+
43
+ ```
44
+ YOUR_AGENT_core op:vault_recent
45
+ ```
46
+
47
+ **Memory topics — where knowledge clusters:**
48
+
49
+ ```
50
+ YOUR_AGENT_core op:memory_topics
51
+ ```
52
+
53
+ **Memory stats — volume and health:**
54
+
55
+ ```
56
+ YOUR_AGENT_core op:memory_stats
57
+ ```
58
+
59
+ **Plan stats — execution track record:**
60
+
61
+ ```
62
+ YOUR_AGENT_core op:plan_stats
63
+ ```
64
+
65
+ **Loop history — iterative workflow outcomes:**
66
+
67
+ ```
68
+ YOUR_AGENT_core op:loop_history
69
+ ```
70
+
71
+ **Search insights — what people looked for but didn't find:**
72
+
73
+ ```
74
+ YOUR_AGENT_core op:admin_search_insights
75
+ ```
76
+
77
+ **Vault analytics — knowledge quality:**
78
+
79
+ ```
80
+ YOUR_AGENT_core op:admin_vault_analytics
81
+ ```
82
+
83
+ ### Step 2: Analyze Patterns
84
+
85
+ **Stale knowledge needing refresh:**
86
+
87
+ ```
88
+ YOUR_AGENT_core op:vault_age_report
89
+ ```
90
+
91
+ **Duplicates that crept in:**
92
+
93
+ ```
94
+ YOUR_AGENT_core op:curator_detect_duplicates
95
+ ```
96
+
97
+ **Contradictions in the knowledge base:**
98
+
99
+ ```
100
+ YOUR_AGENT_core op:curator_contradictions
101
+ ```
102
+
103
+ **Curator health audit — overall quality:**
104
+
105
+ ```
106
+ YOUR_AGENT_core op:curator_health_audit
107
+ ```
108
+
109
+ ### Step 3: Present the Retrospective
110
+
111
+ ```
112
+ ## Retrospective: [Period]
113
+
114
+ ### By the Numbers
115
+ | Metric | This Period | Previous | Trend |
116
+ |--------|-----------|----------|-------|
117
+ | Patterns captured | X | Y | ↑/↓ |
118
+ | Anti-patterns logged | X | Y | ↑/↓ |
119
+ | Plans completed | X | Y | ↑/↓ |
120
+ | Brain strength (avg) | X | Y | ↑/↓ |
121
+ | Vault entries total | X | — | — |
122
+ | Search misses | X | Y | ↑/↓ |
123
+
124
+ ### What Went Well
125
+ [Patterns with high brain strength, completed plans, growing domains]
126
+
127
+ ### What Didn't Go Well
128
+ [Recurring anti-patterns, failed plans, search misses = knowledge gaps]
129
+
130
+ ### Strongest Patterns
131
+ [Top 5 patterns by brain strength — these are your superpowers]
132
+
133
+ ### Recurring Anti-Patterns
134
+ [Top 3 anti-patterns that keep appearing — these need systemic fixes]
135
+
136
+ ### Knowledge Gaps
137
+ [Domains with low coverage, frequent search misses, stale entries]
138
+
139
+ ### Vault Health
140
+ - Quality score: X/100
141
+ - Duplicates found: N
142
+ - Contradictions found: N
143
+ - Stale entries (>30 days): N
144
+
145
+ ### Recommendations
146
+ 1. [Action item based on data]
147
+ 2. [Action item based on data]
148
+ 3. [Action item based on data]
149
+ ```
150
+
151
+ ### Step 4: Capture the Retrospective
152
+
153
+ Save the retrospective itself as knowledge:
154
+
155
+ ```
156
+ YOUR_AGENT_core op:capture_knowledge
157
+ params: {
158
+ title: "Retrospective — [period]",
159
+ description: "<key findings and action items>",
160
+ type: "workflow",
161
+ category: "meta",
162
+ tags: ["retrospective", "<period>"]
163
+ }
164
+ ```
165
+
166
+ ### Step 5: Clean Up (Optional)
167
+
168
+ If the retrospective revealed quality issues, offer to fix them:
169
+
170
+ **Consolidate vault (deduplicate, normalize, groom):**
171
+
172
+ ```
173
+ YOUR_AGENT_core op:curator_consolidate
174
+ ```
175
+
176
+ **Rebuild brain intelligence with fresh data:**
177
+
178
+ ```
179
+ YOUR_AGENT_core op:brain_build_intelligence
180
+ ```
181
+
182
+ ## The Magic
183
+
184
+ This feels like magic because the user says "sprint retro" and gets a data-driven report they didn't have to compile. It's not AI making up observations — it's actual metrics from their vault, brain, plans, and memory. The recommendations come from real gaps, not generic advice.
185
+
186
+ ## Agent Tools Reference
187
+
188
+ | Op | When to Use |
189
+ | --------------------------- | --------------------------- |
190
+ | `brain_stats` | Big picture metrics |
191
+ | `brain_strengths` | Proven patterns |
192
+ | `vault_recent` | What was captured recently |
193
+ | `memory_topics` | Knowledge clusters |
194
+ | `memory_stats` | Memory volume and health |
195
+ | `plan_stats` | Plan completion rates |
196
+ | `loop_history` | Iterative workflow outcomes |
197
+ | `admin_search_insights` | Search miss analysis |
198
+ | `admin_vault_analytics` | Knowledge quality metrics |
199
+ | `vault_age_report` | Stale entries |
200
+ | `curator_detect_duplicates` | Duplicate detection |
201
+ | `curator_contradictions` | Knowledge conflicts |
202
+ | `curator_health_audit` | Overall vault quality |
203
+ | `capture_knowledge` | Persist the retrospective |
204
+ | `curator_consolidate` | Post-retro cleanup |
205
+ | `brain_build_intelligence` | Rebuild intelligence |
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: second-opinion
3
+ description: Use when the user asks "should I", "what do you think about", "which approach", "compare options", "what would you recommend", "pros and cons", "trade-offs", or faces any technical decision and wants an informed recommendation backed by vault knowledge, brain patterns, and web research.
4
+ ---
5
+
6
+ # Second Opinion — Decision Support From All Sources
7
+
8
+ Before making any technical decision, get an informed recommendation that synthesizes vault knowledge, brain patterns, cross-project experience, and web research. Never decide in a vacuum.
9
+
10
+ ## When to Use
11
+
12
+ - "Should I use Redis or Memcached?"
13
+ - "What's the best way to handle auth?"
14
+ - "Which testing framework?"
15
+ - "Microservices or monolith?"
16
+ - Any fork-in-the-road technical decision
17
+
18
+ ## The Magic: Multi-Source Decision Intelligence
19
+
20
+ ### Step 1: Understand the Decision
21
+
22
+ Classify the intent to understand what kind of decision this is:
23
+
24
+ ```
25
+ YOUR_AGENT_core op:route_intent
26
+ params: { prompt: "<user's question>" }
27
+ ```
28
+
29
+ ### Step 2: Search All Knowledge Sources (in order)
30
+
31
+ **Vault — has this been decided before?**
32
+
33
+ ```
34
+ YOUR_AGENT_core op:search_intelligent
35
+ params: { query: "<the decision or options being considered>" }
36
+ ```
37
+
38
+ Look specifically for:
39
+
40
+ - Previous decisions on this topic (type: "decision")
41
+ - Patterns that favor one approach
42
+ - Anti-patterns that warn against an approach
43
+
44
+ **Brain — what's proven to work?**
45
+
46
+ ```
47
+ YOUR_AGENT_core op:brain_strengths
48
+ ```
49
+
50
+ ```
51
+ YOUR_AGENT_core op:brain_recommend
52
+ params: { projectName: "<current project>" }
53
+ ```
54
+
55
+ **Cross-project — what did other projects choose?**
56
+
57
+ ```
58
+ YOUR_AGENT_core op:memory_cross_project_search
59
+ params: { query: "<the decision topic>", crossProject: true }
60
+ ```
61
+
62
+ **Memory — any relevant context from past sessions?**
63
+
64
+ ```
65
+ YOUR_AGENT_core op:memory_search
66
+ params: { query: "<decision topic>" }
67
+ ```
68
+
69
+ **Web — what does the broader community say?**
70
+ Search the web for:
71
+
72
+ - Comparison articles (X vs Y for [use case])
73
+ - Benchmarks and performance data
74
+ - Community consensus on best practices
75
+ - Known limitations and gotchas
76
+
77
+ ### Step 3: Synthesize and Present
78
+
79
+ Format the recommendation as a decision brief:
80
+
81
+ ```
82
+ ## Decision: [Question]
83
+
84
+ ### What the Vault Says
85
+ [Existing decisions, patterns, and anti-patterns from vault]
86
+
87
+ ### What the Brain Recommends
88
+ [Proven patterns, cross-project insights]
89
+
90
+ ### What the Web Says
91
+ [Community consensus, benchmarks, comparison data]
92
+
93
+ ### Options Analysis
94
+
95
+ | Criteria | Option A | Option B | Option C |
96
+ |----------|----------|----------|----------|
97
+ | [criteria 1] | ... | ... | ... |
98
+ | [criteria 2] | ... | ... | ... |
99
+ | Vault support | [existing patterns?] | [existing patterns?] | — |
100
+ | Brain confidence | [strength score] | [strength score] | — |
101
+
102
+ ### Recommendation
103
+ [Clear recommendation with reasoning]
104
+
105
+ ### Risks
106
+ [What could go wrong with the recommended approach]
107
+ ```
108
+
109
+ ### Step 4: Capture the Decision
110
+
111
+ Once the user decides, capture it to the vault for future reference:
112
+
113
+ ```
114
+ YOUR_AGENT_core op:capture_knowledge
115
+ params: {
116
+ title: "<decision title>",
117
+ description: "<chosen option, rationale, rejected alternatives and why>",
118
+ type: "decision",
119
+ category: "<relevant domain>",
120
+ tags: ["<option-a>", "<option-b>", "decision", "<domain>"]
121
+ }
122
+ ```
123
+
124
+ This is critical — the next person who faces the same decision will find it in the vault.
125
+
126
+ ## The Magic
127
+
128
+ This feels like magic because the user asks "should I use X?" and instead of a generic AI opinion, they get:
129
+
130
+ 1. What their own project decided before (vault)
131
+ 2. What's proven to work across projects (brain)
132
+ 3. What other linked projects chose (cross-project)
133
+ 4. What the broader community recommends (web)
134
+ 5. A synthesized recommendation with trade-offs
135
+ 6. The decision captured for the next person who asks
136
+
137
+ It's like having a senior architect who remembers every decision ever made.
138
+
139
+ ## Agent Tools Reference
140
+
141
+ | Op | When to Use |
142
+ | ----------------------------- | ------------------------------------ |
143
+ | `route_intent` | Classify the decision type |
144
+ | `search_intelligent` | Find previous decisions and patterns |
145
+ | `brain_strengths` | Proven approaches |
146
+ | `brain_recommend` | Project-specific recommendations |
147
+ | `memory_cross_project_search` | What other projects decided |
148
+ | `memory_search` | Session context for this decision |
149
+ | `capture_knowledge` | Persist the final decision |
@@ -0,0 +1,241 @@
1
+ ---
2
+ name: systematic-debugging
3
+ description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
4
+ ---
5
+
6
+ <!-- Adapted from superpowers (MIT License) -->
7
+
8
+ # Systematic Debugging
9
+
10
+ ## Overview
11
+
12
+ Random fixes waste time and create new bugs. Quick patches mask underlying issues.
13
+
14
+ **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
15
+
16
+ **Violating the letter of this process is violating the spirit of debugging.**
17
+
18
+ ## The Iron Law
19
+
20
+ ```
21
+ NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
22
+ ```
23
+
24
+ If you haven't completed Phase 1, you cannot propose fixes.
25
+
26
+ ## When to Use
27
+
28
+ Use for ANY technical issue:
29
+
30
+ - Test failures
31
+ - Bugs in production
32
+ - Unexpected behavior
33
+ - Performance problems
34
+ - Build failures
35
+ - Integration issues
36
+
37
+ **Use this ESPECIALLY when:**
38
+
39
+ - Under time pressure (emergencies make guessing tempting)
40
+ - "Just one quick fix" seems obvious
41
+ - You've already tried multiple fixes
42
+ - Previous fix didn't work
43
+ - You don't fully understand the issue
44
+
45
+ ## Phase 0: Search Before Investigating
46
+
47
+ **BEFORE touching any code**, search for existing solutions. Follow this order:
48
+
49
+ ### Vault First
50
+
51
+ ```
52
+ YOUR_AGENT_core op:search_intelligent
53
+ params: { query: "<description of the bug or error message>" }
54
+ ```
55
+
56
+ If the vault has a matching anti-pattern or previous fix, it likely contains the root cause and solution — apply it directly. This can save hours of investigation.
57
+
58
+ Also check brain strengths for relevant debugging patterns:
59
+
60
+ ```
61
+ YOUR_AGENT_core op:brain_strengths
62
+ ```
63
+
64
+ Check memory for similar bugs across sessions:
65
+
66
+ ```
67
+ YOUR_AGENT_core op:memory_search
68
+ params: { query: "<error or symptom>" }
69
+ ```
70
+
71
+ ### Web Search Second
72
+
73
+ If the vault has nothing, search the web before investigating from scratch:
74
+
75
+ - **Paste the exact error message** — someone likely hit this before
76
+ - **Check GitHub issues** on relevant libraries
77
+ - **Check Stack Overflow** for the error + framework/library combination
78
+ - **Check official docs** — is this a known limitation or misconfiguration?
79
+
80
+ A 30-second search that finds "this is a known issue in v3.2, upgrade to v3.3" saves hours of root cause investigation.
81
+
82
+ ### Then Investigate
83
+
84
+ Only if vault and web search produce no answer, proceed to Phase 1.
85
+
86
+ ## Start a Debug Loop
87
+
88
+ For complex bugs, start a validation loop to track investigation iterations:
89
+
90
+ ```
91
+ YOUR_AGENT_core op:loop_start
92
+ params: { prompt: "Debug: <bug description>", mode: "custom" }
93
+ ```
94
+
95
+ ## The Four Phases
96
+
97
+ You MUST complete each phase before proceeding to the next.
98
+
99
+ ### Phase 1: Root Cause Investigation
100
+
101
+ **BEFORE attempting ANY fix:**
102
+
103
+ 1. Read Error Messages Carefully
104
+ 2. Reproduce Consistently
105
+ 3. Check Recent Changes
106
+ 4. Gather Evidence in Multi-Component Systems (add diagnostic instrumentation at each component boundary)
107
+ 5. Trace Data Flow backward through call stack
108
+
109
+ Track each investigation step:
110
+
111
+ ```
112
+ YOUR_AGENT_core op:loop_iterate
113
+ ```
114
+
115
+ ### Phase 2: Pattern Analysis
116
+
117
+ 1. Find Working Examples
118
+ 2. Compare Against References (read completely, don't skim)
119
+ 3. Identify Differences
120
+ 4. Understand Dependencies
121
+
122
+ Search vault for working patterns to compare against:
123
+
124
+ ```
125
+ YOUR_AGENT_core op:search_intelligent
126
+ params: { query: "<working feature similar to broken one>" }
127
+ ```
128
+
129
+ ### Phase 3: Hypothesis and Testing
130
+
131
+ 1. Form Single Hypothesis ("I think X is the root cause because Y")
132
+ 2. Test Minimally (one variable at a time)
133
+ 3. Verify Before Continuing
134
+ 4. When You Don't Know — say so, ask for help
135
+
136
+ ### Phase 4: Implementation
137
+
138
+ 1. Create Failing Test Case (use test-driven-development skill)
139
+ 2. Implement Single Fix (root cause only, one change at a time)
140
+ 3. Verify Fix
141
+ 4. If Fix Doesn't Work: count attempts. If < 3, return to Phase 1. If >= 3, STOP and question architecture.
142
+ 5. If 3+ Fixes Failed: Question Architecture — discuss with human partner before attempting more fixes.
143
+
144
+ ## Phase 5: Capture the Learning
145
+
146
+ Complete the debug loop:
147
+
148
+ ```
149
+ YOUR_AGENT_core op:loop_complete
150
+ ```
151
+
152
+ **MANDATORY after every resolved bug.** A fix without a capture is an incomplete fix.
153
+
154
+ ```
155
+ YOUR_AGENT_core op:capture_knowledge
156
+ params: {
157
+ title: "<short bug description>",
158
+ description: "<root cause, solution, and what made it hard to find>",
159
+ type: "anti-pattern",
160
+ category: "<relevant domain>",
161
+ tags: ["<relevant>", "<tags>"]
162
+ }
163
+ ```
164
+
165
+ For quick captures when the fix is straightforward:
166
+
167
+ ```
168
+ YOUR_AGENT_core op:capture_quick
169
+ params: {
170
+ title: "<bug description>",
171
+ description: "<root cause and fix>"
172
+ }
173
+ ```
174
+
175
+ Capture a session summary:
176
+
177
+ ```
178
+ YOUR_AGENT_core op:session_capture
179
+ params: { summary: "<bug, root cause, fix, files modified>" }
180
+ ```
181
+
182
+ This is what makes the agent smarter over time. Next time someone hits a similar bug, Phase 0 vault search will surface your solution immediately.
183
+
184
+ ## Red Flags - STOP and Follow Process
185
+
186
+ - "Quick fix for now, investigate later"
187
+ - "Just try changing X and see if it works"
188
+ - "Add multiple changes, run tests"
189
+ - "Skip the test, I'll manually verify"
190
+ - "It's probably X, let me fix that"
191
+ - "I don't fully understand but this might work"
192
+ - Proposing solutions before tracing data flow
193
+ - "One more fix attempt" (when already tried 2+)
194
+ - Each fix reveals new problem in different place
195
+
196
+ **ALL of these mean: STOP. Return to Phase 1.**
197
+
198
+ ## Common Rationalizations
199
+
200
+ | Excuse | Reality |
201
+ | -------------------------------------------- | ----------------------------------------------------------------------- |
202
+ | "Issue is simple, don't need process" | Simple issues have root causes too. |
203
+ | "Emergency, no time for process" | Systematic is FASTER than guess-and-check thrashing. |
204
+ | "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
205
+ | "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it. |
206
+ | "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
207
+ | "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely. |
208
+ | "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
209
+ | "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
210
+ | "Skip the vault, I know this one" | The vault may know it better. 30 seconds to check saves hours. |
211
+
212
+ ## Quick Reference
213
+
214
+ | Phase | Key Activities | Agent Tools |
215
+ | --------------------- | -------------------------------- | -------------------------------------------------------- |
216
+ | **0. Search First** | Vault search, web search, memory | `search_intelligent`, `brain_strengths`, `memory_search` |
217
+ | **1. Root Cause** | Read errors, reproduce, trace | `loop_iterate` |
218
+ | **2. Pattern** | Find working examples, compare | `search_intelligent` |
219
+ | **3. Hypothesis** | Form theory, test minimally | `loop_iterate` |
220
+ | **4. Implementation** | Create test, fix, verify | `loop_iterate` |
221
+ | **5. Capture** | Persist root cause, close loop | `capture_knowledge`, `loop_complete`, `session_capture` |
222
+
223
+ ## Agent Tools Reference
224
+
225
+ | Op | When to Use |
226
+ | -------------------- | ---------------------------------------- |
227
+ | `search_intelligent` | Search vault for known bugs and patterns |
228
+ | `brain_strengths` | Check proven debugging patterns |
229
+ | `memory_search` | Search across session memories |
230
+ | `loop_start` | Begin iterative debug cycle |
231
+ | `loop_iterate` | Track each investigation/fix attempt |
232
+ | `loop_complete` | Finish debug cycle |
233
+ | `capture_knowledge` | Full anti-pattern capture |
234
+ | `capture_quick` | Fast capture for simple fixes |
235
+ | `session_capture` | Persist session context |
236
+
237
+ **Related skills:**
238
+
239
+ - test-driven-development
240
+ - verification-before-completion
241
+ - fix-and-learn (combines debugging + capture in one workflow)