@ekkos/cli 1.0.30 → 1.0.32
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/commands/init.js +15 -3
- package/dist/commands/run.js +10 -7
- package/dist/commands/setup.js +47 -0
- package/dist/deploy/skills.d.ts +8 -0
- package/dist/deploy/skills.js +26 -0
- package/dist/utils/platform.d.ts +1 -0
- package/dist/utils/platform.js +2 -1
- package/package.json +1 -1
- package/templates/ekkos-manifest.json +5 -5
- package/templates/hooks/assistant-response.ps1 +4 -4
- package/templates/hooks/session-start.ps1 +2 -2
- package/templates/hooks/stop.ps1 +167 -4
- package/templates/hooks/user-prompt-submit.ps1 +33 -8
- package/templates/windsurf-skills/README.md +58 -0
- package/templates/windsurf-skills/ekkos-continue/SKILL.md +81 -0
- package/templates/windsurf-skills/ekkos-golden-loop/SKILL.md +225 -0
- package/templates/windsurf-skills/ekkos-insights/SKILL.md +138 -0
- package/templates/windsurf-skills/ekkos-recall/SKILL.md +96 -0
- package/templates/windsurf-skills/ekkos-safety/SKILL.md +89 -0
- package/templates/windsurf-skills/ekkos-vault/SKILL.md +86 -0
- package/templates/windsurf-skills/ekkos-memory/SKILL.md +0 -219
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ekkos-vault
|
|
3
|
+
description: Securely store and retrieve credentials with AES-256-GCM encryption. Activate when the user shares an API key, password, token, secret, or any sensitive credential. Also activate when you need to use a stored credential or when the user asks about their stored secrets.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- mcp__ekkos-memory__ekkOS_StoreSecret
|
|
6
|
+
- mcp__ekkos-memory__ekkOS_GetSecret
|
|
7
|
+
- mcp__ekkos-memory__ekkOS_ListSecrets
|
|
8
|
+
- mcp__ekkos-memory__ekkOS_DeleteSecret
|
|
9
|
+
- mcp__ekkos-memory__ekkOS_RotateSecret
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# ekkOS Secrets Vault
|
|
13
|
+
|
|
14
|
+
Securely store and retrieve credentials encrypted with AES-256-GCM.
|
|
15
|
+
|
|
16
|
+
## When To Activate
|
|
17
|
+
|
|
18
|
+
| Trigger | Action |
|
|
19
|
+
|---------|--------|
|
|
20
|
+
| User shares API key, token, password | Store it |
|
|
21
|
+
| User asks "do you have my X key?" | Retrieve it |
|
|
22
|
+
| Need a credential for an API call | Retrieve it |
|
|
23
|
+
| User asks "what secrets do I have?" | List them |
|
|
24
|
+
| User wants to update a credential | Rotate it |
|
|
25
|
+
| User asks to remove a credential | Delete it |
|
|
26
|
+
|
|
27
|
+
## Instructions
|
|
28
|
+
|
|
29
|
+
### Store a Secret
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
ekkOS_StoreSecret({
|
|
33
|
+
service: "openai",
|
|
34
|
+
value: "sk-...",
|
|
35
|
+
type: "api_key",
|
|
36
|
+
description: "OpenAI API key for embeddings"
|
|
37
|
+
})
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**NEVER echo the secret value back to the user.** Confirm storage without revealing it.
|
|
41
|
+
|
|
42
|
+
### Retrieve a Secret
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
ekkOS_GetSecret({
|
|
46
|
+
service: "openai",
|
|
47
|
+
masked: false // true = shows first/last 4 chars only
|
|
48
|
+
})
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### List Secrets (Metadata Only)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
ekkOS_ListSecrets()
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Returns service names, types, and descriptions — never values.
|
|
58
|
+
|
|
59
|
+
### Rotate a Secret
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
ekkOS_RotateSecret({
|
|
63
|
+
service: "openai",
|
|
64
|
+
newValue: "sk-new-..."
|
|
65
|
+
})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Delete a Secret
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
ekkOS_DeleteSecret({
|
|
72
|
+
secretId: "<id from list>"
|
|
73
|
+
})
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Security Rules
|
|
77
|
+
|
|
78
|
+
1. **NEVER** display raw secret values in responses unless the user explicitly asks
|
|
79
|
+
2. **NEVER** log secret values
|
|
80
|
+
3. Use `masked: true` when you just need to confirm a secret exists
|
|
81
|
+
4. When storing, confirm success WITHOUT echoing the value
|
|
82
|
+
5. Secrets are encrypted at rest with AES-256-GCM — even ekkOS cannot read them without the user's key
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
**Mantra**: Secrets go in the vault. Never in the chat.
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: ekkOS Memory System
|
|
3
|
-
description: AI-native cognitive memory with 31 MCP tools for persistent learning and context continuity
|
|
4
|
-
trigger: always_on
|
|
5
|
-
author: ekkOS Technologies
|
|
6
|
-
tags: [memory, patterns, learning, context]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# ekkOS Memory System Skill
|
|
10
|
-
|
|
11
|
-
This skill enables Cascade to leverage the full ekkOS 11-layer cognitive memory system for persistent learning, pattern recognition, and context continuity across sessions.
|
|
12
|
-
|
|
13
|
-
## When to Use This Skill
|
|
14
|
-
|
|
15
|
-
**ALWAYS USE** for:
|
|
16
|
-
- Technical questions (before answering, search memory)
|
|
17
|
-
- Bug fixes (forge patterns after solving)
|
|
18
|
-
- Architecture decisions (check for existing patterns)
|
|
19
|
-
- Code reviews (retrieve relevant patterns)
|
|
20
|
-
- Refactoring (find proven approaches)
|
|
21
|
-
|
|
22
|
-
## Core Workflow
|
|
23
|
-
|
|
24
|
-
### 1. Search Before Answering (MANDATORY)
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
Before answering ANY technical question:
|
|
28
|
-
|
|
29
|
-
1. Call ekkOS_Search with the query
|
|
30
|
-
2. Review retrieved patterns
|
|
31
|
-
3. Acknowledge ALL patterns with [ekkOS_SELECT] or [ekkOS_SKIP]
|
|
32
|
-
4. THEN provide your answer
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 2. PatternGuard Acknowledgment
|
|
36
|
-
|
|
37
|
-
For every pattern retrieved, you MUST acknowledge it:
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
[ekkOS_SELECT]
|
|
41
|
-
- id: <pattern-uuid>
|
|
42
|
-
reason: Using this because...
|
|
43
|
-
confidence: 0.95
|
|
44
|
-
[/ekkOS_SELECT]
|
|
45
|
-
|
|
46
|
-
[ekkOS_SKIP]
|
|
47
|
-
- id: <pattern-uuid>
|
|
48
|
-
reason: Not relevant because...
|
|
49
|
-
[/ekkOS_SKIP]
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
**Coverage must be 100%** - every pattern ID must be acknowledged.
|
|
53
|
-
|
|
54
|
-
### 3. Forge What You Learn
|
|
55
|
-
|
|
56
|
-
After fixing bugs, solving problems, or discovering gotchas:
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
Call ekkOS_Forge with:
|
|
60
|
-
- Problem: What was broken
|
|
61
|
-
- Solution: How you fixed it
|
|
62
|
-
- Tags: [language, framework, error-type]
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## MCP Tools Reference
|
|
66
|
-
|
|
67
|
-
### Core Memory (8 tools)
|
|
68
|
-
|
|
69
|
-
| Tool | Purpose | When to Use |
|
|
70
|
-
|------|---------|-------------|
|
|
71
|
-
| `ekkOS_Search` | Search all 11 memory layers | **Before EVERY technical answer** |
|
|
72
|
-
| `ekkOS_Context` | Get relevant task context | When starting multi-step tasks |
|
|
73
|
-
| `ekkOS_Capture` | Capture memory events | Log significant actions |
|
|
74
|
-
| `ekkOS_Forge` | Create patterns from solutions | After fixing bugs/discoveries |
|
|
75
|
-
| `ekkOS_Directive` | Create MUST/NEVER/PREFER/AVOID rules | When user states preferences |
|
|
76
|
-
| `ekkOS_Outcome` | Track success/failure | After applying patterns |
|
|
77
|
-
| `ekkOS_Detect` | Auto-detect pattern usage | In responses |
|
|
78
|
-
| `ekkOS_Recall` | Recall past conversations | When user asks "what did we" |
|
|
79
|
-
|
|
80
|
-
### Schema Awareness (2 tools)
|
|
81
|
-
|
|
82
|
-
| Tool | Purpose | When to Use |
|
|
83
|
-
|------|---------|-------------|
|
|
84
|
-
| `ekkOS_IndexSchema` | Index database schemas | With Supabase/Prisma projects |
|
|
85
|
-
| `ekkOS_GetSchema` | Get specific table schema | When writing queries |
|
|
86
|
-
|
|
87
|
-
### Plan Management (9 tools)
|
|
88
|
-
|
|
89
|
-
| Tool | Purpose | When to Use |
|
|
90
|
-
|------|---------|-------------|
|
|
91
|
-
| `ekkOS_Plan` | Create structured plans | Multi-step features |
|
|
92
|
-
| `ekkOS_Generate` | AI-generate plans | Complex tasks |
|
|
93
|
-
| `ekkOS_PlanStatus` | Update plan status | Marking steps complete |
|
|
94
|
-
| `ekkOS_PlanStep` | Mark step done | Step completion |
|
|
95
|
-
| `ekkOS_SaveTemplate` | Save as template | Reusable workflows |
|
|
96
|
-
| `ekkOS_Templates` | List templates | Finding existing plans |
|
|
97
|
-
| `ekkOS_FromTemplate` | Create from template | Starting from template |
|
|
98
|
-
|
|
99
|
-
### Portability & Secrets (8 tools)
|
|
100
|
-
|
|
101
|
-
| Tool | Purpose | When to Use |
|
|
102
|
-
|------|---------|-------------|
|
|
103
|
-
| `ekkOS_Export` | Export as backup | Before major changes |
|
|
104
|
-
| `ekkOS_Import` | Import from backup | Restoring context |
|
|
105
|
-
| `ekkOS_StoreSecret` | Encrypt credentials | Storing API keys |
|
|
106
|
-
| `ekkOS_GetSecret` | Retrieve secrets | Using stored credentials |
|
|
107
|
-
| `ekkOS_ListSecrets` | List secret metadata | Checking what's stored |
|
|
108
|
-
| `ekkOS_RotateSecret` | Rotate secret values | Key rotation |
|
|
109
|
-
|
|
110
|
-
### System Health (4 tools)
|
|
111
|
-
|
|
112
|
-
| Tool | Purpose | When to Use |
|
|
113
|
-
|------|---------|-------------|
|
|
114
|
-
| `ekkOS_Stats` | Get layer statistics | Health checks |
|
|
115
|
-
| `ekkOS_Summary` | Get activity summary | Progress updates |
|
|
116
|
-
| `ekkOS_Conflict` | Check for conflicts | Before dangerous ops |
|
|
117
|
-
| `ekkOS_Reflect` | Analyze for improvements | Post-task review |
|
|
118
|
-
|
|
119
|
-
## 11-Layer Architecture
|
|
120
|
-
|
|
121
|
-
| Layer | Purpose | Example Content |
|
|
122
|
-
|-------|---------|-----------------|
|
|
123
|
-
| 1 | Working | Current session context |
|
|
124
|
-
| 2 | Episodic | Past conversation turns |
|
|
125
|
-
| 3 | Semantic | Embeddings/vectors |
|
|
126
|
-
| 4 | Patterns | Proven solutions |
|
|
127
|
-
| 5 | Procedural | Step-by-step guides |
|
|
128
|
-
| 6 | Collective | Community patterns |
|
|
129
|
-
| 7 | Meta | Pattern effectiveness |
|
|
130
|
-
| 8 | Codebase | Project code context |
|
|
131
|
-
| 9 | Directives | User rules (MUST/NEVER) |
|
|
132
|
-
| 10 | Conflict | Auto-resolution rules |
|
|
133
|
-
| 11 | Secrets | Encrypted credentials |
|
|
134
|
-
|
|
135
|
-
## Forge Triggers
|
|
136
|
-
|
|
137
|
-
**Always forge when you:**
|
|
138
|
-
- Fix a bug (create anti-pattern from the bug)
|
|
139
|
-
- Find a better approach (update existing pattern)
|
|
140
|
-
- Discover a gotcha (create warning pattern)
|
|
141
|
-
- Get corrected by user (learn from correction)
|
|
142
|
-
- Solve auth/config issues (create setup pattern)
|
|
143
|
-
- Make architecture decisions (document rationale)
|
|
144
|
-
- Debug non-trivially (capture the journey)
|
|
145
|
-
|
|
146
|
-
## Response Format
|
|
147
|
-
|
|
148
|
-
End EVERY response with:
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
🧠 **ekkOS_™** · 📅 YYYY-MM-DD H:MM AM/PM TZ
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Examples
|
|
155
|
-
|
|
156
|
-
### Example 1: Technical Question
|
|
157
|
-
|
|
158
|
-
User: "How do I fix CORS in Next.js?"
|
|
159
|
-
|
|
160
|
-
Your workflow:
|
|
161
|
-
1. Call `ekkOS_Search` with query: "Next.js CORS fix"
|
|
162
|
-
2. Review retrieved patterns
|
|
163
|
-
3. Acknowledge all patterns with SELECT/SKIP
|
|
164
|
-
4. Provide answer based on patterns + your knowledge
|
|
165
|
-
5. End with footer
|
|
166
|
-
|
|
167
|
-
### Example 2: Bug Fix
|
|
168
|
-
|
|
169
|
-
User: "The build is failing with this error..."
|
|
170
|
-
|
|
171
|
-
Your workflow:
|
|
172
|
-
1. Call `ekkOS_Search` with error message
|
|
173
|
-
2. Apply relevant patterns
|
|
174
|
-
3. Acknowledge with SELECT
|
|
175
|
-
4. Fix the bug
|
|
176
|
-
5. Call `ekkOS_Forge` with the solution
|
|
177
|
-
6. Call `ekkOS_Outcome` to track success
|
|
178
|
-
|
|
179
|
-
### Example 3: User Preference
|
|
180
|
-
|
|
181
|
-
User: "I always want TypeScript strict mode"
|
|
182
|
-
|
|
183
|
-
Your workflow:
|
|
184
|
-
1. Call `ekkOS_Directive`:
|
|
185
|
-
- type: PREFER
|
|
186
|
-
- rule: "Use TypeScript strict mode"
|
|
187
|
-
- scope: project
|
|
188
|
-
2. Acknowledge in future responses
|
|
189
|
-
|
|
190
|
-
## Best Practices
|
|
191
|
-
|
|
192
|
-
1. **Search first** - Never answer without searching
|
|
193
|
-
2. **Acknowledge all** - 100% PatternGuard coverage required
|
|
194
|
-
3. **Forge immediately** - Don't wait to capture learnings
|
|
195
|
-
4. **Track outcomes** - Success/failure feedback improves patterns
|
|
196
|
-
5. **Use directives** - Convert user preferences to rules
|
|
197
|
-
6. **Export regularly** - Backup before major changes
|
|
198
|
-
7. **End with footer** - Every response needs the ekkOS footer
|
|
199
|
-
|
|
200
|
-
## Troubleshooting
|
|
201
|
-
|
|
202
|
-
**"No patterns found"**
|
|
203
|
-
→ You're in new territory. Forge what you discover.
|
|
204
|
-
|
|
205
|
-
**"Pattern retrieval failed"**
|
|
206
|
-
→ Check auth: `~/.ekkos/config.json` should have hookApiKey
|
|
207
|
-
|
|
208
|
-
**"How do I continue from last session?"**
|
|
209
|
-
→ Ask: "recall our last conversation" or "where were we"
|
|
210
|
-
|
|
211
|
-
## Resources
|
|
212
|
-
|
|
213
|
-
- Website: https://ekkos.dev
|
|
214
|
-
- Docs: https://docs.ekkos.dev
|
|
215
|
-
- Support: support@ekkos.dev
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
🧠 **ekkOS_™** · Built for infinite context
|