@soleri/forge 9.0.1 → 9.3.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 +1 -1
- package/dist/compose-claude-md.js.map +1 -1
- package/dist/scaffold-filetree.js +9 -14
- package/dist/scaffold-filetree.js.map +1 -1
- package/dist/skills/brain-debrief/SKILL.md +28 -24
- package/dist/skills/brainstorming/SKILL.md +16 -12
- package/dist/skills/code-patrol/SKILL.md +22 -22
- package/dist/skills/context-resume/SKILL.md +22 -19
- package/dist/skills/deep-review/SKILL.md +197 -0
- package/dist/skills/executing-plans/SKILL.md +23 -18
- package/dist/skills/fix-and-learn/SKILL.md +20 -16
- package/dist/skills/health-check/SKILL.md +32 -28
- package/dist/skills/knowledge-harvest/SKILL.md +27 -23
- package/dist/skills/onboard-me/SKILL.md +29 -26
- package/dist/skills/parallel-execute/SKILL.md +291 -0
- package/dist/skills/retrospective/SKILL.md +27 -24
- package/dist/skills/second-opinion/SKILL.md +17 -14
- package/dist/skills/systematic-debugging/SKILL.md +20 -16
- package/dist/skills/test-driven-development/SKILL.md +16 -16
- package/dist/skills/vault-capture/SKILL.md +24 -20
- package/dist/skills/vault-navigator/SKILL.md +24 -20
- package/dist/skills/vault-smells/SKILL.md +259 -0
- package/dist/skills/verification-before-completion/SKILL.md +26 -23
- package/dist/skills/writing-plans/SKILL.md +23 -20
- package/dist/templates/agents-md.js +2 -2
- package/dist/templates/agents-md.js.map +1 -1
- package/dist/templates/claude-md-template.js +2 -2
- package/dist/templates/claude-md-template.js.map +1 -1
- package/dist/templates/shared-rules.js +35 -1
- package/dist/templates/shared-rules.js.map +1 -1
- package/dist/templates/skills.js +28 -6
- package/dist/templates/skills.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +6 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/scaffolder.test.ts +17 -35
- package/src/compose-claude-md.ts +1 -1
- package/src/scaffold-filetree.ts +10 -14
- package/src/skills/brain-debrief/SKILL.md +28 -24
- package/src/skills/brainstorming/SKILL.md +16 -12
- package/src/skills/code-patrol/SKILL.md +22 -22
- package/src/skills/context-resume/SKILL.md +22 -19
- package/src/skills/deep-review/SKILL.md +197 -0
- package/src/skills/executing-plans/SKILL.md +23 -18
- package/src/skills/fix-and-learn/SKILL.md +20 -16
- package/src/skills/health-check/SKILL.md +32 -28
- package/src/skills/knowledge-harvest/SKILL.md +27 -23
- package/src/skills/onboard-me/SKILL.md +29 -26
- package/src/skills/parallel-execute/SKILL.md +291 -0
- package/src/skills/retrospective/SKILL.md +27 -24
- package/src/skills/second-opinion/SKILL.md +17 -14
- package/src/skills/systematic-debugging/SKILL.md +20 -16
- package/src/skills/test-driven-development/SKILL.md +16 -16
- package/src/skills/vault-capture/SKILL.md +24 -20
- package/src/skills/vault-navigator/SKILL.md +24 -20
- package/src/skills/vault-smells/SKILL.md +259 -0
- package/src/skills/verification-before-completion/SKILL.md +26 -23
- package/src/skills/writing-plans/SKILL.md +23 -20
- package/src/templates/agents-md.ts +2 -2
- package/src/templates/claude-md-template.ts +2 -2
- package/src/templates/shared-rules.ts +36 -1
- package/src/templates/skills.ts +27 -6
- package/src/types.ts +7 -2
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-review
|
|
3
|
+
description: >
|
|
4
|
+
Use for in-depth code review beyond linting — architecture fitness, code smells, solution quality,
|
|
5
|
+
optimization opportunities. Triggers on "deep review", "review this code", "is this well architected",
|
|
6
|
+
"code smells", "review this module", "architecture review", "is this the right approach",
|
|
7
|
+
"optimization review". Works on any codebase. For vault-specific knowledge quality, use vault-smells instead.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Deep Review — Architecture, Smells & Solution Quality
|
|
11
|
+
|
|
12
|
+
Multi-pass code review that goes beyond surface lint. Analyzes structural health, code smells, architectural fitness, and solution quality. Works on any codebase — vault context is optional enrichment, not a requirement.
|
|
13
|
+
|
|
14
|
+
## Input
|
|
15
|
+
|
|
16
|
+
The user provides a **target**: file, module, directory, PR diff, or function. If unclear, ask.
|
|
17
|
+
|
|
18
|
+
## The Three Passes
|
|
19
|
+
|
|
20
|
+
### Pass 1: Structural Analysis & Code Smells
|
|
21
|
+
|
|
22
|
+
**Metrics** (gather by reading the code):
|
|
23
|
+
|
|
24
|
+
- File length and function count
|
|
25
|
+
- Cyclomatic complexity (nesting depth, branch count)
|
|
26
|
+
- Dependency count — imports from how many modules?
|
|
27
|
+
- Export surface area — how much is public vs. should be internal?
|
|
28
|
+
|
|
29
|
+
**Structural Smells:**
|
|
30
|
+
|
|
31
|
+
- **God file/class** — too many responsibilities, >300 lines with mixed concerns
|
|
32
|
+
- **Long parameter lists** — function takes 5+ params (should be an object/config)
|
|
33
|
+
- **Deep nesting** — 4+ levels of if/for/try/catch
|
|
34
|
+
- **Shotgun surgery** — changing this code requires touching 5+ other files
|
|
35
|
+
- **Primitive obsession** — passing raw strings/numbers instead of domain types
|
|
36
|
+
- **Boolean blindness** — functions with multiple boolean params (`fn(true, false, true)`)
|
|
37
|
+
|
|
38
|
+
**Duplication Smells:**
|
|
39
|
+
|
|
40
|
+
- Copy-paste with slight variations
|
|
41
|
+
- Repeated conditional logic — same if-chain in 3+ places
|
|
42
|
+
- Parallel structures that always change together
|
|
43
|
+
|
|
44
|
+
**Temporal Smells** (check git history):
|
|
45
|
+
|
|
46
|
+
- Files that always change together but live in different modules → missing abstraction
|
|
47
|
+
- Functions that get patched repeatedly → wrong abstraction
|
|
48
|
+
- High churn files → instability signal
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
git log --format=format: --name-only --since="3 months ago" <target-path> | sort | uniq -c | sort -rn | head -20
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Present findings before moving to Pass 2.
|
|
55
|
+
|
|
56
|
+
### Pass 2: Architectural Fitness
|
|
57
|
+
|
|
58
|
+
**Dependency Direction:**
|
|
59
|
+
|
|
60
|
+
- Do dependencies flow in the right direction? (Outer layers depend on inner, not reverse)
|
|
61
|
+
- Are there circular dependencies?
|
|
62
|
+
- Does the code reach across module boundaries it shouldn't?
|
|
63
|
+
|
|
64
|
+
**Abstraction Level:**
|
|
65
|
+
|
|
66
|
+
- Is this the right level of abstraction for the problem?
|
|
67
|
+
- Over-engineered? (abstraction for one use case, premature generalization)
|
|
68
|
+
- Under-engineered? (inline logic that should be extracted)
|
|
69
|
+
|
|
70
|
+
**Cohesion & Coupling:**
|
|
71
|
+
|
|
72
|
+
- Does everything in this module belong together? (high cohesion)
|
|
73
|
+
- Is the module tangled with others? (low coupling desired)
|
|
74
|
+
- Feature envy — does a function touch another module's internals more than its own?
|
|
75
|
+
|
|
76
|
+
**Vault Context** (optional — only if vault is connected):
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
YOUR_AGENT_core op:search_intelligent
|
|
80
|
+
params: { query: "<module name> architecture pattern" }
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
If vault has relevant patterns, check alignment. If not, skip — this pass works without vault.
|
|
84
|
+
|
|
85
|
+
### Pass 3: Solution Quality Assessment
|
|
86
|
+
|
|
87
|
+
**Simplification:**
|
|
88
|
+
|
|
89
|
+
- Is there a simpler way to achieve the same result?
|
|
90
|
+
- Could any abstraction be removed without loss?
|
|
91
|
+
- Are there standard library/framework features that replace custom code?
|
|
92
|
+
|
|
93
|
+
**Edge Cases:**
|
|
94
|
+
|
|
95
|
+
- What inputs would break this?
|
|
96
|
+
- Are error paths handled or just the happy path?
|
|
97
|
+
- What happens with empty/null/undefined inputs?
|
|
98
|
+
- Concurrency: race conditions, shared mutable state?
|
|
99
|
+
|
|
100
|
+
**Performance:**
|
|
101
|
+
|
|
102
|
+
- Any O(n²) or worse hidden in loops?
|
|
103
|
+
- Unnecessary allocations, copies, or serialization?
|
|
104
|
+
- N+1 query patterns?
|
|
105
|
+
- Unbounded growth (arrays/maps that grow without limit)?
|
|
106
|
+
|
|
107
|
+
**Evolutionary Fitness:**
|
|
108
|
+
|
|
109
|
+
- How does this code age? Easy to modify in 6 months?
|
|
110
|
+
- Does it create "gravity" — attracting more complexity over time?
|
|
111
|
+
- Are extension points in the right places?
|
|
112
|
+
|
|
113
|
+
## Presenting the Report
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
## Deep Review: [target name]
|
|
117
|
+
|
|
118
|
+
### Structural Health
|
|
119
|
+
| Metric | Value | Verdict |
|
|
120
|
+
|--------|-------|---------|
|
|
121
|
+
| Lines | X | OK / ⚠️ Large |
|
|
122
|
+
| Functions | X | OK / ⚠️ Many |
|
|
123
|
+
| Max nesting | X | OK / ⚠️ Deep |
|
|
124
|
+
| Dependencies | X | OK / ⚠️ Heavy |
|
|
125
|
+
| Export surface | X public / Y total | OK / ⚠️ Wide |
|
|
126
|
+
|
|
127
|
+
### Code Smells
|
|
128
|
+
| Smell | Location | Severity | Detail |
|
|
129
|
+
|-------|----------|----------|--------|
|
|
130
|
+
| God file | file.ts | ⚠️ | 450 lines, 3 mixed concerns |
|
|
131
|
+
| Feature envy | fn() → other module | ⚠️ | Reaches into X internals |
|
|
132
|
+
| Deep nesting | line 120-180 | 💡 | 5 levels, consider early returns |
|
|
133
|
+
|
|
134
|
+
### Architecture
|
|
135
|
+
| Aspect | Assessment |
|
|
136
|
+
|--------|------------|
|
|
137
|
+
| Dependency direction | ✅ Clean / ⚠️ Reverse dep on X |
|
|
138
|
+
| Abstraction level | ✅ Right / ⚠️ Over/Under |
|
|
139
|
+
| Cohesion | ✅ High / ⚠️ Mixed concerns |
|
|
140
|
+
| Coupling | ✅ Low / ⚠️ Tight with X |
|
|
141
|
+
|
|
142
|
+
### Solution Quality
|
|
143
|
+
| Area | Finding |
|
|
144
|
+
|------|---------|
|
|
145
|
+
| Simplification | [opportunity or "none found"] |
|
|
146
|
+
| Edge cases | [gaps found or "well covered"] |
|
|
147
|
+
| Performance | [concerns or "no issues"] |
|
|
148
|
+
| Evolutionary fitness | [assessment] |
|
|
149
|
+
|
|
150
|
+
### Recommendations
|
|
151
|
+
| Priority | Action | Impact |
|
|
152
|
+
|----------|--------|--------|
|
|
153
|
+
| 1 | [most impactful] | High |
|
|
154
|
+
| 2 | [second] | Medium |
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Severity Scale
|
|
158
|
+
|
|
159
|
+
| Level | Meaning |
|
|
160
|
+
| ----- | ------------------------------------------------------------- |
|
|
161
|
+
| ✅ | Clean — no action needed |
|
|
162
|
+
| 💡 | Info — worth knowing, low priority |
|
|
163
|
+
| ⚠️ | Warning — should fix, causes friction |
|
|
164
|
+
| 🔴 | Critical — fix before shipping, causes bugs or blocks scaling |
|
|
165
|
+
|
|
166
|
+
## Capturing Learnings (Optional)
|
|
167
|
+
|
|
168
|
+
If the review uncovers a pattern or anti-pattern worth remembering:
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
172
|
+
params: {
|
|
173
|
+
title: "<pattern name>",
|
|
174
|
+
description: "<what was found, why it matters>",
|
|
175
|
+
type: "pattern" | "anti-pattern",
|
|
176
|
+
category: "architecture",
|
|
177
|
+
tags: ["code-review", "<specific-tag>"]
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Only capture if genuinely reusable — not every review finding is vault-worthy.
|
|
182
|
+
|
|
183
|
+
## Common Mistakes
|
|
184
|
+
|
|
185
|
+
- Reviewing without reading the full file first (missing context)
|
|
186
|
+
- Reporting every minor style issue as a "smell" (noise kills signal)
|
|
187
|
+
- Suggesting rewrites when the code is adequate (perfect is the enemy of good)
|
|
188
|
+
- Skipping git history (temporal smells are the most actionable)
|
|
189
|
+
- Treating all smells as equal severity (prioritize by impact)
|
|
190
|
+
|
|
191
|
+
## Quick Reference
|
|
192
|
+
|
|
193
|
+
| Pass | Focus | Key Activities |
|
|
194
|
+
| --------------- | ---------------- | ----------------------------------------------------------- |
|
|
195
|
+
| 1. Structural | Metrics + Smells | Read code, check complexity, find smells, check git history |
|
|
196
|
+
| 2. Architecture | Fitness | Dependency direction, abstraction level, cohesion/coupling |
|
|
197
|
+
| 3. Solution | Quality | Simplification, edge cases, performance, evolution |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: executing-plans
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user says "execute my plan", "run the plan", "start executing", "implement the
|
|
5
|
+
plan step by step", or has a written plan to execute sequentially with review checkpoints.
|
|
6
|
+
Tasks run one at a time in order. If tasks are independent and can run in parallel, use
|
|
7
|
+
parallel-execute instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Executing Plans
|
|
@@ -14,10 +18,10 @@ Load plan, review critically, execute tasks in batches, report for review betwee
|
|
|
14
18
|
### Step 1: Load and Review Plan
|
|
15
19
|
|
|
16
20
|
```
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
YOUR_AGENT_core op:get_plan
|
|
22
|
+
YOUR_AGENT_core op:plan_list_tasks
|
|
19
23
|
params: { planId: "<id>" }
|
|
20
|
-
|
|
24
|
+
YOUR_AGENT_core op:plan_stats
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
If no tracked plan exists, read from `docs/plans/`. Review critically — raise concerns before starting.
|
|
@@ -25,13 +29,14 @@ If no tracked plan exists, read from `docs/plans/`. Review critically — raise
|
|
|
25
29
|
### Step 2: Start Execution Loop
|
|
26
30
|
|
|
27
31
|
```
|
|
28
|
-
|
|
32
|
+
YOUR_AGENT_core op:loop_start
|
|
29
33
|
params: { prompt: "<plan objective>", mode: "custom" }
|
|
30
34
|
```
|
|
31
35
|
|
|
32
36
|
### Step 3: Execute Batch (default: first 3 tasks)
|
|
33
37
|
|
|
34
38
|
For each task:
|
|
39
|
+
|
|
35
40
|
1. `op:update_task` — mark `in_progress`
|
|
36
41
|
2. Follow each step exactly
|
|
37
42
|
3. Run verifications as specified
|
|
@@ -49,10 +54,10 @@ Apply feedback, execute next batch, repeat until complete.
|
|
|
49
54
|
### Step 6: Complete Development
|
|
50
55
|
|
|
51
56
|
1. Run final verification (use verification-before-completion skill)
|
|
52
|
-
2. `
|
|
53
|
-
3. `
|
|
54
|
-
4. `
|
|
55
|
-
5. `
|
|
57
|
+
2. `YOUR_AGENT_core op:loop_complete`
|
|
58
|
+
3. `YOUR_AGENT_core op:plan_reconcile` — compare planned vs actual
|
|
59
|
+
4. `YOUR_AGENT_core op:plan_complete_lifecycle` — extract knowledge, archive
|
|
60
|
+
5. `YOUR_AGENT_core op:session_capture` — save session context
|
|
56
61
|
|
|
57
62
|
Capture mid-execution learnings with `op:capture_quick` as they happen — don't wait until the end.
|
|
58
63
|
|
|
@@ -74,14 +79,14 @@ Capture mid-execution learnings with `op:capture_quick` as they happen — don't
|
|
|
74
79
|
|
|
75
80
|
## Quick Reference
|
|
76
81
|
|
|
77
|
-
| Op
|
|
78
|
-
|
|
79
|
-
| `get_plan` / `plan_list_tasks` / `plan_stats`
|
|
80
|
-
| `update_task`
|
|
81
|
-
| `loop_start` / `loop_iterate` / `loop_complete` | Validation loop
|
|
82
|
-
| `plan_reconcile`
|
|
83
|
-
| `plan_complete_lifecycle`
|
|
84
|
-
| `session_capture`
|
|
85
|
-
| `capture_quick`
|
|
82
|
+
| Op | When to Use |
|
|
83
|
+
| ----------------------------------------------- | --------------------------- |
|
|
84
|
+
| `get_plan` / `plan_list_tasks` / `plan_stats` | Load plan |
|
|
85
|
+
| `update_task` | Mark task status |
|
|
86
|
+
| `loop_start` / `loop_iterate` / `loop_complete` | Validation loop |
|
|
87
|
+
| `plan_reconcile` | Post-execution drift report |
|
|
88
|
+
| `plan_complete_lifecycle` | Extract knowledge, archive |
|
|
89
|
+
| `session_capture` | Save session context |
|
|
90
|
+
| `capture_quick` | Mid-execution learnings |
|
|
86
91
|
|
|
87
92
|
**Related skills:** writing-plans, verification-before-completion, test-driven-development
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fix-and-learn
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use AFTER a root cause has been identified (typically via systematic-debugging) to execute
|
|
5
|
+
the fix and capture the learning in the vault. Triggers on "fix it", "apply the fix",
|
|
6
|
+
"patch this and remember". Do NOT use as the first response to a bug — use
|
|
7
|
+
systematic-debugging first to find root cause.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Fix & Learn — Debug, Repair, Capture
|
|
@@ -21,16 +25,16 @@ Fix bugs through a structured recovery workflow, then capture the root cause as
|
|
|
21
25
|
### Step 1: Classify and Route
|
|
22
26
|
|
|
23
27
|
```
|
|
24
|
-
|
|
28
|
+
YOUR_AGENT_core op:route_intent
|
|
25
29
|
params: { prompt: "<bug description>" }
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
### Step 2: Check Vault First
|
|
29
33
|
|
|
30
34
|
```
|
|
31
|
-
|
|
35
|
+
YOUR_AGENT_core op:search_intelligent
|
|
32
36
|
params: { query: "<error message or bug description>" }
|
|
33
|
-
|
|
37
|
+
YOUR_AGENT_core op:memory_search
|
|
34
38
|
params: { query: "<bug description>" }
|
|
35
39
|
```
|
|
36
40
|
|
|
@@ -43,7 +47,7 @@ If vault has no answer, search for known issues, Stack Overflow answers, GitHub
|
|
|
43
47
|
### Step 4: Start Fix Loop
|
|
44
48
|
|
|
45
49
|
```
|
|
46
|
-
|
|
50
|
+
YOUR_AGENT_core op:loop_start
|
|
47
51
|
params: { prompt: "Fix: <bug description>", mode: "custom" }
|
|
48
52
|
```
|
|
49
53
|
|
|
@@ -59,12 +63,12 @@ If Steps 2-3 didn't produce a solution, use systematic-debugging skill:
|
|
|
59
63
|
|
|
60
64
|
### Step 6: Validate
|
|
61
65
|
|
|
62
|
-
Run test suite. Use verification-before-completion skill. Complete loop: `
|
|
66
|
+
Run test suite. Use verification-before-completion skill. Complete loop: `YOUR_AGENT_core op:loop_complete`.
|
|
63
67
|
|
|
64
68
|
### Step 7: Capture the Learning
|
|
65
69
|
|
|
66
70
|
```
|
|
67
|
-
|
|
71
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
68
72
|
params: {
|
|
69
73
|
title: "<bug title>",
|
|
70
74
|
description: "<root cause, solution, what made it hard to find>",
|
|
@@ -74,7 +78,7 @@ ernesto_core op:capture_knowledge
|
|
|
74
78
|
}
|
|
75
79
|
```
|
|
76
80
|
|
|
77
|
-
Run `
|
|
81
|
+
Run `YOUR_AGENT_core op:curator_detect_duplicates` to avoid redundant entries.
|
|
78
82
|
|
|
79
83
|
## Exit Criteria
|
|
80
84
|
|
|
@@ -88,11 +92,11 @@ Bug resolved, tests pass, root cause captured in vault. A fix without a capture
|
|
|
88
92
|
|
|
89
93
|
## Quick Reference
|
|
90
94
|
|
|
91
|
-
| Op
|
|
92
|
-
|
|
93
|
-
| `route_intent`
|
|
94
|
-
| `search_intelligent`
|
|
95
|
-
| `memory_search`
|
|
96
|
-
| `loop_start` / `loop_iterate` / `loop_complete` | Iterative fix cycle
|
|
97
|
-
| `capture_knowledge` / `capture_quick`
|
|
98
|
-
| `curator_detect_duplicates`
|
|
95
|
+
| Op | When to Use |
|
|
96
|
+
| ----------------------------------------------- | -------------------------- |
|
|
97
|
+
| `route_intent` | Classify as FIX intent |
|
|
98
|
+
| `search_intelligent` | Check vault for known bugs |
|
|
99
|
+
| `memory_search` | Search session memories |
|
|
100
|
+
| `loop_start` / `loop_iterate` / `loop_complete` | Iterative fix cycle |
|
|
101
|
+
| `capture_knowledge` / `capture_quick` | Persist anti-pattern |
|
|
102
|
+
| `curator_detect_duplicates` | Prevent redundant entries |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: health-check
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user asks "check health", "system status", "how healthy is the vault",
|
|
5
|
+
"knowledge quality", "run diagnostics", "vault health report", or wants a read-only health
|
|
6
|
+
assessment of the knowledge base — scoring, reporting, finding issues. Does NOT modify vault
|
|
7
|
+
entries. To actively clean, merge, or deduplicate, use vault-curate instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Health Check — Knowledge Base Maintenance
|
|
@@ -12,43 +16,43 @@ Comprehensive maintenance cycle on the knowledge base. Finds stale entries, dupl
|
|
|
12
16
|
### 1. System Health
|
|
13
17
|
|
|
14
18
|
```
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
YOUR_AGENT_core op:admin_health
|
|
20
|
+
YOUR_AGENT_core op:admin_diagnostic
|
|
17
21
|
```
|
|
18
22
|
|
|
19
23
|
### 2. Vault Metrics
|
|
20
24
|
|
|
21
25
|
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
YOUR_AGENT_core op:admin_vault_size
|
|
27
|
+
YOUR_AGENT_core op:admin_vault_analytics
|
|
28
|
+
YOUR_AGENT_core op:vault_domains
|
|
29
|
+
YOUR_AGENT_core op:vault_tags
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
### 3. Quality Audit
|
|
29
33
|
|
|
30
34
|
```
|
|
31
|
-
|
|
35
|
+
YOUR_AGENT_core op:curator_health_audit
|
|
32
36
|
```
|
|
33
37
|
|
|
34
38
|
### 4. Find Duplicates
|
|
35
39
|
|
|
36
40
|
```
|
|
37
|
-
|
|
41
|
+
YOUR_AGENT_core op:curator_detect_duplicates
|
|
38
42
|
```
|
|
39
43
|
|
|
40
44
|
### 5. Find Contradictions
|
|
41
45
|
|
|
42
46
|
```
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
YOUR_AGENT_core op:curator_contradictions
|
|
48
|
+
YOUR_AGENT_core op:curator_resolve_contradiction
|
|
45
49
|
params: { contradictionId: "<id>" }
|
|
46
50
|
```
|
|
47
51
|
|
|
48
52
|
### 6. Find Stale Entries
|
|
49
53
|
|
|
50
54
|
```
|
|
51
|
-
|
|
55
|
+
YOUR_AGENT_core op:vault_age_report
|
|
52
56
|
```
|
|
53
57
|
|
|
54
58
|
Entries >30 days without updates: refresh, archive, or delete.
|
|
@@ -56,21 +60,21 @@ Entries >30 days without updates: refresh, archive, or delete.
|
|
|
56
60
|
### 7. Check Search Quality
|
|
57
61
|
|
|
58
62
|
```
|
|
59
|
-
|
|
63
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
60
64
|
```
|
|
61
65
|
|
|
62
66
|
### 8. Memory Health
|
|
63
67
|
|
|
64
68
|
```
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
YOUR_AGENT_core op:memory_stats
|
|
70
|
+
YOUR_AGENT_core op:memory_deduplicate
|
|
67
71
|
```
|
|
68
72
|
|
|
69
73
|
### 9. Governance Queue
|
|
70
74
|
|
|
71
75
|
```
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
YOUR_AGENT_core op:governance_proposals params: { action: "list" }
|
|
77
|
+
YOUR_AGENT_core op:governance_expire
|
|
74
78
|
```
|
|
75
79
|
|
|
76
80
|
### 10. Fix Everything (Optional, with user approval)
|
|
@@ -118,14 +122,14 @@ ernesto_core op:governance_expire
|
|
|
118
122
|
|
|
119
123
|
## Quick Reference
|
|
120
124
|
|
|
121
|
-
| Op
|
|
122
|
-
|
|
123
|
-
| `admin_health` / `admin_diagnostic`
|
|
124
|
-
| `admin_vault_analytics` / `admin_vault_size` | Vault metrics
|
|
125
|
-
| `curator_health_audit`
|
|
126
|
-
| `curator_detect_duplicates`
|
|
127
|
-
| `curator_contradictions`
|
|
128
|
-
| `vault_age_report`
|
|
129
|
-
| `admin_search_insights`
|
|
130
|
-
| `curator_consolidate`
|
|
131
|
-
| `brain_build_intelligence`
|
|
125
|
+
| Op | When to Use |
|
|
126
|
+
| -------------------------------------------- | --------------------- |
|
|
127
|
+
| `admin_health` / `admin_diagnostic` | System health |
|
|
128
|
+
| `admin_vault_analytics` / `admin_vault_size` | Vault metrics |
|
|
129
|
+
| `curator_health_audit` | Quality score |
|
|
130
|
+
| `curator_detect_duplicates` | Find duplicates |
|
|
131
|
+
| `curator_contradictions` | Find conflicts |
|
|
132
|
+
| `vault_age_report` | Stale entries |
|
|
133
|
+
| `admin_search_insights` | Search miss analysis |
|
|
134
|
+
| `curator_consolidate` | Full cleanup pipeline |
|
|
135
|
+
| `brain_build_intelligence` | Rebuild after cleanup |
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: knowledge-harvest
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use to EXTRACT multiple patterns from a source — code, docs, PRs, articles. Triggers on
|
|
5
|
+
"learn from this", "harvest knowledge", "ingest this document", "extract patterns from".
|
|
6
|
+
The agent reads the source and identifies what to capture. For saving a single known item,
|
|
7
|
+
use vault-capture instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Knowledge Harvest — Extract Patterns From Anything
|
|
@@ -11,35 +15,35 @@ Point at code, docs, PRs, architecture decisions, or postmortems — the agent e
|
|
|
11
15
|
|
|
12
16
|
### 1. Understand the Source
|
|
13
17
|
|
|
14
|
-
Read target content and classify: `
|
|
18
|
+
Read target content and classify: `YOUR_AGENT_core op:route_intent params: { prompt: "Extract knowledge from: <source>" }`
|
|
15
19
|
|
|
16
20
|
### 2. Check What's Already Known
|
|
17
21
|
|
|
18
22
|
```
|
|
19
|
-
|
|
23
|
+
YOUR_AGENT_core op:search_intelligent
|
|
20
24
|
params: { query: "<topic of source material>" }
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
YOUR_AGENT_core op:vault_tags
|
|
26
|
+
YOUR_AGENT_core op:vault_domains
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
Focus extraction on gaps — skip what vault already covers.
|
|
26
30
|
|
|
27
31
|
### 3. Extract and Classify
|
|
28
32
|
|
|
29
|
-
| Type
|
|
30
|
-
|
|
31
|
-
| **pattern**
|
|
32
|
-
| **anti-pattern** | Known mistakes to avoid
|
|
33
|
-
| **decision**
|
|
34
|
-
| **principle**
|
|
35
|
-
| **workflow**
|
|
33
|
+
| Type | What to Look For |
|
|
34
|
+
| ---------------- | ------------------------------------ |
|
|
35
|
+
| **pattern** | Repeatable approaches that work |
|
|
36
|
+
| **anti-pattern** | Known mistakes to avoid |
|
|
37
|
+
| **decision** | Architectural choices with rationale |
|
|
38
|
+
| **principle** | Guiding rules or heuristics |
|
|
39
|
+
| **workflow** | Step-by-step procedures |
|
|
36
40
|
|
|
37
41
|
For each: determine category, severity, and tags.
|
|
38
42
|
|
|
39
43
|
### 4. Batch Capture
|
|
40
44
|
|
|
41
45
|
```
|
|
42
|
-
|
|
46
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
43
47
|
params: {
|
|
44
48
|
title: "<clear, searchable name>",
|
|
45
49
|
description: "<what it is, when to apply, why it matters>",
|
|
@@ -81,13 +85,13 @@ Optionally promote universal patterns: `op:memory_promote_to_global`.
|
|
|
81
85
|
|
|
82
86
|
## Quick Reference
|
|
83
87
|
|
|
84
|
-
| Op
|
|
85
|
-
|
|
86
|
-
| `search_intelligent`
|
|
87
|
-
| `vault_tags` / `vault_domains` | See what's covered
|
|
88
|
-
| `capture_knowledge`
|
|
89
|
-
| `curator_detect_duplicates`
|
|
90
|
-
| `curator_groom_all`
|
|
91
|
-
| `curator_contradictions`
|
|
92
|
-
| `memory_promote_to_global`
|
|
93
|
-
| `admin_vault_analytics`
|
|
88
|
+
| Op | When to Use |
|
|
89
|
+
| ------------------------------ | ------------------------ |
|
|
90
|
+
| `search_intelligent` | Check existing knowledge |
|
|
91
|
+
| `vault_tags` / `vault_domains` | See what's covered |
|
|
92
|
+
| `capture_knowledge` | Capture each item |
|
|
93
|
+
| `curator_detect_duplicates` | Post-harvest dedup |
|
|
94
|
+
| `curator_groom_all` | Normalize entries |
|
|
95
|
+
| `curator_contradictions` | Find conflicts |
|
|
96
|
+
| `memory_promote_to_global` | Share cross-project |
|
|
97
|
+
| `admin_vault_analytics` | Knowledge quality |
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: onboard-me
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when someone is new to the PROJECT and needs orientation — "onboard me", "I'm new here",
|
|
5
|
+
"project overview", "what should I know about this codebase". Questions about the project's
|
|
6
|
+
patterns and conventions, not about the agent's capabilities (use agent-guide for that).
|
|
4
7
|
---
|
|
5
8
|
|
|
6
9
|
# Onboard Me — Instant Project Intelligence
|
|
@@ -12,59 +15,59 @@ Structured tour of everything the vault knows about this project. Decisions, pat
|
|
|
12
15
|
### 1. Project Overview
|
|
13
16
|
|
|
14
17
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
YOUR_AGENT_core op:identity
|
|
19
|
+
YOUR_AGENT_core op:project_get
|
|
20
|
+
YOUR_AGENT_core op:project_list_rules
|
|
21
|
+
YOUR_AGENT_core op:get_behavior_rules
|
|
19
22
|
```
|
|
20
23
|
|
|
21
24
|
### 2. Knowledge Landscape
|
|
22
25
|
|
|
23
26
|
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
YOUR_AGENT_core op:vault_domains
|
|
28
|
+
YOUR_AGENT_core op:vault_tags
|
|
29
|
+
YOUR_AGENT_core op:admin_vault_size
|
|
27
30
|
```
|
|
28
31
|
|
|
29
32
|
### 3. Critical Knowledge
|
|
30
33
|
|
|
31
34
|
```
|
|
32
|
-
|
|
35
|
+
YOUR_AGENT_core op:search
|
|
33
36
|
params: { severity: "critical" }
|
|
34
37
|
```
|
|
35
38
|
|
|
36
39
|
### 4. Key Decisions
|
|
37
40
|
|
|
38
41
|
```
|
|
39
|
-
|
|
42
|
+
YOUR_AGENT_core op:search_intelligent
|
|
40
43
|
params: { query: "architectural decision design choice" }
|
|
41
44
|
```
|
|
42
45
|
|
|
43
46
|
### 5. Strongest Patterns
|
|
44
47
|
|
|
45
48
|
```
|
|
46
|
-
|
|
49
|
+
YOUR_AGENT_core op:brain_strengths
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
### 6. Anti-Patterns to Avoid
|
|
50
53
|
|
|
51
54
|
```
|
|
52
|
-
|
|
55
|
+
YOUR_AGENT_core op:search
|
|
53
56
|
params: { type: "anti-pattern" }
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
### 7. Cross-Project Context
|
|
57
60
|
|
|
58
61
|
```
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
YOUR_AGENT_core op:project_linked_projects
|
|
63
|
+
YOUR_AGENT_core op:brain_global_patterns
|
|
61
64
|
```
|
|
62
65
|
|
|
63
66
|
### 8. Knowledge Gaps
|
|
64
67
|
|
|
65
68
|
```
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
70
|
+
YOUR_AGENT_core op:vault_age_report
|
|
68
71
|
```
|
|
69
72
|
|
|
70
73
|
## Presenting the Onboarding
|
|
@@ -106,13 +109,13 @@ ernesto_core op:vault_age_report
|
|
|
106
109
|
|
|
107
110
|
## Quick Reference
|
|
108
111
|
|
|
109
|
-
| Op
|
|
110
|
-
|
|
111
|
-
| `identity` / `project_get`
|
|
112
|
-
| `project_list_rules` / `get_behavior_rules` | Conventions
|
|
113
|
-
| `vault_domains` / `vault_tags`
|
|
114
|
-
| `search` (severity/type filters)
|
|
115
|
-
| `search_intelligent`
|
|
116
|
-
| `brain_strengths`
|
|
117
|
-
| `brain_global_patterns`
|
|
118
|
-
| `admin_search_insights`
|
|
112
|
+
| Op | When to Use |
|
|
113
|
+
| ------------------------------------------- | ----------------------------- |
|
|
114
|
+
| `identity` / `project_get` | Project overview |
|
|
115
|
+
| `project_list_rules` / `get_behavior_rules` | Conventions |
|
|
116
|
+
| `vault_domains` / `vault_tags` | Knowledge landscape |
|
|
117
|
+
| `search` (severity/type filters) | Critical rules, anti-patterns |
|
|
118
|
+
| `search_intelligent` | Key decisions |
|
|
119
|
+
| `brain_strengths` | Proven patterns |
|
|
120
|
+
| `brain_global_patterns` | Cross-project patterns |
|
|
121
|
+
| `admin_search_insights` | Knowledge gaps |
|