@soleri/forge 5.14.1 → 5.14.3
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/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/deliver-and-ship.md +123 -0
- package/dist/skills/skills/env-setup.md +151 -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/skills.js +1 -0
- package/dist/templates/skills.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/__tests__/scaffolder.test.ts +3 -1
- package/src/lib.ts +1 -0
- package/src/skills/deliver-and-ship.md +123 -0
- package/src/skills/env-setup.md +151 -0
- package/src/templates/skills.ts +1 -0
- package/src/templates/test-facades.ts +6 -4
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onboard-me
|
|
3
|
+
description: Use when the user says "onboard me", "I'm new here", "what should I know", "project overview", "show me the ropes", "knowledge tour", "what are the rules", "how does this project work", or is new to the project and needs a structured introduction to its knowledge, patterns, decisions, and conventions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Onboard Me — Instant Project Intelligence
|
|
7
|
+
|
|
8
|
+
Give any newcomer a structured tour of everything the vault knows about this project. Decisions, patterns, anti-patterns, principles, conventions — all in one guided walkthrough. Turns months of tribal knowledge into a 5-minute briefing.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
- New team member joining the project
|
|
13
|
+
- Switching context to a project you haven't touched in a while
|
|
14
|
+
- "What should I know before I start?"
|
|
15
|
+
- "What are the rules here?"
|
|
16
|
+
|
|
17
|
+
## The Magic: Structured Knowledge Tour
|
|
18
|
+
|
|
19
|
+
### Step 1: Project Overview
|
|
20
|
+
|
|
21
|
+
Get the project identity and registration:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
YOUR_AGENT_core op:identity
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
YOUR_AGENT_core op:project_get
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Get project-specific rules and conventions:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
YOUR_AGENT_core op:project_list_rules
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Get behavior rules:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
YOUR_AGENT_core op:get_behavior_rules
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Step 2: Knowledge Landscape
|
|
44
|
+
|
|
45
|
+
Show what the vault knows, organized by domain:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
YOUR_AGENT_core op:vault_domains
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
YOUR_AGENT_core op:vault_tags
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
YOUR_AGENT_core op:admin_vault_size
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Present: "This project has X entries across Y domains, covering Z tags."
|
|
60
|
+
|
|
61
|
+
### Step 3: Critical Knowledge
|
|
62
|
+
|
|
63
|
+
Search for the most important entries — critical severity first:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
YOUR_AGENT_core op:search
|
|
67
|
+
params: { severity: "critical" }
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
These are the "must know" items — rules that cannot be violated.
|
|
71
|
+
|
|
72
|
+
### Step 4: Key Decisions
|
|
73
|
+
|
|
74
|
+
Search for architectural and design decisions:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
YOUR_AGENT_core op:search_intelligent
|
|
78
|
+
params: { query: "architectural decision design choice" }
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Present the top decisions with their rationale — this is the "why" behind the codebase.
|
|
82
|
+
|
|
83
|
+
### Step 5: Strongest Patterns
|
|
84
|
+
|
|
85
|
+
Show what the brain has validated as proven approaches:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
YOUR_AGENT_core op:brain_strengths
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
These are the "how" — patterns that have been used successfully and should be followed.
|
|
92
|
+
|
|
93
|
+
### Step 6: Anti-Patterns to Avoid
|
|
94
|
+
|
|
95
|
+
Search for anti-patterns — things that went wrong and shouldn't be repeated:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
YOUR_AGENT_core op:search
|
|
99
|
+
params: { type: "anti-pattern" }
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Present as a "don't do this" list with the reasoning.
|
|
103
|
+
|
|
104
|
+
### Step 7: Cross-Project Context
|
|
105
|
+
|
|
106
|
+
Check if this project is linked to others:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
YOUR_AGENT_core op:project_linked_projects
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
If linked, show what patterns are shared:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
YOUR_AGENT_core op:brain_global_patterns
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Step 8: Knowledge Gaps
|
|
119
|
+
|
|
120
|
+
Show what's NOT in the vault — areas where the newcomer should ask questions:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
YOUR_AGENT_core op:vault_age_report
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Presenting the Onboarding
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
## Welcome to [Project Name]
|
|
134
|
+
|
|
135
|
+
**Role:** [project description]
|
|
136
|
+
**Domains:** [list of knowledge domains]
|
|
137
|
+
**Vault:** X entries across Y domains
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
### Critical Rules (Must Follow)
|
|
142
|
+
[Critical severity entries — non-negotiable conventions]
|
|
143
|
+
|
|
144
|
+
### Key Decisions
|
|
145
|
+
[Top architectural decisions with rationale]
|
|
146
|
+
"We chose X over Y because Z"
|
|
147
|
+
|
|
148
|
+
### Proven Patterns (Do This)
|
|
149
|
+
[Top brain-strength patterns — the project's best practices]
|
|
150
|
+
|
|
151
|
+
### Anti-Patterns (Don't Do This)
|
|
152
|
+
[Known mistakes — save yourself the debugging]
|
|
153
|
+
|
|
154
|
+
### Project Conventions
|
|
155
|
+
[Project rules, behavior rules, naming conventions]
|
|
156
|
+
|
|
157
|
+
### Related Projects
|
|
158
|
+
[Linked projects and shared patterns]
|
|
159
|
+
|
|
160
|
+
### Knowledge Gaps
|
|
161
|
+
[Areas not well-documented — ask the team about these]
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
**Tip:** Use `/vault-navigator` to search for specific topics as you work.
|
|
166
|
+
Use `/second-opinion` before making any architectural decision.
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## The Magic
|
|
170
|
+
|
|
171
|
+
This feels like magic because a new team member says "onboard me" and instantly gets:
|
|
172
|
+
|
|
173
|
+
1. Every critical rule they must follow
|
|
174
|
+
2. Every architectural decision and why it was made
|
|
175
|
+
3. Proven patterns to follow
|
|
176
|
+
4. Anti-patterns to avoid
|
|
177
|
+
5. What's shared with other projects
|
|
178
|
+
6. Where the knowledge gaps are
|
|
179
|
+
|
|
180
|
+
No other onboarding tool does this — it's not a static wiki, it's a living knowledge base that grows with the project.
|
|
181
|
+
|
|
182
|
+
## Agent Tools Reference
|
|
183
|
+
|
|
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 |
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: retrospective
|
|
3
|
+
description: Use when the user asks "what did I learn this week", "sprint retro", "retrospective", "learning report", "what went well", "what could improve", "weekly summary", "monthly report", or wants to reflect on recent work and extract actionable insights from accumulated data.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Retrospective — Learning Report From Real Data
|
|
7
|
+
|
|
8
|
+
Generate a retrospective from actual session data, vault captures, plan outcomes, and brain intelligence. Not opinions — data-driven reflection on what happened, what worked, what didn't, and what to do differently.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
- End of sprint / week / month
|
|
13
|
+
- "What did I learn this week?"
|
|
14
|
+
- "Sprint retrospective"
|
|
15
|
+
- "What went well? What didn't?"
|
|
16
|
+
- After completing a major feature or milestone
|
|
17
|
+
|
|
18
|
+
## The Magic: Data-Driven Reflection
|
|
19
|
+
|
|
20
|
+
### Step 1: Gather the Data
|
|
21
|
+
|
|
22
|
+
**Brain stats — the big picture:**
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
YOUR_AGENT_core op:brain_stats
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Recent brain stats — compare velocity:**
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
YOUR_AGENT_core op:brain_stats
|
|
32
|
+
params: { since: "<start of period>" }
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Pattern strengths — what's proven:**
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
YOUR_AGENT_core op:brain_strengths
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Recent vault captures — what was learned:**
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
YOUR_AGENT_core op:vault_recent
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Memory topics — where knowledge clusters:**
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
YOUR_AGENT_core op:memory_topics
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Memory stats — volume and health:**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
YOUR_AGENT_core op:memory_stats
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Plan stats — execution track record:**
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
YOUR_AGENT_core op:plan_stats
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Loop history — iterative workflow outcomes:**
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
YOUR_AGENT_core op:loop_history
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Search insights — what people looked for but didn't find:**
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Vault analytics — knowledge quality:**
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
YOUR_AGENT_core op:admin_vault_analytics
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Step 2: Analyze Patterns
|
|
84
|
+
|
|
85
|
+
**Stale knowledge needing refresh:**
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
YOUR_AGENT_core op:vault_age_report
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Duplicates that crept in:**
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
YOUR_AGENT_core op:curator_detect_duplicates
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Contradictions in the knowledge base:**
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
YOUR_AGENT_core op:curator_contradictions
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Curator health audit — overall quality:**
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
YOUR_AGENT_core op:curator_health_audit
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Step 3: Present the Retrospective
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
## Retrospective: [Period]
|
|
113
|
+
|
|
114
|
+
### By the Numbers
|
|
115
|
+
| Metric | This Period | Previous | Trend |
|
|
116
|
+
|--------|-----------|----------|-------|
|
|
117
|
+
| Patterns captured | X | Y | ↑/↓ |
|
|
118
|
+
| Anti-patterns logged | X | Y | ↑/↓ |
|
|
119
|
+
| Plans completed | X | Y | ↑/↓ |
|
|
120
|
+
| Brain strength (avg) | X | Y | ↑/↓ |
|
|
121
|
+
| Vault entries total | X | — | — |
|
|
122
|
+
| Search misses | X | Y | ↑/↓ |
|
|
123
|
+
|
|
124
|
+
### What Went Well
|
|
125
|
+
[Patterns with high brain strength, completed plans, growing domains]
|
|
126
|
+
|
|
127
|
+
### What Didn't Go Well
|
|
128
|
+
[Recurring anti-patterns, failed plans, search misses = knowledge gaps]
|
|
129
|
+
|
|
130
|
+
### Strongest Patterns
|
|
131
|
+
[Top 5 patterns by brain strength — these are your superpowers]
|
|
132
|
+
|
|
133
|
+
### Recurring Anti-Patterns
|
|
134
|
+
[Top 3 anti-patterns that keep appearing — these need systemic fixes]
|
|
135
|
+
|
|
136
|
+
### Knowledge Gaps
|
|
137
|
+
[Domains with low coverage, frequent search misses, stale entries]
|
|
138
|
+
|
|
139
|
+
### Vault Health
|
|
140
|
+
- Quality score: X/100
|
|
141
|
+
- Duplicates found: N
|
|
142
|
+
- Contradictions found: N
|
|
143
|
+
- Stale entries (>30 days): N
|
|
144
|
+
|
|
145
|
+
### Recommendations
|
|
146
|
+
1. [Action item based on data]
|
|
147
|
+
2. [Action item based on data]
|
|
148
|
+
3. [Action item based on data]
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Step 4: Capture the Retrospective
|
|
152
|
+
|
|
153
|
+
Save the retrospective itself as knowledge:
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
157
|
+
params: {
|
|
158
|
+
title: "Retrospective — [period]",
|
|
159
|
+
description: "<key findings and action items>",
|
|
160
|
+
type: "workflow",
|
|
161
|
+
category: "meta",
|
|
162
|
+
tags: ["retrospective", "<period>"]
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Step 5: Clean Up (Optional)
|
|
167
|
+
|
|
168
|
+
If the retrospective revealed quality issues, offer to fix them:
|
|
169
|
+
|
|
170
|
+
**Consolidate vault (deduplicate, normalize, groom):**
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
YOUR_AGENT_core op:curator_consolidate
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Rebuild brain intelligence with fresh data:**
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
YOUR_AGENT_core op:brain_build_intelligence
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## The Magic
|
|
183
|
+
|
|
184
|
+
This feels like magic because the user says "sprint retro" and gets a data-driven report they didn't have to compile. It's not AI making up observations — it's actual metrics from their vault, brain, plans, and memory. The recommendations come from real gaps, not generic advice.
|
|
185
|
+
|
|
186
|
+
## Agent Tools Reference
|
|
187
|
+
|
|
188
|
+
| Op | When to Use |
|
|
189
|
+
| --------------------------- | --------------------------- |
|
|
190
|
+
| `brain_stats` | Big picture metrics |
|
|
191
|
+
| `brain_strengths` | Proven patterns |
|
|
192
|
+
| `vault_recent` | What was captured recently |
|
|
193
|
+
| `memory_topics` | Knowledge clusters |
|
|
194
|
+
| `memory_stats` | Memory volume and health |
|
|
195
|
+
| `plan_stats` | Plan completion rates |
|
|
196
|
+
| `loop_history` | Iterative workflow outcomes |
|
|
197
|
+
| `admin_search_insights` | Search miss analysis |
|
|
198
|
+
| `admin_vault_analytics` | Knowledge quality metrics |
|
|
199
|
+
| `vault_age_report` | Stale entries |
|
|
200
|
+
| `curator_detect_duplicates` | Duplicate detection |
|
|
201
|
+
| `curator_contradictions` | Knowledge conflicts |
|
|
202
|
+
| `curator_health_audit` | Overall vault quality |
|
|
203
|
+
| `capture_knowledge` | Persist the retrospective |
|
|
204
|
+
| `curator_consolidate` | Post-retro cleanup |
|
|
205
|
+
| `brain_build_intelligence` | Rebuild intelligence |
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: second-opinion
|
|
3
|
+
description: Use when the user asks "should I", "what do you think about", "which approach", "compare options", "what would you recommend", "pros and cons", "trade-offs", or faces any technical decision and wants an informed recommendation backed by vault knowledge, brain patterns, and web research.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Second Opinion — Decision Support From All Sources
|
|
7
|
+
|
|
8
|
+
Before making any technical decision, get an informed recommendation that synthesizes vault knowledge, brain patterns, cross-project experience, and web research. Never decide in a vacuum.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
- "Should I use Redis or Memcached?"
|
|
13
|
+
- "What's the best way to handle auth?"
|
|
14
|
+
- "Which testing framework?"
|
|
15
|
+
- "Microservices or monolith?"
|
|
16
|
+
- Any fork-in-the-road technical decision
|
|
17
|
+
|
|
18
|
+
## The Magic: Multi-Source Decision Intelligence
|
|
19
|
+
|
|
20
|
+
### Step 1: Understand the Decision
|
|
21
|
+
|
|
22
|
+
Classify the intent to understand what kind of decision this is:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
YOUR_AGENT_core op:route_intent
|
|
26
|
+
params: { prompt: "<user's question>" }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Step 2: Search All Knowledge Sources (in order)
|
|
30
|
+
|
|
31
|
+
**Vault — has this been decided before?**
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
YOUR_AGENT_core op:search_intelligent
|
|
35
|
+
params: { query: "<the decision or options being considered>" }
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Look specifically for:
|
|
39
|
+
|
|
40
|
+
- Previous decisions on this topic (type: "decision")
|
|
41
|
+
- Patterns that favor one approach
|
|
42
|
+
- Anti-patterns that warn against an approach
|
|
43
|
+
|
|
44
|
+
**Brain — what's proven to work?**
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
YOUR_AGENT_core op:brain_strengths
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
YOUR_AGENT_core op:brain_recommend
|
|
52
|
+
params: { projectName: "<current project>" }
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Cross-project — what did other projects choose?**
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
YOUR_AGENT_core op:memory_cross_project_search
|
|
59
|
+
params: { query: "<the decision topic>", crossProject: true }
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Memory — any relevant context from past sessions?**
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
YOUR_AGENT_core op:memory_search
|
|
66
|
+
params: { query: "<decision topic>" }
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Web — what does the broader community say?**
|
|
70
|
+
Search the web for:
|
|
71
|
+
|
|
72
|
+
- Comparison articles (X vs Y for [use case])
|
|
73
|
+
- Benchmarks and performance data
|
|
74
|
+
- Community consensus on best practices
|
|
75
|
+
- Known limitations and gotchas
|
|
76
|
+
|
|
77
|
+
### Step 3: Synthesize and Present
|
|
78
|
+
|
|
79
|
+
Format the recommendation as a decision brief:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
## Decision: [Question]
|
|
83
|
+
|
|
84
|
+
### What the Vault Says
|
|
85
|
+
[Existing decisions, patterns, and anti-patterns from vault]
|
|
86
|
+
|
|
87
|
+
### What the Brain Recommends
|
|
88
|
+
[Proven patterns, cross-project insights]
|
|
89
|
+
|
|
90
|
+
### What the Web Says
|
|
91
|
+
[Community consensus, benchmarks, comparison data]
|
|
92
|
+
|
|
93
|
+
### Options Analysis
|
|
94
|
+
|
|
95
|
+
| Criteria | Option A | Option B | Option C |
|
|
96
|
+
|----------|----------|----------|----------|
|
|
97
|
+
| [criteria 1] | ... | ... | ... |
|
|
98
|
+
| [criteria 2] | ... | ... | ... |
|
|
99
|
+
| Vault support | [existing patterns?] | [existing patterns?] | — |
|
|
100
|
+
| Brain confidence | [strength score] | [strength score] | — |
|
|
101
|
+
|
|
102
|
+
### Recommendation
|
|
103
|
+
[Clear recommendation with reasoning]
|
|
104
|
+
|
|
105
|
+
### Risks
|
|
106
|
+
[What could go wrong with the recommended approach]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Step 4: Capture the Decision
|
|
110
|
+
|
|
111
|
+
Once the user decides, capture it to the vault for future reference:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
115
|
+
params: {
|
|
116
|
+
title: "<decision title>",
|
|
117
|
+
description: "<chosen option, rationale, rejected alternatives and why>",
|
|
118
|
+
type: "decision",
|
|
119
|
+
category: "<relevant domain>",
|
|
120
|
+
tags: ["<option-a>", "<option-b>", "decision", "<domain>"]
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
This is critical — the next person who faces the same decision will find it in the vault.
|
|
125
|
+
|
|
126
|
+
## The Magic
|
|
127
|
+
|
|
128
|
+
This feels like magic because the user asks "should I use X?" and instead of a generic AI opinion, they get:
|
|
129
|
+
|
|
130
|
+
1. What their own project decided before (vault)
|
|
131
|
+
2. What's proven to work across projects (brain)
|
|
132
|
+
3. What other linked projects chose (cross-project)
|
|
133
|
+
4. What the broader community recommends (web)
|
|
134
|
+
5. A synthesized recommendation with trade-offs
|
|
135
|
+
6. The decision captured for the next person who asks
|
|
136
|
+
|
|
137
|
+
It's like having a senior architect who remembers every decision ever made.
|
|
138
|
+
|
|
139
|
+
## Agent Tools Reference
|
|
140
|
+
|
|
141
|
+
| Op | When to Use |
|
|
142
|
+
| ----------------------------- | ------------------------------------ |
|
|
143
|
+
| `route_intent` | Classify the decision type |
|
|
144
|
+
| `search_intelligent` | Find previous decisions and patterns |
|
|
145
|
+
| `brain_strengths` | Proven approaches |
|
|
146
|
+
| `brain_recommend` | Project-specific recommendations |
|
|
147
|
+
| `memory_cross_project_search` | What other projects decided |
|
|
148
|
+
| `memory_search` | Session context for this decision |
|
|
149
|
+
| `capture_knowledge` | Persist the final decision |
|