@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.
- package/dist/cache/LocalSessionStore.d.ts +129 -0
- package/dist/cache/LocalSessionStore.js +688 -0
- package/dist/cache/capture.d.ts +26 -0
- package/dist/cache/capture.js +461 -0
- package/dist/cache/index.d.ts +7 -0
- package/dist/cache/index.js +23 -0
- package/dist/cache/types.d.ts +147 -0
- package/dist/cache/types.js +40 -0
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.js +478 -0
- package/dist/commands/run.d.ts +12 -0
- package/dist/commands/run.js +829 -0
- package/dist/commands/setup.d.ts +6 -0
- package/dist/commands/setup.js +658 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +109 -0
- package/dist/commands/test.d.ts +1 -0
- package/dist/commands/test.js +157 -0
- package/dist/deploy/agents.d.ts +15 -0
- package/dist/deploy/agents.js +72 -0
- package/dist/deploy/hooks.d.ts +16 -0
- package/dist/deploy/hooks.js +121 -0
- package/dist/deploy/index.d.ts +7 -0
- package/dist/deploy/index.js +24 -0
- package/dist/deploy/instructions.d.ts +12 -0
- package/dist/deploy/instructions.js +36 -0
- package/dist/deploy/mcp.d.ts +19 -0
- package/dist/deploy/mcp.js +109 -0
- package/dist/deploy/plugins.d.ts +19 -0
- package/dist/deploy/plugins.js +62 -0
- package/dist/deploy/settings.d.ts +8 -0
- package/dist/deploy/settings.js +84 -0
- package/dist/deploy/skills.d.ts +19 -0
- package/dist/deploy/skills.js +60 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +71 -0
- package/dist/restore/RestoreOrchestrator.d.ts +48 -0
- package/dist/restore/RestoreOrchestrator.js +481 -0
- package/dist/restore/index.d.ts +4 -0
- package/dist/restore/index.js +20 -0
- package/dist/utils/platform.d.ts +29 -0
- package/dist/utils/platform.js +65 -0
- package/dist/utils/session-words.json +119 -0
- package/dist/utils/state.d.ts +57 -0
- package/dist/utils/state.js +186 -0
- package/dist/utils/templates.d.ts +24 -0
- package/dist/utils/templates.js +118 -0
- package/package.json +48 -0
- package/templates/CLAUDE.md +287 -0
- package/templates/README.md +378 -0
- package/templates/agents/README.md +182 -0
- package/templates/agents/code-reviewer.md +166 -0
- package/templates/agents/debug-detective.md +169 -0
- package/templates/agents/ekkOS_Vercel.md +99 -0
- package/templates/agents/extension-manager.md +229 -0
- package/templates/agents/git-companion.md +185 -0
- package/templates/agents/github-test-agent.md +321 -0
- package/templates/agents/railway-manager.md +179 -0
- package/templates/claude-plugins/PHASE2_COMPLETION.md +346 -0
- package/templates/claude-plugins/PLUGIN_PROPOSALS.md +1776 -0
- package/templates/claude-plugins/README.md +587 -0
- package/templates/claude-plugins/agents/code-reviewer.json +14 -0
- package/templates/claude-plugins/agents/debug-detective.json +15 -0
- package/templates/claude-plugins/agents/git-companion.json +14 -0
- package/templates/claude-plugins/blog-manager/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/blog-manager/commands/blog.md +691 -0
- package/templates/claude-plugins/golden-loop-monitor/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/golden-loop-monitor/commands/loop-status.md +434 -0
- package/templates/claude-plugins/learning-tracker/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/learning-tracker/commands/my-patterns.md +282 -0
- package/templates/claude-plugins/memory-lens/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/memory-lens/commands/memory-search.md +181 -0
- package/templates/claude-plugins/pattern-coach/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/pattern-coach/commands/forge.md +365 -0
- package/templates/claude-plugins/project-schema-validator/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins/project-schema-validator/commands/validate-schema.md +582 -0
- package/templates/claude-plugins-admin/AGENT_TEAM_PROPOSALS.md +819 -0
- package/templates/claude-plugins-admin/README.md +446 -0
- package/templates/claude-plugins-admin/autonomous-admin-agent/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/autonomous-admin-agent/commands/agent.md +595 -0
- package/templates/claude-plugins-admin/backend-agent/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/backend-agent/commands/backend.md +798 -0
- package/templates/claude-plugins-admin/deploy-guardian/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/deploy-guardian/commands/deploy.md +554 -0
- package/templates/claude-plugins-admin/frontend-agent/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/frontend-agent/commands/frontend.md +881 -0
- package/templates/claude-plugins-admin/mcp-server-manager/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/mcp-server-manager/commands/mcp.md +85 -0
- package/templates/claude-plugins-admin/memory-system-monitor/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/memory-system-monitor/commands/memory-health.md +569 -0
- package/templates/claude-plugins-admin/qa-agent/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/qa-agent/commands/qa.md +863 -0
- package/templates/claude-plugins-admin/tech-lead-agent/.claude-plugin/plugin.json +8 -0
- package/templates/claude-plugins-admin/tech-lead-agent/commands/lead.md +732 -0
- package/templates/commands/continue.md +47 -0
- package/templates/cursor-hooks/after-agent-response.sh +117 -0
- package/templates/cursor-hooks/before-submit-prompt.sh +419 -0
- package/templates/cursor-hooks/hooks.json +20 -0
- package/templates/cursor-hooks/lib/contract.sh +320 -0
- package/templates/cursor-hooks/stop.sh +75 -0
- package/templates/cursor-rules/ekkos-memory.md +187 -0
- package/templates/hooks/assistant-response.sh +96 -0
- package/templates/hooks/hooks.json +28 -0
- package/templates/hooks/lib/contract.sh +320 -0
- package/templates/hooks/lib/state.sh +158 -0
- package/templates/hooks/session-start.ps1 +41 -0
- package/templates/hooks/session-start.sh +318 -0
- package/templates/hooks/stop.ps1 +16 -0
- package/templates/hooks/stop.sh +989 -0
- package/templates/hooks/user-prompt-submit.ps1 +174 -0
- package/templates/hooks/user-prompt-submit.sh +587 -0
- package/templates/hooks-node/lib/state.js +187 -0
- package/templates/hooks-node/stop.js +416 -0
- package/templates/hooks-node/user-prompt-submit.js +337 -0
- package/templates/plan-template.md +306 -0
- package/templates/rules/00-hooks-contract.mdc +89 -0
- package/templates/rules/30-ekkos-core.mdc +188 -0
- package/templates/rules/31-ekkos-messages.mdc +78 -0
- package/templates/skills/continue/SKILL.md +169 -0
- package/templates/skills/ekkOS_Deep_Recall/Skill.md +282 -0
- package/templates/skills/ekkOS_Learn/Skill.md +265 -0
- package/templates/skills/ekkOS_Memory_First/Skill.md +206 -0
- package/templates/skills/ekkOS_Plan_Assist/Skill.md +302 -0
- package/templates/skills/ekkOS_Preferences/Skill.md +247 -0
- package/templates/skills/ekkOS_Reflect/Skill.md +257 -0
- package/templates/skills/ekkOS_Safety/Skill.md +265 -0
- package/templates/skills/ekkOS_Schema/Skill.md +251 -0
- package/templates/skills/ekkOS_Summary/Skill.md +257 -0
- package/templates/skills/ekkOS_Vault/Skill.md +287 -0
- package/templates/skills/permissions/Skill.md +322 -0
- package/templates/spec-template.md +159 -0
- package/templates/windsurf-hooks/before-submit-prompt.sh +238 -0
- package/templates/windsurf-hooks/hooks.json +10 -0
- package/templates/windsurf-hooks/lib/contract.sh +320 -0
- package/templates/windsurf-rules/ekkos-memory.md +129 -0
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
# Tech Lead Agent
|
|
2
|
+
|
|
3
|
+
**ADMIN ONLY** - AI Tech Lead that orchestrates the dev team, creates implementation plans, assigns tasks to specialized agents, and manages the development lifecycle.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The Tech Lead Agent acts as your engineering manager and technical architect. It:
|
|
8
|
+
- Breaks down features into tasks
|
|
9
|
+
- Assigns work to specialized agents (Frontend, Backend, QA, etc.)
|
|
10
|
+
- Reviews code quality and architectural decisions
|
|
11
|
+
- Manages releases and coordinates deployments
|
|
12
|
+
- Tracks project progress and unblocks teams
|
|
13
|
+
|
|
14
|
+
## Commands
|
|
15
|
+
|
|
16
|
+
### `/lead plan`
|
|
17
|
+
|
|
18
|
+
Create a comprehensive implementation plan for a feature or project.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
/lead plan "Feature description"
|
|
22
|
+
|
|
23
|
+
# Examples
|
|
24
|
+
/lead plan "Add Teams feature with collaboration"
|
|
25
|
+
/lead plan "Implement real-time notifications system"
|
|
26
|
+
/lead plan "Refactor authentication to use OAuth 2.0"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**What happens:**
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
🎯 Tech Lead: Planning "Add Teams feature"
|
|
33
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
34
|
+
|
|
35
|
+
📊 Feature Analysis
|
|
36
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
37
|
+
|
|
38
|
+
Searching existing patterns...
|
|
39
|
+
✓ Found 3 similar features (pattern: team-collaboration-2024)
|
|
40
|
+
✓ Found 2 relevant schemas (users, organizations)
|
|
41
|
+
✓ Checked dependencies (Supabase RLS, Next.js 14)
|
|
42
|
+
|
|
43
|
+
Complexity: High (8/10)
|
|
44
|
+
Estimated: 5-7 days with full team
|
|
45
|
+
Risk Areas: RLS policies, real-time sync, billing integration
|
|
46
|
+
|
|
47
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
48
|
+
📋 Implementation Plan
|
|
49
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
50
|
+
|
|
51
|
+
Phase 1: Foundation (Backend + Data)
|
|
52
|
+
┌─────────────────────────────────────────────────┐
|
|
53
|
+
│ 1. Database Schema (Backend Agent) │
|
|
54
|
+
│ - Create teams table with RLS policies │
|
|
55
|
+
│ - Create team_members junction table │
|
|
56
|
+
│ - Create team_invitations table │
|
|
57
|
+
│ - Add indexes for performance │
|
|
58
|
+
│ Duration: 2 hours │
|
|
59
|
+
│ Command: /backend schema "Teams" │
|
|
60
|
+
└─────────────────────────────────────────────────┘
|
|
61
|
+
|
|
62
|
+
┌─────────────────────────────────────────────────┐
|
|
63
|
+
│ 2. API Endpoints (Backend Agent) │
|
|
64
|
+
│ - POST /api/teams (create team) │
|
|
65
|
+
│ - GET /api/teams (list user teams) │
|
|
66
|
+
│ - POST /api/teams/:id/invite (invite member) │
|
|
67
|
+
│ - PATCH /api/teams/:id (update team) │
|
|
68
|
+
│ Duration: 3 hours │
|
|
69
|
+
│ Command: /backend api "Teams CRUD" │
|
|
70
|
+
└─────────────────────────────────────────────────┘
|
|
71
|
+
|
|
72
|
+
Phase 2: Frontend (UI Components)
|
|
73
|
+
┌─────────────────────────────────────────────────┐
|
|
74
|
+
│ 3. Teams Dashboard (Frontend Agent) │
|
|
75
|
+
│ - Create app/teams/page.tsx │
|
|
76
|
+
│ - Team list with search/filter │
|
|
77
|
+
│ - Team creation modal │
|
|
78
|
+
│ Duration: 4 hours │
|
|
79
|
+
│ Command: /frontend build "Teams dashboard" │
|
|
80
|
+
└─────────────────────────────────────────────────┘
|
|
81
|
+
|
|
82
|
+
┌─────────────────────────────────────────────────┐
|
|
83
|
+
│ 4. Team Settings Page (Frontend Agent) │
|
|
84
|
+
│ - Member management UI │
|
|
85
|
+
│ - Invitation system │
|
|
86
|
+
│ - Role permissions UI │
|
|
87
|
+
│ Duration: 3 hours │
|
|
88
|
+
│ Command: /frontend build "Team settings" │
|
|
89
|
+
└─────────────────────────────────────────────────┘
|
|
90
|
+
|
|
91
|
+
Phase 3: Quality & Security
|
|
92
|
+
┌─────────────────────────────────────────────────┐
|
|
93
|
+
│ 5. Security Audit (Security Agent) │
|
|
94
|
+
│ - RLS policy verification │
|
|
95
|
+
│ - API authorization checks │
|
|
96
|
+
│ - Data isolation testing │
|
|
97
|
+
│ Duration: 2 hours │
|
|
98
|
+
│ Command: /security audit "Teams" │
|
|
99
|
+
└─────────────────────────────────────────────────┘
|
|
100
|
+
|
|
101
|
+
┌─────────────────────────────────────────────────┐
|
|
102
|
+
│ 6. Test Suite (QA Agent) │
|
|
103
|
+
│ - API endpoint tests (28 tests) │
|
|
104
|
+
│ - Integration tests (12 tests) │
|
|
105
|
+
│ - E2E workflow tests (5 scenarios) │
|
|
106
|
+
│ Duration: 3 hours │
|
|
107
|
+
│ Command: /qa write "Teams feature" │
|
|
108
|
+
└─────────────────────────────────────────────────┘
|
|
109
|
+
|
|
110
|
+
Phase 4: Documentation & Deployment
|
|
111
|
+
┌─────────────────────────────────────────────────┐
|
|
112
|
+
│ 7. Documentation (Docs Agent) │
|
|
113
|
+
│ - API reference documentation │
|
|
114
|
+
│ - User guide for Teams │
|
|
115
|
+
│ Duration: 2 hours │
|
|
116
|
+
│ Command: /docs api "Teams endpoints" │
|
|
117
|
+
└─────────────────────────────────────────────────┘
|
|
118
|
+
|
|
119
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
120
|
+
✅ Plan Created
|
|
121
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
122
|
+
|
|
123
|
+
Total Tasks: 7
|
|
124
|
+
Total Duration: ~19 hours (2.5 days with parallel work)
|
|
125
|
+
Agents Involved: Backend (2), Frontend (2), Security (1), QA (1), Docs (1)
|
|
126
|
+
|
|
127
|
+
Dependencies:
|
|
128
|
+
Task 2 depends on Task 1 (schema first)
|
|
129
|
+
Task 3-4 depend on Task 2 (API ready)
|
|
130
|
+
Task 5-6 can run in parallel after Task 4
|
|
131
|
+
Task 7 runs after Task 6
|
|
132
|
+
|
|
133
|
+
Critical Path: 1 → 2 → 3 → 4 → 6 → 7 (16 hours)
|
|
134
|
+
|
|
135
|
+
Next Steps:
|
|
136
|
+
1. Review plan: /lead review plan
|
|
137
|
+
2. Start execution: /lead assign all
|
|
138
|
+
3. Track progress: /lead status
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### `/lead assign`
|
|
142
|
+
|
|
143
|
+
Assign tasks from the plan to specialized agents.
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Assign all tasks automatically
|
|
147
|
+
/lead assign all
|
|
148
|
+
|
|
149
|
+
# Assign specific tasks
|
|
150
|
+
/lead assign task 1,2,3
|
|
151
|
+
|
|
152
|
+
# Assign to specific agent
|
|
153
|
+
/lead assign task 5 to security-agent
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**What happens:**
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
🎯 Tech Lead: Assigning Tasks
|
|
160
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
161
|
+
|
|
162
|
+
Starting parallel execution...
|
|
163
|
+
|
|
164
|
+
┌─ Backend Agent ──────────────────────────────────┐
|
|
165
|
+
│ 🚀 Task 1: Database Schema │
|
|
166
|
+
│ │
|
|
167
|
+
│ Status: ⏳ In Progress │
|
|
168
|
+
│ Running: /backend schema "Teams" │
|
|
169
|
+
│ │
|
|
170
|
+
│ Created: │
|
|
171
|
+
│ ✓ supabase/migrations/..._teams.sql │
|
|
172
|
+
│ ✓ Teams table with uuid, name, owner_id │
|
|
173
|
+
│ ✓ RLS policies (owner access, member access) │
|
|
174
|
+
│ ✓ Indexes on (owner_id, created_at) │
|
|
175
|
+
│ │
|
|
176
|
+
│ Duration: 1.5 hours │
|
|
177
|
+
│ Status: ✅ Complete │
|
|
178
|
+
└──────────────────────────────────────────────────┘
|
|
179
|
+
|
|
180
|
+
┌─ Backend Agent ──────────────────────────────────┐
|
|
181
|
+
│ 🚀 Task 2: API Endpoints │
|
|
182
|
+
│ │
|
|
183
|
+
│ Status: ⏳ In Progress (waiting on Task 1) │
|
|
184
|
+
│ Running: /backend api "Teams CRUD" │
|
|
185
|
+
│ │
|
|
186
|
+
│ Created: │
|
|
187
|
+
│ ✓ apps/web/app/api/teams/route.ts │
|
|
188
|
+
│ ✓ apps/web/app/api/teams/[id]/route.ts │
|
|
189
|
+
│ ✓ POST, GET, PATCH, DELETE handlers │
|
|
190
|
+
│ ✓ Zod validation schemas │
|
|
191
|
+
│ │
|
|
192
|
+
│ Duration: 2.5 hours │
|
|
193
|
+
│ Status: ✅ Complete │
|
|
194
|
+
└──────────────────────────────────────────────────┘
|
|
195
|
+
|
|
196
|
+
[Frontend Agent now starts Tasks 3-4...]
|
|
197
|
+
[Security Agent starts Task 5 in parallel...]
|
|
198
|
+
[QA Agent starts Task 6...]
|
|
199
|
+
[Docs Agent starts Task 7...]
|
|
200
|
+
|
|
201
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
202
|
+
📊 Execution Summary
|
|
203
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
204
|
+
|
|
205
|
+
Total Progress: 100% (7/7 tasks complete)
|
|
206
|
+
Total Duration: 14.5 hours (actual, with parallelization)
|
|
207
|
+
Estimated: 19 hours (saved 4.5 hours via parallel work)
|
|
208
|
+
|
|
209
|
+
Files Changed: 23 files
|
|
210
|
+
- 3 migrations
|
|
211
|
+
- 8 API routes
|
|
212
|
+
- 6 React components
|
|
213
|
+
- 4 test files
|
|
214
|
+
- 2 documentation pages
|
|
215
|
+
|
|
216
|
+
Tests: 45 tests, 100% passing
|
|
217
|
+
Coverage: 94% (meets threshold)
|
|
218
|
+
|
|
219
|
+
Next Steps:
|
|
220
|
+
1. Review changes: /lead review all
|
|
221
|
+
2. Deploy to staging: /lead deploy staging
|
|
222
|
+
3. Create release: /lead release
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### `/lead review`
|
|
226
|
+
|
|
227
|
+
Review completed work from agents.
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# Review all changes
|
|
231
|
+
/lead review all
|
|
232
|
+
|
|
233
|
+
# Review specific agent's work
|
|
234
|
+
/lead review frontend
|
|
235
|
+
|
|
236
|
+
# Review specific files
|
|
237
|
+
/lead review apps/web/app/teams/page.tsx
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**What happens:**
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
🎯 Tech Lead: Reviewing All Changes
|
|
244
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
245
|
+
|
|
246
|
+
📋 Code Quality Analysis
|
|
247
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
248
|
+
|
|
249
|
+
Backend Work (Backend Agent)
|
|
250
|
+
┌──────────────────────────────────────────────────┐
|
|
251
|
+
│ File: apps/web/app/api/teams/route.ts │
|
|
252
|
+
│ Quality: ⭐⭐⭐⭐⭐ Excellent │
|
|
253
|
+
│ │
|
|
254
|
+
│ ✅ Strengths: │
|
|
255
|
+
│ • Proper error handling with try/catch │
|
|
256
|
+
│ • Zod validation on all inputs │
|
|
257
|
+
│ • RLS policies enforced at DB level │
|
|
258
|
+
│ • Follows REST conventions │
|
|
259
|
+
│ • Good use of TypeScript types │
|
|
260
|
+
│ │
|
|
261
|
+
│ ⚠️ Improvements: │
|
|
262
|
+
│ • Add rate limiting (use Upstash) │
|
|
263
|
+
│ • Add request logging for audit │
|
|
264
|
+
│ │
|
|
265
|
+
│ Recommendation: Approve with minor changes │
|
|
266
|
+
└──────────────────────────────────────────────────┘
|
|
267
|
+
|
|
268
|
+
Frontend Work (Frontend Agent)
|
|
269
|
+
┌──────────────────────────────────────────────────┐
|
|
270
|
+
│ File: apps/web/app/teams/page.tsx │
|
|
271
|
+
│ Quality: ⭐⭐⭐⭐ Very Good │
|
|
272
|
+
│ │
|
|
273
|
+
│ ✅ Strengths: │
|
|
274
|
+
│ • Clean component structure │
|
|
275
|
+
│ • Proper error states │
|
|
276
|
+
│ • Loading states handled │
|
|
277
|
+
│ • Accessibility (ARIA labels) │
|
|
278
|
+
│ │
|
|
279
|
+
│ ⚠️ Issues: │
|
|
280
|
+
│ • Missing pagination (will fail at scale) │
|
|
281
|
+
│ • No optimistic updates on create │
|
|
282
|
+
│ • Search is client-side only │
|
|
283
|
+
│ │
|
|
284
|
+
│ Recommendation: Request changes │
|
|
285
|
+
└──────────────────────────────────────────────────┘
|
|
286
|
+
|
|
287
|
+
Security Audit (Security Agent)
|
|
288
|
+
┌──────────────────────────────────────────────────┐
|
|
289
|
+
│ Status: ✅ Passed with recommendations │
|
|
290
|
+
│ │
|
|
291
|
+
│ Findings: │
|
|
292
|
+
│ ✅ RLS policies correct │
|
|
293
|
+
│ ✅ No SQL injection vectors │
|
|
294
|
+
│ ✅ Input validation comprehensive │
|
|
295
|
+
│ ⚠️ Missing rate limiting (High Priority) │
|
|
296
|
+
│ ⚠️ No audit logging (Medium Priority) │
|
|
297
|
+
│ │
|
|
298
|
+
│ Recommendation: Fix rate limiting before deploy │
|
|
299
|
+
└──────────────────────────────────────────────────┘
|
|
300
|
+
|
|
301
|
+
Test Coverage (QA Agent)
|
|
302
|
+
┌──────────────────────────────────────────────────┐
|
|
303
|
+
│ Coverage: 94% (45/48 lines) │
|
|
304
|
+
│ Status: ✅ Meets threshold (90%) │
|
|
305
|
+
│ │
|
|
306
|
+
│ Test Results: │
|
|
307
|
+
│ ✅ API tests: 28/28 passing │
|
|
308
|
+
│ ✅ Integration tests: 12/12 passing │
|
|
309
|
+
│ ✅ E2E tests: 5/5 passing │
|
|
310
|
+
│ │
|
|
311
|
+
│ Untested: │
|
|
312
|
+
│ • Error recovery on network failure │
|
|
313
|
+
│ • Concurrent team creation race condition │
|
|
314
|
+
│ │
|
|
315
|
+
│ Recommendation: Add 2 more tests for edge cases │
|
|
316
|
+
└──────────────────────────────────────────────────┘
|
|
317
|
+
|
|
318
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
319
|
+
🎯 Review Summary
|
|
320
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
321
|
+
|
|
322
|
+
Overall Status: ⚠️ Needs Changes
|
|
323
|
+
|
|
324
|
+
Critical Issues: 1
|
|
325
|
+
🔴 Missing rate limiting (Backend)
|
|
326
|
+
|
|
327
|
+
High Priority: 2
|
|
328
|
+
🟡 Add pagination to frontend
|
|
329
|
+
🟡 Add optimistic updates
|
|
330
|
+
|
|
331
|
+
Medium Priority: 3
|
|
332
|
+
🟢 Add audit logging
|
|
333
|
+
🟢 Server-side search
|
|
334
|
+
🟢 Additional edge case tests
|
|
335
|
+
|
|
336
|
+
Blockers for Deploy: 1 (rate limiting)
|
|
337
|
+
|
|
338
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
339
|
+
📝 Action Items
|
|
340
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
341
|
+
|
|
342
|
+
Assigned to Backend Agent:
|
|
343
|
+
/backend fix "Add rate limiting to Teams API"
|
|
344
|
+
/backend fix "Add audit logging"
|
|
345
|
+
|
|
346
|
+
Assigned to Frontend Agent:
|
|
347
|
+
/frontend fix "Add pagination to Teams list"
|
|
348
|
+
/frontend fix "Add optimistic updates"
|
|
349
|
+
|
|
350
|
+
Assigned to QA Agent:
|
|
351
|
+
/qa write "Teams edge cases (network, race conditions)"
|
|
352
|
+
|
|
353
|
+
Next Review: /lead review all (after fixes)
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### `/lead release`
|
|
357
|
+
|
|
358
|
+
Plan and execute a release.
|
|
359
|
+
|
|
360
|
+
```bash
|
|
361
|
+
# Plan next release
|
|
362
|
+
/lead release plan
|
|
363
|
+
|
|
364
|
+
# Create release notes
|
|
365
|
+
/lead release notes
|
|
366
|
+
|
|
367
|
+
# Execute release
|
|
368
|
+
/lead release deploy production
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
**What happens:**
|
|
372
|
+
|
|
373
|
+
```
|
|
374
|
+
🎯 Tech Lead: Planning Release
|
|
375
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
376
|
+
|
|
377
|
+
Analyzing changes since last release (v1.4.2)...
|
|
378
|
+
|
|
379
|
+
📊 Release Scope
|
|
380
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
381
|
+
|
|
382
|
+
Version: v1.5.0 (Minor - New Features)
|
|
383
|
+
|
|
384
|
+
Features Added: 3
|
|
385
|
+
✨ Teams collaboration system
|
|
386
|
+
✨ Real-time notifications
|
|
387
|
+
✨ Advanced search with filters
|
|
388
|
+
|
|
389
|
+
Bug Fixes: 7
|
|
390
|
+
🐛 Fix auth token refresh race condition
|
|
391
|
+
🐛 Fix memory leak in pattern search
|
|
392
|
+
🐛 Fix RLS policy for shared patterns
|
|
393
|
+
... 4 more
|
|
394
|
+
|
|
395
|
+
Performance: 2 improvements
|
|
396
|
+
⚡ Optimize pattern search (+40% faster)
|
|
397
|
+
⚡ Reduce bundle size (-180 KB)
|
|
398
|
+
|
|
399
|
+
Breaking Changes: 0
|
|
400
|
+
|
|
401
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
402
|
+
📋 Pre-Release Checklist
|
|
403
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
404
|
+
|
|
405
|
+
✅ All tests passing (412/412)
|
|
406
|
+
✅ Coverage > 90% (94%)
|
|
407
|
+
✅ Security audit passed
|
|
408
|
+
✅ Documentation updated
|
|
409
|
+
✅ Migration scripts tested
|
|
410
|
+
✅ Rollback plan prepared
|
|
411
|
+
✅ Feature flags configured
|
|
412
|
+
⏳ Staging deployment (in progress)
|
|
413
|
+
|
|
414
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
415
|
+
🚀 Deployment Plan
|
|
416
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
417
|
+
|
|
418
|
+
Step 1: Deploy to Staging
|
|
419
|
+
Command: /deploy execute apps/web --env staging
|
|
420
|
+
Duration: 5 minutes
|
|
421
|
+
Status: ✅ Complete
|
|
422
|
+
|
|
423
|
+
Step 2: Run Smoke Tests
|
|
424
|
+
Command: /qa test --env staging --smoke
|
|
425
|
+
Duration: 3 minutes
|
|
426
|
+
Status: ✅ Complete (23/23 tests passed)
|
|
427
|
+
|
|
428
|
+
Step 3: Database Migrations
|
|
429
|
+
Command: supabase db push --env production
|
|
430
|
+
Duration: 30 seconds
|
|
431
|
+
Status: ⏳ Pending approval
|
|
432
|
+
|
|
433
|
+
Step 4: Deploy to Production (Canary)
|
|
434
|
+
Command: /deploy execute apps/web --env production --canary 10%
|
|
435
|
+
Duration: 5 minutes
|
|
436
|
+
Monitor: 15 minutes for errors
|
|
437
|
+
Status: ⏳ Waiting
|
|
438
|
+
|
|
439
|
+
Step 5: Full Rollout
|
|
440
|
+
Command: /deploy execute apps/web --env production --canary 100%
|
|
441
|
+
Duration: 5 minutes
|
|
442
|
+
Status: ⏳ Waiting
|
|
443
|
+
|
|
444
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
445
|
+
📝 Release Notes (Auto-Generated)
|
|
446
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
447
|
+
|
|
448
|
+
# ekkOS v1.5.0 - Teams & Collaboration
|
|
449
|
+
|
|
450
|
+
## 🎉 New Features
|
|
451
|
+
|
|
452
|
+
### Teams Collaboration System
|
|
453
|
+
Create teams, invite members, and collaborate on patterns together.
|
|
454
|
+
Perfect for organizations using ekkOS across multiple developers.
|
|
455
|
+
|
|
456
|
+
- Create unlimited teams
|
|
457
|
+
- Invite team members via email
|
|
458
|
+
- Share patterns within teams
|
|
459
|
+
- Role-based permissions (Owner, Admin, Member)
|
|
460
|
+
|
|
461
|
+
[Learn more](https://docs.ekkos.dev/teams)
|
|
462
|
+
|
|
463
|
+
### Real-Time Notifications
|
|
464
|
+
Get instant updates when patterns are forged, teams are created, or
|
|
465
|
+
invitations are received. Powered by Supabase Realtime.
|
|
466
|
+
|
|
467
|
+
### Advanced Search
|
|
468
|
+
Search your patterns with powerful filters:
|
|
469
|
+
- Filter by tags, date range, success rate
|
|
470
|
+
- Sort by relevance, recency, effectiveness
|
|
471
|
+
- Search within specific projects or teams
|
|
472
|
+
|
|
473
|
+
## 🐛 Bug Fixes
|
|
474
|
+
|
|
475
|
+
- Fixed auth token refresh race condition causing intermittent logouts
|
|
476
|
+
- Fixed memory leak in pattern search affecting long sessions
|
|
477
|
+
- Fixed RLS policy allowing unauthorized access to shared patterns
|
|
478
|
+
- ... 4 more
|
|
479
|
+
|
|
480
|
+
## ⚡ Performance Improvements
|
|
481
|
+
|
|
482
|
+
- Pattern search is now 40% faster (avg 120ms → 72ms)
|
|
483
|
+
- Reduced bundle size by 180 KB through code splitting
|
|
484
|
+
|
|
485
|
+
## 📚 Documentation
|
|
486
|
+
|
|
487
|
+
- Added Teams feature guide
|
|
488
|
+
- Updated API reference for Teams endpoints
|
|
489
|
+
- Added troubleshooting guide for common issues
|
|
490
|
+
|
|
491
|
+
## 🔄 Migration Guide
|
|
492
|
+
|
|
493
|
+
No breaking changes. Existing users can upgrade seamlessly.
|
|
494
|
+
|
|
495
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
496
|
+
✅ Ready to Deploy
|
|
497
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
498
|
+
|
|
499
|
+
Confirm production deployment?
|
|
500
|
+
• Yes: /lead release deploy production
|
|
501
|
+
• Review changes: /lead review all
|
|
502
|
+
• Cancel: /lead release cancel
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### `/lead status`
|
|
506
|
+
|
|
507
|
+
Check current project status and team health.
|
|
508
|
+
|
|
509
|
+
```bash
|
|
510
|
+
/lead status
|
|
511
|
+
|
|
512
|
+
# Detailed status
|
|
513
|
+
/lead status --detailed
|
|
514
|
+
|
|
515
|
+
# Specific agent status
|
|
516
|
+
/lead status frontend-agent
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
**What happens:**
|
|
520
|
+
|
|
521
|
+
```
|
|
522
|
+
🎯 Tech Lead: Project Status
|
|
523
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
524
|
+
|
|
525
|
+
📊 Current Sprint: Week 3 of 4
|
|
526
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
527
|
+
|
|
528
|
+
Progress: ████████████████░░░░ 78% complete
|
|
529
|
+
|
|
530
|
+
Active Tasks: 4
|
|
531
|
+
Completed: 23
|
|
532
|
+
Blocked: 1
|
|
533
|
+
Total: 28
|
|
534
|
+
|
|
535
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
536
|
+
👥 Team Status
|
|
537
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
538
|
+
|
|
539
|
+
Frontend Agent: 🟢 Active
|
|
540
|
+
Current: Building Teams settings page
|
|
541
|
+
Progress: 3/4 components complete
|
|
542
|
+
ETA: 2 hours
|
|
543
|
+
|
|
544
|
+
Backend Agent: 🟢 Active
|
|
545
|
+
Current: API rate limiting implementation
|
|
546
|
+
Progress: 85% complete
|
|
547
|
+
ETA: 1 hour
|
|
548
|
+
|
|
549
|
+
QA Agent: 🟡 Waiting
|
|
550
|
+
Blocked by: Backend rate limiting task
|
|
551
|
+
Next: Write edge case tests
|
|
552
|
+
ETA: 3 hours (after unblock)
|
|
553
|
+
|
|
554
|
+
Security Agent: 🟢 Active
|
|
555
|
+
Current: Audit Teams feature
|
|
556
|
+
Progress: 67% complete
|
|
557
|
+
ETA: 1.5 hours
|
|
558
|
+
|
|
559
|
+
Docs Agent: ⚪ Idle
|
|
560
|
+
Last task: API reference (completed 2h ago)
|
|
561
|
+
Next: Wait for Teams feature completion
|
|
562
|
+
|
|
563
|
+
DevOps Agent: 🟢 Active
|
|
564
|
+
Current: Monitoring production deployment
|
|
565
|
+
Status: All systems healthy
|
|
566
|
+
Alerts: 0
|
|
567
|
+
|
|
568
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
569
|
+
🚨 Blockers
|
|
570
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
571
|
+
|
|
572
|
+
1 critical blocker:
|
|
573
|
+
🔴 QA Agent blocked by Backend rate limiting
|
|
574
|
+
Owner: Backend Agent
|
|
575
|
+
ETA: 1 hour
|
|
576
|
+
|
|
577
|
+
Action: Monitor Backend progress, auto-unblock when ready
|
|
578
|
+
|
|
579
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
580
|
+
📈 Metrics (Last 7 Days)
|
|
581
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
582
|
+
|
|
583
|
+
Velocity: 23 tasks/week (↑ 15% from last week)
|
|
584
|
+
Code Quality: 4.6/5.0 (⭐⭐⭐⭐⭐)
|
|
585
|
+
Test Coverage: 94% (↑ 2%)
|
|
586
|
+
Production Incidents: 0 (🎉 Perfect week!)
|
|
587
|
+
Deploy Frequency: 14 deploys (2/day average)
|
|
588
|
+
|
|
589
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
590
|
+
🎯 Next Milestones
|
|
591
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
592
|
+
|
|
593
|
+
✅ Teams Feature Complete: 78% (ETA: 6 hours)
|
|
594
|
+
⏳ Release v1.5.0: Pending Teams completion
|
|
595
|
+
⏳ Start Notifications Feature: After release
|
|
596
|
+
|
|
597
|
+
Actions:
|
|
598
|
+
• Monitor blockers: /lead status --watch
|
|
599
|
+
• Review progress: /lead review all
|
|
600
|
+
• Help unblock: /lead assist qa-agent
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
## MCP Tools Used
|
|
604
|
+
|
|
605
|
+
The Tech Lead Agent orchestrates all other agents, using:
|
|
606
|
+
|
|
607
|
+
- `ekkOS_Plan` - Create structured implementation plans
|
|
608
|
+
- `ekkOS_Plans` - Track active plans and progress
|
|
609
|
+
- `ekkOS_PlanStatus` - Update plan state
|
|
610
|
+
- `ekkOS_PlanStep` - Mark steps complete
|
|
611
|
+
- `ekkOS_Generate` - AI-generate plans from context
|
|
612
|
+
- `ekkOS_Search` - Find similar past implementations
|
|
613
|
+
- `ekkOS_Context` - Get relevant patterns for tasks
|
|
614
|
+
- `ekkOS_Codebase` - Analyze project structure
|
|
615
|
+
- `ekkOS_Stats` - Team and project metrics
|
|
616
|
+
- `ekkOS_Summary` - Recent activity across agents
|
|
617
|
+
- `ekkOS_Recall` - Past architectural decisions
|
|
618
|
+
- `ekkOS_Conflict` - Check for conflicts before changes
|
|
619
|
+
- `Bash` - Execute git, deployment commands
|
|
620
|
+
- All specialized agent plugins (Deploy Guardian, Memory Monitor, etc.)
|
|
621
|
+
|
|
622
|
+
## Integration with Other Agents
|
|
623
|
+
|
|
624
|
+
The Tech Lead coordinates all specialized agents:
|
|
625
|
+
|
|
626
|
+
```typescript
|
|
627
|
+
// Example: Tech Lead assigns tasks
|
|
628
|
+
async function assignTasks(plan: Plan) {
|
|
629
|
+
const tasks = plan.steps;
|
|
630
|
+
|
|
631
|
+
// Parallel execution where possible
|
|
632
|
+
const backendTasks = tasks.filter(t => t.type === 'backend');
|
|
633
|
+
const frontendTasks = tasks.filter(t => t.type === 'frontend');
|
|
634
|
+
|
|
635
|
+
await Promise.all([
|
|
636
|
+
executeAgent('backend-agent', backendTasks),
|
|
637
|
+
executeAgent('frontend-agent', frontendTasks)
|
|
638
|
+
]);
|
|
639
|
+
|
|
640
|
+
// Sequential for dependent tasks
|
|
641
|
+
const securityTask = tasks.find(t => t.type === 'security');
|
|
642
|
+
await executeAgent('security-agent', [securityTask]);
|
|
643
|
+
|
|
644
|
+
const qaTasks = tasks.filter(t => t.type === 'qa');
|
|
645
|
+
await executeAgent('qa-agent', qaTasks);
|
|
646
|
+
}
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
## Best Practices
|
|
650
|
+
|
|
651
|
+
### Let Tech Lead Manage Complexity
|
|
652
|
+
|
|
653
|
+
**Before Tech Lead:**
|
|
654
|
+
```bash
|
|
655
|
+
# You manually coordinate:
|
|
656
|
+
cd apps/web && npm run build
|
|
657
|
+
cd ../memory && vercel deploy
|
|
658
|
+
# ... 10+ more commands across agents
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
**With Tech Lead:**
|
|
662
|
+
```bash
|
|
663
|
+
# Tech Lead orchestrates everything:
|
|
664
|
+
/lead plan "Add Teams feature"
|
|
665
|
+
/lead assign all
|
|
666
|
+
/lead review all
|
|
667
|
+
/lead release deploy production
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
### Trust the Review Process
|
|
671
|
+
|
|
672
|
+
The Tech Lead reviews ALL code before deployment:
|
|
673
|
+
- Code quality analysis
|
|
674
|
+
- Security audit results
|
|
675
|
+
- Test coverage verification
|
|
676
|
+
- Architectural consistency
|
|
677
|
+
- Performance implications
|
|
678
|
+
|
|
679
|
+
### Use for Major Features
|
|
680
|
+
|
|
681
|
+
Tech Lead is perfect for:
|
|
682
|
+
- Multi-component features
|
|
683
|
+
- Cross-team coordination
|
|
684
|
+
- Release management
|
|
685
|
+
- Architecture decisions
|
|
686
|
+
|
|
687
|
+
Not needed for:
|
|
688
|
+
- Small bug fixes (use agent directly)
|
|
689
|
+
- Single-file changes
|
|
690
|
+
- Documentation updates
|
|
691
|
+
|
|
692
|
+
## Troubleshooting
|
|
693
|
+
|
|
694
|
+
### Agent Not Responding
|
|
695
|
+
|
|
696
|
+
**Problem:** Agent assigned but not starting work
|
|
697
|
+
**Check:** Agent health with `/lead status frontend-agent`
|
|
698
|
+
**Fix:** Restart agent or reassign task
|
|
699
|
+
|
|
700
|
+
### Blocked Tasks
|
|
701
|
+
|
|
702
|
+
**Problem:** Task waiting on dependency
|
|
703
|
+
**Check:** `/lead status` shows blockers
|
|
704
|
+
**Fix:** Prioritize blocking task or remove dependency
|
|
705
|
+
|
|
706
|
+
### Poor Code Quality
|
|
707
|
+
|
|
708
|
+
**Problem:** Review shows consistent issues
|
|
709
|
+
**Check:** `/lead review` for patterns
|
|
710
|
+
**Fix:** Update agent prompts or add constraints
|
|
711
|
+
|
|
712
|
+
---
|
|
713
|
+
|
|
714
|
+
## Summary
|
|
715
|
+
|
|
716
|
+
The Tech Lead Agent is your AI engineering manager that:
|
|
717
|
+
|
|
718
|
+
✅ **Plans** - Breaks down features into coordinated tasks
|
|
719
|
+
✅ **Assigns** - Distributes work to specialized agents
|
|
720
|
+
✅ **Reviews** - Ensures code quality and security
|
|
721
|
+
✅ **Releases** - Manages deployments safely
|
|
722
|
+
✅ **Coordinates** - Unblocks teams and tracks progress
|
|
723
|
+
|
|
724
|
+
**Let AI manage your dev team.**
|
|
725
|
+
|
|
726
|
+
```bash
|
|
727
|
+
/lead plan "Your feature here"
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
---
|
|
731
|
+
|
|
732
|
+
**Build faster. Ship smarter. Sleep better.** 🎯
|