@ekkos/cli 0.2.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 (135) hide show
  1. package/dist/cache/LocalSessionStore.d.ts +129 -0
  2. package/dist/cache/LocalSessionStore.js +688 -0
  3. package/dist/cache/capture.d.ts +26 -0
  4. package/dist/cache/capture.js +461 -0
  5. package/dist/cache/index.d.ts +7 -0
  6. package/dist/cache/index.js +23 -0
  7. package/dist/cache/types.d.ts +147 -0
  8. package/dist/cache/types.js +40 -0
  9. package/dist/commands/init.d.ts +9 -0
  10. package/dist/commands/init.js +478 -0
  11. package/dist/commands/run.d.ts +12 -0
  12. package/dist/commands/run.js +829 -0
  13. package/dist/commands/setup.d.ts +6 -0
  14. package/dist/commands/setup.js +658 -0
  15. package/dist/commands/status.d.ts +1 -0
  16. package/dist/commands/status.js +109 -0
  17. package/dist/commands/test.d.ts +1 -0
  18. package/dist/commands/test.js +157 -0
  19. package/dist/deploy/agents.d.ts +15 -0
  20. package/dist/deploy/agents.js +72 -0
  21. package/dist/deploy/hooks.d.ts +16 -0
  22. package/dist/deploy/hooks.js +121 -0
  23. package/dist/deploy/index.d.ts +7 -0
  24. package/dist/deploy/index.js +24 -0
  25. package/dist/deploy/instructions.d.ts +12 -0
  26. package/dist/deploy/instructions.js +36 -0
  27. package/dist/deploy/mcp.d.ts +19 -0
  28. package/dist/deploy/mcp.js +109 -0
  29. package/dist/deploy/plugins.d.ts +19 -0
  30. package/dist/deploy/plugins.js +62 -0
  31. package/dist/deploy/settings.d.ts +8 -0
  32. package/dist/deploy/settings.js +84 -0
  33. package/dist/deploy/skills.d.ts +19 -0
  34. package/dist/deploy/skills.js +60 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +71 -0
  37. package/dist/restore/RestoreOrchestrator.d.ts +48 -0
  38. package/dist/restore/RestoreOrchestrator.js +481 -0
  39. package/dist/restore/index.d.ts +4 -0
  40. package/dist/restore/index.js +20 -0
  41. package/dist/utils/platform.d.ts +29 -0
  42. package/dist/utils/platform.js +65 -0
  43. package/dist/utils/session-words.json +119 -0
  44. package/dist/utils/state.d.ts +57 -0
  45. package/dist/utils/state.js +186 -0
  46. package/dist/utils/templates.d.ts +24 -0
  47. package/dist/utils/templates.js +118 -0
  48. package/package.json +48 -0
  49. package/templates/CLAUDE.md +287 -0
  50. package/templates/README.md +378 -0
  51. package/templates/agents/README.md +182 -0
  52. package/templates/agents/code-reviewer.md +166 -0
  53. package/templates/agents/debug-detective.md +169 -0
  54. package/templates/agents/ekkOS_Vercel.md +99 -0
  55. package/templates/agents/extension-manager.md +229 -0
  56. package/templates/agents/git-companion.md +185 -0
  57. package/templates/agents/github-test-agent.md +321 -0
  58. package/templates/agents/railway-manager.md +179 -0
  59. package/templates/claude-plugins/PHASE2_COMPLETION.md +346 -0
  60. package/templates/claude-plugins/PLUGIN_PROPOSALS.md +1776 -0
  61. package/templates/claude-plugins/README.md +587 -0
  62. package/templates/claude-plugins/agents/code-reviewer.json +14 -0
  63. package/templates/claude-plugins/agents/debug-detective.json +15 -0
  64. package/templates/claude-plugins/agents/git-companion.json +14 -0
  65. package/templates/claude-plugins/blog-manager/.claude-plugin/plugin.json +8 -0
  66. package/templates/claude-plugins/blog-manager/commands/blog.md +691 -0
  67. package/templates/claude-plugins/golden-loop-monitor/.claude-plugin/plugin.json +8 -0
  68. package/templates/claude-plugins/golden-loop-monitor/commands/loop-status.md +434 -0
  69. package/templates/claude-plugins/learning-tracker/.claude-plugin/plugin.json +8 -0
  70. package/templates/claude-plugins/learning-tracker/commands/my-patterns.md +282 -0
  71. package/templates/claude-plugins/memory-lens/.claude-plugin/plugin.json +8 -0
  72. package/templates/claude-plugins/memory-lens/commands/memory-search.md +181 -0
  73. package/templates/claude-plugins/pattern-coach/.claude-plugin/plugin.json +8 -0
  74. package/templates/claude-plugins/pattern-coach/commands/forge.md +365 -0
  75. package/templates/claude-plugins/project-schema-validator/.claude-plugin/plugin.json +8 -0
  76. package/templates/claude-plugins/project-schema-validator/commands/validate-schema.md +582 -0
  77. package/templates/claude-plugins-admin/AGENT_TEAM_PROPOSALS.md +819 -0
  78. package/templates/claude-plugins-admin/README.md +446 -0
  79. package/templates/claude-plugins-admin/autonomous-admin-agent/.claude-plugin/plugin.json +8 -0
  80. package/templates/claude-plugins-admin/autonomous-admin-agent/commands/agent.md +595 -0
  81. package/templates/claude-plugins-admin/backend-agent/.claude-plugin/plugin.json +8 -0
  82. package/templates/claude-plugins-admin/backend-agent/commands/backend.md +798 -0
  83. package/templates/claude-plugins-admin/deploy-guardian/.claude-plugin/plugin.json +8 -0
  84. package/templates/claude-plugins-admin/deploy-guardian/commands/deploy.md +554 -0
  85. package/templates/claude-plugins-admin/frontend-agent/.claude-plugin/plugin.json +8 -0
  86. package/templates/claude-plugins-admin/frontend-agent/commands/frontend.md +881 -0
  87. package/templates/claude-plugins-admin/mcp-server-manager/.claude-plugin/plugin.json +8 -0
  88. package/templates/claude-plugins-admin/mcp-server-manager/commands/mcp.md +85 -0
  89. package/templates/claude-plugins-admin/memory-system-monitor/.claude-plugin/plugin.json +8 -0
  90. package/templates/claude-plugins-admin/memory-system-monitor/commands/memory-health.md +569 -0
  91. package/templates/claude-plugins-admin/qa-agent/.claude-plugin/plugin.json +8 -0
  92. package/templates/claude-plugins-admin/qa-agent/commands/qa.md +863 -0
  93. package/templates/claude-plugins-admin/tech-lead-agent/.claude-plugin/plugin.json +8 -0
  94. package/templates/claude-plugins-admin/tech-lead-agent/commands/lead.md +732 -0
  95. package/templates/commands/continue.md +47 -0
  96. package/templates/cursor-hooks/after-agent-response.sh +117 -0
  97. package/templates/cursor-hooks/before-submit-prompt.sh +419 -0
  98. package/templates/cursor-hooks/hooks.json +20 -0
  99. package/templates/cursor-hooks/lib/contract.sh +320 -0
  100. package/templates/cursor-hooks/stop.sh +75 -0
  101. package/templates/cursor-rules/ekkos-memory.md +187 -0
  102. package/templates/hooks/assistant-response.sh +96 -0
  103. package/templates/hooks/hooks.json +28 -0
  104. package/templates/hooks/lib/contract.sh +320 -0
  105. package/templates/hooks/lib/state.sh +158 -0
  106. package/templates/hooks/session-start.ps1 +41 -0
  107. package/templates/hooks/session-start.sh +318 -0
  108. package/templates/hooks/stop.ps1 +16 -0
  109. package/templates/hooks/stop.sh +989 -0
  110. package/templates/hooks/user-prompt-submit.ps1 +174 -0
  111. package/templates/hooks/user-prompt-submit.sh +587 -0
  112. package/templates/hooks-node/lib/state.js +187 -0
  113. package/templates/hooks-node/stop.js +416 -0
  114. package/templates/hooks-node/user-prompt-submit.js +337 -0
  115. package/templates/plan-template.md +306 -0
  116. package/templates/rules/00-hooks-contract.mdc +89 -0
  117. package/templates/rules/30-ekkos-core.mdc +188 -0
  118. package/templates/rules/31-ekkos-messages.mdc +78 -0
  119. package/templates/skills/continue/SKILL.md +169 -0
  120. package/templates/skills/ekkOS_Deep_Recall/Skill.md +282 -0
  121. package/templates/skills/ekkOS_Learn/Skill.md +265 -0
  122. package/templates/skills/ekkOS_Memory_First/Skill.md +206 -0
  123. package/templates/skills/ekkOS_Plan_Assist/Skill.md +302 -0
  124. package/templates/skills/ekkOS_Preferences/Skill.md +247 -0
  125. package/templates/skills/ekkOS_Reflect/Skill.md +257 -0
  126. package/templates/skills/ekkOS_Safety/Skill.md +265 -0
  127. package/templates/skills/ekkOS_Schema/Skill.md +251 -0
  128. package/templates/skills/ekkOS_Summary/Skill.md +257 -0
  129. package/templates/skills/ekkOS_Vault/Skill.md +287 -0
  130. package/templates/skills/permissions/Skill.md +322 -0
  131. package/templates/spec-template.md +159 -0
  132. package/templates/windsurf-hooks/before-submit-prompt.sh +238 -0
  133. package/templates/windsurf-hooks/hooks.json +10 -0
  134. package/templates/windsurf-hooks/lib/contract.sh +320 -0
  135. package/templates/windsurf-rules/ekkos-memory.md +129 -0
