@soleri/forge 5.14.7 → 5.14.9
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/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/lib.js.map +1 -1
- package/dist/templates/claude-md-template.js +3 -3
- package/dist/templates/claude-md-template.js.map +1 -1
- package/dist/templates/shared-rules.js +69 -0
- package/dist/templates/shared-rules.js.map +1 -1
- package/package.json +2 -2
- package/src/lib.ts +1 -0
- package/src/templates/shared-rules.ts +70 -0
- 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/skills/{skills/agent-dev.md → agent-dev.md} +0 -0
- /package/dist/skills/{skills/agent-guide.md → agent-guide.md} +0 -0
- /package/dist/skills/{skills/agent-persona.md → agent-persona.md} +0 -0
- /package/dist/skills/{skills/deliver-and-ship.md → deliver-and-ship.md} +0 -0
- /package/dist/skills/{skills/env-setup.md → env-setup.md} +0 -0
- /package/dist/skills/{skills/vault-curate.md → vault-curate.md} +0 -0
package/dist/lib.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export { generateExtensionsIndex, generateExampleOp } from './templates/extensio
|
|
|
14
14
|
export { generateClaudeMdTemplate } from './templates/claude-md-template.js';
|
|
15
15
|
export { getEngineRulesContent, getEngineMarker } from './templates/shared-rules.js';
|
|
16
16
|
export { generateInjectClaudeMd } from './templates/inject-claude-md.js';
|
|
17
|
+
export { generateSkills } from './templates/skills.js';
|
package/dist/lib.js
CHANGED
|
@@ -13,4 +13,5 @@ export { generateExtensionsIndex, generateExampleOp } from './templates/extensio
|
|
|
13
13
|
export { generateClaudeMdTemplate } from './templates/claude-md-template.js';
|
|
14
14
|
export { getEngineRulesContent, getEngineMarker } from './templates/shared-rules.js';
|
|
15
15
|
export { generateInjectClaudeMd } from './templates/inject-claude-md.js';
|
|
16
|
+
export { generateSkills } from './templates/skills.js';
|
|
16
17
|
//# sourceMappingURL=lib.js.map
|
package/dist/lib.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAWnE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAWnE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -62,14 +62,14 @@ export function generateClaudeMdTemplate(config) {
|
|
|
62
62
|
// Curator — quality, dedup, contradictions, grooming
|
|
63
63
|
`| ${bt}${toolPrefix}_curator${bt} | ${bt}curator_status${bt}, ${bt}curator_detect_duplicates${bt}, ${bt}curator_contradictions${bt}, ${bt}curator_groom_all${bt}, ${bt}curator_consolidate${bt}, ${bt}curator_health_audit${bt} |`, `| ${bt}${toolPrefix}_curator${bt} (advanced) | ${bt}curator_enrich${bt}, ${bt}curator_hybrid_contradictions${bt}, ${bt}curator_entry_history${bt}, ${bt}curator_queue_stats${bt} |`,
|
|
64
64
|
// Planning, orchestration, brain
|
|
65
|
-
`| ${bt}${toolPrefix}_plan${bt} | ${bt}create_plan${bt}, ${bt}approve_plan${bt}, ${bt}plan_split${bt}, ${bt}plan_reconcile${bt}, ${bt}plan_complete_lifecycle${bt} |`, `| ${bt}${toolPrefix}_orchestrate${bt} | ${bt}orchestrate_plan${bt}, ${bt}orchestrate_execute${bt}, ${bt}orchestrate_complete${bt} |`, `| ${bt}${toolPrefix}_brain${bt} | ${bt}brain_stats${bt}, ${bt}brain_feedback${bt}, ${bt}rebuild_vocabulary${bt}, ${bt}
|
|
65
|
+
`| ${bt}${toolPrefix}_plan${bt} | ${bt}create_plan${bt}, ${bt}approve_plan${bt}, ${bt}plan_split${bt}, ${bt}plan_reconcile${bt}, ${bt}plan_complete_lifecycle${bt} |`, `| ${bt}${toolPrefix}_orchestrate${bt} | ${bt}orchestrate_plan${bt}, ${bt}orchestrate_execute${bt}, ${bt}orchestrate_complete${bt} |`, `| ${bt}${toolPrefix}_brain${bt} | ${bt}brain_stats${bt}, ${bt}brain_feedback${bt}, ${bt}rebuild_vocabulary${bt}, ${bt}brain_strengths${bt}, ${bt}brain_recommend${bt} |`,
|
|
66
66
|
// Memory, control, loop
|
|
67
67
|
`| ${bt}${toolPrefix}_memory${bt} | ${bt}memory_search${bt}, ${bt}memory_capture${bt}, ${bt}session_capture${bt} |`, `| ${bt}${toolPrefix}_control${bt} | ${bt}route_intent${bt}, ${bt}morph${bt}, ${bt}get_behavior_rules${bt}, ${bt}governance_dashboard${bt}, ${bt}governance_policy${bt} |`, `| ${bt}${toolPrefix}_loop${bt} | ${bt}loop_start${bt}, ${bt}loop_iterate${bt}, ${bt}loop_status${bt}, ${bt}loop_cancel${bt} |`,
|
|
68
68
|
// Intelligence — cognee, context, agency
|
|
69
|
-
`| ${bt}${toolPrefix}_cognee${bt} | ${bt}cognee_search${bt}, ${bt}
|
|
69
|
+
`| ${bt}${toolPrefix}_cognee${bt} | ${bt}cognee_search${bt}, ${bt}cognee_graph_stats${bt}, ${bt}cognee_export_status${bt} |`, `| ${bt}${toolPrefix}_context${bt} | ${bt}context_extract_entities${bt}, ${bt}context_retrieve_knowledge${bt}, ${bt}context_analyze${bt} |`, `| ${bt}${toolPrefix}_agency${bt} | ${bt}agency_enable${bt}, ${bt}agency_status${bt}, ${bt}agency_surface_patterns${bt}, ${bt}agency_warnings${bt}, ${bt}agency_clarify${bt} |`,
|
|
70
70
|
// Admin
|
|
71
71
|
`| ${bt}${toolPrefix}_admin${bt} | ${bt}admin_health${bt}, ${bt}admin_tool_list${bt}, ${bt}admin_diagnostic${bt} |`);
|
|
72
|
-
mdLines.push('', `> Full list: ${bt}${toolPrefix}
|
|
72
|
+
mdLines.push('', `> Full list: ${bt}${toolPrefix}_admin op:admin_tool_list${bt}`, '');
|
|
73
73
|
// ─── Hook Packs (conditional) ──────────────────────────
|
|
74
74
|
appendHookPacks(mdLines, config);
|
|
75
75
|
// ─── Closing marker ────────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md-template.js","sourceRoot":"","sources":["../../src/templates/claude-md-template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAmB;IAC1D,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,OAAO,CAAC;IACnC,MAAM,EAAE,GAAG,GAAG,CAAC;IAEf,MAAM,OAAO,GAAa;QACxB,QAAQ,MAAM,MAAM;QACpB,EAAE;QACF,KAAK,MAAM,CAAC,IAAI,OAAO;QACvB,EAAE;QAEF,0DAA0D;QAC1D,MAAM,MAAM,CAAC,IAAI,EAAE;QACnB,EAAE;QACF,aAAa,MAAM,CAAC,IAAI,EAAE;QAC1B,gBAAgB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QAC3C,aAAa,MAAM,CAAC,IAAI,IAAI,WAAW,EAAE;QACzC,EAAE;QACF,MAAM,CAAC,WAAW;QAClB,EAAE;QACF,iBAAiB;QACjB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,K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aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACjE,OAAO,QAAQ,OAAO,IAAI,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,KAAK;QACL,4BAA4B,MAAM,CAAC,IAAI,GAAG;QAC1C,gDAAgD;QAChD,KAAK;QACL,EAAE;QACF,qEAAqE;QACrE,gDAAgD;QAChD,YAAY;QACZ,GAAG,WAAW;QACd,kBAAkB;QAClB,GAAG;QACH,EAAE;QACF,+CAA+C;QAC/C,aAAa,MAAM,IAAI;QACvB,GAAG;QACH,EAAE;QACF,yEAAyE;QACzE,mDAAmD;QACnD,YAAY;QACZ,GAAG,iBAAiB;QACpB,kBAAkB;QAClB,GAAG;QACH,EAAE;QACF,kDAAkD;QAClD,aAAa,eAAe,EAAE,IAAI;QAClC,GAAG;KACJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,OAAiB,EAAE,MAAmB;IAC7D,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM;QAAE,OAAO;IAEtC,mDAAmD;IACnD,oEAAoE;IACpE,yDAAyD;IACzD,OAAO,CAAC,IAAI,CACV,eAAe,EACf,EAAE,EACF,oFAAoF,EACpF,EAAE,EACF,oBAAoB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EACjD,EAAE,EACF,wEAAwE,EACxE,uDAAuD,EACvD,EAAE,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -271,6 +271,75 @@ const ENGINE_RULES_LINES = [
|
|
|
271
271
|
'A PreCompact hook calls `op:session_capture` before context compaction.',
|
|
272
272
|
'Manual capture: `op:session_capture params:{ summary: "..." }`',
|
|
273
273
|
'',
|
|
274
|
+
// ─── Soleri CLI ─────────────────────────────────────────
|
|
275
|
+
'## Soleri CLI',
|
|
276
|
+
'<!-- soleri:cli -->',
|
|
277
|
+
'',
|
|
278
|
+
'The agent is managed by the Soleri CLI (`npx soleri` or `soleri` if globally installed). Know these commands to help users with agent management.',
|
|
279
|
+
'',
|
|
280
|
+
'### Agent Lifecycle',
|
|
281
|
+
'',
|
|
282
|
+
'| Command | What it does |',
|
|
283
|
+
'|---------|-------------|',
|
|
284
|
+
'| `soleri agent status` | Health check — version, packs, vault, update availability |',
|
|
285
|
+
'| `soleri agent update` | Update engine to latest compatible version (`--check` for dry run) |',
|
|
286
|
+
'| `soleri agent refresh` | Regenerate CLAUDE.md from latest forge templates (`--dry-run` to preview) |',
|
|
287
|
+
'| `soleri agent diff` | Show drift between current templates and latest engine |',
|
|
288
|
+
'| `soleri doctor` | Full system health and project status check |',
|
|
289
|
+
'| `soleri dev` | Run agent in development mode (stdio MCP) |',
|
|
290
|
+
'| `soleri test` | Run agent tests (`--watch`, `--coverage`) |',
|
|
291
|
+
'',
|
|
292
|
+
'### Knowledge & Packs',
|
|
293
|
+
'',
|
|
294
|
+
'| Command | What it does |',
|
|
295
|
+
'|---------|-------------|',
|
|
296
|
+
'| `soleri pack list` | List installed packs (`--type hooks\\|skills\\|knowledge\\|domain`) |',
|
|
297
|
+
'| `soleri pack install <pack>` | Install a pack (local path, built-in, or npm) |',
|
|
298
|
+
'| `soleri pack available` | List available knowledge packs (starter/community) |',
|
|
299
|
+
'| `soleri pack outdated` | Check for pack updates |',
|
|
300
|
+
'| `soleri pack update` | Update packs to latest compatible version |',
|
|
301
|
+
'| `soleri install-knowledge <pack>` | Install knowledge pack into agent |',
|
|
302
|
+
'| `soleri add-domain <domain>` | Add a new knowledge domain |',
|
|
303
|
+
'',
|
|
304
|
+
'### Extensions',
|
|
305
|
+
'',
|
|
306
|
+
'| Command | What it does |',
|
|
307
|
+
'|---------|-------------|',
|
|
308
|
+
'| `soleri extend init` | Initialize extensions directory |',
|
|
309
|
+
'| `soleri extend add-op <name>` | Scaffold a custom op (snake_case) |',
|
|
310
|
+
'| `soleri extend add-facade <name>` | Scaffold a custom facade (kebab-case) |',
|
|
311
|
+
'| `soleri extend add-middleware <name>` | Scaffold a middleware |',
|
|
312
|
+
'',
|
|
313
|
+
'### Hooks & Skills',
|
|
314
|
+
'',
|
|
315
|
+
'| Command | What it does |',
|
|
316
|
+
'|---------|-------------|',
|
|
317
|
+
'| `soleri hooks list-packs` | Show available hook packs and their status |',
|
|
318
|
+
'| `soleri hooks add-pack <pack>` | Install a hook pack (`--project` for local only) |',
|
|
319
|
+
'| `soleri hooks remove-pack <pack>` | Remove a hook pack |',
|
|
320
|
+
'| `soleri skills list` | List installed skill packs |',
|
|
321
|
+
'| `soleri skills install <pack>` | Install a skill pack |',
|
|
322
|
+
'',
|
|
323
|
+
'### Installation & Setup',
|
|
324
|
+
'',
|
|
325
|
+
'| Command | What it does |',
|
|
326
|
+
'|---------|-------------|',
|
|
327
|
+
'| `soleri install` | Register agent as MCP server (`--target claude\\|codex\\|both`) |',
|
|
328
|
+
'| `soleri uninstall` | Remove agent MCP server entry |',
|
|
329
|
+
'| `soleri governance --show` | Show vault governance policy |',
|
|
330
|
+
'| `soleri governance --preset <name>` | Set policy preset (strict\\|moderate\\|permissive) |',
|
|
331
|
+
'| `soleri upgrade` | Upgrade @soleri/cli (`--check` to preview) |',
|
|
332
|
+
'',
|
|
333
|
+
'### When to Suggest CLI Commands',
|
|
334
|
+
'',
|
|
335
|
+
'| User Signal | Suggest |',
|
|
336
|
+
'|-------------|---------|',
|
|
337
|
+
'| "Am I up to date?" / "any updates?" | `soleri agent status` then `soleri agent update` |',
|
|
338
|
+
'| "Something feels off" / stale behavior | `soleri agent refresh` to regenerate CLAUDE.md |',
|
|
339
|
+
'| "How do I add X capability?" | `soleri extend add-op` or `soleri pack install` |',
|
|
340
|
+
'| "Check my setup" | `soleri doctor` |',
|
|
341
|
+
'| Template drift suspected | `soleri agent diff` to see what changed |',
|
|
342
|
+
'',
|
|
274
343
|
`<!-- /${ENGINE_MARKER} -->`,
|
|
275
344
|
];
|
|
276
345
|
//# sourceMappingURL=shared-rules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-rules.js","sourceRoot":"","sources":["../../src/templates/shared-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAE5C,MAAM,UAAU,eAAe;IAC7B,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,qBAAqB;IACnC,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,kBAAkB,GAAa;IACnC,QAAQ,aAAa,MAAM;IAC3B,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,qGAAqG;IACrG,EAAE;IAEF,2DAA2D;IAC3D,uBAAuB;IACvB,oCAAoC;IACpC,EAAE;IACF,8FAA8F;IAC9F,uFAAuF;IACvF,EAAE;IAEF,0DAA0D;IAC1D,wBAAwB;IACxB,gCAAgC;IAChC,EAAE;IACF,2FAA2F;IAC3F,EAAE;IACF,2GAA2G;IAC3G,+KAA+K;IAC/K,EAAE;IACF,qFAAqF;IACrF,EAAE;IAEF,4DAA4D;IAC5D,6BAA6B;IAC7B,gCAAgC;IAChC,EAAE;IACF,uHAAuH;IACvH,sHAAsH;IACtH,+EAA+E;IAC/E,8FAA8F;IAC9F,sGAAsG;IACtG,EAAE;IAEF,4DAA4D;IAC5D,aAAa;IACb,0BAA0B;IAC1B,EAAE;IACF,mFAAmF;IACnF,+FAA+F;IAC/F,yEAAyE;IACzE,uHAAuH;IACvH,2FAA2F;IAC3F,oFAAoF;IACpF,gFAAgF;IAChF,EAAE;IACF,sBAAsB;IACtB,EAAE;IACF,mCAAmC;IACnC,mCAAmC;IACnC,mDAAmD;IACnD,2CAA2C;IAC3C,+C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BAAoB;IACpB,EAAE;IACF,mHAAmH;IACnH,EAAE;IACF,qIAAqI;IACrI,EAAE;IAEF,4DAA4D;IAC5D,sBAAsB;IACtB,yBAAyB;IACzB,EAAE;IACF,4BAA4B;IAC5B,EAAE;IACF,uBAAuB;IACvB,gEAAgE;IAChE,iGAAiG;IACjG,wEAAwE;IACxE,6DAA6D;IAC7D,wEAAwE;IACxE,EAAE;IACF,wBAAwB;IACxB,EAAE;IACF,yEAAyE;IACzE,gEAAgE;IAChE,EAAE;IAEF,SAAS,aAAa,MAAM;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"shared-rules.js","sourceRoot":"","sources":["../../src/templates/shared-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAE5C,MAAM,UAAU,eAAe;IAC7B,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,qBAAqB;IACnC,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,kBAAkB,GAAa;IACnC,QAAQ,aAAa,MAAM;IAC3B,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,qGAAqG;IACrG,EAAE;IAEF,2DAA2D;IAC3D,uBAAuB;IACvB,oCAAoC;IACpC,EAAE;IACF,8FAA8F;IAC9F,uFAAuF;IACvF,EAAE;IAEF,0DAA0D;IAC1D,wBAAwB;IACxB,gCAAgC;IAChC,EAAE;IACF,2FAA2F;IAC3F,EAAE;IACF,2GAA2G;IAC3G,+KAA+K;IAC/K,EAAE;IACF,qFAAqF;IACrF,EAAE;IAEF,4DAA4D;IAC5D,6BAA6B;IAC7B,gCAAgC;IAChC,EAAE;IACF,uHAAuH;IACvH,sHAAsH;IACtH,+EAA+E;IAC/E,8FAA8F;IAC9F,sGAAsG;IACtG,EAAE;IAEF,4DAA4D;IAC5D,aAAa;IACb,0BAA0B;IAC1B,EAAE;IACF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,EAAE;IACF,4BAA4B;IAC5B,2BAA2B;IAC3B,wFAAwF;IACxF,wDAAwD;IACxD,+DAA+D;IAC/D,8FAA8F;IAC9F,mEAAmE;IACnE,EAAE;IACF,kCAAkC;IAClC,EAAE;IACF,2BAA2B;IAC3B,2BAA2B;IAC3B,4FAA4F;IAC5F,6FAA6F;IAC7F,oFAAoF;IACpF,wCAAwC;IACxC,wEAAwE;IACxE,EAAE;IAEF,SAAS,aAAa,MAAM;CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleri/forge",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.9",
|
|
4
4
|
"description": "Scaffold AI agents that learn, remember, and grow with you.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"dev": "tsx src/index.ts",
|
|
45
|
-
"build": "tsc && cp -r src/skills dist/skills",
|
|
45
|
+
"build": "tsc && rm -rf dist/skills && cp -r src/skills dist/skills",
|
|
46
46
|
"start": "node dist/index.js",
|
|
47
47
|
"typecheck": "tsc --noEmit",
|
|
48
48
|
"test": "vitest run",
|
package/src/lib.ts
CHANGED
|
@@ -23,3 +23,4 @@ export { generateExtensionsIndex, generateExampleOp } from './templates/extensio
|
|
|
23
23
|
export { generateClaudeMdTemplate } from './templates/claude-md-template.js';
|
|
24
24
|
export { getEngineRulesContent, getEngineMarker } from './templates/shared-rules.js';
|
|
25
25
|
export { generateInjectClaudeMd } from './templates/inject-claude-md.js';
|
|
26
|
+
export { generateSkills } from './templates/skills.js';
|
|
@@ -290,5 +290,75 @@ const ENGINE_RULES_LINES: string[] = [
|
|
|
290
290
|
'Manual capture: `op:session_capture params:{ summary: "..." }`',
|
|
291
291
|
'',
|
|
292
292
|
|
|
293
|
+
// ─── Soleri CLI ─────────────────────────────────────────
|
|
294
|
+
'## Soleri CLI',
|
|
295
|
+
'<!-- soleri:cli -->',
|
|
296
|
+
'',
|
|
297
|
+
'The agent is managed by the Soleri CLI (`npx soleri` or `soleri` if globally installed). Know these commands to help users with agent management.',
|
|
298
|
+
'',
|
|
299
|
+
'### Agent Lifecycle',
|
|
300
|
+
'',
|
|
301
|
+
'| Command | What it does |',
|
|
302
|
+
'|---------|-------------|',
|
|
303
|
+
'| `soleri agent status` | Health check — version, packs, vault, update availability |',
|
|
304
|
+
'| `soleri agent update` | Update engine to latest compatible version (`--check` for dry run) |',
|
|
305
|
+
'| `soleri agent refresh` | Regenerate CLAUDE.md from latest forge templates (`--dry-run` to preview) |',
|
|
306
|
+
'| `soleri agent diff` | Show drift between current templates and latest engine |',
|
|
307
|
+
'| `soleri doctor` | Full system health and project status check |',
|
|
308
|
+
'| `soleri dev` | Run agent in development mode (stdio MCP) |',
|
|
309
|
+
'| `soleri test` | Run agent tests (`--watch`, `--coverage`) |',
|
|
310
|
+
'',
|
|
311
|
+
'### Knowledge & Packs',
|
|
312
|
+
'',
|
|
313
|
+
'| Command | What it does |',
|
|
314
|
+
'|---------|-------------|',
|
|
315
|
+
'| `soleri pack list` | List installed packs (`--type hooks\\|skills\\|knowledge\\|domain`) |',
|
|
316
|
+
'| `soleri pack install <pack>` | Install a pack (local path, built-in, or npm) |',
|
|
317
|
+
'| `soleri pack available` | List available knowledge packs (starter/community) |',
|
|
318
|
+
'| `soleri pack outdated` | Check for pack updates |',
|
|
319
|
+
'| `soleri pack update` | Update packs to latest compatible version |',
|
|
320
|
+
'| `soleri install-knowledge <pack>` | Install knowledge pack into agent |',
|
|
321
|
+
'| `soleri add-domain <domain>` | Add a new knowledge domain |',
|
|
322
|
+
'',
|
|
323
|
+
'### Extensions',
|
|
324
|
+
'',
|
|
325
|
+
'| Command | What it does |',
|
|
326
|
+
'|---------|-------------|',
|
|
327
|
+
'| `soleri extend init` | Initialize extensions directory |',
|
|
328
|
+
'| `soleri extend add-op <name>` | Scaffold a custom op (snake_case) |',
|
|
329
|
+
'| `soleri extend add-facade <name>` | Scaffold a custom facade (kebab-case) |',
|
|
330
|
+
'| `soleri extend add-middleware <name>` | Scaffold a middleware |',
|
|
331
|
+
'',
|
|
332
|
+
'### Hooks & Skills',
|
|
333
|
+
'',
|
|
334
|
+
'| Command | What it does |',
|
|
335
|
+
'|---------|-------------|',
|
|
336
|
+
'| `soleri hooks list-packs` | Show available hook packs and their status |',
|
|
337
|
+
'| `soleri hooks add-pack <pack>` | Install a hook pack (`--project` for local only) |',
|
|
338
|
+
'| `soleri hooks remove-pack <pack>` | Remove a hook pack |',
|
|
339
|
+
'| `soleri skills list` | List installed skill packs |',
|
|
340
|
+
'| `soleri skills install <pack>` | Install a skill pack |',
|
|
341
|
+
'',
|
|
342
|
+
'### Installation & Setup',
|
|
343
|
+
'',
|
|
344
|
+
'| Command | What it does |',
|
|
345
|
+
'|---------|-------------|',
|
|
346
|
+
'| `soleri install` | Register agent as MCP server (`--target claude\\|codex\\|both`) |',
|
|
347
|
+
'| `soleri uninstall` | Remove agent MCP server entry |',
|
|
348
|
+
'| `soleri governance --show` | Show vault governance policy |',
|
|
349
|
+
'| `soleri governance --preset <name>` | Set policy preset (strict\\|moderate\\|permissive) |',
|
|
350
|
+
'| `soleri upgrade` | Upgrade @soleri/cli (`--check` to preview) |',
|
|
351
|
+
'',
|
|
352
|
+
'### When to Suggest CLI Commands',
|
|
353
|
+
'',
|
|
354
|
+
'| User Signal | Suggest |',
|
|
355
|
+
'|-------------|---------|',
|
|
356
|
+
'| "Am I up to date?" / "any updates?" | `soleri agent status` then `soleri agent update` |',
|
|
357
|
+
'| "Something feels off" / stale behavior | `soleri agent refresh` to regenerate CLAUDE.md |',
|
|
358
|
+
'| "How do I add X capability?" | `soleri extend add-op` or `soleri pack install` |',
|
|
359
|
+
'| "Check my setup" | `soleri doctor` |',
|
|
360
|
+
'| Template drift suspected | `soleri agent diff` to see what changed |',
|
|
361
|
+
'',
|
|
362
|
+
|
|
293
363
|
`<!-- /${ENGINE_MARKER} -->`,
|
|
294
364
|
];
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brain-debrief
|
|
3
|
-
description: Use when the user asks "what have I learned", "brain stats", "pattern strengths", "cross-project insights", "intelligence report", "show me patterns", "what's working", "learning summary", or wants to explore accumulated knowledge and see what the brain has learned.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Brain Debrief — Intelligence Report
|
|
7
|
-
|
|
8
|
-
Surface what the brain has learned across sessions and projects. This turns raw vault data into actionable intelligence.
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
|
|
12
|
-
When the user wants to understand what patterns have proven valuable, what anti-patterns keep recurring, how knowledge is distributed across projects, or wants a "state of intelligence" report.
|
|
13
|
-
|
|
14
|
-
## Orchestration by Query Type
|
|
15
|
-
|
|
16
|
-
### "What have I learned?" (General debrief)
|
|
17
|
-
|
|
18
|
-
1. Get the big picture:
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
YOUR_AGENT_core op:brain_stats
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Total sessions, patterns captured, quality scores, coverage gaps.
|
|
25
|
-
|
|
26
|
-
2. Get patterns ranked by proven strength:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
YOUR_AGENT_core op:brain_strengths
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Focus on strength >= 70 and successRate >= 0.7.
|
|
33
|
-
|
|
34
|
-
3. Check memory landscape:
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
YOUR_AGENT_core op:memory_topics
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Shows how knowledge clusters by topic.
|
|
41
|
-
|
|
42
|
-
4. Check for stale knowledge:
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
YOUR_AGENT_core op:vault_age_report
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Find entries that haven't been updated recently — candidates for review.
|
|
49
|
-
|
|
50
|
-
5. Run a curator health audit:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
YOUR_AGENT_core op:curator_health_audit
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Vault quality score, tag normalization status, duplicate density.
|
|
57
|
-
|
|
58
|
-
6. Present: top 5 strongest patterns, top 3 recurring anti-patterns, stale entries needing refresh, and coverage gaps.
|
|
59
|
-
|
|
60
|
-
### "What's working across projects?" (Cross-project intelligence)
|
|
61
|
-
|
|
62
|
-
1. Get patterns promoted to the global pool:
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
YOUR_AGENT_core op:brain_global_patterns
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
2. Get recommendations based on project similarity:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
YOUR_AGENT_core op:brain_recommend
|
|
72
|
-
params: { projectName: "<current project>" }
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
3. Check linked projects:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
YOUR_AGENT_core op:project_linked_projects
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
4. Search across all projects for relevant patterns:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
YOUR_AGENT_core op:memory_cross_project_search
|
|
85
|
-
params: { query: "<topic>", crossProject: true }
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
5. Present: patterns from other projects that would apply here, ranked by relevance.
|
|
89
|
-
|
|
90
|
-
### "Am I getting smarter?" (Learning velocity)
|
|
91
|
-
|
|
92
|
-
1. Recent stats:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
YOUR_AGENT_core op:brain_stats
|
|
96
|
-
params: { since: "<7 days ago>" }
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
2. Longer period for comparison:
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
YOUR_AGENT_core op:brain_stats
|
|
103
|
-
params: { since: "<30 days ago>" }
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
3. Memory stats:
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
YOUR_AGENT_core op:memory_stats
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
4. Vault analytics:
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
YOUR_AGENT_core op:admin_vault_analytics
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
5. Search insights — what queries are people running, what's missing:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
YOUR_AGENT_core op:admin_search_insights
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
6. Present: new patterns captured, strength changes, domains growing vs stagnant, search miss analysis.
|
|
125
|
-
|
|
126
|
-
### "Build fresh intelligence" (Rebuild)
|
|
127
|
-
|
|
128
|
-
1. Run the full pipeline:
|
|
129
|
-
|
|
130
|
-
```
|
|
131
|
-
YOUR_AGENT_core op:brain_build_intelligence
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Compute strengths, update global registry, refresh project profiles.
|
|
135
|
-
|
|
136
|
-
2. Consolidate vault (curator cleanup):
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
YOUR_AGENT_core op:curator_consolidate
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
3. Show updated metrics:
|
|
143
|
-
|
|
144
|
-
```
|
|
145
|
-
YOUR_AGENT_core op:brain_stats
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
4. Present: what changed after the rebuild.
|
|
149
|
-
|
|
150
|
-
### "Export what I know" (Portability)
|
|
151
|
-
|
|
152
|
-
Export brain intelligence:
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
YOUR_AGENT_core op:brain_export
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
Export memory:
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
YOUR_AGENT_core op:memory_export
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Export vault as backup:
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
YOUR_AGENT_core op:vault_backup
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
These can be imported into another vault:
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
YOUR_AGENT_core op:brain_import
|
|
174
|
-
YOUR_AGENT_core op:memory_import
|
|
175
|
-
YOUR_AGENT_core op:vault_import
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
## Presenting Intelligence
|
|
179
|
-
|
|
180
|
-
Format as a report:
|
|
181
|
-
|
|
182
|
-
- **Strengths**: Top patterns with strength scores and domains
|
|
183
|
-
- **Risks**: Recurring anti-patterns that keep appearing
|
|
184
|
-
- **Gaps**: Domains with low coverage or stale knowledge
|
|
185
|
-
- **Stale**: Entries needing refresh (from age report)
|
|
186
|
-
- **Quality**: Curator health audit score
|
|
187
|
-
- **Recommendations**: What to focus on learning next
|
|
188
|
-
- **Search Misses**: What people are looking for but not finding
|
|
189
|
-
|
|
190
|
-
## Exit Criteria
|
|
191
|
-
|
|
192
|
-
Debrief is complete when the user's specific question has been answered with data from the brain. For general debriefs, present stats + strengths + gaps + stale entries at minimum.
|
|
193
|
-
|
|
194
|
-
## Agent Tools Reference
|
|
195
|
-
|
|
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,180 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brainstorming
|
|
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
|
-
---
|
|
5
|
-
|
|
6
|
-
<!-- Adapted from superpowers (MIT License) -->
|
|
7
|
-
|
|
8
|
-
# Brainstorming Ideas Into Designs
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
13
|
-
|
|
14
|
-
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
|
|
15
|
-
|
|
16
|
-
<HARD-GATE>
|
|
17
|
-
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
|
|
18
|
-
</HARD-GATE>
|
|
19
|
-
|
|
20
|
-
## Anti-Pattern: "This Is Too Simple To Need A Design"
|
|
21
|
-
|
|
22
|
-
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
|
|
23
|
-
|
|
24
|
-
## Checklist
|
|
25
|
-
|
|
26
|
-
You MUST create a task for each of these items and complete them in order:
|
|
27
|
-
|
|
28
|
-
1. **Classify intent** — understand what type of work this is
|
|
29
|
-
2. **Search vault for prior art** — check if something similar was built, decided, or rejected before
|
|
30
|
-
3. **Search web for existing solutions** — don't build what already exists
|
|
31
|
-
4. **Explore project context** — check files, docs, recent commits
|
|
32
|
-
5. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
|
|
33
|
-
6. **Propose 2-3 approaches** — with trade-offs and your recommendation
|
|
34
|
-
7. **Present design** — in sections scaled to their complexity, get user approval after each section
|
|
35
|
-
8. **Capture design decision** — persist the decision to the vault
|
|
36
|
-
9. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
|
|
37
|
-
10. **Transition to implementation** — invoke writing-plans skill to create implementation plan
|
|
38
|
-
|
|
39
|
-
## Step 0: Classify Intent
|
|
40
|
-
|
|
41
|
-
Before anything else, understand the type of work:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
YOUR_AGENT_core op:route_intent
|
|
45
|
-
params: { prompt: "<the user's request>" }
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
This returns the intent type (BUILD, FIX, VALIDATE, DESIGN, IMPROVE, DELIVER) and routing guidance. Use this to focus the brainstorming — a FIX intent needs different questions than a BUILD intent.
|
|
49
|
-
|
|
50
|
-
## Step 1: Search Before Designing — Vault, Then Web
|
|
51
|
-
|
|
52
|
-
**BEFORE asking any questions or exploring code**, search for existing knowledge. Follow this order:
|
|
53
|
-
|
|
54
|
-
### Vault First
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
YOUR_AGENT_core op:search_intelligent
|
|
58
|
-
params: { query: "<the feature or idea the user described>" }
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Look for:
|
|
62
|
-
|
|
63
|
-
- **Previous designs** — was this discussed or attempted before?
|
|
64
|
-
- **Architectural decisions** — are there constraints from past decisions?
|
|
65
|
-
- **Patterns** — established approaches in this codebase
|
|
66
|
-
- **Anti-patterns** — approaches that were tried and failed
|
|
67
|
-
|
|
68
|
-
Browse the knowledge landscape for related context:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
YOUR_AGENT_core op:vault_tags
|
|
72
|
-
YOUR_AGENT_core op:vault_domains
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Check what the brain says about proven patterns in this domain:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
YOUR_AGENT_core op:brain_strengths
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Check if other linked projects have solved this:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
YOUR_AGENT_core op:memory_cross_project_search
|
|
85
|
-
params: { query: "<the feature>", crossProject: true }
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Web Search Second
|
|
89
|
-
|
|
90
|
-
If the vault doesn't have prior art, search the web for:
|
|
91
|
-
|
|
92
|
-
- **Existing libraries/tools** that solve this problem (don't build what exists)
|
|
93
|
-
- **Reference implementations** in similar projects
|
|
94
|
-
- **Best practices** and established patterns for this type of feature
|
|
95
|
-
- **Known pitfalls** that others have documented
|
|
96
|
-
|
|
97
|
-
### Present Findings
|
|
98
|
-
|
|
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.
|
|
100
|
-
|
|
101
|
-
## The Process
|
|
102
|
-
|
|
103
|
-
**Understanding the idea:**
|
|
104
|
-
|
|
105
|
-
- Check out the current project state first (files, docs, recent commits)
|
|
106
|
-
- Ask questions one at a time to refine the idea
|
|
107
|
-
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
108
|
-
- Only one question per message
|
|
109
|
-
- Focus on understanding: purpose, constraints, success criteria
|
|
110
|
-
|
|
111
|
-
**Exploring approaches:**
|
|
112
|
-
|
|
113
|
-
- Propose 2-3 different approaches with trade-offs
|
|
114
|
-
- Present options conversationally with your recommendation and reasoning
|
|
115
|
-
- Lead with your recommended option and explain why
|
|
116
|
-
- **Reference vault patterns** — if the vault has a proven approach, lead with it
|
|
117
|
-
- **Reference web findings** — if an existing library solves this, recommend it over custom code
|
|
118
|
-
|
|
119
|
-
**Presenting the design:**
|
|
120
|
-
|
|
121
|
-
- Once you understand what you're building, present the design
|
|
122
|
-
- Scale each section to its complexity
|
|
123
|
-
- Ask after each section whether it looks right so far
|
|
124
|
-
- Cover: architecture, components, data flow, error handling, testing
|
|
125
|
-
|
|
126
|
-
## After the Design
|
|
127
|
-
|
|
128
|
-
**Capture the design decision to the vault:**
|
|
129
|
-
|
|
130
|
-
```
|
|
131
|
-
YOUR_AGENT_core op:capture_knowledge
|
|
132
|
-
params: {
|
|
133
|
-
title: "<feature name> — design decision",
|
|
134
|
-
description: "<chosen approach, rationale, rejected alternatives>",
|
|
135
|
-
type: "decision",
|
|
136
|
-
category: "<relevant domain>",
|
|
137
|
-
tags: ["<relevant>", "<tags>", "design-decision"]
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
This ensures future brainstorming sessions can reference what was decided and why.
|
|
142
|
-
|
|
143
|
-
**Documentation:**
|
|
144
|
-
|
|
145
|
-
- Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
|
|
146
|
-
- Commit the design document to git
|
|
147
|
-
|
|
148
|
-
**Implementation:**
|
|
149
|
-
|
|
150
|
-
- Invoke the writing-plans skill to create a detailed implementation plan
|
|
151
|
-
- Do NOT invoke any other skill. writing-plans is the next step.
|
|
152
|
-
|
|
153
|
-
## Process Flow
|
|
154
|
-
|
|
155
|
-
**The terminal state is invoking writing-plans.** Do NOT invoke any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
|
|
156
|
-
|
|
157
|
-
## Key Principles
|
|
158
|
-
|
|
159
|
-
- **Classify first** — understand intent before diving in
|
|
160
|
-
- **Vault first** — don't reinvent what's been decided or solved before
|
|
161
|
-
- **Web second** — don't build what already exists as a library
|
|
162
|
-
- **One question at a time** — don't overwhelm with multiple questions
|
|
163
|
-
- **Multiple choice preferred** — easier to answer than open-ended when possible
|
|
164
|
-
- **YAGNI ruthlessly** — remove unnecessary features from all designs
|
|
165
|
-
- **Explore alternatives** — always propose 2-3 approaches before settling
|
|
166
|
-
- **Incremental validation** — present design, get approval before moving on
|
|
167
|
-
- **Capture decisions** — every design decision gets persisted to the vault
|
|
168
|
-
- **Cross-project learning** — check if other projects solved this already
|
|
169
|
-
- **Be flexible** — go back and clarify when something doesn't make sense
|
|
170
|
-
|
|
171
|
-
## Agent Tools Reference
|
|
172
|
-
|
|
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 |
|