@soleri/forge 5.14.7 → 5.14.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/lib.d.ts +1 -0
  2. package/dist/lib.js +1 -0
  3. package/dist/lib.js.map +1 -1
  4. package/dist/templates/claude-md-template.js +3 -3
  5. package/dist/templates/claude-md-template.js.map +1 -1
  6. package/dist/templates/shared-rules.js +69 -0
  7. package/dist/templates/shared-rules.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/lib.ts +1 -0
  10. package/src/templates/shared-rules.ts +70 -0
  11. package/dist/skills/skills/brain-debrief.md +0 -214
  12. package/dist/skills/skills/brainstorming.md +0 -180
  13. package/dist/skills/skills/code-patrol.md +0 -178
  14. package/dist/skills/skills/context-resume.md +0 -146
  15. package/dist/skills/skills/executing-plans.md +0 -216
  16. package/dist/skills/skills/fix-and-learn.md +0 -167
  17. package/dist/skills/skills/health-check.md +0 -231
  18. package/dist/skills/skills/knowledge-harvest.md +0 -185
  19. package/dist/skills/skills/onboard-me.md +0 -198
  20. package/dist/skills/skills/retrospective.md +0 -205
  21. package/dist/skills/skills/second-opinion.md +0 -149
  22. package/dist/skills/skills/systematic-debugging.md +0 -241
  23. package/dist/skills/skills/test-driven-development.md +0 -281
  24. package/dist/skills/skills/vault-capture.md +0 -170
  25. package/dist/skills/skills/vault-navigator.md +0 -140
  26. package/dist/skills/skills/verification-before-completion.md +0 -182
  27. package/dist/skills/skills/writing-plans.md +0 -215
  28. /package/dist/skills/{skills/agent-dev.md → agent-dev.md} +0 -0
  29. /package/dist/skills/{skills/agent-guide.md → agent-guide.md} +0 -0
  30. /package/dist/skills/{skills/agent-persona.md → agent-persona.md} +0 -0
  31. /package/dist/skills/{skills/deliver-and-ship.md → deliver-and-ship.md} +0 -0
  32. /package/dist/skills/{skills/env-setup.md → env-setup.md} +0 -0
  33. /package/dist/skills/{skills/vault-curate.md → vault-curate.md} +0 -0
