@soleri/forge 5.4.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/scaffolder.js +98 -6
  2. package/dist/scaffolder.js.map +1 -1
  3. package/dist/skills/brain-debrief.md +186 -0
  4. package/dist/skills/brainstorming.md +170 -0
  5. package/dist/skills/code-patrol.md +176 -0
  6. package/dist/skills/context-resume.md +143 -0
  7. package/dist/skills/executing-plans.md +201 -0
  8. package/dist/skills/fix-and-learn.md +164 -0
  9. package/dist/skills/health-check.md +225 -0
  10. package/dist/skills/knowledge-harvest.md +178 -0
  11. package/dist/skills/onboard-me.md +197 -0
  12. package/dist/skills/retrospective.md +189 -0
  13. package/dist/skills/second-opinion.md +142 -0
  14. package/dist/skills/skills/brain-debrief.md +214 -0
  15. package/dist/skills/skills/brainstorming.md +180 -0
  16. package/dist/skills/skills/code-patrol.md +178 -0
  17. package/dist/skills/skills/context-resume.md +146 -0
  18. package/dist/skills/skills/executing-plans.md +216 -0
  19. package/dist/skills/skills/fix-and-learn.md +167 -0
  20. package/dist/skills/skills/health-check.md +231 -0
  21. package/dist/skills/skills/knowledge-harvest.md +185 -0
  22. package/dist/skills/skills/onboard-me.md +198 -0
  23. package/dist/skills/skills/retrospective.md +205 -0
  24. package/dist/skills/skills/second-opinion.md +149 -0
  25. package/dist/skills/skills/systematic-debugging.md +241 -0
  26. package/dist/skills/skills/test-driven-development.md +281 -0
  27. package/dist/skills/skills/vault-capture.md +170 -0
  28. package/dist/skills/skills/vault-navigator.md +140 -0
  29. package/dist/skills/skills/verification-before-completion.md +182 -0
  30. package/dist/skills/skills/writing-plans.md +215 -0
  31. package/dist/skills/systematic-debugging.md +230 -0
  32. package/dist/skills/test-driven-development.md +266 -0
  33. package/dist/skills/vault-capture.md +154 -0
  34. package/dist/skills/vault-navigator.md +129 -0
  35. package/dist/skills/verification-before-completion.md +170 -0
  36. package/dist/skills/writing-plans.md +207 -0
  37. package/dist/templates/entry-point.js +8 -0
  38. package/dist/templates/entry-point.js.map +1 -1
  39. package/dist/templates/readme.js +38 -0
  40. package/dist/templates/readme.js.map +1 -1
  41. package/dist/templates/setup-script.js +26 -0
  42. package/dist/templates/setup-script.js.map +1 -1
  43. package/dist/templates/skills.d.ts +16 -0
  44. package/dist/templates/skills.js +73 -0
  45. package/dist/templates/skills.js.map +1 -0
  46. package/dist/templates/test-facades.js +35 -6
  47. package/dist/templates/test-facades.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/__tests__/scaffolder.test.ts +115 -2
  50. package/src/scaffolder.ts +100 -6
  51. package/src/skills/brain-debrief.md +214 -0
  52. package/src/skills/brainstorming.md +180 -0
  53. package/src/skills/code-patrol.md +178 -0
  54. package/src/skills/context-resume.md +146 -0
  55. package/src/skills/executing-plans.md +216 -0
  56. package/src/skills/fix-and-learn.md +167 -0
  57. package/src/skills/health-check.md +231 -0
  58. package/src/skills/knowledge-harvest.md +185 -0
  59. package/src/skills/onboard-me.md +198 -0
  60. package/src/skills/retrospective.md +205 -0
  61. package/src/skills/second-opinion.md +149 -0
  62. package/src/skills/systematic-debugging.md +241 -0
  63. package/src/skills/test-driven-development.md +281 -0
  64. package/src/skills/vault-capture.md +170 -0
  65. package/src/skills/vault-navigator.md +140 -0
  66. package/src/skills/verification-before-completion.md +182 -0
  67. package/src/skills/writing-plans.md +215 -0
  68. package/src/templates/entry-point.ts +8 -0
  69. package/src/templates/readme.ts +38 -0
  70. package/src/templates/setup-script.ts +26 -0
  71. package/src/templates/skills.ts +82 -0
  72. package/src/templates/test-facades.ts +35 -6
