@soleri/forge 9.11.0 → 9.13.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/compose-claude-md.js +30 -19
- package/dist/compose-claude-md.js.map +1 -1
- package/dist/scaffold-filetree.js +116 -49
- package/dist/scaffold-filetree.js.map +1 -1
- package/dist/skills/{agent-dev → soleri-agent-dev}/SKILL.md +4 -7
- package/dist/skills/{agent-guide → soleri-agent-guide}/SKILL.md +7 -6
- package/{src/skills/agent-issues → dist/skills/soleri-agent-issues}/SKILL.md +33 -6
- package/{src/skills/agent-persona → dist/skills/soleri-agent-persona}/SKILL.md +4 -5
- package/{src/skills/brain-debrief → dist/skills/soleri-brain-debrief}/SKILL.md +5 -5
- package/dist/skills/{brainstorming → soleri-brainstorming}/SKILL.md +4 -5
- package/dist/skills/soleri-build-skill/SKILL.md +210 -0
- package/dist/skills/{code-patrol → soleri-code-patrol}/SKILL.md +6 -2
- package/{src/skills/context-resume → dist/skills/soleri-context-resume}/SKILL.md +4 -4
- package/{src/skills/deep-review → dist/skills/soleri-deep-review}/SKILL.md +5 -5
- package/dist/skills/{deliver-and-ship → soleri-deliver-and-ship}/SKILL.md +5 -5
- package/{src/skills/discovery-phase → dist/skills/soleri-discovery-phase}/SKILL.md +18 -17
- package/dist/skills/soleri-dream/SKILL.md +104 -0
- package/dist/skills/{env-setup → soleri-env-setup}/SKILL.md +31 -7
- package/dist/skills/{executing-plans → soleri-executing-plans}/SKILL.md +4 -5
- package/{src/skills/finishing-a-development-branch → dist/skills/soleri-finishing-a-development-branch}/SKILL.md +35 -4
- package/dist/skills/{fix-and-learn → soleri-fix-and-learn}/SKILL.md +4 -5
- package/{src/skills/health-check → dist/skills/soleri-health-check}/SKILL.md +5 -5
- package/{src/skills/knowledge-harvest → dist/skills/soleri-knowledge-harvest}/SKILL.md +5 -5
- package/dist/skills/{mcp-doctor → soleri-mcp-doctor}/SKILL.md +4 -4
- package/{src/skills/onboard-me → dist/skills/soleri-onboard-me}/SKILL.md +14 -4
- package/{src/skills/parallel-execute → dist/skills/soleri-parallel-execute}/SKILL.md +12 -7
- package/dist/skills/soleri-research-scout/SKILL.md +225 -0
- package/dist/skills/{retrospective → soleri-retrospective}/SKILL.md +5 -4
- package/{src/skills/second-opinion → dist/skills/soleri-second-opinion}/SKILL.md +5 -2
- package/dist/skills/{subagent-driven-development → soleri-subagent-driven-development}/SKILL.md +36 -15
- package/{src/skills/systematic-debugging → dist/skills/soleri-systematic-debugging}/SKILL.md +5 -5
- package/{src/skills/test-driven-development → dist/skills/soleri-test-driven-development}/SKILL.md +12 -2
- package/dist/skills/{using-git-worktrees → soleri-using-git-worktrees}/SKILL.md +25 -4
- package/dist/skills/soleri-vault-capture/SKILL.md +205 -0
- package/{src/skills/vault-curate → dist/skills/soleri-vault-curate}/SKILL.md +13 -6
- package/{src/skills/vault-navigator → dist/skills/soleri-vault-navigator}/SKILL.md +14 -5
- package/dist/skills/{vault-smells → soleri-vault-smells}/SKILL.md +7 -8
- package/{src/skills/verification-before-completion → dist/skills/soleri-verification-before-completion}/SKILL.md +15 -4
- package/{src/skills/writing-plans → dist/skills/soleri-writing-plans}/SKILL.md +10 -4
- package/dist/skills/{yolo-mode → soleri-yolo-mode}/SKILL.md +4 -4
- package/dist/templates/clean-worktrees.js +20 -0
- package/dist/templates/clean-worktrees.js.map +1 -1
- package/dist/templates/package-json.js +1 -1
- package/dist/templates/readme.js +19 -19
- package/dist/templates/readme.js.map +1 -1
- package/dist/templates/setup-script.js +24 -4
- package/dist/templates/setup-script.js.map +1 -1
- package/dist/templates/shared-rules.js +53 -5
- package/dist/templates/shared-rules.js.map +1 -1
- package/dist/templates/skills.d.ts +15 -0
- package/dist/templates/skills.js +63 -0
- package/dist/templates/skills.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/extensions-scaffold.test.ts +1 -1
- package/src/__tests__/scaffold-filetree.test.ts +24 -20
- package/src/__tests__/scaffolder.test.ts +6 -6
- package/src/compose-claude-md.ts +30 -19
- package/src/scaffold-filetree.ts +134 -49
- package/src/skills/{agent-dev → soleri-agent-dev}/SKILL.md +4 -7
- package/src/skills/{agent-guide → soleri-agent-guide}/SKILL.md +7 -6
- package/{dist/skills/agent-issues → src/skills/soleri-agent-issues}/SKILL.md +33 -6
- package/{dist/skills/agent-persona → src/skills/soleri-agent-persona}/SKILL.md +4 -5
- package/{dist/skills/brain-debrief → src/skills/soleri-brain-debrief}/SKILL.md +5 -5
- package/src/skills/{brainstorming → soleri-brainstorming}/SKILL.md +4 -5
- package/src/skills/soleri-build-skill/SKILL.md +210 -0
- package/src/skills/{code-patrol → soleri-code-patrol}/SKILL.md +6 -2
- package/{dist/skills/context-resume → src/skills/soleri-context-resume}/SKILL.md +4 -4
- package/{dist/skills/deep-review → src/skills/soleri-deep-review}/SKILL.md +5 -5
- package/src/skills/{deliver-and-ship → soleri-deliver-and-ship}/SKILL.md +5 -5
- package/{dist/skills/discovery-phase → src/skills/soleri-discovery-phase}/SKILL.md +18 -17
- package/src/skills/soleri-dream/SKILL.md +104 -0
- package/src/skills/{env-setup → soleri-env-setup}/SKILL.md +31 -7
- package/src/skills/{executing-plans → soleri-executing-plans}/SKILL.md +4 -5
- package/{dist/skills/finishing-a-development-branch → src/skills/soleri-finishing-a-development-branch}/SKILL.md +35 -4
- package/src/skills/{fix-and-learn → soleri-fix-and-learn}/SKILL.md +4 -5
- package/{dist/skills/health-check → src/skills/soleri-health-check}/SKILL.md +5 -5
- package/{dist/skills/knowledge-harvest → src/skills/soleri-knowledge-harvest}/SKILL.md +5 -5
- package/src/skills/{mcp-doctor → soleri-mcp-doctor}/SKILL.md +4 -4
- package/{dist/skills/onboard-me → src/skills/soleri-onboard-me}/SKILL.md +14 -4
- package/{dist/skills/parallel-execute → src/skills/soleri-parallel-execute}/SKILL.md +12 -7
- package/src/skills/soleri-research-scout/SKILL.md +225 -0
- package/src/skills/{retrospective → soleri-retrospective}/SKILL.md +5 -4
- package/{dist/skills/second-opinion → src/skills/soleri-second-opinion}/SKILL.md +5 -2
- package/src/skills/{subagent-driven-development → soleri-subagent-driven-development}/SKILL.md +36 -15
- package/{dist/skills/systematic-debugging → src/skills/soleri-systematic-debugging}/SKILL.md +5 -5
- package/{dist/skills/test-driven-development → src/skills/soleri-test-driven-development}/SKILL.md +12 -2
- package/src/skills/{using-git-worktrees → soleri-using-git-worktrees}/SKILL.md +25 -4
- package/src/skills/soleri-vault-capture/SKILL.md +205 -0
- package/{dist/skills/vault-curate → src/skills/soleri-vault-curate}/SKILL.md +13 -6
- package/{dist/skills/vault-navigator → src/skills/soleri-vault-navigator}/SKILL.md +14 -5
- package/src/skills/{vault-smells → soleri-vault-smells}/SKILL.md +7 -8
- package/{dist/skills/verification-before-completion → src/skills/soleri-verification-before-completion}/SKILL.md +15 -4
- package/{dist/skills/writing-plans → src/skills/soleri-writing-plans}/SKILL.md +10 -4
- package/src/skills/{yolo-mode → soleri-yolo-mode}/SKILL.md +4 -4
- package/src/templates/clean-worktrees.ts +20 -0
- package/src/templates/package-json.ts +1 -1
- package/src/templates/readme.ts +19 -19
- package/src/templates/setup-script.ts +24 -4
- package/src/templates/shared-rules.ts +54 -5
- package/src/templates/skills.ts +82 -0
- package/dist/skills/vault-capture/SKILL.md +0 -86
- package/src/skills/vault-capture/SKILL.md +0 -86
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: soleri-build-skill
|
|
3
|
+
description: >
|
|
4
|
+
Use when creating a new skill, updating an existing skill, or scaffolding a skill
|
|
5
|
+
template for a Soleri agent. Triggers on "create a skill", "new skill", "build skill",
|
|
6
|
+
"add a skill", "write a skill", "skill template", "scaffold skill".
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Build Skill — Create Skills for Soleri Agents
|
|
10
|
+
|
|
11
|
+
Create well-structured skills that follow Soleri conventions. Skills are SKILL.md files in the forge that get synced to agents as slash commands.
|
|
12
|
+
|
|
13
|
+
## Skill Anatomy
|
|
14
|
+
|
|
15
|
+
Skills live in two places:
|
|
16
|
+
|
|
17
|
+
| Location | Purpose |
|
|
18
|
+
| -------------------------------------------------- | -------------------------- |
|
|
19
|
+
| `packages/forge/src/skills/soleri-{name}/SKILL.md` | Source — ships with Soleri |
|
|
20
|
+
| `~/.claude/skills/{agent}-soleri-{name}/SKILL.md` | Runtime — synced per agent |
|
|
21
|
+
|
|
22
|
+
### File Structure
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
---
|
|
26
|
+
name: soleri-{skill-name}
|
|
27
|
+
description: >
|
|
28
|
+
Use when the user says "trigger1", "trigger2", "trigger3",
|
|
29
|
+
or wants to [brief purpose]. [One sentence about what the skill does].
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# Skill Title — Short Purpose
|
|
33
|
+
|
|
34
|
+
[Core workflow instructions with numbered steps]
|
|
35
|
+
|
|
36
|
+
## Agent Tools Reference
|
|
37
|
+
|
|
38
|
+
| Op | When to Use |
|
|
39
|
+
|----|-------------|
|
|
40
|
+
| `search_intelligent` | Check vault before starting |
|
|
41
|
+
| `capture_knowledge` | Persist patterns worth remembering |
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Creation Process
|
|
45
|
+
|
|
46
|
+
### Step 1: Search Vault for Prior Art
|
|
47
|
+
|
|
48
|
+
Before creating anything, check if a similar skill or pattern exists:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
YOUR_AGENT_core op:search_intelligent
|
|
52
|
+
params: { query: "<skill topic>" }
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
List existing skills to avoid duplication:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
ls packages/forge/src/skills/
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Step 2: Check Trigger Keywords
|
|
62
|
+
|
|
63
|
+
Every skill needs 4-8 unique trigger phrases in the `description:` field. Before choosing triggers, check ALL existing skills to avoid overlap:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
grep -h "description:" packages/forge/src/skills/soleri-*/SKILL.md
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Rules:
|
|
70
|
+
|
|
71
|
+
- No trigger phrase may appear in more than one skill
|
|
72
|
+
- Use quoted phrases: `"exact trigger words"`
|
|
73
|
+
- Cover the full intent range — think about how users naturally ask for this
|
|
74
|
+
- Avoid generic words that overlap with other skills (e.g., "review" is used by deep-review)
|
|
75
|
+
|
|
76
|
+
### Step 3: Design the Workflow
|
|
77
|
+
|
|
78
|
+
Identify 3-5 concrete scenarios. Ask the user if unclear:
|
|
79
|
+
|
|
80
|
+
- "What exact phrases should trigger this skill?"
|
|
81
|
+
- "Walk me through one example end-to-end"
|
|
82
|
+
- "What should this skill NOT do?"
|
|
83
|
+
|
|
84
|
+
### Step 4: Wire In Engine Ops
|
|
85
|
+
|
|
86
|
+
Every Soleri skill should use the engine where applicable. Use the `YOUR_AGENT_core` placeholder — it gets replaced with the agent's actual facade name at sync time.
|
|
87
|
+
|
|
88
|
+
Common integration points:
|
|
89
|
+
|
|
90
|
+
| When | Op | Why |
|
|
91
|
+
| -------------------- | ----------------------------- | --------------------------------- |
|
|
92
|
+
| Before starting work | `search_intelligent` | Check vault for prior art |
|
|
93
|
+
| Before starting work | `memory_search` | Check session history |
|
|
94
|
+
| During execution | `brain_recommend` | Get brain recommendations |
|
|
95
|
+
| After completion | `capture_knowledge` | Persist patterns learned |
|
|
96
|
+
| After completion | `capture_quick` | Fast capture for simple learnings |
|
|
97
|
+
| Quality checks | `admin_health` | Verify system health |
|
|
98
|
+
| Iteration tracking | `loop_start` / `loop_iterate` | Track multi-step work |
|
|
99
|
+
|
|
100
|
+
### Available Facades
|
|
101
|
+
|
|
102
|
+
All ops use the `YOUR_AGENT_core` placeholder:
|
|
103
|
+
|
|
104
|
+
| Domain | Key Ops |
|
|
105
|
+
| ---------------------- | --------------------------------------------------------------------------------------------------- |
|
|
106
|
+
| Vault search & capture | `search_intelligent`, `search`, `capture_knowledge`, `capture_quick`, `vault_tags`, `vault_domains` |
|
|
107
|
+
| Admin & health | `admin_health`, `admin_diagnostic`, `admin_tool_list`, `admin_vault_analytics` |
|
|
108
|
+
| Curator & quality | `curator_health_audit`, `curator_detect_duplicates`, `curator_contradictions`, `curator_groom_all` |
|
|
109
|
+
| Brain & learning | `brain_stats`, `brain_strengths`, `brain_recommend`, `brain_build_intelligence` |
|
|
110
|
+
| Memory & sessions | `memory_search`, `memory_stats`, `session_capture`, `memory_cross_project_search` |
|
|
111
|
+
| Planning | `create_plan`, `approve_plan`, `plan_split`, `plan_reconcile`, `plan_complete_lifecycle` |
|
|
112
|
+
| Loops & validation | `loop_start`, `loop_iterate`, `loop_complete`, `loop_status` |
|
|
113
|
+
|
|
114
|
+
### Step 5: Write the Skill
|
|
115
|
+
|
|
116
|
+
Follow these rules:
|
|
117
|
+
|
|
118
|
+
**Naming:**
|
|
119
|
+
|
|
120
|
+
- Folder: `packages/forge/src/skills/soleri-{name}/SKILL.md`
|
|
121
|
+
- `name:` field must be `soleri-{name}` — matching the folder
|
|
122
|
+
- All Soleri skills use the `soleri-` prefix
|
|
123
|
+
|
|
124
|
+
**Frontmatter:**
|
|
125
|
+
|
|
126
|
+
- `description:` must include specific trigger phrases in quotes
|
|
127
|
+
- Use `>` for multi-line YAML folded scalar descriptions
|
|
128
|
+
|
|
129
|
+
**Body (target 1,500-2,000 words):**
|
|
130
|
+
|
|
131
|
+
- Imperative form ("Search the vault", not "You should search")
|
|
132
|
+
- Numbered steps with concrete op examples including params
|
|
133
|
+
- Agent Tools Reference table at the end
|
|
134
|
+
- Common Mistakes section if applicable
|
|
135
|
+
|
|
136
|
+
**Op References:**
|
|
137
|
+
|
|
138
|
+
- Always use `YOUR_AGENT_core op:xxx` — never hardcode agent names
|
|
139
|
+
- Include example params where helpful
|
|
140
|
+
- Only reference ops that actually exist (verify with `admin_tool_list`)
|
|
141
|
+
|
|
142
|
+
### Step 6: Validate
|
|
143
|
+
|
|
144
|
+
Checklist before committing:
|
|
145
|
+
|
|
146
|
+
- [ ] Folder is `soleri-{name}/SKILL.md` in `packages/forge/src/skills/`
|
|
147
|
+
- [ ] `name:` matches folder name
|
|
148
|
+
- [ ] `description:` has 4-8 specific trigger phrases in quotes
|
|
149
|
+
- [ ] No trigger overlap with existing skills
|
|
150
|
+
- [ ] All ops use `YOUR_AGENT_core` placeholder
|
|
151
|
+
- [ ] No hardcoded agent names (`ernesto_core`, `salvador_core`, etc.)
|
|
152
|
+
- [ ] Imperative writing style throughout
|
|
153
|
+
- [ ] Agent Tools Reference table at the end
|
|
154
|
+
- [ ] Under 3,000 words (ideally 1,500-2,000)
|
|
155
|
+
- [ ] TypeScript compiles: `npx tsc --noEmit` in packages/forge
|
|
156
|
+
|
|
157
|
+
### Step 7: Copy to Reference Agent
|
|
158
|
+
|
|
159
|
+
If the skill should appear in the reference agent:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
cp -r packages/forge/src/skills/soleri-{name} examples/reference-agent/skills/
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Step 8: Register in Scaffold Pipeline
|
|
166
|
+
|
|
167
|
+
Add the skill to `SKILLS_REGISTRY` in `packages/forge/src/scaffold-filetree.ts` and `SKILL_CATEGORIES` in `packages/forge/src/compose-claude-md.ts` so it gets included in new scaffolds.
|
|
168
|
+
|
|
169
|
+
### Step 9: Capture the Decision
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
173
|
+
params: {
|
|
174
|
+
title: "New skill: soleri-{name} — {purpose}",
|
|
175
|
+
description: "Created skill for {what it does}. Triggers: {triggers}.",
|
|
176
|
+
type: "workflow",
|
|
177
|
+
domain: "tooling",
|
|
178
|
+
tags: ["skill", "workflow", "{domain}"]
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## Updating Existing Skills
|
|
183
|
+
|
|
184
|
+
1. Read the current file first
|
|
185
|
+
2. Search vault for related patterns or feedback
|
|
186
|
+
3. Make targeted changes — don't rewrite the whole skill
|
|
187
|
+
4. Verify all ops still use `YOUR_AGENT_core` placeholder
|
|
188
|
+
5. Update `description:` if triggers changed
|
|
189
|
+
6. Check for trigger overlap after changes
|
|
190
|
+
7. Update reference agent copy if it exists
|
|
191
|
+
|
|
192
|
+
## Common Mistakes
|
|
193
|
+
|
|
194
|
+
- **Vague descriptions** — "Use for project management" vs "Use when creating GitHub issues or tracking milestones"
|
|
195
|
+
- **Trigger overlap** — Using "review" when `soleri-deep-review` already owns it
|
|
196
|
+
- **Hardcoded agent names** — `ernesto_core` instead of `YOUR_AGENT_core`
|
|
197
|
+
- **Missing engine wiring** — A skill that never checks the vault is a missed opportunity
|
|
198
|
+
- **Second person** — "You should search" instead of "Search the vault"
|
|
199
|
+
- **Too long** — Over 3,000 words bloats context. Extract details into separate files if needed
|
|
200
|
+
- **No prefix** — Forgetting the `soleri-` prefix on the folder and name
|
|
201
|
+
|
|
202
|
+
## Agent Tools Reference
|
|
203
|
+
|
|
204
|
+
| Op | When to Use |
|
|
205
|
+
| -------------------- | -------------------------------------- |
|
|
206
|
+
| `search_intelligent` | Check for existing skills and patterns |
|
|
207
|
+
| `capture_knowledge` | Capture skill creation decision |
|
|
208
|
+
| `admin_tool_list` | Verify available ops |
|
|
209
|
+
| `vault_domains` | Check domain categories |
|
|
210
|
+
| `memory_search` | Find related past work |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: code-patrol
|
|
3
|
-
description:
|
|
2
|
+
name: soleri-code-patrol
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user says "check against patterns", "pattern compliance",
|
|
5
|
+
"convention check", "review against vault", or "institutional review".
|
|
6
|
+
Reviews code against the project's own captured patterns and conventions.
|
|
7
|
+
For general code quality review (smells, architecture), use deep-review instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Code Patrol — Review Code Against Your Own Knowledge
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: context-resume
|
|
2
|
+
name: soleri-context-resume
|
|
3
3
|
description: >
|
|
4
|
-
Use when the user says "where did I leave off", "what was I working on",
|
|
5
|
-
"resume", "continue where we stopped"
|
|
6
|
-
working context from memory, plans, and sessions.
|
|
4
|
+
Use when the user says "where did I leave off", "what was I working on",
|
|
5
|
+
"catch me up", "resume session", or "continue where we stopped".
|
|
6
|
+
Reconstructs working context from memory, plans, and sessions.
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Context Resume — Pick Up Where You Left Off
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: deep-review
|
|
2
|
+
name: soleri-deep-review
|
|
3
3
|
description: >
|
|
4
|
-
Use
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Use when the user says "deep review", "code smells", "architecture review",
|
|
5
|
+
"is this well architected", or "optimization review". Multi-pass code review
|
|
6
|
+
analyzing structural health, smells, and solution quality. For reviewing
|
|
7
|
+
against the project's own vault patterns and conventions, use code-patrol instead.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Deep Review — Architecture, Smells & Solution Quality
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: deliver-and-ship
|
|
2
|
+
name: soleri-deliver-and-ship
|
|
3
3
|
description: >
|
|
4
|
-
Use when the user says "ship it", "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Use when the user says "ship it", "pre-PR check", "delivery checklist", "is this ready",
|
|
5
|
+
"final review", or "ready to deploy". Runs pre-delivery quality gates
|
|
6
|
+
to ensure nothing ships without passing stability and code quality checks.
|
|
7
|
+
For mid-workflow verification (not shipping), use verification-before-completion instead.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Deliver & Ship — Quality Gate Runner
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: discovery-phase
|
|
2
|
+
name: soleri-discovery-phase
|
|
3
3
|
description: >
|
|
4
|
-
Use
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
a discovery document with options, tradeoffs, and a recommendation.
|
|
4
|
+
Use when the user says "I don't know where to start", "investigate",
|
|
5
|
+
"research this", "explore the problem", or "discovery". Structured exploration
|
|
6
|
+
before committing to a plan, producing options with tradeoffs.
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
# Discovery Phase
|
|
@@ -19,12 +18,13 @@ Do NOT create a plan, write code, or take any implementation action until the di
|
|
|
19
18
|
|
|
20
19
|
1. **Define the question** — restate what we're exploring as one specific, answerable sentence
|
|
21
20
|
2. **Search vault for prior art** — `YOUR_AGENT_core op:search_intelligent params: { query: "<question>", mode: "scan" }`. Also `op:memory_search` with `crossProject: true`.
|
|
22
|
-
3. **
|
|
23
|
-
4. **
|
|
24
|
-
5. **
|
|
25
|
-
6. **
|
|
26
|
-
7. **
|
|
27
|
-
8. **
|
|
21
|
+
3. **Get brain recommendations** — `YOUR_AGENT_core op:brain_recommend params: { query: "<discovery topic>" }`. Get brain recommendations for similar past explorations.
|
|
22
|
+
4. **Explore codebase** — read relevant files, configs, architecture, recent commits
|
|
23
|
+
5. **Identify constraints** — hard (must-haves) vs soft (nice-to-haves), unknowns that block a decision
|
|
24
|
+
6. **Draft 2-4 options** — each with pros, cons, risk, and effort (S/M/L)
|
|
25
|
+
7. **Recommend** — pick one, state the primary reason, note what would change the answer
|
|
26
|
+
8. **Capture to vault** — persist the discovery finding
|
|
27
|
+
9. **Transition** — hand off to brainstorming or writing-plans skill
|
|
28
28
|
|
|
29
29
|
## Option Format
|
|
30
30
|
|
|
@@ -61,9 +61,10 @@ Save to `docs/discoveries/YYYY-MM-DD-<topic>.md` and commit. Then transition to
|
|
|
61
61
|
|
|
62
62
|
## Quick Reference
|
|
63
63
|
|
|
64
|
-
| Op | When to Use
|
|
65
|
-
| -------------------- |
|
|
66
|
-
| `search_intelligent` | Search vault for prior art
|
|
67
|
-
| `memory_search` | Check session history and projects
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
64
|
+
| Op | When to Use |
|
|
65
|
+
| -------------------- | --------------------------------------------------- |
|
|
66
|
+
| `search_intelligent` | Search vault for prior art |
|
|
67
|
+
| `memory_search` | Check session history and projects |
|
|
68
|
+
| `brain_recommend` | Brain recommendations for similar past explorations |
|
|
69
|
+
| `capture_knowledge` | Persist discovery finding |
|
|
70
|
+
| `route_intent` | Classify what comes after |
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: soleri-dream
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user says "dream", "consolidate memory", "clean up memory",
|
|
5
|
+
"memory cleanup", or "dream status". Runs automatic memory consolidation
|
|
6
|
+
— dedup, archive stale entries, resolve contradictions.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /dream — Automatic Memory Consolidation
|
|
10
|
+
|
|
11
|
+
Runs a full "dream" pass over the vault: dedup, archive stale entries, resolve
|
|
12
|
+
contradictions, and produce a summary report. Inspired by how REM sleep
|
|
13
|
+
consolidates biological memory.
|
|
14
|
+
|
|
15
|
+
**Announce at start:** "Running a dream pass — consolidating vault memory."
|
|
16
|
+
|
|
17
|
+
## Quick Commands
|
|
18
|
+
|
|
19
|
+
| Command | What it does |
|
|
20
|
+
| --------------- | --------------------------------------------------------- |
|
|
21
|
+
| `/dream` | Run a full dream pass (forces, bypasses gate) |
|
|
22
|
+
| `/dream status` | Show dream state: last dream, sessions since, eligibility |
|
|
23
|
+
|
|
24
|
+
## Orchestration
|
|
25
|
+
|
|
26
|
+
### Step 1: Check Dream Status
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
YOUR_AGENT_dream op:dream_status
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Report current state to user as a table:
|
|
33
|
+
|
|
34
|
+
| Field | Value |
|
|
35
|
+
| ----------------------------- | ------------------------ |
|
|
36
|
+
| **Sessions since last dream** | {sessionsSinceLastDream} |
|
|
37
|
+
| **Last dream** | {lastDreamAt or "Never"} |
|
|
38
|
+
| **Total dreams** | {totalDreams} |
|
|
39
|
+
| **Gate eligible** | {gateEligible} |
|
|
40
|
+
|
|
41
|
+
### Step 2: Run Dream
|
|
42
|
+
|
|
43
|
+
If user explicitly asked to dream (manual `/dream`), force it:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
YOUR_AGENT_dream op:dream_run
|
|
47
|
+
params: { force: true }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
If auto-triggered (session start), respect the gate:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
YOUR_AGENT_dream op:dream_run
|
|
54
|
+
params: { force: false }
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
If the response contains `skipped: true`, inform the user:
|
|
58
|
+
"Dream skipped — {reason}. Use `/dream` to force a run."
|
|
59
|
+
|
|
60
|
+
### Step 3: Present Dream Report
|
|
61
|
+
|
|
62
|
+
Format the dream report as a table:
|
|
63
|
+
|
|
64
|
+
| Metric | Value |
|
|
65
|
+
| -------------------------- | --------------------- |
|
|
66
|
+
| **Duration** | {durationMs}ms |
|
|
67
|
+
| **Duplicates found** | {duplicatesFound} |
|
|
68
|
+
| **Stale entries archived** | {staleArchived} |
|
|
69
|
+
| **Contradictions found** | {contradictionsFound} |
|
|
70
|
+
| **Total dreams** | {totalDreams} |
|
|
71
|
+
| **Timestamp** | {timestamp} |
|
|
72
|
+
|
|
73
|
+
### Step 4: Rebuild Brain Intelligence
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
YOUR_AGENT_core op:brain_build_intelligence
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Rebuild brain intelligence with the freshly consolidated vault data.
|
|
80
|
+
|
|
81
|
+
### Step 5: Capture to Memory
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
YOUR_AGENT_memory op:session_capture
|
|
85
|
+
params: {
|
|
86
|
+
summary: "Dream pass completed: {duplicatesFound} duplicates, {staleArchived} stale archived, {contradictionsFound} contradictions found"
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Gate Logic
|
|
91
|
+
|
|
92
|
+
Auto-dream triggers automatically on session start when BOTH conditions are met:
|
|
93
|
+
|
|
94
|
+
- **5+ sessions** since last dream
|
|
95
|
+
- **24+ hours** since last dream
|
|
96
|
+
|
|
97
|
+
Manual `/dream` always runs immediately (force=true).
|
|
98
|
+
|
|
99
|
+
## Background
|
|
100
|
+
|
|
101
|
+
Inspired by Claude Code's AutoDream feature and the neuroscience of REM sleep.
|
|
102
|
+
During sleep, the brain consolidates short-term memories into long-term storage,
|
|
103
|
+
prunes irrelevant connections, and resolves conflicts. The /dream skill does
|
|
104
|
+
the same for the vault.
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: env-setup
|
|
2
|
+
name: soleri-env-setup
|
|
3
3
|
description: >
|
|
4
|
-
Use when
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
module errors, gyp ERR or native module build failures, missing .env files or unknown required
|
|
8
|
-
environment variables, database setup, Docker compose issues, or connection refused during
|
|
9
|
-
local dev. Covers Node.js, Python, Rust, Go, Ruby, PHP, and Docker-based projects.
|
|
4
|
+
Use when the user says "setup environment", "post-clone setup", "broken build",
|
|
5
|
+
"missing dependencies", or "MODULE_NOT_FOUND". Detects what a project needs,
|
|
6
|
+
diagnoses what's missing, and produces an actionable setup checklist.
|
|
10
7
|
---
|
|
11
8
|
|
|
12
9
|
# Environment Setup
|
|
@@ -26,6 +23,16 @@ Scan the project root for configuration files, detect the tech stack and depende
|
|
|
26
23
|
- Docker/container environment not starting
|
|
27
24
|
- Missing `.env` file or environment variables
|
|
28
25
|
|
|
26
|
+
## Check Vault for Known Setup Patterns
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
YOUR_AGENT_core op:search_intelligent
|
|
30
|
+
params: { query: "<tech stack> setup gotchas" }
|
|
31
|
+
|
|
32
|
+
YOUR_AGENT_core op:memory_search
|
|
33
|
+
params: { query: "environment setup <project>" }
|
|
34
|
+
```
|
|
35
|
+
|
|
29
36
|
## Detection Phase
|
|
30
37
|
|
|
31
38
|
Scan the project root and identify:
|
|
@@ -149,3 +156,20 @@ If monorepo detected (turbo.json, nx.json, pnpm-workspace.yaml):
|
|
|
149
156
|
- **Missing runtime version** — subtle bugs from wrong Node/Python version.
|
|
150
157
|
- **Docker not running** — cryptic "connection refused" errors.
|
|
151
158
|
- **Stale dependencies** — after `git pull`, always re-install if lockfile changed.
|
|
159
|
+
|
|
160
|
+
## Capture Setup Learnings
|
|
161
|
+
|
|
162
|
+
If any non-obvious steps or workarounds were needed:
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
166
|
+
params: { title: "<gotcha>", description: "<what happened and the fix>", type: "anti-pattern", tags: ["env-setup", "<tech-stack>"] }
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Agent Tools Reference
|
|
170
|
+
|
|
171
|
+
| Op | When to Use |
|
|
172
|
+
| -------------------- | ---------------------------------- |
|
|
173
|
+
| `search_intelligent` | Check vault before starting |
|
|
174
|
+
| `memory_search` | Find similar past experiences |
|
|
175
|
+
| `capture_knowledge` | Persist patterns worth remembering |
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: executing-plans
|
|
2
|
+
name: soleri-executing-plans
|
|
3
3
|
description: >
|
|
4
|
-
Use when the user says "execute my plan", "run the plan", "start executing",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
parallel-execute instead.
|
|
4
|
+
Use when the user says "execute my plan", "run the plan", "start executing",
|
|
5
|
+
or "implement the plan". Executes tasks sequentially with review checkpoints.
|
|
6
|
+
For parallel execution, use parallel-execute instead.
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
# Executing Plans
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: finishing-a-development-branch
|
|
2
|
+
name: soleri-finishing-a-development-branch
|
|
3
3
|
description: >
|
|
4
|
-
Use when the user says "finish branch", "
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
Use when the user says "finish branch", "ready to merge", "PR ready",
|
|
5
|
+
"submit PR", or "close branch". Handles pre-merge checks, PR creation,
|
|
6
|
+
merge strategy, and branch cleanup.
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Finishing a Development Branch
|
|
@@ -12,6 +12,18 @@ Pre-merge checks, PR creation, merge strategy, and branch cleanup.
|
|
|
12
12
|
|
|
13
13
|
**Announce at start:** "I'm using the finishing-a-development-branch skill to prepare this branch for merge."
|
|
14
14
|
|
|
15
|
+
## Vault Context
|
|
16
|
+
|
|
17
|
+
Search for merge patterns and known conflict areas:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
YOUR_AGENT_core op:search_intelligent
|
|
21
|
+
params: { query: "merge patterns <branch domain>" }
|
|
22
|
+
|
|
23
|
+
YOUR_AGENT_core op:memory_search
|
|
24
|
+
params: { query: "merge conflicts" }
|
|
25
|
+
```
|
|
26
|
+
|
|
15
27
|
## Step 1: Pre-Merge Checklist
|
|
16
28
|
|
|
17
29
|
Run all checks before creating a PR. Stop on any failure.
|
|
@@ -57,6 +69,15 @@ If the base branch has diverged:
|
|
|
57
69
|
|
|
58
70
|
Never force-push a rebased branch that others are working on.
|
|
59
71
|
|
|
72
|
+
### Capture Merge Learnings
|
|
73
|
+
|
|
74
|
+
If tricky conflicts were resolved:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
78
|
+
params: { title: "<conflict pattern>", description: "<resolution strategy>", type: "pattern", tags: ["git", "merge", "conflict-resolution"] }
|
|
79
|
+
```
|
|
80
|
+
|
|
60
81
|
## Step 5: Branch Cleanup
|
|
61
82
|
|
|
62
83
|
After merge is confirmed:
|
|
@@ -65,6 +86,8 @@ After merge is confirmed:
|
|
|
65
86
|
2. `git branch -d <branch>` — delete local branch
|
|
66
87
|
3. If remote branch not auto-deleted: `git push origin --delete <branch>`
|
|
67
88
|
|
|
89
|
+
**This step is mandatory, not optional.** Stale branches accumulate fast.
|
|
90
|
+
|
|
68
91
|
## Anti-Patterns
|
|
69
92
|
|
|
70
93
|
- **Force-pushing to shared branches** — destroys others' history; only force-push personal branches
|
|
@@ -74,3 +97,11 @@ After merge is confirmed:
|
|
|
74
97
|
- **Leaving stale branches** — delete after merge; stale branches create confusion
|
|
75
98
|
|
|
76
99
|
**Related skills:** executing-plans, verification-before-completion
|
|
100
|
+
|
|
101
|
+
## Agent Tools Reference
|
|
102
|
+
|
|
103
|
+
| Op | When to Use |
|
|
104
|
+
| -------------------- | ---------------------------------- |
|
|
105
|
+
| `search_intelligent` | Check vault before starting |
|
|
106
|
+
| `memory_search` | Find similar past experiences |
|
|
107
|
+
| `capture_knowledge` | Persist patterns worth remembering |
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: fix-and-learn
|
|
2
|
+
name: soleri-fix-and-learn
|
|
3
3
|
description: >
|
|
4
|
-
Use
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
systematic-debugging first to find root cause.
|
|
4
|
+
Use when the user says "fix it", "apply the fix", "patch this and remember",
|
|
5
|
+
or "fix and capture". Executes a fix AFTER root cause is identified and
|
|
6
|
+
captures the learning in the vault. Use systematic-debugging first.
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
# Fix & Learn — Debug, Repair, Capture
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: health-check
|
|
2
|
+
name: soleri-health-check
|
|
3
3
|
description: >
|
|
4
|
-
Use when the user
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Use when the user says "system health", "agent health", "run diagnostics",
|
|
5
|
+
"system status", or "check health". Read-only health assessment of the
|
|
6
|
+
knowledge base — scoring, reporting, finding issues. For deep quality
|
|
7
|
+
analysis (contradictions, stale patterns, knowledge debt), use vault-smells instead.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Health Check — Knowledge Base Maintenance
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: knowledge-harvest
|
|
2
|
+
name: soleri-knowledge-harvest
|
|
3
3
|
description: >
|
|
4
|
-
Use
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
use vault-capture instead.
|
|
4
|
+
Use when the user says "learn from this", "harvest knowledge", "ingest this",
|
|
5
|
+
or "extract patterns from". Extracts multiple patterns from a source like
|
|
6
|
+
code, docs, PRs, or articles into the vault. For saving a single known
|
|
7
|
+
pattern, use vault-capture instead.
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Knowledge Harvest — Extract Patterns From Anything
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: mcp-doctor
|
|
2
|
+
name: soleri-mcp-doctor
|
|
3
3
|
description: >
|
|
4
|
-
Use when
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
Use when the user says "MCP not working", "tools missing", "fix MCP",
|
|
5
|
+
"mcp doctor", or "server not connecting". Diagnoses and repairs MCP server
|
|
6
|
+
connectivity issues.
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# MCP Doctor — Diagnose and Heal MCP Connections
|