@@ -1,231 +0,0 @@
1
- ---
2
- name: health-check
3
- description: Use when the user asks "check health", "vault health", "knowledge quality", "clean up vault", "groom knowledge", "maintenance", "housekeeping", "deduplicate", "find contradictions", or wants to run a maintenance cycle on the knowledge base to keep it healthy and accurate.
4
- ---
5
-
6
- # Health Check — Knowledge Base Maintenance
7
-
8
- Run a comprehensive maintenance cycle on the knowledge base. Finds stale entries, duplicates, contradictions, quality issues, and fixes them. Like a doctor's checkup for your knowledge.
9
-
10
- ## When to Use
11
-
12
- - Weekly/monthly maintenance ritual
13
- - "Is my vault healthy?"
14
- - "Clean up my knowledge base"
15
- - Before a retrospective (clean data = better insights)
16
- - After a knowledge harvest (post-ingest quality check)
17
-
18
- ## The Magic: Comprehensive Quality Audit
19
-
20
- ### Step 1: System Health
21
-
22
- ```
23
- YOUR_AGENT_core op:admin_health
24
- ```
25
-
26
- ```
27
- YOUR_AGENT_core op:admin_diagnostic
28
- ```
29
-
30
- Catches infrastructure issues — database corruption, stale caches, configuration problems.
31
-
32
- ### Step 2: Vault Metrics
33
-
34
- ```
35
- YOUR_AGENT_core op:admin_vault_size
36
- ```
37
-
38
- ```
39
- YOUR_AGENT_core op:admin_vault_analytics
40
- ```
41
-
42
- ```
43
- YOUR_AGENT_core op:vault_domains
44
- ```
45
-
46
- ```
47
- YOUR_AGENT_core op:vault_tags
48
- ```
49
-
50
- Shows the big picture: how many entries, which domains, tag distribution.
51
-
52
- ### Step 3: Quality Audit
53
-
54
- Run the curator's health audit — the most comprehensive quality check:
55
-
56
- ```
57
- YOUR_AGENT_core op:curator_health_audit
58
- ```
59
-
60
- This checks: tag normalization, description quality, severity distribution, domain coverage balance, and overall vault quality score.
61
-
62
- ### Step 4: Find Duplicates
63
-
64
- ```
65
- YOUR_AGENT_core op:curator_detect_duplicates
66
- ```
67
-
68
- Present duplicates for review. Offer to merge or remove them.
69
-
70
- ### Step 5: Find Contradictions
71
-
72
- ```
73
- YOUR_AGENT_core op:curator_contradictions
74
- ```
75
-
76
- Contradictions are entries that give conflicting advice. Present each pair for the user to resolve:
77
-
78
- ```
79
- YOUR_AGENT_core op:curator_resolve_contradiction
80
- params: { contradictionId: "<id>" }
81
- ```
82
-
83
- ### Step 6: Find Stale Entries
84
-
85
- ```
86
- YOUR_AGENT_core op:vault_age_report
87
- ```
88
-
89
- Entries older than 30 days without updates are candidates for:
90
-
91
- - Refresh (still relevant, needs updating)
92
- - Archive (no longer relevant)
93
- - Delete (incorrect or superseded)
94
-
95
- ### Step 7: Check Search Quality
96
-
97
- ```
98
- YOUR_AGENT_core op:admin_search_insights
99
- ```
100
-
101
- Shows what people search for but don't find — these are knowledge gaps that should be filled.
102
-
103
- ### Step 8: Memory Health
104
-
105
- ```
106
- YOUR_AGENT_core op:memory_stats
107
- ```
108
-
109
- ```
110
- YOUR_AGENT_core op:memory_deduplicate
111
- ```
112
-
113
- Clean up duplicate memories.
114
-
115
- ### Step 9: Governance Queue
116
-
117
- Check if any proposals are pending review:
118
-
119
- ```
120
- YOUR_AGENT_core op:governance_proposals
121
- params: { action: "list" }
122
- ```
123
-
124
- ```
125
- YOUR_AGENT_core op:governance_stats
126
- ```
127
-
128
- Expire stale proposals:
129
-
130
- ```
131
- YOUR_AGENT_core op:governance_expire
132
- ```
133
-
134
- ### Step 10: Fix Everything (Optional)
135
-
136
- If the user approves, run the full cleanup:
137
-
138
- **Groom all entries — normalize tags, fix metadata:**
139
-
140
- ```
141
- YOUR_AGENT_core op:curator_groom_all
142
- ```
143
-
144
- **Full consolidation — deduplicate, normalize, quality-score:**
145
-
146
- ```
147
- YOUR_AGENT_core op:curator_consolidate
148
- ```
149
-
150
- **Prune stale memory:**
151
-
152
- ```
153
- YOUR_AGENT_core op:memory_prune
154
- ```
155
-
156
- **Rebuild brain intelligence with clean data:**
157
-
158
- ```
159
- YOUR_AGENT_core op:brain_build_intelligence
160
- ```
161
-
162
- **Reset caches to pick up changes:**
163
-
164
- ```
165
- YOUR_AGENT_core op:admin_reset_cache
166
- ```
167
-
168
- ## Presenting the Health Report
169
-
170
- ```
171
- ## Knowledge Health Report
172
-
173
- ### System
174
- | Check | Status |
175
- |-------|--------|
176
- | Infrastructure | OK / Issues |
177
- | Database | OK / Issues |
178
- | Cache | OK / Issues |
179
-
180
- ### Vault Quality
181
- | Metric | Value | Status |
182
- |--------|-------|--------|
183
- | Total entries | X | — |
184
- | Quality score | X/100 | Good/Warning/Critical |
185
- | Domains | X | — |
186
- | Tags | X | — |
187
-
188
- ### Issues Found
189
- | Issue | Count | Action |
190
- |-------|-------|--------|
191
- | Duplicates | X | Merge |
192
- | Contradictions | X | Resolve |
193
- | Stale entries (>30d) | X | Review |
194
- | Search misses | X | Fill gaps |
195
- | Pending proposals | X | Review |
196
-
197
- ### Recommended Actions
198
- 1. [Most impactful fix]
199
- 2. [Second most impactful]
200
- 3. [Third most impactful]
201
- ```
202
-
203
- ## The Magic
204
-
205
- This feels like magic because knowledge bases normally decay silently — duplicates accumulate, entries go stale, contradictions creep in, gaps grow. This skill makes decay visible and fixable in one command. It's like having a librarian who does a weekly audit of every book on every shelf.
206
-
207
- ## Agent Tools Reference
208
-
209
- | Op | When to Use |
210
- | ------------------------------- | ------------------------------- |
211
- | `admin_health` | System health check |
212
- | `admin_diagnostic` | Comprehensive system diagnostic |
213
- | `admin_vault_size` | Vault storage metrics |
214
- | `admin_vault_analytics` | Knowledge quality metrics |
215
- | `admin_search_insights` | Search miss analysis |
216
- | `admin_reset_cache` | Clear caches after cleanup |
217
- | `vault_domains` / `vault_tags` | Knowledge landscape |
218
- | `vault_age_report` | Stale entry detection |
219
- | `curator_health_audit` | Quality score and audit |
220
- | `curator_detect_duplicates` | Find duplicates |
221
- | `curator_contradictions` | Find conflicting entries |
222
- | `curator_resolve_contradiction` | Resolve conflicts |
223
- | `curator_groom_all` | Batch tag normalization |
224
- | `curator_consolidate` | Full cleanup pipeline |
225
- | `memory_stats` | Memory health |
226
- | `memory_deduplicate` | Remove duplicate memories |
227
- | `memory_prune` | Remove stale memories |
228
- | `governance_proposals` | Pending review queue |
229
- | `governance_stats` | Governance metrics |
230
- | `governance_expire` | Expire stale proposals |
231
- | `brain_build_intelligence` | Rebuild after cleanup |
@@ -1,185 +0,0 @@
1
- ---
2
- name: knowledge-harvest
3
- description: Use when the user says "learn from this", "extract patterns", "harvest knowledge", "ingest this document", "read this and capture", "populate vault from", or points at code, docs, PRs, or any text and wants the agent to automatically extract and capture patterns, anti-patterns, and decisions into the vault.
4
- ---
5
-
6
- # Knowledge Harvest — Extract Patterns From Anything
7
-
8
- Point at code, docs, PRs, architecture decisions, postmortems, or any text — the agent reads it, extracts every pattern, anti-pattern, decision, and principle, then captures them all to the vault. Zero-friction knowledge population.
9
-
10
- ## When to Use
11
-
12
- - "Learn from this file" / "Extract patterns from this codebase"
13
- - "Read our architecture doc and capture everything"
14
- - "Harvest knowledge from this PR"
15
- - "Ingest this post-mortem"
16
- - Populating a fresh vault with existing team knowledge
17
-
18
- ## The Magic: Automated Knowledge Extraction
19
-
20
- ### Step 1: Understand the Source
21
-
22
- Read the target content (code, docs, etc.) and classify what type of knowledge it contains:
23
-
24
- ```
25
- YOUR_AGENT_core op:route_intent
26
- params: { prompt: "Extract knowledge from: <source description>" }
27
- ```
28
-
29
- ### Step 2: Check What's Already Known
30
-
31
- Before extracting, search the vault to avoid duplicates:
32
-
33
- ```
34
- YOUR_AGENT_core op:search_intelligent
35
- params: { query: "<topic of the source material>" }
36
- ```
37
-
38
- ```
39
- YOUR_AGENT_core op:vault_tags
40
- ```
41
-
42
- ```
43
- YOUR_AGENT_core op:vault_domains
44
- ```
45
-
46
- This tells you what the vault already covers — focus extraction on gaps.
47
-
48
- ### Step 3: Extract and Classify
49
-
50
- Read through the source material and identify:
51
-
52
- | Type | What to Look For |
53
- | ---------------- | ------------------------------------------------------ |
54
- | **pattern** | "We always do X because Y" — repeatable approaches |
55
- | **anti-pattern** | "Don't do X because Y" — known mistakes |
56
- | **decision** | "We chose X over Y because Z" — architectural choices |
57
- | **principle** | "We believe X" — guiding rules |
58
- | **workflow** | "The process for X is: step 1, step 2..." — procedures |
59
-
60
- For each extracted item, determine:
61
-
62
- - **Category**: Which domain it belongs to
63
- - **Severity**: critical / warning / suggestion
64
- - **Tags**: Searchable keywords
65
-
66
- ### Step 4: Batch Capture
67
-
68
- For each extracted item, capture to the vault:
69
-
70
- ```
71
- YOUR_AGENT_core op:capture_knowledge
72
- params: {
73
- title: "<clear, searchable name>",
74
- description: "<what it is, when to apply, why it matters>",
75
- type: "<pattern|anti-pattern|decision|principle|workflow>",
76
- category: "<domain>",
77
- tags: ["<tag1>", "<tag2>"],
78
- severity: "<critical|warning|suggestion>",
79
- example: "<code snippet or quote from source>",
80
- why: "<reasoning>"
81
- }
82
- ```
83
-
84
- Present each capture to the user as you go:
85
-
86
- ```
87
- Captured: api-auth-jwt (pattern, critical)
88
- → "Use short-lived JWTs for authentication"
89
- Auto-tags: auth, jwt, security
90
- ```
91
-
92
- ### Step 5: Post-Harvest Quality
93
-
94
- After all items captured, run quality checks:
95
-
96
- **Detect any duplicates created during harvest:**
97
-
98
- ```
99
- YOUR_AGENT_core op:curator_detect_duplicates
100
- ```
101
-
102
- **Groom all new entries — normalize tags, fix metadata:**
103
-
104
- ```
105
- YOUR_AGENT_core op:curator_groom_all
106
- ```
107
-
108
- **Enrich entries with additional context:**
109
-
110
- ```
111
- YOUR_AGENT_core op:curator_enrich
112
- params: { entryId: "<id>" }
113
- ```
114
-
115
- **Check for contradictions with existing knowledge:**
116
-
117
- ```
118
- YOUR_AGENT_core op:curator_contradictions
119
- ```
120
-
121
- ### Step 6: Verify Harvest Results
122
-
123
- Check vault health after the harvest:
124
-
125
- ```
126
- YOUR_AGENT_core op:admin_health
127
- ```
128
-
129
- ```
130
- YOUR_AGENT_core op:admin_vault_analytics
131
- ```
132
-
133
- Present a summary:
134
-
135
- ```
136
- ## Harvest Complete
137
-
138
- Source: [file/doc name]
139
- Extracted: X entries
140
- - Y patterns
141
- - Z anti-patterns
142
- - W decisions
143
- - V principles
144
-
145
- Duplicates found: N (merged/skipped)
146
- Contradictions found: N (flagged for review)
147
- Vault health: OK
148
- ```
149
-
150
- ### Step 7: Promote Universal Patterns (Optional)
151
-
152
- If any extracted patterns apply across projects:
153
-
154
- ```
155
- YOUR_AGENT_core op:memory_promote_to_global
156
- params: { entryId: "<id>" }
157
- ```
158
-
159
- ## The Magic
160
-
161
- This feels like magic because the user points at a 50-page architecture doc and says "learn from this" — and 2 minutes later, the vault has 30 classified, tagged, searchable patterns that inform every future conversation. The agent didn't just read the doc — it understood it, classified it, deduplicated it, and made it permanent.
162
-
163
- ## Tips for Best Results
164
-
165
- - **Start with your team's top 10 decisions** — the ones people keep asking about
166
- - **Feed postmortems** — they're goldmines of anti-patterns
167
- - **Feed architecture decision records (ADRs)** — pure decision captures
168
- - **Feed code review comments** — patterns that reviewers enforce repeatedly
169
- - **Feed onboarding docs** — principles that new team members need to learn
170
-
171
- ## Agent Tools Reference
172
-
173
- | Op | When to Use |
174
- | ------------------------------ | -------------------------------------- |
175
- | `route_intent` | Classify the source material |
176
- | `search_intelligent` | Check for existing knowledge |
177
- | `vault_tags` / `vault_domains` | See what's already covered |
178
- | `capture_knowledge` | Capture each extracted item |
179
- | `curator_detect_duplicates` | Find duplicates post-harvest |
180
- | `curator_groom_all` | Normalize all new entries |
181
- | `curator_enrich` | LLM-enrich entries |
182
- | `curator_contradictions` | Find conflicts with existing knowledge |
183
- | `memory_promote_to_global` | Share universal patterns cross-project |
184
- | `admin_health` | Post-harvest health check |
185
- | `admin_vault_analytics` | Knowledge quality metrics |
@@ -1,198 +0,0 @@
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 |