@@ -0,0 +1,189 @@
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
+ YOUR_AGENT_core op:brain_stats
25
+ ```
26
+
27
+ **Recent brain stats — compare velocity:**
28
+ ```
29
+ YOUR_AGENT_core op:brain_stats
30
+ params: { since: "<start of period>" }
31
+ ```
32
+
33
+ **Pattern strengths — what's proven:**
34
+ ```
35
+ YOUR_AGENT_core op:brain_strengths
36
+ ```
37
+
38
+ **Recent vault captures — what was learned:**
39
+ ```
40
+ YOUR_AGENT_core op:vault_recent
41
+ ```
42
+
43
+ **Memory topics — where knowledge clusters:**
44
+ ```
45
+ YOUR_AGENT_core op:memory_topics
46
+ ```
47
+
48
+ **Memory stats — volume and health:**
49
+ ```
50
+ YOUR_AGENT_core op:memory_stats
51
+ ```
52
+
53
+ **Plan stats — execution track record:**
54
+ ```
55
+ YOUR_AGENT_core op:plan_stats
56
+ ```
57
+
58
+ **Loop history — iterative workflow outcomes:**
59
+ ```
60
+ YOUR_AGENT_core op:loop_history
61
+ ```
62
+
63
+ **Search insights — what people looked for but didn't find:**
64
+ ```
65
+ YOUR_AGENT_core op:admin_search_insights
66
+ ```
67
+
68
+ **Vault analytics — knowledge quality:**
69
+ ```
70
+ YOUR_AGENT_core op:admin_vault_analytics
71
+ ```
72
+
73
+ ### Step 2: Analyze Patterns
74
+
75
+ **Stale knowledge needing refresh:**
76
+ ```
77
+ YOUR_AGENT_core op:vault_age_report
78
+ ```
79
+
80
+ **Duplicates that crept in:**
81
+ ```
82
+ YOUR_AGENT_core op:curator_detect_duplicates
83
+ ```
84
+
85
+ **Contradictions in the knowledge base:**
86
+ ```
87
+ YOUR_AGENT_core op:curator_contradictions
88
+ ```
89
+
90
+ **Curator health audit — overall quality:**
91
+ ```
92
+ YOUR_AGENT_core op:curator_health_audit
93
+ ```
94
+
95
+ ### Step 3: Present the Retrospective
96
+
97
+ ```
98
+ ## Retrospective: [Period]
99
+
100
+ ### By the Numbers
101
+ | Metric | This Period | Previous | Trend |
102
+ |--------|-----------|----------|-------|
103
+ | Patterns captured | X | Y | ↑/↓ |
104
+ | Anti-patterns logged | X | Y | ↑/↓ |
105
+ | Plans completed | X | Y | ↑/↓ |
106
+ | Brain strength (avg) | X | Y | ↑/↓ |
107
+ | Vault entries total | X | — | — |
108
+ | Search misses | X | Y | ↑/↓ |
109
+
110
+ ### What Went Well
111
+ [Patterns with high brain strength, completed plans, growing domains]
112
+
113
+ ### What Didn't Go Well
114
+ [Recurring anti-patterns, failed plans, search misses = knowledge gaps]
115
+
116
+ ### Strongest Patterns
117
+ [Top 5 patterns by brain strength — these are your superpowers]
118
+
119
+ ### Recurring Anti-Patterns
120
+ [Top 3 anti-patterns that keep appearing — these need systemic fixes]
121
+
122
+ ### Knowledge Gaps
123
+ [Domains with low coverage, frequent search misses, stale entries]
124
+
125
+ ### Vault Health
126
+ - Quality score: X/100
127
+ - Duplicates found: N
128
+ - Contradictions found: N
129
+ - Stale entries (>30 days): N
130
+
131
+ ### Recommendations
132
+ 1. [Action item based on data]
133
+ 2. [Action item based on data]
134
+ 3. [Action item based on data]
135
+ ```
136
+
137
+ ### Step 4: Capture the Retrospective
138
+
139
+ Save the retrospective itself as knowledge:
140
+
141
+ ```
142
+ YOUR_AGENT_core op:capture_knowledge
143
+ params: {
144
+ title: "Retrospective — [period]",
145
+ description: "<key findings and action items>",
146
+ type: "workflow",
147
+ category: "meta",
148
+ tags: ["retrospective", "<period>"]
149
+ }
150
+ ```
151
+
152
+ ### Step 5: Clean Up (Optional)
153
+
154
+ If the retrospective revealed quality issues, offer to fix them:
155
+
156
+ **Consolidate vault (deduplicate, normalize, groom):**
157
+ ```
158
+ YOUR_AGENT_core op:curator_consolidate
159
+ ```
160
+
161
+ **Rebuild brain intelligence with fresh data:**
162
+ ```
163
+ YOUR_AGENT_core op:brain_build_intelligence
164
+ ```
165
+
166
+ ## The Magic
167
+
168
+ 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.
169
+
170
+ ## Agent Tools Reference
171
+
172
+ | Op | When to Use |
173
+ |----|-------------|
174
+ | `brain_stats` | Big picture metrics |
175
+ | `brain_strengths` | Proven patterns |
176
+ | `vault_recent` | What was captured recently |
177
+ | `memory_topics` | Knowledge clusters |
178
+ | `memory_stats` | Memory volume and health |
179
+ | `plan_stats` | Plan completion rates |
180
+ | `loop_history` | Iterative workflow outcomes |
181
+ | `admin_search_insights` | Search miss analysis |
182
+ | `admin_vault_analytics` | Knowledge quality metrics |
183
+ | `vault_age_report` | Stale entries |
184
+ | `curator_detect_duplicates` | Duplicate detection |
185
+ | `curator_contradictions` | Knowledge conflicts |
186
+ | `curator_health_audit` | Overall vault quality |
187
+ | `capture_knowledge` | Persist the retrospective |
188
+ | `curator_consolidate` | Post-retro cleanup |
189
+ | `brain_build_intelligence` | Rebuild intelligence |
@@ -0,0 +1,142 @@
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
+ YOUR_AGENT_core op:search_intelligent
34
+ params: { query: "<the decision or options being considered>" }
35
+ ```
36
+
37
+ Look specifically for:
38
+ - Previous decisions on this topic (type: "decision")
39
+ - Patterns that favor one approach
40
+ - Anti-patterns that warn against an approach
41
+
42
+ **Brain — what's proven to work?**
43
+ ```
44
+ YOUR_AGENT_core op:brain_strengths
45
+ ```
46
+
47
+ ```
48
+ YOUR_AGENT_core op:brain_recommend
49
+ params: { projectName: "<current project>" }
50
+ ```
51
+
52
+ **Cross-project — what did other projects choose?**
53
+ ```
54
+ YOUR_AGENT_core op:memory_cross_project_search
55
+ params: { query: "<the decision topic>", crossProject: true }
56
+ ```
57
+
58
+ **Memory — any relevant context from past sessions?**
59
+ ```
60
+ YOUR_AGENT_core op:memory_search
61
+ params: { query: "<decision topic>" }
62
+ ```
63
+
64
+ **Web — what does the broader community say?**
65
+ Search the web for:
66
+ - Comparison articles (X vs Y for [use case])
67
+ - Benchmarks and performance data
68
+ - Community consensus on best practices
69
+ - Known limitations and gotchas
70
+
71
+ ### Step 3: Synthesize and Present
72
+
73
+ Format the recommendation as a decision brief:
74
+
75
+ ```
76
+ ## Decision: [Question]
77
+
78
+ ### What the Vault Says
79
+ [Existing decisions, patterns, and anti-patterns from vault]
80
+
81
+ ### What the Brain Recommends
82
+ [Proven patterns, cross-project insights]
83
+
84
+ ### What the Web Says
85
+ [Community consensus, benchmarks, comparison data]
86
+
87
+ ### Options Analysis
88
+
89
+ | Criteria | Option A | Option B | Option C |
90
+ |----------|----------|----------|----------|
91
+ | [criteria 1] | ... | ... | ... |
92
+ | [criteria 2] | ... | ... | ... |
93
+ | Vault support | [existing patterns?] | [existing patterns?] | — |
94
+ | Brain confidence | [strength score] | [strength score] | — |
95
+
96
+ ### Recommendation
97
+ [Clear recommendation with reasoning]
98
+
99
+ ### Risks
100
+ [What could go wrong with the recommended approach]
101
+ ```
102
+
103
+ ### Step 4: Capture the Decision
104
+
105
+ Once the user decides, capture it to the vault for future reference:
106
+
107
+ ```
108
+ YOUR_AGENT_core op:capture_knowledge
109
+ params: {
110
+ title: "<decision title>",
111
+ description: "<chosen option, rationale, rejected alternatives and why>",
112
+ type: "decision",
113
+ category: "<relevant domain>",
114
+ tags: ["<option-a>", "<option-b>", "decision", "<domain>"]
115
+ }
116
+ ```
117
+
118
+ This is critical — the next person who faces the same decision will find it in the vault.
119
+
120
+ ## The Magic
121
+
122
+ This feels like magic because the user asks "should I use X?" and instead of a generic AI opinion, they get:
123
+ 1. What their own project decided before (vault)
124
+ 2. What's proven to work across projects (brain)
125
+ 3. What other linked projects chose (cross-project)
126
+ 4. What the broader community recommends (web)
127
+ 5. A synthesized recommendation with trade-offs
128
+ 6. The decision captured for the next person who asks
129
+
130
+ It's like having a senior architect who remembers every decision ever made.
131
+
132
+ ## Agent Tools Reference
133
+
134
+ | Op | When to Use |
135
+ |----|-------------|
136
+ | `route_intent` | Classify the decision type |
137
+ | `search_intelligent` | Find previous decisions and patterns |
138
+ | `brain_strengths` | Proven approaches |
139
+ | `brain_recommend` | Project-specific recommendations |
140
+ | `memory_cross_project_search` | What other projects decided |
141
+ | `memory_search` | Session context for this decision |
142
+ | `capture_knowledge` | Persist the final decision |
@@ -0,0 +1,214 @@
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 |