@soleri/forge 5.5.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.
- package/dist/scaffolder.js +82 -5
- package/dist/scaffolder.js.map +1 -1
- package/dist/skills/skills/brain-debrief.md +214 -0
- package/dist/skills/skills/brainstorming.md +180 -0
- package/dist/skills/skills/code-patrol.md +178 -0
- package/dist/skills/skills/context-resume.md +146 -0
- package/dist/skills/skills/executing-plans.md +216 -0
- package/dist/skills/skills/fix-and-learn.md +167 -0
- package/dist/skills/skills/health-check.md +231 -0
- package/dist/skills/skills/knowledge-harvest.md +185 -0
- package/dist/skills/skills/onboard-me.md +198 -0
- package/dist/skills/skills/retrospective.md +205 -0
- package/dist/skills/skills/second-opinion.md +149 -0
- package/dist/skills/skills/systematic-debugging.md +241 -0
- package/dist/skills/skills/test-driven-development.md +281 -0
- package/dist/skills/skills/vault-capture.md +170 -0
- package/dist/skills/skills/vault-navigator.md +140 -0
- package/dist/skills/skills/verification-before-completion.md +182 -0
- package/dist/skills/skills/writing-plans.md +215 -0
- package/dist/templates/entry-point.js +8 -0
- package/dist/templates/entry-point.js.map +1 -1
- package/dist/templates/test-facades.js +35 -6
- package/dist/templates/test-facades.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/scaffolder.test.ts +2 -2
- package/src/scaffolder.ts +82 -5
- package/src/skills/brain-debrief.md +47 -19
- package/src/skills/brainstorming.md +19 -9
- package/src/skills/code-patrol.md +21 -19
- package/src/skills/context-resume.md +14 -11
- package/src/skills/executing-plans.md +30 -15
- package/src/skills/fix-and-learn.md +17 -14
- package/src/skills/health-check.md +29 -23
- package/src/skills/knowledge-harvest.md +27 -20
- package/src/skills/onboard-me.md +16 -15
- package/src/skills/retrospective.md +34 -18
- package/src/skills/second-opinion.md +16 -9
- package/src/skills/systematic-debugging.md +40 -29
- package/src/skills/test-driven-development.md +45 -30
- package/src/skills/vault-capture.md +31 -15
- package/src/skills/vault-navigator.md +24 -13
- package/src/skills/verification-before-completion.md +38 -26
- package/src/skills/writing-plans.md +21 -13
- package/src/templates/entry-point.ts +8 -0
- package/src/templates/test-facades.ts +35 -6
package/src/scaffolder.ts
CHANGED
|
@@ -98,7 +98,7 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
98
98
|
{
|
|
99
99
|
name: `${config.id}_core`,
|
|
100
100
|
ops: [
|
|
101
|
-
// From createCoreOps() —
|
|
101
|
+
// From createCoreOps() — 150 generic ops
|
|
102
102
|
'search',
|
|
103
103
|
'vault_stats',
|
|
104
104
|
'list_all',
|
|
@@ -131,6 +131,8 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
131
131
|
'brain_promote_proposals',
|
|
132
132
|
'brain_lifecycle',
|
|
133
133
|
'brain_reset_extracted',
|
|
134
|
+
// Brain decay report (#89) — 1
|
|
135
|
+
'brain_decay_report',
|
|
134
136
|
// Cognee ops — 5
|
|
135
137
|
'cognee_status',
|
|
136
138
|
'cognee_search',
|
|
@@ -140,6 +142,9 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
140
142
|
// LLM ops — 2
|
|
141
143
|
'llm_rotate',
|
|
142
144
|
'llm_call',
|
|
145
|
+
// Prompt ops — 2
|
|
146
|
+
'render_prompt',
|
|
147
|
+
'list_templates',
|
|
143
148
|
'curator_status',
|
|
144
149
|
'curator_detect_duplicates',
|
|
145
150
|
'curator_contradictions',
|
|
@@ -162,7 +167,7 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
162
167
|
'governance_stats',
|
|
163
168
|
'governance_expire',
|
|
164
169
|
'governance_dashboard',
|
|
165
|
-
// Planning Extra ops —
|
|
170
|
+
// Planning Extra ops — 22
|
|
166
171
|
'plan_iterate',
|
|
167
172
|
'plan_split',
|
|
168
173
|
'plan_reconcile',
|
|
@@ -172,6 +177,25 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
172
177
|
'plan_archive',
|
|
173
178
|
'plan_list_tasks',
|
|
174
179
|
'plan_stats',
|
|
180
|
+
// Planning evidence (#148)
|
|
181
|
+
'plan_submit_evidence',
|
|
182
|
+
'plan_verify_task',
|
|
183
|
+
'plan_verify_plan',
|
|
184
|
+
// Subagent dispatch (#149)
|
|
185
|
+
'plan_review_spec',
|
|
186
|
+
'plan_review_quality',
|
|
187
|
+
'plan_review_outcome',
|
|
188
|
+
// Brainstorm (#150)
|
|
189
|
+
'plan_brainstorm',
|
|
190
|
+
// Auto-reconcile (#151)
|
|
191
|
+
'plan_auto_reconcile',
|
|
192
|
+
// Validate plan (#152)
|
|
193
|
+
'plan_validate',
|
|
194
|
+
// Execution metrics + deliverables (#80, #83)
|
|
195
|
+
'plan_execution_metrics',
|
|
196
|
+
'plan_record_task_metrics',
|
|
197
|
+
'plan_submit_deliverable',
|
|
198
|
+
'plan_verify_deliverables',
|
|
175
199
|
// Memory Extra ops — 8
|
|
176
200
|
'memory_delete',
|
|
177
201
|
'memory_stats',
|
|
@@ -194,6 +218,16 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
194
218
|
'vault_seed',
|
|
195
219
|
'vault_backup',
|
|
196
220
|
'vault_age_report',
|
|
221
|
+
// Vault extra — seed canonical + knowledge lifecycle (5)
|
|
222
|
+
'vault_seed_canonical',
|
|
223
|
+
'knowledge_audit',
|
|
224
|
+
'knowledge_health',
|
|
225
|
+
'knowledge_merge',
|
|
226
|
+
'knowledge_reorganize',
|
|
227
|
+
// Bi-temporal vault ops (#89) — 3
|
|
228
|
+
'vault_set_temporal',
|
|
229
|
+
'vault_find_expiring',
|
|
230
|
+
'vault_find_expired',
|
|
197
231
|
// Admin ops — 8
|
|
198
232
|
'admin_health',
|
|
199
233
|
'admin_tool_list',
|
|
@@ -203,14 +237,16 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
203
237
|
'admin_version',
|
|
204
238
|
'admin_reset_cache',
|
|
205
239
|
'admin_diagnostic',
|
|
206
|
-
// Loop ops —
|
|
240
|
+
// Loop ops — 9
|
|
207
241
|
'loop_start',
|
|
208
242
|
'loop_iterate',
|
|
243
|
+
'loop_iterate_gate',
|
|
209
244
|
'loop_status',
|
|
210
245
|
'loop_cancel',
|
|
211
246
|
'loop_history',
|
|
212
247
|
'loop_is_active',
|
|
213
248
|
'loop_complete',
|
|
249
|
+
'loop_anomaly_check',
|
|
214
250
|
// Orchestrate ops — 5
|
|
215
251
|
'orchestrate_plan',
|
|
216
252
|
'orchestrate_execute',
|
|
@@ -228,7 +264,22 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
228
264
|
'capture_quick',
|
|
229
265
|
'search_intelligent',
|
|
230
266
|
'search_feedback',
|
|
231
|
-
//
|
|
267
|
+
// Enriched capture (#154) — 1
|
|
268
|
+
'capture_enriched',
|
|
269
|
+
// Cognee graph (#156) — 3
|
|
270
|
+
'cognee_get_node',
|
|
271
|
+
'cognee_graph_stats',
|
|
272
|
+
'cognee_export_status',
|
|
273
|
+
// Cognee Sync ops — 3
|
|
274
|
+
'cognee_sync_status',
|
|
275
|
+
'cognee_sync_drain',
|
|
276
|
+
'cognee_sync_reconcile',
|
|
277
|
+
// Intake ops — 4
|
|
278
|
+
'intake_ingest_book',
|
|
279
|
+
'intake_process',
|
|
280
|
+
'intake_status',
|
|
281
|
+
'intake_preview',
|
|
282
|
+
// Admin Extra ops — 23
|
|
232
283
|
'admin_telemetry',
|
|
233
284
|
'admin_telemetry_recent',
|
|
234
285
|
'admin_telemetry_reset',
|
|
@@ -239,11 +290,31 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
239
290
|
'admin_env',
|
|
240
291
|
'admin_gc',
|
|
241
292
|
'admin_export_config',
|
|
242
|
-
//
|
|
293
|
+
// Admin key pool (#157)
|
|
294
|
+
'admin_key_pool_status',
|
|
295
|
+
'admin_create_token',
|
|
296
|
+
'admin_revoke_token',
|
|
297
|
+
'admin_list_tokens',
|
|
298
|
+
// Admin accounts (#158)
|
|
299
|
+
'admin_add_account',
|
|
300
|
+
'admin_remove_account',
|
|
301
|
+
'admin_rotate_account',
|
|
302
|
+
'admin_list_accounts',
|
|
303
|
+
'admin_account_status',
|
|
304
|
+
// Admin plugins (#159)
|
|
305
|
+
'admin_list_plugins',
|
|
306
|
+
'admin_plugin_status',
|
|
307
|
+
// Admin instruction validation (#160)
|
|
308
|
+
'admin_validate_instructions',
|
|
309
|
+
// Hot reload (#63)
|
|
310
|
+
'admin_hot_reload',
|
|
311
|
+
// Curator Extra ops — 5
|
|
243
312
|
'curator_entry_history',
|
|
244
313
|
'curator_record_snapshot',
|
|
245
314
|
'curator_queue_stats',
|
|
246
315
|
'curator_enrich',
|
|
316
|
+
// Hybrid contradiction detection (#36) — 1
|
|
317
|
+
'curator_hybrid_contradictions',
|
|
247
318
|
// Project ops — 12
|
|
248
319
|
'project_get',
|
|
249
320
|
'project_list',
|
|
@@ -261,6 +332,12 @@ export function previewScaffold(config: AgentConfig): ScaffoldPreview {
|
|
|
261
332
|
'memory_promote_to_global',
|
|
262
333
|
'memory_configure',
|
|
263
334
|
'memory_cross_project_search',
|
|
335
|
+
// Playbook ops — 5
|
|
336
|
+
'playbook_list',
|
|
337
|
+
'playbook_get',
|
|
338
|
+
'playbook_create',
|
|
339
|
+
'playbook_match',
|
|
340
|
+
'playbook_seed',
|
|
264
341
|
// Agent-specific ops — 5
|
|
265
342
|
'health',
|
|
266
343
|
'identity',
|
|
@@ -16,33 +16,43 @@ When the user wants to understand what patterns have proven valuable, what anti-
|
|
|
16
16
|
### "What have I learned?" (General debrief)
|
|
17
17
|
|
|
18
18
|
1. Get the big picture:
|
|
19
|
+
|
|
19
20
|
```
|
|
20
21
|
YOUR_AGENT_core op:brain_stats
|
|
21
22
|
```
|
|
23
|
+
|
|
22
24
|
Total sessions, patterns captured, quality scores, coverage gaps.
|
|
23
25
|
|
|
24
26
|
2. Get patterns ranked by proven strength:
|
|
27
|
+
|
|
25
28
|
```
|
|
26
29
|
YOUR_AGENT_core op:brain_strengths
|
|
27
30
|
```
|
|
31
|
+
|
|
28
32
|
Focus on strength >= 70 and successRate >= 0.7.
|
|
29
33
|
|
|
30
34
|
3. Check memory landscape:
|
|
35
|
+
|
|
31
36
|
```
|
|
32
37
|
YOUR_AGENT_core op:memory_topics
|
|
33
38
|
```
|
|
39
|
+
|
|
34
40
|
Shows how knowledge clusters by topic.
|
|
35
41
|
|
|
36
42
|
4. Check for stale knowledge:
|
|
43
|
+
|
|
37
44
|
```
|
|
38
45
|
YOUR_AGENT_core op:vault_age_report
|
|
39
46
|
```
|
|
47
|
+
|
|
40
48
|
Find entries that haven't been updated recently — candidates for review.
|
|
41
49
|
|
|
42
50
|
5. Run a curator health audit:
|
|
51
|
+
|
|
43
52
|
```
|
|
44
53
|
YOUR_AGENT_core op:curator_health_audit
|
|
45
54
|
```
|
|
55
|
+
|
|
46
56
|
Vault quality score, tag normalization status, duplicate density.
|
|
47
57
|
|
|
48
58
|
6. Present: top 5 strongest patterns, top 3 recurring anti-patterns, stale entries needing refresh, and coverage gaps.
|
|
@@ -50,22 +60,26 @@ When the user wants to understand what patterns have proven valuable, what anti-
|
|
|
50
60
|
### "What's working across projects?" (Cross-project intelligence)
|
|
51
61
|
|
|
52
62
|
1. Get patterns promoted to the global pool:
|
|
63
|
+
|
|
53
64
|
```
|
|
54
65
|
YOUR_AGENT_core op:brain_global_patterns
|
|
55
66
|
```
|
|
56
67
|
|
|
57
68
|
2. Get recommendations based on project similarity:
|
|
69
|
+
|
|
58
70
|
```
|
|
59
71
|
YOUR_AGENT_core op:brain_recommend
|
|
60
72
|
params: { projectName: "<current project>" }
|
|
61
73
|
```
|
|
62
74
|
|
|
63
75
|
3. Check linked projects:
|
|
76
|
+
|
|
64
77
|
```
|
|
65
78
|
YOUR_AGENT_core op:project_linked_projects
|
|
66
79
|
```
|
|
67
80
|
|
|
68
81
|
4. Search across all projects for relevant patterns:
|
|
82
|
+
|
|
69
83
|
```
|
|
70
84
|
YOUR_AGENT_core op:memory_cross_project_search
|
|
71
85
|
params: { query: "<topic>", crossProject: true }
|
|
@@ -76,28 +90,33 @@ When the user wants to understand what patterns have proven valuable, what anti-
|
|
|
76
90
|
### "Am I getting smarter?" (Learning velocity)
|
|
77
91
|
|
|
78
92
|
1. Recent stats:
|
|
93
|
+
|
|
79
94
|
```
|
|
80
95
|
YOUR_AGENT_core op:brain_stats
|
|
81
96
|
params: { since: "<7 days ago>" }
|
|
82
97
|
```
|
|
83
98
|
|
|
84
99
|
2. Longer period for comparison:
|
|
100
|
+
|
|
85
101
|
```
|
|
86
102
|
YOUR_AGENT_core op:brain_stats
|
|
87
103
|
params: { since: "<30 days ago>" }
|
|
88
104
|
```
|
|
89
105
|
|
|
90
106
|
3. Memory stats:
|
|
107
|
+
|
|
91
108
|
```
|
|
92
109
|
YOUR_AGENT_core op:memory_stats
|
|
93
110
|
```
|
|
94
111
|
|
|
95
112
|
4. Vault analytics:
|
|
113
|
+
|
|
96
114
|
```
|
|
97
115
|
YOUR_AGENT_core op:admin_vault_analytics
|
|
98
116
|
```
|
|
99
117
|
|
|
100
118
|
5. Search insights — what queries are people running, what's missing:
|
|
119
|
+
|
|
101
120
|
```
|
|
102
121
|
YOUR_AGENT_core op:admin_search_insights
|
|
103
122
|
```
|
|
@@ -107,17 +126,21 @@ When the user wants to understand what patterns have proven valuable, what anti-
|
|
|
107
126
|
### "Build fresh intelligence" (Rebuild)
|
|
108
127
|
|
|
109
128
|
1. Run the full pipeline:
|
|
129
|
+
|
|
110
130
|
```
|
|
111
131
|
YOUR_AGENT_core op:brain_build_intelligence
|
|
112
132
|
```
|
|
133
|
+
|
|
113
134
|
Compute strengths, update global registry, refresh project profiles.
|
|
114
135
|
|
|
115
136
|
2. Consolidate vault (curator cleanup):
|
|
137
|
+
|
|
116
138
|
```
|
|
117
139
|
YOUR_AGENT_core op:curator_consolidate
|
|
118
140
|
```
|
|
119
141
|
|
|
120
142
|
3. Show updated metrics:
|
|
143
|
+
|
|
121
144
|
```
|
|
122
145
|
YOUR_AGENT_core op:brain_stats
|
|
123
146
|
```
|
|
@@ -127,21 +150,25 @@ When the user wants to understand what patterns have proven valuable, what anti-
|
|
|
127
150
|
### "Export what I know" (Portability)
|
|
128
151
|
|
|
129
152
|
Export brain intelligence:
|
|
153
|
+
|
|
130
154
|
```
|
|
131
155
|
YOUR_AGENT_core op:brain_export
|
|
132
156
|
```
|
|
133
157
|
|
|
134
158
|
Export memory:
|
|
159
|
+
|
|
135
160
|
```
|
|
136
161
|
YOUR_AGENT_core op:memory_export
|
|
137
162
|
```
|
|
138
163
|
|
|
139
164
|
Export vault as backup:
|
|
165
|
+
|
|
140
166
|
```
|
|
141
167
|
YOUR_AGENT_core op:vault_backup
|
|
142
168
|
```
|
|
143
169
|
|
|
144
170
|
These can be imported into another vault:
|
|
171
|
+
|
|
145
172
|
```
|
|
146
173
|
YOUR_AGENT_core op:brain_import
|
|
147
174
|
YOUR_AGENT_core op:memory_import
|
|
@@ -151,6 +178,7 @@ YOUR_AGENT_core op:vault_import
|
|
|
151
178
|
## Presenting Intelligence
|
|
152
179
|
|
|
153
180
|
Format as a report:
|
|
181
|
+
|
|
154
182
|
- **Strengths**: Top patterns with strength scores and domains
|
|
155
183
|
- **Risks**: Recurring anti-patterns that keep appearing
|
|
156
184
|
- **Gaps**: Domains with low coverage or stale knowledge
|
|
@@ -165,22 +193,22 @@ Debrief is complete when the user's specific question has been answered with dat
|
|
|
165
193
|
|
|
166
194
|
## Agent Tools Reference
|
|
167
195
|
|
|
168
|
-
| Op
|
|
169
|
-
|
|
170
|
-
| `brain_stats`
|
|
171
|
-
| `brain_strengths`
|
|
172
|
-
| `brain_global_patterns`
|
|
173
|
-
| `brain_recommend`
|
|
174
|
-
| `brain_build_intelligence`
|
|
175
|
-
| `brain_export` / `brain_import`
|
|
176
|
-
| `memory_topics`
|
|
177
|
-
| `memory_stats`
|
|
178
|
-
| `memory_export` / `memory_import` | Memory portability
|
|
179
|
-
| `memory_cross_project_search`
|
|
180
|
-
| `vault_age_report`
|
|
181
|
-
| `vault_backup` / `vault_import`
|
|
182
|
-
| `curator_health_audit`
|
|
183
|
-
| `curator_consolidate`
|
|
184
|
-
| `admin_vault_analytics`
|
|
185
|
-
| `admin_search_insights`
|
|
186
|
-
| `project_linked_projects`
|
|
196
|
+
| Op | When to Use |
|
|
197
|
+
| --------------------------------- | ----------------------------------------------- |
|
|
198
|
+
| `brain_stats` | Aggregate metrics — sessions, patterns, quality |
|
|
199
|
+
| `brain_strengths` | Patterns ranked by proven strength |
|
|
200
|
+
| `brain_global_patterns` | Cross-project promoted patterns |
|
|
201
|
+
| `brain_recommend` | Project-similarity recommendations |
|
|
202
|
+
| `brain_build_intelligence` | Rebuild full intelligence pipeline |
|
|
203
|
+
| `brain_export` / `brain_import` | Portable intelligence transfer |
|
|
204
|
+
| `memory_topics` | Knowledge clusters by topic |
|
|
205
|
+
| `memory_stats` | Memory statistics |
|
|
206
|
+
| `memory_export` / `memory_import` | Memory portability |
|
|
207
|
+
| `memory_cross_project_search` | Search across linked projects |
|
|
208
|
+
| `vault_age_report` | Find stale entries needing refresh |
|
|
209
|
+
| `vault_backup` / `vault_import` | Vault backup and restore |
|
|
210
|
+
| `curator_health_audit` | Vault quality score and status |
|
|
211
|
+
| `curator_consolidate` | Full vault cleanup pipeline |
|
|
212
|
+
| `admin_vault_analytics` | Overall knowledge quality metrics |
|
|
213
|
+
| `admin_search_insights` | Search miss analysis — what's not found |
|
|
214
|
+
| `project_linked_projects` | See connected projects |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorming
|
|
3
|
-
description:
|
|
3
|
+
description: 'You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Adapted from superpowers (MIT License) -->
|
|
@@ -52,12 +52,14 @@ This returns the intent type (BUILD, FIX, VALIDATE, DESIGN, IMPROVE, DELIVER) an
|
|
|
52
52
|
**BEFORE asking any questions or exploring code**, search for existing knowledge. Follow this order:
|
|
53
53
|
|
|
54
54
|
### Vault First
|
|
55
|
+
|
|
55
56
|
```
|
|
56
57
|
YOUR_AGENT_core op:search_intelligent
|
|
57
58
|
params: { query: "<the feature or idea the user described>" }
|
|
58
59
|
```
|
|
59
60
|
|
|
60
61
|
Look for:
|
|
62
|
+
|
|
61
63
|
- **Previous designs** — was this discussed or attempted before?
|
|
62
64
|
- **Architectural decisions** — are there constraints from past decisions?
|
|
63
65
|
- **Patterns** — established approaches in this codebase
|
|
@@ -84,18 +86,22 @@ YOUR_AGENT_core op:memory_cross_project_search
|
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
### Web Search Second
|
|
89
|
+
|
|
87
90
|
If the vault doesn't have prior art, search the web for:
|
|
91
|
+
|
|
88
92
|
- **Existing libraries/tools** that solve this problem (don't build what exists)
|
|
89
93
|
- **Reference implementations** in similar projects
|
|
90
94
|
- **Best practices** and established patterns for this type of feature
|
|
91
95
|
- **Known pitfalls** that others have documented
|
|
92
96
|
|
|
93
97
|
### Present Findings
|
|
98
|
+
|
|
94
99
|
Present vault + web findings to the user: "Before we design this, here's what I found..." This informs the design conversation and prevents reinventing solutions.
|
|
95
100
|
|
|
96
101
|
## The Process
|
|
97
102
|
|
|
98
103
|
**Understanding the idea:**
|
|
104
|
+
|
|
99
105
|
- Check out the current project state first (files, docs, recent commits)
|
|
100
106
|
- Ask questions one at a time to refine the idea
|
|
101
107
|
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
@@ -103,6 +109,7 @@ Present vault + web findings to the user: "Before we design this, here's what I
|
|
|
103
109
|
- Focus on understanding: purpose, constraints, success criteria
|
|
104
110
|
|
|
105
111
|
**Exploring approaches:**
|
|
112
|
+
|
|
106
113
|
- Propose 2-3 different approaches with trade-offs
|
|
107
114
|
- Present options conversationally with your recommendation and reasoning
|
|
108
115
|
- Lead with your recommended option and explain why
|
|
@@ -110,6 +117,7 @@ Present vault + web findings to the user: "Before we design this, here's what I
|
|
|
110
117
|
- **Reference web findings** — if an existing library solves this, recommend it over custom code
|
|
111
118
|
|
|
112
119
|
**Presenting the design:**
|
|
120
|
+
|
|
113
121
|
- Once you understand what you're building, present the design
|
|
114
122
|
- Scale each section to its complexity
|
|
115
123
|
- Ask after each section whether it looks right so far
|
|
@@ -133,10 +141,12 @@ YOUR_AGENT_core op:capture_knowledge
|
|
|
133
141
|
This ensures future brainstorming sessions can reference what was decided and why.
|
|
134
142
|
|
|
135
143
|
**Documentation:**
|
|
144
|
+
|
|
136
145
|
- Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
|
|
137
146
|
- Commit the design document to git
|
|
138
147
|
|
|
139
148
|
**Implementation:**
|
|
149
|
+
|
|
140
150
|
- Invoke the writing-plans skill to create a detailed implementation plan
|
|
141
151
|
- Do NOT invoke any other skill. writing-plans is the next step.
|
|
142
152
|
|
|
@@ -160,11 +170,11 @@ This ensures future brainstorming sessions can reference what was decided and wh
|
|
|
160
170
|
|
|
161
171
|
## Agent Tools Reference
|
|
162
172
|
|
|
163
|
-
| Op
|
|
164
|
-
|
|
165
|
-
| `route_intent`
|
|
166
|
-
| `search_intelligent`
|
|
167
|
-
| `vault_tags` / `vault_domains` | Browse knowledge landscape
|
|
168
|
-
| `brain_strengths`
|
|
169
|
-
| `memory_cross_project_search`
|
|
170
|
-
| `capture_knowledge`
|
|
173
|
+
| Op | When to Use |
|
|
174
|
+
| ------------------------------ | -------------------------------------------- |
|
|
175
|
+
| `route_intent` | Classify the type of work (BUILD, FIX, etc.) |
|
|
176
|
+
| `search_intelligent` | Search vault for prior art |
|
|
177
|
+
| `vault_tags` / `vault_domains` | Browse knowledge landscape |
|
|
178
|
+
| `brain_strengths` | Check proven patterns |
|
|
179
|
+
| `memory_cross_project_search` | Check if other projects solved this |
|
|
180
|
+
| `capture_knowledge` | Persist design decision to vault |
|
|
@@ -75,13 +75,13 @@ YOUR_AGENT_core op:brain_strengths
|
|
|
75
75
|
|
|
76
76
|
With vault patterns loaded, review the code checking for:
|
|
77
77
|
|
|
78
|
-
| Check
|
|
79
|
-
|
|
80
|
-
| Violates a critical rule
|
|
81
|
-
| Matches a known anti-pattern
|
|
82
|
-
| Doesn't follow a proven pattern
|
|
83
|
-
| Breaks project conventions
|
|
84
|
-
| Misses an opportunity to use a pattern | `search_intelligent`
|
|
78
|
+
| Check | Source | Severity |
|
|
79
|
+
| -------------------------------------- | ----------------------------- | ------------- |
|
|
80
|
+
| Violates a critical rule | `search (severity: critical)` | Must fix |
|
|
81
|
+
| Matches a known anti-pattern | `search (type: anti-pattern)` | Must fix |
|
|
82
|
+
| Doesn't follow a proven pattern | `brain_strengths` | Should fix |
|
|
83
|
+
| Breaks project conventions | `project_list_rules` | Should fix |
|
|
84
|
+
| Misses an opportunity to use a pattern | `search_intelligent` | Could improve |
|
|
85
85
|
|
|
86
86
|
### Step 4: Present the Review
|
|
87
87
|
|
|
@@ -146,6 +146,7 @@ YOUR_AGENT_core op:search_intelligent
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
Check system health:
|
|
149
|
+
|
|
149
150
|
```
|
|
150
151
|
YOUR_AGENT_core op:admin_health
|
|
151
152
|
```
|
|
@@ -153,6 +154,7 @@ YOUR_AGENT_core op:admin_health
|
|
|
153
154
|
## The Magic
|
|
154
155
|
|
|
155
156
|
This feels like magic because:
|
|
157
|
+
|
|
156
158
|
1. It's not ESLint — it catches things like "we decided not to use inheritance here" or "this API pattern caused production issues last month"
|
|
157
159
|
2. The rules come from YOUR team's experience, not a generic config file
|
|
158
160
|
3. It gets smarter over time — every captured pattern becomes a new check
|
|
@@ -162,15 +164,15 @@ A linter checks syntax. Code patrol checks wisdom.
|
|
|
162
164
|
|
|
163
165
|
## Agent Tools Reference
|
|
164
166
|
|
|
165
|
-
| Op
|
|
166
|
-
|
|
167
|
-
| `route_intent`
|
|
168
|
-
| `vault_domains`
|
|
169
|
-
| `search_intelligent` | Find relevant patterns for this code
|
|
170
|
-
| `search`
|
|
171
|
-
| `project_list_rules` | Project-specific conventions
|
|
172
|
-
| `get_behavior_rules` | Behavioral rules
|
|
173
|
-
| `brain_strengths`
|
|
174
|
-
| `capture_quick`
|
|
175
|
-
| `capture_knowledge`
|
|
176
|
-
| `admin_health`
|
|
167
|
+
| Op | When to Use |
|
|
168
|
+
| -------------------- | --------------------------------------------- |
|
|
169
|
+
| `route_intent` | Classify the code's domain |
|
|
170
|
+
| `vault_domains` | See which domains are relevant |
|
|
171
|
+
| `search_intelligent` | Find relevant patterns for this code |
|
|
172
|
+
| `search` | Find anti-patterns and critical rules |
|
|
173
|
+
| `project_list_rules` | Project-specific conventions |
|
|
174
|
+
| `get_behavior_rules` | Behavioral rules |
|
|
175
|
+
| `brain_strengths` | Proven patterns to check against |
|
|
176
|
+
| `capture_quick` | Capture new patterns discovered during review |
|
|
177
|
+
| `capture_knowledge` | Capture new conventions |
|
|
178
|
+
| `admin_health` | Post-review health check |
|
|
@@ -34,6 +34,7 @@ YOUR_AGENT_core op:plan_list_tasks
|
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Present:
|
|
37
|
+
|
|
37
38
|
- Plan objective and current status
|
|
38
39
|
- Which tasks are completed, in progress, or pending
|
|
39
40
|
- What's next to do
|
|
@@ -66,6 +67,7 @@ YOUR_AGENT_core op:loop_is_active
|
|
|
66
67
|
```
|
|
67
68
|
|
|
68
69
|
If active:
|
|
70
|
+
|
|
69
71
|
```
|
|
70
72
|
YOUR_AGENT_core op:loop_status
|
|
71
73
|
```
|
|
@@ -119,6 +121,7 @@ Format as a concise standup:
|
|
|
119
121
|
## The Magic
|
|
120
122
|
|
|
121
123
|
This feels like magic because the user just says "catch me up" and the agent:
|
|
124
|
+
|
|
122
125
|
1. Knows what plans are active and where they stand
|
|
123
126
|
2. Remembers what happened last session (even across context compactions)
|
|
124
127
|
3. Shows what knowledge was recently captured
|
|
@@ -129,15 +132,15 @@ No other tool does this — the agent has genuine persistent memory.
|
|
|
129
132
|
|
|
130
133
|
## Agent Tools Reference
|
|
131
134
|
|
|
132
|
-
| Op
|
|
133
|
-
|
|
134
|
-
| `plan_stats`
|
|
135
|
-
| `get_plan`
|
|
135
|
+
| Op | When to Use |
|
|
136
|
+
| ----------------- | --------------------------- |
|
|
137
|
+
| `plan_stats` | Find active plans |
|
|
138
|
+
| `get_plan` | Load plan details |
|
|
136
139
|
| `plan_list_tasks` | See task status within plan |
|
|
137
|
-
| `memory_search`
|
|
138
|
-
| `memory_list`
|
|
139
|
-
| `vault_recent`
|
|
140
|
-
| `loop_is_active`
|
|
141
|
-
| `loop_status`
|
|
142
|
-
| `brain_strengths` | Relevant proven patterns
|
|
143
|
-
| `admin_health`
|
|
140
|
+
| `memory_search` | Find session summaries |
|
|
141
|
+
| `memory_list` | Browse recent memories |
|
|
142
|
+
| `vault_recent` | Recently captured knowledge |
|
|
143
|
+
| `loop_is_active` | Check for in-flight loops |
|
|
144
|
+
| `loop_status` | Get loop details |
|
|
145
|
+
| `brain_strengths` | Relevant proven patterns |
|
|
146
|
+
| `admin_health` | System health check |
|