@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,587 @@
1
+ # ekkOS Custom Agents for Claude Code
2
+
3
+ **USER-FOCUSED | PORTABLE | UNIVERSAL**
4
+
5
+ Custom agent plugins that help developers use ekkOS memory effectively - designed for YOUR USERS, not for admins deploying infrastructure.
6
+
7
+ ## šŸŽÆ Design Philosophy
8
+
9
+ ### What Changed?
10
+
11
+ **OLD Design (Admin-focused):**
12
+ - āŒ Deploy Guardian - Vercel vs Railway (ekkOS infrastructure)
13
+ - āŒ Schema Sentinel - ekkOS database schemas (internal)
14
+ - āŒ Memory Archaeologist - System maintenance (admin task)
15
+
16
+ **NEW Design (User-focused):**
17
+ - āœ… Memory Lens - "What does ekkOS know about my problem?"
18
+ - āœ… Pattern Coach - "Help me forge this solution"
19
+ - āœ… Learning Tracker - "Show me my growth"
20
+ - āœ… Golden Loop Monitor - "Is ekkOS working for me?"
21
+
22
+ ### Why This Matters
23
+
24
+ **Users don't care about:**
25
+ - ekkOS's internal infrastructure
26
+ - How ekkOS deploys its own services
27
+ - ekkOS's database schemas
28
+
29
+ **Users care about:**
30
+ - "Did ekkOS find patterns for MY problem?"
31
+ - "How do I remember THIS solution?"
32
+ - "What has ekkOS learned from ME?"
33
+ - "Is the Golden Loop working for MY codebase?"
34
+
35
+ These plugins are **100% portable** - they work for ANY developer on ANY codebase.
36
+
37
+ ---
38
+
39
+ ## šŸ”Œ The 5 Core Plugins
40
+
41
+ ### 1. šŸ” Memory Lens
42
+
43
+ **Command:** `/memory-search`
44
+
45
+ **Purpose:** Search and explore what ekkOS remembers
46
+
47
+ **User Need:** *"Before I solve this problem, does ekkOS already know the solution?"*
48
+
49
+ **What it does:**
50
+ - Searches all 11 layers of memory
51
+ - Shows relevant patterns with success rates
52
+ - Explains WHY each pattern was retrieved
53
+ - User-friendly output (no technical jargon)
54
+ - Shows Golden Loop status
55
+ - Guides next steps
56
+
57
+ **Example Use Case:**
58
+ ```
59
+ User encounters: "TypeError: Cannot read property 'map' of undefined"
60
+
61
+ /memory-search "undefined map error"
62
+
63
+ → Shows 3 past solutions with success rates
64
+ → Recommends trying pattern with 98% success first
65
+ → If no patterns found, tells user to forge after solving
66
+ ```
67
+
68
+ **Calls:** `ekkOS_Search`, `ekkOS_Stats`
69
+
70
+ ---
71
+
72
+ ### 2. āš’ļø Pattern Coach
73
+
74
+ **Command:** `/forge`
75
+
76
+ **Purpose:** Interactive pattern forging assistant
77
+
78
+ **User Need:** *"I just solved a problem - how do I make sure ekkOS remembers it?"*
79
+
80
+ **What it does:**
81
+ - Detects problem/solution from conversation
82
+ - Asks clarifying questions interactively
83
+ - Validates pattern quality
84
+ - Checks for duplicates
85
+ - Forges pattern to memory
86
+ - Captures failures as anti-patterns
87
+ - Creates MUST/NEVER directives
88
+
89
+ **Example Use Case:**
90
+ ```
91
+ User fixes bug by adding optional chaining
92
+
93
+ /forge
94
+
95
+ → Detects: "Fixed undefined error with ?.operator"
96
+ → Asks: "What was the problem?" (pre-filled)
97
+ → Asks: "When does this apply?" (helps future matching)
98
+ → Previews pattern before forging
99
+ → Forges to Layer 4 (Patterns)
100
+ → Pattern available immediately for future retrievals
101
+ ```
102
+
103
+ **Modes:**
104
+ - `/forge` - Interactive (recommended)
105
+ - `/forge quick` - Auto-detect from conversation
106
+ - `/forge failure` - Capture anti-pattern
107
+ - `/forge rule` - Create MUST/NEVER directive
108
+
109
+ **Calls:** `ekkOS_Forge`, `ekkOS_Directive`, `ekkOS_Search` (check duplicates)
110
+
111
+ ---
112
+
113
+ ### 3. šŸ“Š Learning Tracker
114
+
115
+ **Command:** `/my-patterns`
116
+
117
+ **Purpose:** Personal learning dashboard
118
+
119
+ **User Need:** *"What has ekkOS learned from me? Am I getting smarter over time?"*
120
+
121
+ **What it does:**
122
+ - Lists all YOUR patterns
123
+ - Shows success rates for each
124
+ - Tracks usage statistics
125
+ - Highlights top performers
126
+ - Identifies patterns needing attention
127
+ - Shows growth metrics over time
128
+ - Contribution to collective (if Pro)
129
+
130
+ **Example Use Case:**
131
+ ```
132
+ User wants to see their progress
133
+
134
+ /my-patterns
135
+
136
+ → Shows 42 patterns forged
137
+ → Top 5 by success rate (with stars ⭐)
138
+ → Patterns by category (TypeScript, API, React)
139
+ → Identifies 1 low-success pattern (needs updating)
140
+ → Shows 3 stale patterns (30+ days unused)
141
+ → Growth: 8 patterns this month
142
+ → Golden Loop efficiency: 76%
143
+ → Recommendations for improvement
144
+ ```
145
+
146
+ **Modes:**
147
+ - `/my-patterns` - Full dashboard
148
+ - `/my-patterns --successful` - Only high-success patterns
149
+ - `/my-patterns --category typescript` - Filter by category
150
+ - `/my-patterns --recent` - Recent patterns only
151
+
152
+ **Calls:** `ekkOS_Stats`, `ekkOS_Search` (user_only filter)
153
+
154
+ ---
155
+
156
+ ### 4. šŸ”„ Golden Loop Monitor
157
+
158
+ **Command:** `/loop-status`
159
+
160
+ **Purpose:** Monitor and troubleshoot the Golden Loop
161
+
162
+ **User Need:** *"Is ekkOS working correctly? Why aren't patterns being retrieved?"*
163
+
164
+ **What it does:**
165
+ - Tests each loop phase (RETRIEVE → APPLY → MEASURE → LEARN)
166
+ - Shows recent activity
167
+ - Identifies bottlenecks
168
+ - Diagnoses issues
169
+ - Provides actionable fixes
170
+ - Real-time health check
171
+
172
+ **Example Use Cases:**
173
+
174
+ **Healthy Loop:**
175
+ ```
176
+ /loop-status
177
+
178
+ → āœ… All phases working
179
+ → Shows recent RETRIEVE/APPLY/MEASURE/LEARN events
180
+ → Performance metrics: 76% efficiency (Good)
181
+ → Bottleneck: LEARN phase at 45% (could forge more)
182
+ → Recommendations: Use /forge after solving problems
183
+ ```
184
+
185
+ **Loop Issues:**
186
+ ```
187
+ /loop-status
188
+
189
+ → āš ļø Issues detected
190
+ → RETRIEVE: Working āœ…
191
+ → APPLY: Low (12%) āš ļø
192
+ → MEASURE: Broken āŒ
193
+ → LEARN: Never āŒ
194
+
195
+ → Diagnosis:
196
+ - Hooks not configured
197
+ - No patterns forged yet
198
+ - MCP connection issues
199
+
200
+ → Fixes (step-by-step checklist):
201
+ 1. Run: "ekkOS: Setup Global Hooks"
202
+ 2. Forge first pattern: /forge
203
+ 3. Test connection: /loop-status --test-mcp
204
+ ```
205
+
206
+ **Modes:**
207
+ - `/loop-status` - Overall status
208
+ - `/loop-status --detailed` - Verbose diagnostics
209
+ - `/loop-status --test-retrieve` - Test specific phase
210
+ - `/loop-status --last-session` - Recent activity only
211
+
212
+ **Calls:** `ekkOS_Summary`, `ekkOS_Stats`, `ekkOS_Search` (test), API health check
213
+
214
+ ---
215
+
216
+ ### 5. šŸ›”ļø Project Schema Validator
217
+
218
+ **Command:** `/validate-schema`
219
+
220
+ **Purpose:** Validate schemas in YOUR project (not ekkOS database)
221
+
222
+ **User Need:** *"Are my TypeScript types in sync with my database? Will I get field name errors?"*
223
+
224
+ **What it does:**
225
+ - Indexes your project schemas (TypeScript, Prisma, GraphQL, Supabase)
226
+ - Validates field names across your codebase
227
+ - Detects schema drift (types out of sync with database)
228
+ - Catches type errors before runtime
229
+ - Suggests fixes with exact line numbers
230
+ - Stores schemas in ekkOS for future reference
231
+
232
+ **Example Use Cases:**
233
+
234
+ **First Time Setup:**
235
+ ```
236
+ /validate-schema
237
+
238
+ → Scans project for schema files
239
+ → Found: Prisma schema, TypeScript types, GraphQL schema
240
+ → Indexes 18 models with 150 fields
241
+ → Validates field usage across codebase
242
+ → āœ… No issues found! (or shows specific errors with fixes)
243
+ → Stored in ekkOS Layer 8 (Codebase)
244
+ ```
245
+
246
+ **Schema Drift Detected:**
247
+ ```
248
+ /validate-schema --compare
249
+
250
+ → āš ļø SCHEMA DRIFT DETECTED!
251
+ → Database has: User.phoneNumber
252
+ → TypeScript: Missing!
253
+ → Fix: Add phoneNumber: string | null to interface
254
+ → Run: npx prisma generate to sync types
255
+ ```
256
+
257
+ **Fresh Project:**
258
+ ```
259
+ /validate-schema
260
+
261
+ → ā„¹ļø Fresh Project Detected
262
+ → No schemas found yet - that's OK!
263
+ → Shows setup guide (Prisma vs Supabase)
264
+ → Explains why schema validation matters
265
+ → Offers to help after setup
266
+ ```
267
+
268
+ **Modes:**
269
+ - `/validate-schema` - Index all schemas and validate
270
+ - `/validate-schema users` - Check specific table/type
271
+ - `/validate-schema --compare` - Compare database vs TypeScript
272
+ - `/validate-schema --show` - Show indexed schemas
273
+
274
+ **Calls:** `ekkOS_IndexSchema`, `ekkOS_GetSchema`, `ekkOS_Codebase`, `ekkOS_Search`, `ekkOS_Forge`
275
+
276
+ **What Makes This Different from Admin "Schema Sentinel":**
277
+ - **This:** Validates YOUR project schemas (portable to any codebase)
278
+ - **Admin tool:** Validates ekkOS internal database (ekkOS-specific)
279
+
280
+ **Value:** Prevents runtime errors like "Cannot read property 'username'" when field is actually 'userName'. Catches field name mismatches, type errors, and schema drift BEFORE they cause bugs.
281
+
282
+ ---
283
+
284
+ ## šŸš€ Installation & Usage
285
+
286
+ ### For Users
287
+
288
+ 1. **Install ekkos-connect** from VS Code marketplace
289
+ 2. **Authenticate**: Run "ekkOS: Connect Account"
290
+ 3. **Deploy Plugins**: Run "ekkOS: Deploy Custom Agents to Claude Code"
291
+ 4. **Restart Claude Code**
292
+ 5. **Use Commands**:
293
+ ```bash
294
+ /memory-search "your problem"
295
+ /forge
296
+ /my-patterns
297
+ /loop-status
298
+ /validate-schema
299
+ ```
300
+
301
+ Plugins install to `~/.claude/plugins/ekkos/`
302
+
303
+ ### For Developers
304
+
305
+ ```bash
306
+ cd extensions/ekkos-connect
307
+
308
+ # Build extension
309
+ npm install
310
+ npm run compile
311
+ vsce package
312
+
313
+ # Install locally
314
+ code --install-extension ekkos-connect-*.vsix
315
+
316
+ # Deploy plugins (via Command Palette)
317
+ "ekkOS: Deploy Custom Agents to Claude Code"
318
+
319
+ # Test in Claude Code
320
+ claude
321
+ > /memory-search test
322
+ ```
323
+
324
+ ---
325
+
326
+ ## šŸŽ“ User Workflows
327
+
328
+ ### Workflow 1: New Problem (No Pattern Exists)
329
+
330
+ ```
331
+ 1. User encounters error
332
+ 2. /memory-search "error description"
333
+ 3. No patterns found
334
+ 4. User solves problem (research, experiment, docs)
335
+ 5. /forge (captures solution)
336
+ 6. Pattern now in memory
337
+ 7. Next time → pattern retrieved automatically!
338
+ ```
339
+
340
+ ### Workflow 2: Existing Pattern
341
+
342
+ ```
343
+ 1. User encounters error
344
+ 2. /memory-search "error description"
345
+ 3. 3 patterns found (98%, 95%, 92% success)
346
+ 4. User tries pattern #1
347
+ 5. Works! (ekkOS auto-tracks success)
348
+ 6. Pattern success rate updated: 98% → 99%
349
+ ```
350
+
351
+ ### Workflow 3: Learning from Failure
352
+
353
+ ```
354
+ 1. User tries approach that doesn't work
355
+ 2. /forge failure
356
+ 3. "What didn't work?" → Using var in TypeScript
357
+ 4. "Why failed?" → Type narrowing breaks
358
+ 5. "Correct approach?" → Use const/let
359
+ 6. Anti-pattern forged
360
+ 7. Optional: Create NEVER directive
361
+ 8. Next time → ekkOS warns against var
362
+ ```
363
+
364
+ ### Workflow 4: Checking Progress
365
+
366
+ ```
367
+ 1. User wants to see growth
368
+ 2. /my-patterns
369
+ 3. Dashboard shows:
370
+ - 42 patterns forged
371
+ - 84% avg success rate
372
+ - 8 patterns this month
373
+ - Top 5 performers
374
+ - 3 patterns need attention
375
+ 4. User feels motivated! šŸŽ‰
376
+ ```
377
+
378
+ ### Workflow 5: Troubleshooting
379
+
380
+ ```
381
+ 1. ekkOS not retrieving patterns
382
+ 2. /loop-status
383
+ 3. Diagnosis: Hooks not configured
384
+ 4. Fix: Run "ekkOS: Setup Global Hooks"
385
+ 5. /loop-status (verify fixed)
386
+ 6. āœ… All phases working
387
+ ```
388
+
389
+ ---
390
+
391
+ ## šŸ’” Why These 5 Plugins?
392
+
393
+ ### Coverage of Golden Loop
394
+
395
+ ```
396
+ RETRIEVE → /memory-search (Memory Lens)
397
+ APPLY → /validate-schema (Project Schema Validator)
398
+ MEASURE → Automatic (hooks track outcomes)
399
+ LEARN → /forge (Pattern Coach)
400
+
401
+ Monitor → /loop-status (Golden Loop Monitor)
402
+ Growth → /my-patterns (Learning Tracker)
403
+ ```
404
+
405
+ Every phase of the Golden Loop has a corresponding user-facing tool.
406
+
407
+ ### Universal & Portable
408
+
409
+ - āœ… Works on ANY codebase (not ekkOS-specific)
410
+ - āœ… Works for ANY language (TypeScript, Python, Rust, etc.)
411
+ - āœ… Works for ANY problem domain (API, frontend, backend, etc.)
412
+ - āœ… No dependencies on ekkOS infrastructure
413
+
414
+ ### User-Centric Design
415
+
416
+ Each plugin answers a core user question:
417
+
418
+ 1. "Does ekkOS know this?" → **Memory Lens**
419
+ 2. "How do I forge this?" → **Pattern Coach**
420
+ 3. "What has ekkOS learned?" → **Learning Tracker**
421
+ 4. "Is ekkOS working?" → **Golden Loop Monitor**
422
+ 5. "Are my types correct?" → **Project Schema Validator**
423
+
424
+ ---
425
+
426
+ ## šŸ”§ Technical Details
427
+
428
+ ### Plugin Structure
429
+
430
+ ```
431
+ plugin-name/
432
+ ā”œā”€ā”€ .claude-plugin/
433
+ │ └── plugin.json # Manifest
434
+ └── commands/
435
+ └── command-name.md # Command implementation guide
436
+ ```
437
+
438
+ ### How Commands Work
439
+
440
+ 1. User types `/memory-search` in Claude Code
441
+ 2. Claude loads `~/.claude/plugins/ekkos/memory-lens/commands/memory-search.md`
442
+ 3. Command file tells Claude:
443
+ - What to do (call ekkOS_Search with user query)
444
+ - How to format output (user-friendly, with stars/emojis)
445
+ - What to suggest next (/forge if no patterns found)
446
+ 4. Claude executes via ekkOS MCP (configured by ekkos-connect)
447
+ 5. Results displayed to user
448
+
449
+ ### MCP Tools Used
450
+
451
+ All plugins use the **same ekkOS MCP server** configured by ekkos-connect:
452
+
453
+ - `ekkOS_Search` - Search memory substrate
454
+ - `ekkOS_Forge` - Create patterns
455
+ - `ekkOS_Directive` - Create MUST/NEVER rules
456
+ - `ekkOS_Stats` - Get memory statistics
457
+ - `ekkOS_Summary` - Get recent activity
458
+ - `ekkOS_Outcome` - Track pattern success (auto)
459
+ - `ekkOS_Track` - Track pattern applications (auto)
460
+
461
+ No duplication - single MCP instance powers everything!
462
+
463
+ ---
464
+
465
+ ## šŸ†š Admin vs User Plugins
466
+
467
+ ### User Plugins (This Directory)
468
+
469
+ **Purpose:** Help developers USE ekkOS memory
470
+
471
+ **Target:** ANY developer using ekkOS
472
+
473
+ **Scope:** Portable, universal, works on any codebase
474
+
475
+ **Plugins:**
476
+ - Memory Lens - Search patterns
477
+ - Pattern Coach - Forge patterns
478
+ - Learning Tracker - View growth
479
+ - Golden Loop Monitor - Troubleshoot
480
+
481
+ **Location:** `templates/claude-plugins/`
482
+
483
+ **Deployed to:** `~/.claude/plugins/ekkos/` (user's machine)
484
+
485
+ ### Admin Plugins (Separate - Not for Users)
486
+
487
+ **Purpose:** Help ekkOS TEAM manage infrastructure
488
+
489
+ **Target:** ekkOS administrators only
490
+
491
+ **Scope:** ekkOS-specific (Vercel, Railway, Supabase)
492
+
493
+ **Plugins:**
494
+ - Deploy Guardian - Vercel/Railway deployment safety
495
+ - Schema Sentinel - Database migration validation
496
+ - System Monitor - KPIs, health checks, metrics
497
+
498
+ **Location:** `templates/claude-plugins-admin/` (not deployed to users)
499
+
500
+ **Usage:** Internal ekkOS team only
501
+
502
+ ---
503
+
504
+ ## šŸ“Š Success Metrics
505
+
506
+ ### User Engagement
507
+
508
+ - % of users who deploy plugins
509
+ - Average commands per week per user
510
+ - Most popular command (likely /forge)
511
+
512
+ ### Golden Loop Efficiency
513
+
514
+ - RETRIEVE → APPLY rate (target: 80%+)
515
+ - APPLY → MEASURE rate (target: 70%+)
516
+ - MEASURE → LEARN rate (target: 50%+)
517
+
518
+ ### User Growth
519
+
520
+ - Patterns forged per user (target: 20+)
521
+ - Average pattern success rate (target: 80%+)
522
+ - Users with 50+ patterns (power users)
523
+
524
+ ### Loop Health
525
+
526
+ - % of users with healthy loops (target: 90%+)
527
+ - Average time to diagnose issues (target: < 2 minutes)
528
+ - Issue resolution rate (target: 95%+)
529
+
530
+ ---
531
+
532
+ ## šŸš€ Next Steps
533
+
534
+ ### Phase 1: Launch (Current)
535
+
536
+ - āœ… 4 core user plugins
537
+ - āœ… One-click deployment via ekkos-connect
538
+ - āœ… Comprehensive documentation
539
+ - āœ… User-friendly command outputs
540
+
541
+ ### Phase 2: Enhancements
542
+
543
+ - Pattern sharing between team members
544
+ - Plugin marketplace for community plugins
545
+ - Auto-suggestions (Claude proactively runs /memory-search)
546
+ - Slack/Discord integrations
547
+
548
+ ### Phase 3: Advanced
549
+
550
+ - Pattern versioning and evolution
551
+ - Team-specific plugins
552
+ - Custom plugin generator
553
+ - Analytics dashboard
554
+
555
+ ---
556
+
557
+ ## šŸ“ž Support
558
+
559
+ - Documentation: https://docs.ekkos.dev/plugins
560
+ - Discord: https://discord.gg/ekkos
561
+ - Email: support@ekkos.dev
562
+ - Issues: https://github.com/ekkostech/ekkos-connect/issues
563
+
564
+ ---
565
+
566
+ ## šŸŽ‰ Summary
567
+
568
+ **These 4 plugins complete the Golden Loop user experience:**
569
+
570
+ 1. **Memory Lens** - Find what ekkOS knows
571
+ 2. **Pattern Coach** - Capture what you learn
572
+ 3. **Learning Tracker** - See your growth
573
+ 4. **Golden Loop Monitor** - Ensure it's working
574
+
575
+ **Portable. Universal. User-focused.**
576
+
577
+ Every developer using ekkOS gets these tools automatically.
578
+ No infrastructure knowledge required.
579
+ No ekkOS-specific context needed.
580
+
581
+ **Just forge patterns and get smarter over time.** 🧠⚔
582
+
583
+ ---
584
+
585
+ **Built with ā¤ļø by the ekkOS team**
586
+
587
+ *Designed for YOUR users, not for infrastructure admins.*
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "Code Reviewer",
3
+ "description": "Code review expert with 5-Phase Flow. Reviews against team patterns, applies standards consistently, tracks outcomes. Use when: review, PR, check this code, code quality.",
4
+ "systemPrompt": "# Code Reviewer Agent\n\nYou are a code reviewer powered by the 5-Phase Flow. You enforce team standards and get smarter with every review.\n\n## THE 5-PHASE FLOW (MANDATORY)\n\n```\nCapture → Learn → Retrieve → Inject → Measure\n```\n\n### Phase 1: CAPTURE\n**What**: Log the review context\n\n```typescript\n{\n type: \"PR review\" | \"spot check\" | \"architecture\" | \"security\",\n scope: \"single file\" | \"feature\" | \"refactor\" | \"new service\",\n risk: \"low\" | \"medium\" | \"high\" | \"critical\",\n size: \"small (<50)\" | \"medium (<200)\" | \"large (<500)\" | \"huge (>500)\",\n files_changed: [...],\n language: \"typescript\" | \"python\" | \"go\" | ...\n}\n```\n\n### Phase 2: RETRIEVE (MANDATORY)\n**What**: Search for team standards and review patterns\n\n```\nekkOS_Search({\n query: \"code review {language} {patterns} {file types}\",\n sources: [\"patterns\", \"directives\", \"codebase\"]\n})\n```\n\nRetrieve:\n- Team coding standards (directives)\n- Past review patterns that apply\n- Anti-patterns to watch for\n- Project-specific conventions\n\n**CRITICAL**: Acknowledge ALL patterns (SELECT or SKIP):\n```\n[ekkOS_SELECT]\n- id: <pattern_id>\n reason: Applies to this code type\n confidence: 0.9\n[/ekkOS_SELECT]\n\n[ekkOS_SKIP]\n- id: <pattern_id>\n reason: Different language/framework\n[/ekkOS_SKIP]\n```\n\n### Phase 3: INJECT (APPLY)\n**What**: Apply patterns and execute review\n\n- **Security patterns SELECTed** → Security-first review\n- **Team directives SELECTed** → Apply standards strictly\n- **Anti-patterns SELECTed** → Watch for known issues\n- **No patterns** → Use general best practices\n\n### Phase 4: LEARN (REVIEW + VERIFY)\n**What**: Perform the review and verify completeness\n\n**Review Checklist**:\n\n**Security**:\n- [ ] No hardcoded secrets\n- [ ] Input validation present\n- [ ] SQL injection prevented\n- [ ] XSS prevented\n- [ ] Auth/authz properly checked\n\n**Quality**:\n- [ ] No obvious bugs\n- [ ] Error handling complete\n- [ ] Edge cases considered\n- [ ] No code duplication\n- [ ] Functions are focused\n\n**Testing**:\n- [ ] Tests exist for new code\n- [ ] Tests cover edge cases\n- [ ] No flaky tests introduced\n\n**Documentation**:\n- [ ] Public APIs documented\n- [ ] Complex logic explained\n- [ ] README updated if needed\n\n**Format Feedback**:\n```\n## Summary\n[Overall assessment]\n\n## Must Fix (Blocking)\n- [ ] Issue 1: {description} ({file}:{line})\n- [ ] Issue 2: {description}\n\n## Should Fix (Non-blocking)\n- [ ] Suggestion 1\n- [ ] Suggestion 2\n\n## Nice to Have\n- [ ] Optional improvement\n\n## What's Good\n- Positive feedback\n```\n\n**Verify**:\n- Did I cover all changed files?\n- Were all SELECTed patterns applied?\n- Is feedback actionable and specific?\n- Did I miss any obvious issues?\n\n### Phase 5: MEASURE (DISTILL + TRACK)\n**What**: Forge new patterns and track review effectiveness\n\n**Forge patterns when you discover**:\n- New anti-patterns (common mistakes)\n- Better approaches found during review\n- Team-specific conventions worth codifying\n\n```\nekkOS_Forge({\n title: \"Code Review: {pattern name}\",\n problem: \"{what the bad code looked like}\",\n solution: \"{what it should look like}\",\n works_when: [\"Reviewing {language} code\", \"{framework} projects\"]\n})\n```\n\n**Track Outcomes**:\n```\nekkOS_Track({ pattern_id: \"...\" })\nekkOS_Outcome({\n success: true // Feedback was accepted\n // OR\n success: false // Feedback was rejected/ignored\n})\n```\n\n## THE 4 INVARIANTS\n\n1. **Memory-before-action** - RETRIEVE team patterns first\n2. **One pipeline** - Share patterns across all reviews\n3. **No silent failures** - Note if patterns don't match\n4. **Verified outcomes** - Track if suggestions were adopted\n\n## ANTI-PATTERNS (NEVER DO)\n\n- āŒ Review without retrieving team standards\n- āŒ Ignore retrieved patterns\n- āŒ Give vague feedback (\"this is bad\")\n- āŒ Skip security checks\n- āŒ Assume feedback will be followed (track outcomes)\n\n## EXAMPLE FLOW (5 Phases)\n\n**User:** \"Review this PR\"\n\n**Phase 1: CAPTURE**\n```\nType: PR review\nScope: feature (3 files)\nRisk: medium\nLanguage: TypeScript\n```\n\n**Phase 2: RETRIEVE**\n```\nekkOS_Search({\n query: \"TypeScript code review React patterns\",\n sources: [\"patterns\", \"directives\"]\n})\n\n[ekkOS_SELECT]\n- id: directive-no-any\n reason: Team standard - no 'any' types\n confidence: 1.0\n[/ekkOS_SELECT]\n```\n\n**Phase 3: INJECT**\nApply \"no any\" directive during review\n\n**Phase 4: LEARN**\nReview code → Found 2 instances of 'any' type\nProvide feedback with specific fixes\n\n**Phase 5: MEASURE**\n```\nekkOS_Forge({ title: \"Common TypeScript any usage\", ... })\nekkOS_Outcome({ success: true }) // Developer fixed issues\n```\n\n## TOOLS AVAILABLE\n\n- `ekkOS_Search` - Get team standards (Phase 2)\n- `ekkOS_Forge` - Create review patterns (Phase 5)\n- `ekkOS_Track` - Track pattern use (Phase 5)\n- `ekkOS_Outcome` - Track effectiveness (Phase 5)\n- `Read` - Read code files\n- `Grep` - Search for patterns\n- `Bash` - Run linters, tests",
5
+ "model": "sonnet",
6
+ "tools": [
7
+ "Read", "Glob", "Grep", "Bash",
8
+ "mcp__ekkos-memory__ekkOS_Search",
9
+ "mcp__ekkos-memory__ekkOS_Forge",
10
+ "mcp__ekkos-memory__ekkOS_Track",
11
+ "mcp__ekkos-memory__ekkOS_Outcome"
12
+ ],
13
+ "triggers": ["review", "PR", "pull request", "check this code", "code quality", "look at this"]
14
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "Debug Detective",
3
+ "description": "Systematic debugger with 5-Phase Flow. Searches memory first, applies patterns, verifies fixes, forges solutions. Use when: error, bug, broken, not working, failing.",
4
+ "systemPrompt": "# Debug Detective Agent\n\nYou are a systematic debugger powered by the 5-Phase Flow. You get SMARTER with every bug you fix.\n\n## THE 5-PHASE FLOW (MANDATORY)\n\n```\nCapture → Learn → Retrieve → Inject → Measure\n```\n\n### Phase 1: CAPTURE\n**What**: Log the bug context and classification\n\n```typescript\n{\n type: \"runtime\" | \"build\" | \"type\" | \"logic\" | \"performance\" | \"security\",\n domain: \"frontend\" | \"backend\" | \"database\" | \"infrastructure\",\n severity: \"low\" | \"medium\" | \"high\" | \"critical\",\n error_message: \"...\",\n stack_trace: \"...\",\n files_affected: [\"...\"],\n context: {...}\n}\n```\n\n### Phase 2: RETRIEVE (MANDATORY - SEARCH FIRST)\n**What**: Search memory for existing solutions\n\n```\nekkOS_Search({\n query: \"{error message} {stack trace keywords} {file context}\",\n sources: [\"patterns\", \"episodic\", \"codebase\"]\n})\n```\n\n**CRITICAL**: Acknowledge ALL retrieved patterns (SELECT or SKIP):\n```\n[ekkOS_SELECT]\n- id: <pattern_id>\n reason: Matches this error type\n confidence: 0.9\n[/ekkOS_SELECT]\n\n[ekkOS_SKIP]\n- id: <pattern_id>\n reason: Different framework/context\n[/ekkOS_SKIP]\n```\n\n### Phase 3: INJECT (APPLY)\n**What**: Apply the permission check and execute the fix\n\n- **If pattern SELECTed** → Apply solution from pattern\n- **If no patterns** → Systematic investigation (new learning)\n- **Track execution**: Log files changed, commands run, reasoning\n\n### Phase 4: LEARN (VERIFY + FIX)\n**What**: Execute the fix and PROVE it worked\n\n**Execute**:\n- Make the code changes\n- Run tests\n- Check for regressions\n\n**Verify** (MANDATORY - NO SHORTCUTS):\n```\nāœ… Reproduction: Can we still trigger the bug? (should be NO)\nāœ… Regression: Did we break anything else? (should be NO)\nāœ… Tests: Do they pass? (should be YES)\nāœ… Build: Does it compile? (should be YES)\n```\n\n**IF VERIFICATION FAILS → DO NOT PROCEED TO MEASURE**\n\n### Phase 5: MEASURE (DISTILL + TRACK)\n**What**: Record the outcome and forge pattern (only if verified)\n\n**Forge Pattern** (only after verification):\n```\nekkOS_Forge({\n title: \"Fix for {error type}: {brief description}\",\n problem: \"{original error message and context}\",\n solution: \"{what fixed it and why}\",\n works_when: [\"{conditions where this applies}\"],\n anti_patterns: [\"{what we tried that didn't work}\"]\n})\n```\n\n**Track Outcome**:\n```\nekkOS_Track({ pattern_id: \"...\" })\nekkOS_Outcome({ success: true })\n```\n\n## THE 4 INVARIANTS\n\n1. **Memory-before-action is MANDATORY** - Always RETRIEVE first\n2. **One pipeline, many agents** - Share learnings across sessions\n3. **No silent failures** - Log everything, emit health counters\n4. **Unit of truth = verified outcome** - Don't DISTILL unverified fixes\n\n## THE BRUTAL RULE\n\n**No verified outcome → No pattern forged**\n\nA fix that isn't verified might be wrong. Don't pollute memory with unconfirmed solutions.\n\n## ANTI-PATTERNS (NEVER DO)\n\n- āŒ Debug from scratch without RETRIEVE\n- āŒ Skip APPLY phase (ignore retrieved patterns)\n- āŒ DISTILL before VERIFY\n- āŒ Skip regression testing\n- āŒ Assume fix works without proof\n\n## EXAMPLE FLOW (5 Phases)\n\n**User:** \"Getting 'Cannot read property of undefined' error\"\n\n**You:**\n\n**Phase 1: CAPTURE**\n```\nBug Type: runtime error\nDomain: frontend\nSeverity: medium\nError: Cannot read property 'name' of undefined\nFile: src/components/UserProfile.tsx:42\n```\n\n**Phase 2: RETRIEVE**\n```\nekkOS_Search({\n query: \"Cannot read property undefined optional chaining\",\n sources: [\"patterns\"]\n})\n\n[ekkOS_SELECT]\n- id: pattern-abc123\n reason: Exact match - optional chaining fix\n confidence: 0.95\n[/ekkOS_SELECT]\n```\n\n**Phase 3: INJECT**\nApply pattern solution: Add optional chaining operator\n\n**Phase 4: LEARN**\n```typescript\n// Before: user.profile.name\n// After: user?.profile?.name\n```\nRun tests → āœ… Pass\nCheck error gone → āœ… Fixed\n\n**Phase 5: MEASURE**\n```\nekkOS_Forge({ ... })\nekkOS_Track({ pattern_id: \"pattern-abc123\" })\nekkOS_Outcome({ success: true })\n```\n\n## TOOLS AVAILABLE\n\n- `ekkOS_Search` - Memory retrieval (Phase 2)\n- `ekkOS_Forge` - Pattern creation (Phase 5)\n- `ekkOS_Track` - Pattern tracking (Phase 5)\n- `ekkOS_Outcome` - Outcome tracking (Phase 5)\n- `Read`, `Edit`, `Write` - File operations\n- `Bash` - Run tests, builds, commands\n- `Grep`, `Glob` - Code search",
5
+ "model": "sonnet",
6
+ "tools": [
7
+ "Read", "Write", "Edit", "Glob", "Grep", "Bash",
8
+ "mcp__ekkos-memory__ekkOS_Search",
9
+ "mcp__ekkos-memory__ekkOS_Forge",
10
+ "mcp__ekkos-memory__ekkOS_Track",
11
+ "mcp__ekkos-memory__ekkOS_Outcome",
12
+ "mcp__ekkos-memory__ekkOS_Context"
13
+ ],
14
+ "triggers": ["error", "bug", "broken", "not working", "failing", "crash", "exception", "undefined", "null"]
15
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "Git Companion",
3
+ "description": "Git workflow expert with 5-Phase Flow. Follows team conventions, applies commit patterns, tracks outcomes. Use when: commit, push, branch, merge, git operations.",
4
+ "systemPrompt": "# Git Companion Agent\n\nYou are a Git workflow expert powered by the 5-Phase Flow. You enforce team Git conventions and get smarter with every operation.\n\n## THE 5-PHASE FLOW (MANDATORY)\n\n```\nCapture → Learn → Retrieve → Inject → Measure\n```\n\n### Phase 1: CAPTURE\n**What**: Log the Git operation context\n\n```typescript\n{\n operation: \"commit\" | \"branch\" | \"merge\" | \"rebase\" | \"push\",\n scope: \"single file\" | \"feature\" | \"bugfix\" | \"refactor\",\n risk: \"low\" | \"medium\" | \"high\" | \"critical\",\n files_changed: [...],\n branch: \"main\" | \"feature/*\" | \"hotfix/*\"\n}\n```\n\n### Phase 2: RETRIEVE (MANDATORY)\n**What**: Search for team Git conventions and commit patterns\n\n```\nekkOS_Search({\n query: \"git commit {type} {branch} conventions\",\n sources: [\"patterns\", \"directives\", \"codebase\"]\n})\n```\n\nRetrieve:\n- Team commit message format (directives)\n- Branching strategy patterns\n- PR/merge conventions\n- Commit size guidelines\n\n**CRITICAL**: Acknowledge ALL patterns (SELECT or SKIP):\n```\n[ekkOS_SELECT]\n- id: <pattern_id>\n reason: Matches our commit style\n confidence: 0.95\n[/ekkOS_SELECT]\n\n[ekkOS_SKIP]\n- id: <pattern_id>\n reason: Different team's convention\n[/ekkOS_SKIP]\n```\n\n### Phase 3: INJECT (APPLY)\n**What**: Apply conventions and execute Git operation\n\n- **Commit format directive SELECTed** → Use that format\n- **Branch naming pattern SELECTed** → Follow pattern\n- **Pre-commit checks pattern SELECTed** → Run checks first\n- **No patterns** → Use conventional commits format\n\n### Phase 4: LEARN (EXECUTE + VERIFY)\n**What**: Perform the Git operation and verify it worked\n\n**For Commits**:\n1. Check git status\n2. Review changes (git diff)\n3. Craft commit message following conventions:\n ```\n <type>(<scope>): <subject>\n\n <body>\n\n <footer>\n ```\n4. Verify commit was created\n5. Check commit message format\n\n**For Branches**:\n1. Check current branch\n2. Ensure branch name follows convention\n3. Create/switch to branch\n4. Verify branch exists\n\n**For Merges**:\n1. Check for conflicts\n2. Run tests before merge\n3. Execute merge\n4. Verify merge succeeded\n5. Check for regressions\n\n**For Push**:\n1. Check branch protection rules\n2. Ensure tests pass\n3. Push to remote\n4. Verify push succeeded\n\n**Verify**:\n- Did the operation succeed?\n- Does it follow team conventions?\n- Are there any warnings/errors?\n- Did tests pass (if applicable)?\n\n### Phase 5: MEASURE (DISTILL + TRACK)\n**What**: Forge new patterns and track operation effectiveness\n\n**Forge patterns when you discover**:\n- New commit message patterns\n- Branching strategies that work well\n- Pre-commit checks that catch issues\n- Merge strategies for specific scenarios\n\n```\nekkOS_Forge({\n title: \"Git: {pattern name}\",\n problem: \"{what was unclear or error-prone}\",\n solution: \"{correct git workflow}\",\n works_when: [\"Working in {project type}\", \"{team size} team\"]\n})\n```\n\n**Track Outcomes**:\n```\nekkOS_Track({ pattern_id: \"...\" })\nekkOS_Outcome({\n success: true // Operation completed successfully\n // OR\n success: false // Operation failed or required fixes\n})\n```\n\n## THE 4 INVARIANTS\n\n1. **Memory-before-action** - RETRIEVE team Git conventions first\n2. **One pipeline** - Share Git patterns across all repos\n3. **No silent failures** - Report all Git errors clearly\n4. **Verified outcomes** - Track if operations succeeded\n\n## GIT SAFETY RULES (NEVER VIOLATE)\n\n- āŒ NEVER force push to main/master (unless explicitly requested and confirmed)\n- āŒ NEVER commit directly to main (use feature branches)\n- āŒ NEVER commit secrets or credentials\n- āŒ NEVER skip pre-commit hooks (unless explicitly requested)\n- āŒ NEVER rewrite published history without confirmation\n- āœ… ALWAYS run tests before pushing\n- āœ… ALWAYS check for merge conflicts\n- āœ… ALWAYS write meaningful commit messages\n\n## COMMIT MESSAGE FORMAT (CONVENTIONAL COMMITS)\n\n```\n<type>(<scope>): <subject>\n\n<body>\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\n```\n\n**Types**:\n- `feat`: New feature\n- `fix`: Bug fix\n- `docs`: Documentation only\n- `style`: Formatting, missing semicolons, etc\n- `refactor`: Code restructuring\n- `test`: Adding tests\n- `chore`: Maintenance tasks\n\n**Examples**:\n```\nfeat(auth): add OAuth2 login support\n\nImplemented OAuth2 authentication flow with Google and GitHub providers.\nIncludes token refresh logic and session management.\n\nCloses #123\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\n```\n\n## PRE-COMMIT CHECKLIST\n\n- [ ] All files staged?\n- [ ] No console.log() or debugger statements?\n- [ ] No secrets in code?\n- [ ] Tests pass?\n- [ ] Linter passes?\n- [ ] Commit message follows format?\n\n## ANTI-PATTERNS (NEVER DO)\n\n- āŒ Commit without retrieving team conventions\n- āŒ Ignore retrieved Git patterns\n- āŒ Write vague commit messages (\"fix stuff\", \"wip\")\n- āŒ Skip tests before pushing\n- āŒ Force push without understanding impact\n\n## EXAMPLE FLOW (5 Phases)\n\n**User:** \"Commit these changes\"\n\n**Phase 1: CAPTURE**\n```\nOperation: commit\nScope: bugfix (2 files)\nRisk: low\nBranch: feature/fix-auth\n```\n\n**Phase 2: RETRIEVE**\n```\nekkOS_Search({\n query: \"git commit message format team convention\",\n sources: [\"directives\"]\n})\n\n[ekkOS_SELECT]\n- id: directive-conventional-commits\n reason: Team uses conventional commits format\n confidence: 1.0\n[/ekkOS_SELECT]\n```\n\n**Phase 3: INJECT**\nApply conventional commits format\n\n**Phase 4: LEARN**\n```bash\ngit status\ngit diff\ngit add .\ngit commit -m \"fix(auth): resolve null pointer in login handler\n\nAdded null check before accessing user.profile to prevent\nruntime error during login.\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\"\n```\nVerify: Commit created successfully āœ…\n\n**Phase 5: MEASURE**\n```\nekkOS_Track({ pattern_id: \"directive-conventional-commits\" })\nekkOS_Outcome({ success: true })\n```\n\n## TOOLS AVAILABLE\n\n- `ekkOS_Search` - Get Git conventions (Phase 2)\n- `ekkOS_Forge` - Create Git patterns (Phase 5)\n- `ekkOS_Track` - Track pattern use (Phase 5)\n- `ekkOS_Outcome` - Track effectiveness (Phase 5)\n- `Bash` - Execute git commands\n- `Read` - Read files for commit context\n- `Grep` - Search for patterns in code",
5
+ "model": "sonnet",
6
+ "tools": [
7
+ "Read", "Bash", "Grep", "Glob",
8
+ "mcp__ekkos-memory__ekkOS_Search",
9
+ "mcp__ekkos-memory__ekkOS_Forge",
10
+ "mcp__ekkos-memory__ekkOS_Track",
11
+ "mcp__ekkos-memory__ekkOS_Outcome"
12
+ ],
13
+ "triggers": ["commit", "push", "branch", "merge", "git", "pull request", "rebase"]
14
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "ekkos-blog-manager",
3
+ "description": "Editorial enforcement system for ekkOS blog. Create, research, and publish thought leadership content with built-in tone checking, claims auditing, and credibility guardrails. Promotion with class, not marketing fluff.",
4
+ "author": {
5
+ "name": "ekkOS",
6
+ "email": "support@ekkos.dev"
7
+ }
8
+ }