@soleri/forge 5.14.0 → 5.14.2
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/dist/index.js +0 -0
- package/dist/lib.d.ts +2 -0
- package/dist/lib.js +2 -0
- package/dist/lib.js.map +1 -1
- package/dist/skills/brain-debrief.md +47 -19
- package/dist/skills/brainstorming.md +19 -9
- package/dist/skills/code-patrol.md +21 -19
- package/dist/skills/context-resume.md +14 -11
- package/dist/skills/executing-plans.md +30 -15
- package/dist/skills/fix-and-learn.md +17 -14
- package/dist/skills/health-check.md +29 -23
- package/dist/skills/knowledge-harvest.md +27 -20
- package/dist/skills/onboard-me.md +16 -15
- package/dist/skills/retrospective.md +34 -18
- package/dist/skills/second-opinion.md +16 -9
- package/dist/skills/systematic-debugging.md +40 -29
- package/dist/skills/test-driven-development.md +45 -30
- package/dist/skills/vault-capture.md +31 -15
- package/dist/skills/vault-navigator.md +24 -13
- package/dist/skills/verification-before-completion.md +38 -26
- package/dist/skills/writing-plans.md +21 -13
- package/dist/templates/claude-md-template.d.ts +9 -8
- package/dist/templates/claude-md-template.js +29 -11
- package/dist/templates/claude-md-template.js.map +1 -1
- package/dist/templates/inject-claude-md.js +65 -25
- package/dist/templates/inject-claude-md.js.map +1 -1
- package/dist/templates/shared-rules.d.ts +10 -6
- package/dist/templates/shared-rules.js +242 -199
- package/dist/templates/shared-rules.js.map +1 -1
- package/dist/templates/test-facades.js +6 -4
- package/dist/templates/test-facades.js.map +1 -1
- package/package.json +1 -1
- package/src/lib.ts +2 -0
- package/src/templates/claude-md-template.ts +30 -12
- package/src/templates/inject-claude-md.ts +65 -25
- package/src/templates/shared-rules.ts +259 -210
- package/src/templates/test-facades.ts +6 -4
- package/dist/skills/skills/brain-debrief.md +0 -214
- package/dist/skills/skills/brainstorming.md +0 -180
- package/dist/skills/skills/code-patrol.md +0 -178
- package/dist/skills/skills/context-resume.md +0 -146
- package/dist/skills/skills/executing-plans.md +0 -216
- package/dist/skills/skills/fix-and-learn.md +0 -167
- package/dist/skills/skills/health-check.md +0 -231
- package/dist/skills/skills/knowledge-harvest.md +0 -185
- package/dist/skills/skills/onboard-me.md +0 -198
- package/dist/skills/skills/retrospective.md +0 -205
- package/dist/skills/skills/second-opinion.md +0 -149
- package/dist/skills/skills/systematic-debugging.md +0 -241
- package/dist/skills/skills/test-driven-development.md +0 -281
- package/dist/skills/skills/vault-capture.md +0 -170
- package/dist/skills/skills/vault-navigator.md +0 -140
- package/dist/skills/skills/verification-before-completion.md +0 -182
- package/dist/skills/skills/writing-plans.md +0 -215
- package/dist/templates/brain.d.ts +0 -6
- package/dist/templates/brain.js +0 -478
- package/dist/templates/brain.js.map +0 -1
- package/dist/templates/core-facade.d.ts +0 -6
- package/dist/templates/core-facade.js +0 -564
- package/dist/templates/core-facade.js.map +0 -1
- package/dist/templates/facade-factory.d.ts +0 -1
- package/dist/templates/facade-factory.js +0 -63
- package/dist/templates/facade-factory.js.map +0 -1
- package/dist/templates/facade-types.d.ts +0 -1
- package/dist/templates/facade-types.js +0 -46
- package/dist/templates/facade-types.js.map +0 -1
- package/dist/templates/intelligence-loader.d.ts +0 -1
- package/dist/templates/intelligence-loader.js +0 -43
- package/dist/templates/intelligence-loader.js.map +0 -1
- package/dist/templates/intelligence-types.d.ts +0 -1
- package/dist/templates/intelligence-types.js +0 -24
- package/dist/templates/intelligence-types.js.map +0 -1
- package/dist/templates/llm-client.d.ts +0 -7
- package/dist/templates/llm-client.js +0 -300
- package/dist/templates/llm-client.js.map +0 -1
- package/dist/templates/llm-key-pool.d.ts +0 -7
- package/dist/templates/llm-key-pool.js +0 -211
- package/dist/templates/llm-key-pool.js.map +0 -1
- package/dist/templates/llm-types.d.ts +0 -5
- package/dist/templates/llm-types.js +0 -161
- package/dist/templates/llm-types.js.map +0 -1
- package/dist/templates/llm-utils.d.ts +0 -5
- package/dist/templates/llm-utils.js +0 -260
- package/dist/templates/llm-utils.js.map +0 -1
- package/dist/templates/planner.d.ts +0 -5
- package/dist/templates/planner.js +0 -150
- package/dist/templates/planner.js.map +0 -1
- package/dist/templates/test-brain.d.ts +0 -6
- package/dist/templates/test-brain.js +0 -474
- package/dist/templates/test-brain.js.map +0 -1
- package/dist/templates/test-llm.d.ts +0 -7
- package/dist/templates/test-llm.js +0 -574
- package/dist/templates/test-llm.js.map +0 -1
- package/dist/templates/test-loader.d.ts +0 -5
- package/dist/templates/test-loader.js +0 -146
- package/dist/templates/test-loader.js.map +0 -1
- package/dist/templates/test-planner.d.ts +0 -5
- package/dist/templates/test-planner.js +0 -271
- package/dist/templates/test-planner.js.map +0 -1
- package/dist/templates/test-vault.d.ts +0 -5
- package/dist/templates/test-vault.js +0 -380
- package/dist/templates/test-vault.js.map +0 -1
- package/dist/templates/vault.d.ts +0 -5
- package/dist/templates/vault.js +0 -263
- package/dist/templates/vault.js.map +0 -1
|
@@ -87,6 +87,7 @@ YOUR_AGENT_core op:vault_age_report
|
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
Entries older than 30 days without updates are candidates for:
|
|
90
|
+
|
|
90
91
|
- Refresh (still relevant, needs updating)
|
|
91
92
|
- Archive (no longer relevant)
|
|
92
93
|
- Delete (incorrect or superseded)
|
|
@@ -135,26 +136,31 @@ YOUR_AGENT_core op:governance_expire
|
|
|
135
136
|
If the user approves, run the full cleanup:
|
|
136
137
|
|
|
137
138
|
**Groom all entries — normalize tags, fix metadata:**
|
|
139
|
+
|
|
138
140
|
```
|
|
139
141
|
YOUR_AGENT_core op:curator_groom_all
|
|
140
142
|
```
|
|
141
143
|
|
|
142
144
|
**Full consolidation — deduplicate, normalize, quality-score:**
|
|
145
|
+
|
|
143
146
|
```
|
|
144
147
|
YOUR_AGENT_core op:curator_consolidate
|
|
145
148
|
```
|
|
146
149
|
|
|
147
150
|
**Prune stale memory:**
|
|
151
|
+
|
|
148
152
|
```
|
|
149
153
|
YOUR_AGENT_core op:memory_prune
|
|
150
154
|
```
|
|
151
155
|
|
|
152
156
|
**Rebuild brain intelligence with clean data:**
|
|
157
|
+
|
|
153
158
|
```
|
|
154
159
|
YOUR_AGENT_core op:brain_build_intelligence
|
|
155
160
|
```
|
|
156
161
|
|
|
157
162
|
**Reset caches to pick up changes:**
|
|
163
|
+
|
|
158
164
|
```
|
|
159
165
|
YOUR_AGENT_core op:admin_reset_cache
|
|
160
166
|
```
|
|
@@ -200,26 +206,26 @@ This feels like magic because knowledge bases normally decay silently — duplic
|
|
|
200
206
|
|
|
201
207
|
## Agent Tools Reference
|
|
202
208
|
|
|
203
|
-
| Op
|
|
204
|
-
|
|
205
|
-
| `admin_health`
|
|
206
|
-
| `admin_diagnostic`
|
|
207
|
-
| `admin_vault_size`
|
|
208
|
-
| `admin_vault_analytics`
|
|
209
|
-
| `admin_search_insights`
|
|
210
|
-
| `admin_reset_cache`
|
|
211
|
-
| `vault_domains` / `vault_tags`
|
|
212
|
-
| `vault_age_report`
|
|
213
|
-
| `curator_health_audit`
|
|
214
|
-
| `curator_detect_duplicates`
|
|
215
|
-
| `curator_contradictions`
|
|
216
|
-
| `curator_resolve_contradiction` | Resolve conflicts
|
|
217
|
-
| `curator_groom_all`
|
|
218
|
-
| `curator_consolidate`
|
|
219
|
-
| `memory_stats`
|
|
220
|
-
| `memory_deduplicate`
|
|
221
|
-
| `memory_prune`
|
|
222
|
-
| `governance_proposals`
|
|
223
|
-
| `governance_stats`
|
|
224
|
-
| `governance_expire`
|
|
225
|
-
| `brain_build_intelligence`
|
|
209
|
+
| Op | When to Use |
|
|
210
|
+
| ------------------------------- | ------------------------------- |
|
|
211
|
+
| `admin_health` | System health check |
|
|
212
|
+
| `admin_diagnostic` | Comprehensive system diagnostic |
|
|
213
|
+
| `admin_vault_size` | Vault storage metrics |
|
|
214
|
+
| `admin_vault_analytics` | Knowledge quality metrics |
|
|
215
|
+
| `admin_search_insights` | Search miss analysis |
|
|
216
|
+
| `admin_reset_cache` | Clear caches after cleanup |
|
|
217
|
+
| `vault_domains` / `vault_tags` | Knowledge landscape |
|
|
218
|
+
| `vault_age_report` | Stale entry detection |
|
|
219
|
+
| `curator_health_audit` | Quality score and audit |
|
|
220
|
+
| `curator_detect_duplicates` | Find duplicates |
|
|
221
|
+
| `curator_contradictions` | Find conflicting entries |
|
|
222
|
+
| `curator_resolve_contradiction` | Resolve conflicts |
|
|
223
|
+
| `curator_groom_all` | Batch tag normalization |
|
|
224
|
+
| `curator_consolidate` | Full cleanup pipeline |
|
|
225
|
+
| `memory_stats` | Memory health |
|
|
226
|
+
| `memory_deduplicate` | Remove duplicate memories |
|
|
227
|
+
| `memory_prune` | Remove stale memories |
|
|
228
|
+
| `governance_proposals` | Pending review queue |
|
|
229
|
+
| `governance_stats` | Governance metrics |
|
|
230
|
+
| `governance_expire` | Expire stale proposals |
|
|
231
|
+
| `brain_build_intelligence` | Rebuild after cleanup |
|
|
@@ -49,15 +49,16 @@ This tells you what the vault already covers — focus extraction on gaps.
|
|
|
49
49
|
|
|
50
50
|
Read through the source material and identify:
|
|
51
51
|
|
|
52
|
-
| Type
|
|
53
|
-
|
|
54
|
-
| **pattern**
|
|
55
|
-
| **anti-pattern** | "Don't do X because Y" — known mistakes
|
|
56
|
-
| **decision**
|
|
57
|
-
| **principle**
|
|
58
|
-
| **workflow**
|
|
52
|
+
| Type | What to Look For |
|
|
53
|
+
| ---------------- | ------------------------------------------------------ |
|
|
54
|
+
| **pattern** | "We always do X because Y" — repeatable approaches |
|
|
55
|
+
| **anti-pattern** | "Don't do X because Y" — known mistakes |
|
|
56
|
+
| **decision** | "We chose X over Y because Z" — architectural choices |
|
|
57
|
+
| **principle** | "We believe X" — guiding rules |
|
|
58
|
+
| **workflow** | "The process for X is: step 1, step 2..." — procedures |
|
|
59
59
|
|
|
60
60
|
For each extracted item, determine:
|
|
61
|
+
|
|
61
62
|
- **Category**: Which domain it belongs to
|
|
62
63
|
- **Severity**: critical / warning / suggestion
|
|
63
64
|
- **Tags**: Searchable keywords
|
|
@@ -81,6 +82,7 @@ YOUR_AGENT_core op:capture_knowledge
|
|
|
81
82
|
```
|
|
82
83
|
|
|
83
84
|
Present each capture to the user as you go:
|
|
85
|
+
|
|
84
86
|
```
|
|
85
87
|
Captured: api-auth-jwt (pattern, critical)
|
|
86
88
|
→ "Use short-lived JWTs for authentication"
|
|
@@ -92,22 +94,26 @@ Captured: api-auth-jwt (pattern, critical)
|
|
|
92
94
|
After all items captured, run quality checks:
|
|
93
95
|
|
|
94
96
|
**Detect any duplicates created during harvest:**
|
|
97
|
+
|
|
95
98
|
```
|
|
96
99
|
YOUR_AGENT_core op:curator_detect_duplicates
|
|
97
100
|
```
|
|
98
101
|
|
|
99
102
|
**Groom all new entries — normalize tags, fix metadata:**
|
|
103
|
+
|
|
100
104
|
```
|
|
101
105
|
YOUR_AGENT_core op:curator_groom_all
|
|
102
106
|
```
|
|
103
107
|
|
|
104
108
|
**Enrich entries with additional context:**
|
|
109
|
+
|
|
105
110
|
```
|
|
106
111
|
YOUR_AGENT_core op:curator_enrich
|
|
107
112
|
params: { entryId: "<id>" }
|
|
108
113
|
```
|
|
109
114
|
|
|
110
115
|
**Check for contradictions with existing knowledge:**
|
|
116
|
+
|
|
111
117
|
```
|
|
112
118
|
YOUR_AGENT_core op:curator_contradictions
|
|
113
119
|
```
|
|
@@ -125,6 +131,7 @@ YOUR_AGENT_core op:admin_vault_analytics
|
|
|
125
131
|
```
|
|
126
132
|
|
|
127
133
|
Present a summary:
|
|
134
|
+
|
|
128
135
|
```
|
|
129
136
|
## Harvest Complete
|
|
130
137
|
|
|
@@ -163,16 +170,16 @@ This feels like magic because the user points at a 50-page architecture doc and
|
|
|
163
170
|
|
|
164
171
|
## Agent Tools Reference
|
|
165
172
|
|
|
166
|
-
| Op
|
|
167
|
-
|
|
168
|
-
| `route_intent`
|
|
169
|
-
| `search_intelligent`
|
|
170
|
-
| `vault_tags` / `vault_domains` | See what's already covered
|
|
171
|
-
| `capture_knowledge`
|
|
172
|
-
| `curator_detect_duplicates`
|
|
173
|
-
| `curator_groom_all`
|
|
174
|
-
| `curator_enrich`
|
|
175
|
-
| `curator_contradictions`
|
|
176
|
-
| `memory_promote_to_global`
|
|
177
|
-
| `admin_health`
|
|
178
|
-
| `admin_vault_analytics`
|
|
173
|
+
| Op | When to Use |
|
|
174
|
+
| ------------------------------ | -------------------------------------- |
|
|
175
|
+
| `route_intent` | Classify the source material |
|
|
176
|
+
| `search_intelligent` | Check for existing knowledge |
|
|
177
|
+
| `vault_tags` / `vault_domains` | See what's already covered |
|
|
178
|
+
| `capture_knowledge` | Capture each extracted item |
|
|
179
|
+
| `curator_detect_duplicates` | Find duplicates post-harvest |
|
|
180
|
+
| `curator_groom_all` | Normalize all new entries |
|
|
181
|
+
| `curator_enrich` | LLM-enrich entries |
|
|
182
|
+
| `curator_contradictions` | Find conflicts with existing knowledge |
|
|
183
|
+
| `memory_promote_to_global` | Share universal patterns cross-project |
|
|
184
|
+
| `admin_health` | Post-harvest health check |
|
|
185
|
+
| `admin_vault_analytics` | Knowledge quality metrics |
|
|
@@ -169,6 +169,7 @@ Use `/second-opinion` before making any architectural decision.
|
|
|
169
169
|
## The Magic
|
|
170
170
|
|
|
171
171
|
This feels like magic because a new team member says "onboard me" and instantly gets:
|
|
172
|
+
|
|
172
173
|
1. Every critical rule they must follow
|
|
173
174
|
2. Every architectural decision and why it was made
|
|
174
175
|
3. Proven patterns to follow
|
|
@@ -180,18 +181,18 @@ No other onboarding tool does this — it's not a static wiki, it's a living kno
|
|
|
180
181
|
|
|
181
182
|
## Agent Tools Reference
|
|
182
183
|
|
|
183
|
-
| Op
|
|
184
|
-
|
|
185
|
-
| `identity`
|
|
186
|
-
| `project_get`
|
|
187
|
-
| `project_list_rules`
|
|
188
|
-
| `get_behavior_rules`
|
|
189
|
-
| `vault_domains` / `vault_tags` | Knowledge landscape
|
|
190
|
-
| `admin_vault_size`
|
|
191
|
-
| `search`
|
|
192
|
-
| `search_intelligent`
|
|
193
|
-
| `brain_strengths`
|
|
194
|
-
| `brain_global_patterns`
|
|
195
|
-
| `project_linked_projects`
|
|
196
|
-
| `admin_search_insights`
|
|
197
|
-
| `vault_age_report`
|
|
184
|
+
| Op | When to Use |
|
|
185
|
+
| ------------------------------ | --------------------------------------- |
|
|
186
|
+
| `identity` | Project persona and description |
|
|
187
|
+
| `project_get` | Project registration details |
|
|
188
|
+
| `project_list_rules` | Project-specific rules |
|
|
189
|
+
| `get_behavior_rules` | Behavioral conventions |
|
|
190
|
+
| `vault_domains` / `vault_tags` | Knowledge landscape |
|
|
191
|
+
| `admin_vault_size` | How much knowledge exists |
|
|
192
|
+
| `search` | Find critical entries and anti-patterns |
|
|
193
|
+
| `search_intelligent` | Find decisions and patterns |
|
|
194
|
+
| `brain_strengths` | Proven approaches |
|
|
195
|
+
| `brain_global_patterns` | Cross-project patterns |
|
|
196
|
+
| `project_linked_projects` | Related projects |
|
|
197
|
+
| `admin_search_insights` | What's not in the vault |
|
|
198
|
+
| `vault_age_report` | Stale knowledge areas |
|
|
@@ -20,52 +20,62 @@ Generate a retrospective from actual session data, vault captures, plan outcomes
|
|
|
20
20
|
### Step 1: Gather the Data
|
|
21
21
|
|
|
22
22
|
**Brain stats — the big picture:**
|
|
23
|
+
|
|
23
24
|
```
|
|
24
25
|
YOUR_AGENT_core op:brain_stats
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
**Recent brain stats — compare velocity:**
|
|
29
|
+
|
|
28
30
|
```
|
|
29
31
|
YOUR_AGENT_core op:brain_stats
|
|
30
32
|
params: { since: "<start of period>" }
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
**Pattern strengths — what's proven:**
|
|
36
|
+
|
|
34
37
|
```
|
|
35
38
|
YOUR_AGENT_core op:brain_strengths
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
**Recent vault captures — what was learned:**
|
|
42
|
+
|
|
39
43
|
```
|
|
40
44
|
YOUR_AGENT_core op:vault_recent
|
|
41
45
|
```
|
|
42
46
|
|
|
43
47
|
**Memory topics — where knowledge clusters:**
|
|
48
|
+
|
|
44
49
|
```
|
|
45
50
|
YOUR_AGENT_core op:memory_topics
|
|
46
51
|
```
|
|
47
52
|
|
|
48
53
|
**Memory stats — volume and health:**
|
|
54
|
+
|
|
49
55
|
```
|
|
50
56
|
YOUR_AGENT_core op:memory_stats
|
|
51
57
|
```
|
|
52
58
|
|
|
53
59
|
**Plan stats — execution track record:**
|
|
60
|
+
|
|
54
61
|
```
|
|
55
62
|
YOUR_AGENT_core op:plan_stats
|
|
56
63
|
```
|
|
57
64
|
|
|
58
65
|
**Loop history — iterative workflow outcomes:**
|
|
66
|
+
|
|
59
67
|
```
|
|
60
68
|
YOUR_AGENT_core op:loop_history
|
|
61
69
|
```
|
|
62
70
|
|
|
63
71
|
**Search insights — what people looked for but didn't find:**
|
|
72
|
+
|
|
64
73
|
```
|
|
65
74
|
YOUR_AGENT_core op:admin_search_insights
|
|
66
75
|
```
|
|
67
76
|
|
|
68
77
|
**Vault analytics — knowledge quality:**
|
|
78
|
+
|
|
69
79
|
```
|
|
70
80
|
YOUR_AGENT_core op:admin_vault_analytics
|
|
71
81
|
```
|
|
@@ -73,21 +83,25 @@ YOUR_AGENT_core op:admin_vault_analytics
|
|
|
73
83
|
### Step 2: Analyze Patterns
|
|
74
84
|
|
|
75
85
|
**Stale knowledge needing refresh:**
|
|
86
|
+
|
|
76
87
|
```
|
|
77
88
|
YOUR_AGENT_core op:vault_age_report
|
|
78
89
|
```
|
|
79
90
|
|
|
80
91
|
**Duplicates that crept in:**
|
|
92
|
+
|
|
81
93
|
```
|
|
82
94
|
YOUR_AGENT_core op:curator_detect_duplicates
|
|
83
95
|
```
|
|
84
96
|
|
|
85
97
|
**Contradictions in the knowledge base:**
|
|
98
|
+
|
|
86
99
|
```
|
|
87
100
|
YOUR_AGENT_core op:curator_contradictions
|
|
88
101
|
```
|
|
89
102
|
|
|
90
103
|
**Curator health audit — overall quality:**
|
|
104
|
+
|
|
91
105
|
```
|
|
92
106
|
YOUR_AGENT_core op:curator_health_audit
|
|
93
107
|
```
|
|
@@ -154,11 +168,13 @@ YOUR_AGENT_core op:capture_knowledge
|
|
|
154
168
|
If the retrospective revealed quality issues, offer to fix them:
|
|
155
169
|
|
|
156
170
|
**Consolidate vault (deduplicate, normalize, groom):**
|
|
171
|
+
|
|
157
172
|
```
|
|
158
173
|
YOUR_AGENT_core op:curator_consolidate
|
|
159
174
|
```
|
|
160
175
|
|
|
161
176
|
**Rebuild brain intelligence with fresh data:**
|
|
177
|
+
|
|
162
178
|
```
|
|
163
179
|
YOUR_AGENT_core op:brain_build_intelligence
|
|
164
180
|
```
|
|
@@ -169,21 +185,21 @@ This feels like magic because the user says "sprint retro" and gets a data-drive
|
|
|
169
185
|
|
|
170
186
|
## Agent Tools Reference
|
|
171
187
|
|
|
172
|
-
| Op
|
|
173
|
-
|
|
174
|
-
| `brain_stats`
|
|
175
|
-
| `brain_strengths`
|
|
176
|
-
| `vault_recent`
|
|
177
|
-
| `memory_topics`
|
|
178
|
-
| `memory_stats`
|
|
179
|
-
| `plan_stats`
|
|
180
|
-
| `loop_history`
|
|
181
|
-
| `admin_search_insights`
|
|
182
|
-
| `admin_vault_analytics`
|
|
183
|
-
| `vault_age_report`
|
|
184
|
-
| `curator_detect_duplicates` | Duplicate detection
|
|
185
|
-
| `curator_contradictions`
|
|
186
|
-
| `curator_health_audit`
|
|
187
|
-
| `capture_knowledge`
|
|
188
|
-
| `curator_consolidate`
|
|
189
|
-
| `brain_build_intelligence`
|
|
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 |
|
|
@@ -29,17 +29,20 @@ YOUR_AGENT_core op:route_intent
|
|
|
29
29
|
### Step 2: Search All Knowledge Sources (in order)
|
|
30
30
|
|
|
31
31
|
**Vault — has this been decided before?**
|
|
32
|
+
|
|
32
33
|
```
|
|
33
34
|
YOUR_AGENT_core op:search_intelligent
|
|
34
35
|
params: { query: "<the decision or options being considered>" }
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
Look specifically for:
|
|
39
|
+
|
|
38
40
|
- Previous decisions on this topic (type: "decision")
|
|
39
41
|
- Patterns that favor one approach
|
|
40
42
|
- Anti-patterns that warn against an approach
|
|
41
43
|
|
|
42
44
|
**Brain — what's proven to work?**
|
|
45
|
+
|
|
43
46
|
```
|
|
44
47
|
YOUR_AGENT_core op:brain_strengths
|
|
45
48
|
```
|
|
@@ -50,12 +53,14 @@ YOUR_AGENT_core op:brain_recommend
|
|
|
50
53
|
```
|
|
51
54
|
|
|
52
55
|
**Cross-project — what did other projects choose?**
|
|
56
|
+
|
|
53
57
|
```
|
|
54
58
|
YOUR_AGENT_core op:memory_cross_project_search
|
|
55
59
|
params: { query: "<the decision topic>", crossProject: true }
|
|
56
60
|
```
|
|
57
61
|
|
|
58
62
|
**Memory — any relevant context from past sessions?**
|
|
63
|
+
|
|
59
64
|
```
|
|
60
65
|
YOUR_AGENT_core op:memory_search
|
|
61
66
|
params: { query: "<decision topic>" }
|
|
@@ -63,6 +68,7 @@ YOUR_AGENT_core op:memory_search
|
|
|
63
68
|
|
|
64
69
|
**Web — what does the broader community say?**
|
|
65
70
|
Search the web for:
|
|
71
|
+
|
|
66
72
|
- Comparison articles (X vs Y for [use case])
|
|
67
73
|
- Benchmarks and performance data
|
|
68
74
|
- Community consensus on best practices
|
|
@@ -120,6 +126,7 @@ This is critical — the next person who faces the same decision will find it in
|
|
|
120
126
|
## The Magic
|
|
121
127
|
|
|
122
128
|
This feels like magic because the user asks "should I use X?" and instead of a generic AI opinion, they get:
|
|
129
|
+
|
|
123
130
|
1. What their own project decided before (vault)
|
|
124
131
|
2. What's proven to work across projects (brain)
|
|
125
132
|
3. What other linked projects chose (cross-project)
|
|
@@ -131,12 +138,12 @@ It's like having a senior architect who remembers every decision ever made.
|
|
|
131
138
|
|
|
132
139
|
## Agent Tools Reference
|
|
133
140
|
|
|
134
|
-
| Op
|
|
135
|
-
|
|
136
|
-
| `route_intent`
|
|
137
|
-
| `search_intelligent`
|
|
138
|
-
| `brain_strengths`
|
|
139
|
-
| `brain_recommend`
|
|
140
|
-
| `memory_cross_project_search` | What other projects decided
|
|
141
|
-
| `memory_search`
|
|
142
|
-
| `capture_knowledge`
|
|
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 |
|
|
@@ -26,6 +26,7 @@ If you haven't completed Phase 1, you cannot propose fixes.
|
|
|
26
26
|
## When to Use
|
|
27
27
|
|
|
28
28
|
Use for ANY technical issue:
|
|
29
|
+
|
|
29
30
|
- Test failures
|
|
30
31
|
- Bugs in production
|
|
31
32
|
- Unexpected behavior
|
|
@@ -34,6 +35,7 @@ Use for ANY technical issue:
|
|
|
34
35
|
- Integration issues
|
|
35
36
|
|
|
36
37
|
**Use this ESPECIALLY when:**
|
|
38
|
+
|
|
37
39
|
- Under time pressure (emergencies make guessing tempting)
|
|
38
40
|
- "Just one quick fix" seems obvious
|
|
39
41
|
- You've already tried multiple fixes
|
|
@@ -45,6 +47,7 @@ Use for ANY technical issue:
|
|
|
45
47
|
**BEFORE touching any code**, search for existing solutions. Follow this order:
|
|
46
48
|
|
|
47
49
|
### Vault First
|
|
50
|
+
|
|
48
51
|
```
|
|
49
52
|
YOUR_AGENT_core op:search_intelligent
|
|
50
53
|
params: { query: "<description of the bug or error message>" }
|
|
@@ -66,7 +69,9 @@ YOUR_AGENT_core op:memory_search
|
|
|
66
69
|
```
|
|
67
70
|
|
|
68
71
|
### Web Search Second
|
|
72
|
+
|
|
69
73
|
If the vault has nothing, search the web before investigating from scratch:
|
|
74
|
+
|
|
70
75
|
- **Paste the exact error message** — someone likely hit this before
|
|
71
76
|
- **Check GitHub issues** on relevant libraries
|
|
72
77
|
- **Check Stack Overflow** for the error + framework/library combination
|
|
@@ -75,6 +80,7 @@ If the vault has nothing, search the web before investigating from scratch:
|
|
|
75
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.
|
|
76
81
|
|
|
77
82
|
### Then Investigate
|
|
83
|
+
|
|
78
84
|
Only if vault and web search produce no answer, proceed to Phase 1.
|
|
79
85
|
|
|
80
86
|
## Start a Debug Loop
|
|
@@ -101,6 +107,7 @@ You MUST complete each phase before proceeding to the next.
|
|
|
101
107
|
5. Trace Data Flow backward through call stack
|
|
102
108
|
|
|
103
109
|
Track each investigation step:
|
|
110
|
+
|
|
104
111
|
```
|
|
105
112
|
YOUR_AGENT_core op:loop_iterate
|
|
106
113
|
```
|
|
@@ -113,6 +120,7 @@ YOUR_AGENT_core op:loop_iterate
|
|
|
113
120
|
4. Understand Dependencies
|
|
114
121
|
|
|
115
122
|
Search vault for working patterns to compare against:
|
|
123
|
+
|
|
116
124
|
```
|
|
117
125
|
YOUR_AGENT_core op:search_intelligent
|
|
118
126
|
params: { query: "<working feature similar to broken one>" }
|
|
@@ -136,6 +144,7 @@ YOUR_AGENT_core op:search_intelligent
|
|
|
136
144
|
## Phase 5: Capture the Learning
|
|
137
145
|
|
|
138
146
|
Complete the debug loop:
|
|
147
|
+
|
|
139
148
|
```
|
|
140
149
|
YOUR_AGENT_core op:loop_complete
|
|
141
150
|
```
|
|
@@ -164,6 +173,7 @@ YOUR_AGENT_core op:capture_quick
|
|
|
164
173
|
```
|
|
165
174
|
|
|
166
175
|
Capture a session summary:
|
|
176
|
+
|
|
167
177
|
```
|
|
168
178
|
YOUR_AGENT_core op:session_capture
|
|
169
179
|
params: { summary: "<bug, root cause, fix, files modified>" }
|
|
@@ -187,44 +197,45 @@ This is what makes the agent smarter over time. Next time someone hits a similar
|
|
|
187
197
|
|
|
188
198
|
## Common Rationalizations
|
|
189
199
|
|
|
190
|
-
| Excuse
|
|
191
|
-
|
|
192
|
-
| "Issue is simple, don't need process"
|
|
193
|
-
| "Emergency, no time for process"
|
|
194
|
-
| "Just try this first, then investigate"
|
|
195
|
-
| "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it.
|
|
196
|
-
| "Multiple fixes at once saves time"
|
|
197
|
-
| "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely.
|
|
198
|
-
| "I see the problem, let me fix it"
|
|
199
|
-
| "One more fix attempt" (after 2+ failures)
|
|
200
|
-
| "Skip the vault, I know this one"
|
|
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. |
|
|
201
211
|
|
|
202
212
|
## Quick Reference
|
|
203
213
|
|
|
204
|
-
| Phase
|
|
205
|
-
|
|
206
|
-
| **0. Search First**
|
|
207
|
-
| **1. Root Cause**
|
|
208
|
-
| **2. Pattern**
|
|
209
|
-
| **3. Hypothesis**
|
|
210
|
-
| **4. Implementation** | Create test, fix, verify
|
|
211
|
-
| **5. Capture**
|
|
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` |
|
|
212
222
|
|
|
213
223
|
## Agent Tools Reference
|
|
214
224
|
|
|
215
|
-
| Op
|
|
216
|
-
|
|
225
|
+
| Op | When to Use |
|
|
226
|
+
| -------------------- | ---------------------------------------- |
|
|
217
227
|
| `search_intelligent` | Search vault for known bugs and patterns |
|
|
218
|
-
| `brain_strengths`
|
|
219
|
-
| `memory_search`
|
|
220
|
-
| `loop_start`
|
|
221
|
-
| `loop_iterate`
|
|
222
|
-
| `loop_complete`
|
|
223
|
-
| `capture_knowledge`
|
|
224
|
-
| `capture_quick`
|
|
225
|
-
| `session_capture`
|
|
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 |
|
|
226
236
|
|
|
227
237
|
**Related skills:**
|
|
238
|
+
|
|
228
239
|
- test-driven-development
|
|
229
240
|
- verification-before-completion
|
|
230
241
|
- fix-and-learn (combines debugging + capture in one workflow)
|