@@ -0,0 +1,282 @@
1
+ # My Patterns
2
+
3
+ Personal dashboard showing what ekkOS has learned from you - your patterns, success rates, and growth over time.
4
+
5
+ ## Overview
6
+
7
+ See your learning journey! This command shows all the patterns you've forged, which ones are helping most, and how your ekkOS memory is growing.
8
+
9
+ **This is your personal knowledge base dashboard.**
10
+
11
+ ## What it does
12
+
13
+ 1. **Lists YOUR patterns** - Everything you've forged
14
+ 2. **Shows success rates** - Which patterns actually help
15
+ 3. **Tracks usage** - How often patterns are applied
16
+ 4. **Highlights top performers** - Your most valuable patterns
17
+ 5. **Identifies stale patterns** - Unused for 30+ days
18
+ 6. **Growth metrics** - How your memory is expanding
19
+
20
+ ## Usage
21
+
22
+ ```bash
23
+ # Show all your patterns
24
+ /my-patterns
25
+
26
+ # Show only successful patterns
27
+ /my-patterns --successful
28
+
29
+ # Show patterns by category
30
+ /my-patterns --category typescript
31
+
32
+ # Show recent patterns only
33
+ /my-patterns --recent
34
+ ```
35
+
36
+ ## Example Output
37
+
38
+ ```
39
+ 📊 Your ekkOS Learning Dashboard
40
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
41
+
42
+ 👤 User: @yourname
43
+ 📅 Member Since: 3 months ago
44
+ 🧠 Memory Health: 85/100 (Excellent)
45
+
46
+ ───────────────────────────────────────────────────────────────────
47
+ 📈 Growth Overview
48
+
49
+ Total Patterns Forged: 42
50
+ ├─ Solutions: 35 (83%)
51
+ ├─ Anti-patterns: 7 (17%)
52
+ └─ Average Success Rate: 84%
53
+
54
+ This Month:
55
+ • 8 new patterns forged
56
+ • 156 pattern retrievals
57
+ • 131 successful applications (84% success)
58
+
59
+ All-Time Golden Loop:
60
+ ✅ RETRIEVE: 1,234 times
61
+ ✅ APPLY: 1,041 times (84% application rate)
62
+ ✅ MEASURE: 876 outcomes tracked
63
+ ✅ LEARN: 42 patterns forged
64
+
65
+ ───────────────────────────────────────────────────────────────────
66
+ 🏆 Top Performing Patterns
67
+
68
+ 1. ⭐⭐⭐⭐⭐ Fix undefined map errors with optional chaining
69
+ Success: 98% (41/42 uses) | Last Used: Today
70
+ Category: TypeScript, Arrays
71
+ Impact: Prevented 41 runtime errors!
72
+
73
+ 2. ⭐⭐⭐⭐⭐ API timeout retry with exponential backoff
74
+ Success: 95% (38/40 uses) | Last Used: 2 days ago
75
+ Category: API, Error Handling
76
+ Impact: Saved 38 failed requests!
77
+
78
+ 3. ⭐⭐⭐⭐☆ Handle promise rejection in async/await
79
+ Success: 92% (23/25 uses) | Last Used: 1 week ago
80
+ Category: JavaScript, Async
81
+ Impact: Prevented 23 unhandled rejections!
82
+
83
+ 4. ⭐⭐⭐⭐☆ Validate user input before database insert
84
+ Success: 88% (15/17 uses) | Last Used: 3 days ago
85
+ Category: Security, Database
86
+ Impact: Blocked 15 potential SQL injections!
87
+
88
+ 5. ⭐⭐⭐⭐☆ Cache API responses for 5 minutes
89
+ Success: 90% (18/20 uses) | Last Used: Today
90
+ Category: Performance, API
91
+ Impact: Reduced 18 redundant API calls!
92
+
93
+ ───────────────────────────────────────────────────────────────────
94
+ 📚 All Your Patterns (Sorted by Category)
95
+
96
+ 🔷 TypeScript (12 patterns)
97
+ • Fix undefined map errors - 98% success
98
+ • Type narrowing with discriminated unions - 95% success
99
+ • Generic type constraints - 92% success
100
+ • ❌ Don't use 'any' type - Anti-pattern
101
+ [+8 more...]
102
+
103
+ 🔷 API & Backend (8 patterns)
104
+ • Timeout retry with exponential backoff - 95% success
105
+ • Cache responses for 5 minutes - 90% success
106
+ • Rate limit with sliding window - 85% success
107
+ [+5 more...]
108
+
109
+ 🔷 React & Frontend (7 patterns)
110
+ • Memoize expensive computations - 93% success
111
+ • useEffect dependency array pitfalls - 88% success
112
+ [+5 more...]
113
+
114
+ 🔷 Database (5 patterns)
115
+ • Validate input before insert - 88% success
116
+ • Use transactions for multi-step operations - 94% success
117
+ [+3 more...]
118
+
119
+ 🔷 Error Handling (6 patterns)
120
+ • Handle promise rejections - 92% success
121
+ • Try/catch in async functions - 90% success
122
+ [+4 more...]
123
+
124
+ 🔷 Security (4 patterns)
125
+ • Sanitize user input - 96% success
126
+ • ❌ Don't store passwords in plaintext - Anti-pattern
127
+ [+2 more...]
128
+
129
+ ───────────────────────────────────────────────────────────────────
130
+ ⚠️ Patterns Needing Attention
131
+
132
+ Low Success Rate (< 70%):
133
+ • "Fix webpack build errors" - 45% success (5/11 uses)
134
+ → This pattern might need updating or more specific conditions
135
+
136
+ Stale (Not Used in 30+ Days):
137
+ • "Legacy browser polyfill" - Last used: 42 days ago
138
+ → Consider archiving if no longer relevant
139
+
140
+ Never Applied:
141
+ • "Redis connection pooling" - Forged 2 months ago, never used
142
+ → Did you solve this problem differently?
143
+
144
+ ───────────────────────────────────────────────────────────────────
145
+ 🎯 Your Learning Stats
146
+
147
+ Forging Habits:
148
+ • Average time to forge after solving: 2 hours ⏱️
149
+ • Most active forging day: Friday
150
+ • Forging streak: 5 days 🔥
151
+
152
+ Pattern Quality:
153
+ • Patterns with examples: 38/42 (90%) ✅
154
+ • Patterns with anti-patterns: 7/42 (17%) 📚
155
+ • Patterns with "works when": 35/42 (83%) 🎯
156
+
157
+ Contribution to Collective:
158
+ • Your patterns promoted to collective: 8
159
+ • Other users helped by your patterns: 23 developers
160
+ • Collective impact: 156 successful applications 🌍
161
+
162
+ ───────────────────────────────────────────────────────────────────
163
+ 💡 Recommendations
164
+
165
+ Based on your patterns and usage:
166
+
167
+ 1. 🎉 Great job! Your forging discipline is excellent
168
+ → Keep capturing solutions as you solve problems
169
+
170
+ 2. ⚡ Consider updating "Fix webpack build errors"
171
+ → 45% success rate suggests it needs refinement
172
+ → Use /forge to update with better solution
173
+
174
+ 3. 🗂️ Archive 3 stale patterns that haven't been used
175
+ → Keeps your memory focused and relevant
176
+
177
+ 4. 🌟 5 of your patterns are helping other developers!
178
+ → Consider promoting more to collective memory
179
+
180
+ ───────────────────────────────────────────────────────────────────
181
+ 🔗 Quick Actions
182
+
183
+ • View specific pattern: /memory-search <pattern-title>
184
+ • Update low-success pattern: /forge --update pat_abc123
185
+ • Archive stale patterns: /my-patterns --archive-stale
186
+ • Export all patterns: ekkOS_Export (via MCP)
187
+ • Promote to collective: (requires Pro tier)
188
+
189
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
+
191
+ Your ekkOS memory is thriving! 🌱→🌳
192
+
193
+ You've forged 42 patterns, helped solve 1,041 problems, and
194
+ prevented countless repeated mistakes. Keep learning and forging!
195
+
196
+ Want to see how ekkOS is working for you? Try /loop-status
197
+ ```
198
+
199
+ ## Compact View Example
200
+
201
+ ```
202
+ /my-patterns --compact
203
+
204
+ 📊 Your Patterns (42 total)
205
+
206
+ Top 5 by Success:
207
+ 1. ⭐ 98% - Fix undefined map errors (41 uses)
208
+ 2. ⭐ 95% - API timeout retry (38 uses)
209
+ 3. ⭐ 92% - Handle promise rejection (23 uses)
210
+ 4. ⭐ 90% - Cache API responses (18 uses)
211
+ 5. ⭐ 88% - Validate user input (15 uses)
212
+
213
+ Recent (Last 7 Days):
214
+ • TypeScript type narrowing (forged 2 days ago)
215
+ • React useCallback optimization (forged 5 days ago)
216
+
217
+ Needs Attention:
218
+ ⚠️ 1 low-success pattern
219
+ ⏰ 3 stale patterns (30+ days)
220
+
221
+ Overall Health: 85/100 (Excellent)
222
+ ```
223
+
224
+ ## Category Filter Example
225
+
226
+ ```
227
+ /my-patterns --category typescript
228
+
229
+ 📊 TypeScript Patterns (12 total)
230
+
231
+ 🔷 All TypeScript Patterns:
232
+
233
+ 1. ⭐⭐⭐⭐⭐ Fix undefined map errors
234
+ Success: 98% | Used: 41 times | Last: Today
235
+
236
+ 2. ⭐⭐⭐⭐⭐ Type narrowing with discriminated unions
237
+ Success: 95% | Used: 28 times | Last: 3 days ago
238
+
239
+ 3. ⭐⭐⭐⭐☆ Generic type constraints
240
+ Success: 92% | Used: 19 times | Last: 1 week ago
241
+
242
+ [... 9 more patterns ...]
243
+
244
+ Average Success Rate: 91% (Excellent!)
245
+ Total Applications: 234
246
+ ```
247
+
248
+ ## Requirements
249
+
250
+ - ekkOS MCP server configured
251
+ - At least 1 pattern forged (otherwise shows empty state)
252
+ - Optional: Pro tier for collective metrics
253
+
254
+ ## Implementation Details
255
+
256
+ When this command runs, Claude will:
257
+
258
+ 1. Call `ekkOS_Stats({scope: "personal"})` to get user's pattern count
259
+ 2. Call `ekkOS_Search({query: "*", sources: ["patterns"], user_only: true})` to list all user patterns
260
+ 3. Sort patterns by:
261
+ - Success rate (default)
262
+ - Last used date (--recent)
263
+ - Category (--category)
264
+ - Usage count (--popular)
265
+ 4. Calculate metrics:
266
+ - Total patterns forged
267
+ - Average success rate
268
+ - Golden Loop completion stats
269
+ - Growth over time
270
+ 5. Identify issues:
271
+ - Patterns with < 70% success
272
+ - Patterns unused for 30+ days
273
+ - Patterns never applied
274
+ 6. Format into user-friendly dashboard:
275
+ - Visual indicators (stars, emojis)
276
+ - Color-coded success rates
277
+ - Clear categorization
278
+ - Actionable recommendations
279
+
280
+ This command helps users understand their learning journey and maintain a healthy pattern library.
281
+
282
+ **Your patterns = Your superpower** 🦸
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "ekkos-memory-lens",
3
+ "description": "Search and explore what ekkOS remembers. View patterns, check if solutions exist, understand your memory substrate.",
4
+ "author": {
5
+ "name": "ekkOS",
6
+ "email": "support@ekkos.dev"
7
+ }
8
+ }
@@ -0,0 +1,181 @@
1
+ # Memory Search
2
+
3
+ Search your ekkOS memory to see what patterns and solutions exist for your problem.
4
+
5
+ ## Overview
6
+
7
+ Before solving any problem, use this command to check if ekkOS already knows the solution. This is the **RETRIEVE** phase of the Golden Loop - searching your memory substrate for relevant patterns.
8
+
9
+ ## What it does
10
+
11
+ 1. **Searches all 11 layers** of your ekkOS memory
12
+ 2. **Finds relevant patterns** matching your query
13
+ 3. **Shows past solutions** that worked
14
+ 4. **Highlights success rates** for each pattern
15
+ 5. **Explains WHY** each pattern was retrieved
16
+ 6. **User-friendly display** - no overwhelming technical details
17
+
18
+ ## Usage
19
+
20
+ ```bash
21
+ # Search for solutions
22
+ /memory-search "authentication error"
23
+ /memory-search "TypeScript type narrowing"
24
+ /memory-search "API timeout handling"
25
+
26
+ # Quick search (uses recent conversation context)
27
+ /memory-search
28
+ ```
29
+
30
+ ## Example Output
31
+
32
+ ```
33
+ 🔍 Memory Search Results
34
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
35
+
36
+ Query: "authentication error JWT expired"
37
+
38
+ Found 3 relevant patterns in your memory:
39
+
40
+ ───────────────────────────────────────────────────────────────────
41
+ Pattern #1: Fix JWT expired errors in auth middleware
42
+ Success Rate: 95% (used 12 times)
43
+ Last Used: 2 days ago
44
+
45
+ Problem:
46
+ Auth middleware throwing "JWT expired" even with valid tokens
47
+ due to clock skew between server and client.
48
+
49
+ Solution:
50
+ Add 30-second grace period to JWT validation:
51
+
52
+ ```typescript
53
+ jwt.verify(token, secret, {
54
+ clockTolerance: 30 // Allow 30s clock skew
55
+ });
56
+ ```
57
+
58
+ Why This Matches:
59
+ • You mentioned "JWT" and "expired"
60
+ • This pattern solved similar auth issues
61
+ • High success rate suggests it's reliable
62
+
63
+ ───────────────────────────────────────────────────────────────────
64
+ Pattern #2: Refresh token before expiry
65
+ Success Rate: 88% (used 8 times)
66
+ Last Used: 1 week ago
67
+
68
+ Problem:
69
+ Users getting logged out unexpectedly when JWT expires.
70
+
71
+ Solution:
72
+ Implement automatic token refresh 5 minutes before expiry...
73
+
74
+ Why This Matches:
75
+ • Related to JWT expiration handling
76
+ • Complementary to Pattern #1
77
+
78
+ ───────────────────────────────────────────────────────────────────
79
+ Pattern #3: Handle auth errors gracefully
80
+ Success Rate: 92% (used 15 times)
81
+ Last Used: 3 days ago
82
+
83
+ Problem:
84
+ Auth errors showing ugly stack traces to users.
85
+
86
+ Solution:
87
+ Catch auth errors and redirect to login...
88
+
89
+ Why This Matches:
90
+ • General authentication error handling
91
+ • Applies to your "authentication error" query
92
+
93
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
94
+
95
+ 💡 Recommendations:
96
+
97
+ 1. Try Pattern #1 first (highest success rate)
98
+ 2. If that doesn't work, combine with Pattern #2
99
+ 3. Always implement Pattern #3 for better UX
100
+
101
+ Once you apply a solution, I'll automatically track if it worked!
102
+
103
+ 🔄 Golden Loop Status:
104
+ ✅ RETRIEVE - Found 3 patterns
105
+ ⏸️ APPLY - Waiting for you to try a solution
106
+ ⏸️ MEASURE - Will track if solution works
107
+ ⏸️ LEARN - Will update pattern success rates
108
+
109
+ Use /forge if you discover a NEW solution not in these patterns!
110
+ ```
111
+
112
+ ## No Results Example
113
+
114
+ ```
115
+ 🔍 Memory Search Results
116
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
117
+
118
+ Query: "rare database edge case issue"
119
+
120
+ Found 0 patterns in your memory.
121
+
122
+ This is a NEW problem! 🎉
123
+
124
+ Here's what happens next:
125
+
126
+ 1. Solve the problem (experiment, search docs, etc.)
127
+ 2. Once you find a solution, use `/forge` to capture it
128
+ 3. Next time you encounter this, ekkOS will remember!
129
+
130
+ This is how your memory grows - every solved problem becomes
131
+ a pattern for future reference.
132
+
133
+ 🔄 Golden Loop Status:
134
+ ⚠️ RETRIEVE - No patterns found (new problem)
135
+ 💡 SOLVE - Work on solution (you're on your own this time!)
136
+ ⚒️ FORGE - Use /forge once you solve it
137
+ ✅ NEXT TIME - Pattern will be retrieved automatically
138
+
139
+ The Golden Loop is waiting for you to forge this solution!
140
+ ```
141
+
142
+ ## Requirements
143
+
144
+ - ekkOS MCP server configured (via ekkos-connect)
145
+ - Active ekkOS account
146
+ - Some patterns already forged (or this will show "no results")
147
+
148
+ ## Advanced Options
149
+
150
+ ```bash
151
+ # Search specific layers
152
+ /memory-search --patterns-only "bug fix"
153
+ /memory-search --directives-only
154
+
155
+ # Search by tags
156
+ /memory-search --tags "typescript,api"
157
+
158
+ # Show low-success patterns too
159
+ /memory-search --include-low-success "error handling"
160
+ ```
161
+
162
+ ## Implementation Details
163
+
164
+ When this command runs, Claude will:
165
+
166
+ 1. Extract query from command or recent conversation
167
+ 2. Call `ekkOS_Search({query, sources: ["all"], limit: 10})`
168
+ 3. Format results in user-friendly way:
169
+ - Pattern title (clear, non-technical)
170
+ - Success rate + usage count
171
+ - Last used date
172
+ - Problem/Solution in plain language
173
+ - "Why This Matches" explanation
174
+ 4. Group patterns by relevance (best matches first)
175
+ 5. Show Golden Loop status
176
+ 6. Suggest next steps:
177
+ - Try pattern X first
178
+ - Use `/forge` if new solution
179
+ - Use `/loop-check` if issues
180
+
181
+ This command helps users understand what ekkOS knows and how to use it effectively.
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "ekkos-pattern-coach",
3
+ "description": "Interactive assistant for forging patterns from solutions and failures. Ensures every lesson learned is captured in your memory.",
4
+ "author": {
5
+ "name": "ekkOS",
6
+ "email": "support@ekkos.dev"
7
+ }
8
+ }