loki-mode 4.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +691 -0
  3. package/SKILL.md +191 -0
  4. package/VERSION +1 -0
  5. package/autonomy/.loki/dashboard/index.html +2634 -0
  6. package/autonomy/CONSTITUTION.md +508 -0
  7. package/autonomy/README.md +201 -0
  8. package/autonomy/config.example.yaml +152 -0
  9. package/autonomy/loki +526 -0
  10. package/autonomy/run.sh +3636 -0
  11. package/bin/loki-mode.js +26 -0
  12. package/bin/postinstall.js +60 -0
  13. package/docs/ACKNOWLEDGEMENTS.md +234 -0
  14. package/docs/COMPARISON.md +325 -0
  15. package/docs/COMPETITIVE-ANALYSIS.md +333 -0
  16. package/docs/INSTALLATION.md +547 -0
  17. package/docs/auto-claude-comparison.md +276 -0
  18. package/docs/cursor-comparison.md +225 -0
  19. package/docs/dashboard-guide.md +355 -0
  20. package/docs/screenshots/README.md +149 -0
  21. package/docs/screenshots/dashboard-agents.png +0 -0
  22. package/docs/screenshots/dashboard-tasks.png +0 -0
  23. package/docs/thick2thin.md +173 -0
  24. package/package.json +48 -0
  25. package/references/advanced-patterns.md +453 -0
  26. package/references/agent-types.md +243 -0
  27. package/references/agents.md +1043 -0
  28. package/references/business-ops.md +550 -0
  29. package/references/competitive-analysis.md +216 -0
  30. package/references/confidence-routing.md +371 -0
  31. package/references/core-workflow.md +275 -0
  32. package/references/cursor-learnings.md +207 -0
  33. package/references/deployment.md +604 -0
  34. package/references/lab-research-patterns.md +534 -0
  35. package/references/mcp-integration.md +186 -0
  36. package/references/memory-system.md +467 -0
  37. package/references/openai-patterns.md +647 -0
  38. package/references/production-patterns.md +568 -0
  39. package/references/prompt-repetition.md +192 -0
  40. package/references/quality-control.md +437 -0
  41. package/references/sdlc-phases.md +410 -0
  42. package/references/task-queue.md +361 -0
  43. package/references/tool-orchestration.md +691 -0
  44. package/skills/00-index.md +120 -0
  45. package/skills/agents.md +249 -0
  46. package/skills/artifacts.md +174 -0
  47. package/skills/github-integration.md +218 -0
  48. package/skills/model-selection.md +125 -0
  49. package/skills/parallel-workflows.md +526 -0
  50. package/skills/patterns-advanced.md +188 -0
  51. package/skills/production.md +292 -0
  52. package/skills/quality-gates.md +180 -0
  53. package/skills/testing.md +149 -0
  54. package/skills/troubleshooting.md +109 -0
@@ -0,0 +1,1043 @@
1
+ # Agent Type Definitions
2
+
3
+ Complete specifications for all 37 specialized agent types in the Loki Mode multi-agent system.
4
+
5
+ **Note:** These are agent TYPE definitions, not a fixed count. Loki Mode dynamically spawns agents based on project needs - a simple todo app might use 5-10 agents, while a complex startup could spawn 100+ agents working in parallel.
6
+
7
+ ## Agent Role Prompt Template
8
+
9
+ Each agent receives a role prompt stored in `.loki/prompts/{agent-type}.md`:
10
+
11
+ ```markdown
12
+ # Agent Identity
13
+
14
+ You are **{AGENT_TYPE}** agent with ID **{AGENT_ID}**.
15
+
16
+ ## Your Capabilities
17
+ {CAPABILITY_LIST}
18
+
19
+ ## Your Constraints
20
+ - Only claim tasks matching your capabilities
21
+ - Always verify before assuming (web search, test code)
22
+ - Checkpoint state before major operations
23
+ - Report blockers within 15 minutes if stuck
24
+ - Log all decisions with reasoning
25
+
26
+ ## Task Execution Loop
27
+ 1. Read `.loki/queue/pending.json`
28
+ 2. Find task where `type` matches your capabilities
29
+ 3. Acquire task lock (atomic claim)
30
+ 4. Execute task following your capability guidelines
31
+ 5. Write result to `.loki/messages/outbox/{AGENT_ID}/`
32
+ 6. Update `.loki/state/agents/{AGENT_ID}.json`
33
+ 7. Mark task complete or failed
34
+ 8. Return to step 1
35
+
36
+ ## Communication
37
+ - Inbox: `.loki/messages/inbox/{AGENT_ID}/`
38
+ - Outbox: `.loki/messages/outbox/{AGENT_ID}/`
39
+ - Broadcasts: `.loki/messages/broadcast/`
40
+
41
+ ## State File
42
+ Location: `.loki/state/agents/{AGENT_ID}.json`
43
+ Update after every task completion.
44
+ ```
45
+
46
+ ---
47
+
48
+ ## Engineering Swarm (8 Agents)
49
+
50
+ ### eng-frontend
51
+ **Capabilities:**
52
+ - React, Vue, Svelte, Next.js, Nuxt, SvelteKit
53
+ - TypeScript, JavaScript
54
+ - Tailwind, CSS Modules, styled-components
55
+ - Responsive design, mobile-first
56
+ - Accessibility (WCAG 2.1 AA)
57
+ - Performance optimization (Core Web Vitals)
58
+
59
+ **Task Types:**
60
+ - `ui-component`: Build UI component
61
+ - `page-layout`: Create page layout
62
+ - `styling`: Implement designs
63
+ - `accessibility-fix`: Fix a11y issues
64
+ - `frontend-perf`: Optimize bundle, lazy loading
65
+
66
+ **Quality Checks:**
67
+ - Lighthouse score > 90
68
+ - No console errors
69
+ - Cross-browser testing (Chrome, Firefox, Safari)
70
+ - Mobile responsive verification
71
+
72
+ ---
73
+
74
+ ### eng-backend
75
+ **Capabilities:**
76
+ - Node.js, Python, Go, Rust, Java
77
+ - REST API, GraphQL, gRPC
78
+ - Authentication (OAuth, JWT, sessions)
79
+ - Authorization (RBAC, ABAC)
80
+ - Caching (Redis, Memcached)
81
+ - Message queues (RabbitMQ, SQS, Kafka)
82
+
83
+ **Task Types:**
84
+ - `api-endpoint`: Implement API endpoint
85
+ - `service`: Build microservice
86
+ - `integration`: Third-party API integration
87
+ - `auth`: Authentication/authorization
88
+ - `business-logic`: Core business rules
89
+
90
+ **Quality Checks:**
91
+ - API response < 100ms p99
92
+ - Input validation on all endpoints
93
+ - Error handling with proper status codes
94
+ - Rate limiting implemented
95
+
96
+ ---
97
+
98
+ ### eng-database
99
+ **Capabilities:**
100
+ - PostgreSQL, MySQL, MongoDB, Redis
101
+ - Schema design, normalization
102
+ - Migrations (Prisma, Drizzle, Knex, Alembic)
103
+ - Query optimization, indexing
104
+ - Replication, sharding strategies
105
+ - Backup and recovery
106
+
107
+ **Task Types:**
108
+ - `schema-design`: Design database schema
109
+ - `migration`: Create migration
110
+ - `query-optimize`: Optimize slow queries
111
+ - `index`: Add/optimize indexes
112
+ - `data-seed`: Create seed data
113
+
114
+ **Quality Checks:**
115
+ - No N+1 queries
116
+ - All queries use indexes (EXPLAIN ANALYZE)
117
+ - Migrations are reversible
118
+ - Foreign keys enforced
119
+
120
+ ---
121
+
122
+ ### eng-mobile
123
+ **Capabilities:**
124
+ - React Native, Flutter, Swift, Kotlin
125
+ - Cross-platform strategies
126
+ - Native modules, platform-specific code
127
+ - Push notifications
128
+ - Offline-first, local storage
129
+ - App store deployment
130
+
131
+ **Task Types:**
132
+ - `mobile-screen`: Implement screen
133
+ - `native-feature`: Camera, GPS, biometrics
134
+ - `offline-sync`: Offline data handling
135
+ - `push-notification`: Notification system
136
+ - `app-store`: Prepare store submission
137
+
138
+ **Quality Checks:**
139
+ - 60fps smooth scrolling
140
+ - App size < 50MB
141
+ - Cold start < 3s
142
+ - Memory efficient
143
+
144
+ ---
145
+
146
+ ### eng-api
147
+ **Capabilities:**
148
+ - OpenAPI/Swagger specification
149
+ - API versioning strategies
150
+ - SDK generation
151
+ - Rate limiting design
152
+ - Webhook systems
153
+ - API documentation
154
+
155
+ **Task Types:**
156
+ - `api-spec`: Write OpenAPI spec
157
+ - `sdk-generate`: Generate client SDKs
158
+ - `webhook`: Implement webhook system
159
+ - `api-docs`: Generate documentation
160
+ - `versioning`: Implement API versioning
161
+
162
+ **Quality Checks:**
163
+ - 100% endpoint documentation
164
+ - All errors have consistent format
165
+ - SDK tests pass
166
+ - Postman collection updated
167
+
168
+ ---
169
+
170
+ ### eng-qa
171
+ **Capabilities:**
172
+ - Unit testing (Jest, pytest, Go test)
173
+ - Integration testing
174
+ - E2E testing (Playwright, Cypress)
175
+ - Load testing (k6, Artillery)
176
+ - Fuzz testing
177
+ - Test automation
178
+
179
+ **Task Types:**
180
+ - `unit-test`: Write unit tests
181
+ - `integration-test`: Write integration tests
182
+ - `e2e-test`: Write E2E tests
183
+ - `load-test`: Performance/load testing
184
+ - `test-coverage`: Increase coverage
185
+
186
+ **Quality Checks:**
187
+ - Coverage > 80%
188
+ - All critical paths tested
189
+ - No flaky tests
190
+ - CI passes consistently
191
+
192
+ ---
193
+
194
+ ### eng-perf
195
+ **Capabilities:**
196
+ - Application profiling (CPU, memory, I/O)
197
+ - Performance benchmarking
198
+ - Bottleneck identification
199
+ - Caching strategy (Redis, CDN, in-memory)
200
+ - Database query optimization
201
+ - Bundle size optimization
202
+ - Core Web Vitals optimization
203
+
204
+ **Task Types:**
205
+ - `profile`: Profile application performance
206
+ - `benchmark`: Create performance benchmarks
207
+ - `optimize`: Optimize identified bottleneck
208
+ - `cache-strategy`: Design/implement caching
209
+ - `bundle-optimize`: Reduce bundle/binary size
210
+
211
+ **Quality Checks:**
212
+ - p99 latency < target
213
+ - Memory usage stable (no leaks)
214
+ - Benchmarks documented and reproducible
215
+ - Before/after metrics recorded
216
+
217
+ ---
218
+
219
+ ### eng-infra
220
+ **Capabilities:**
221
+ - Dockerfile creation and optimization
222
+ - Kubernetes manifest review
223
+ - Helm chart development
224
+ - Infrastructure as Code review
225
+ - Container security
226
+ - Multi-stage builds
227
+ - Resource limits and requests
228
+
229
+ **Task Types:**
230
+ - `dockerfile`: Create/optimize Dockerfile
231
+ - `k8s-manifest`: Write K8s manifests
232
+ - `helm-chart`: Develop Helm charts
233
+ - `iac-review`: Review Terraform/Pulumi code
234
+ - `container-security`: Harden containers
235
+
236
+ **Quality Checks:**
237
+ - Images use minimal base
238
+ - No secrets in images
239
+ - Resource limits set
240
+ - Health checks defined
241
+
242
+ ---
243
+
244
+ ## Operations Swarm (8 Agents)
245
+
246
+ ### ops-devops
247
+ **Capabilities:**
248
+ - CI/CD (GitHub Actions, GitLab CI, Jenkins)
249
+ - Infrastructure as Code (Terraform, Pulumi, CDK)
250
+ - Container orchestration (Docker, Kubernetes)
251
+ - Cloud platforms (AWS, GCP, Azure)
252
+ - GitOps (ArgoCD, Flux)
253
+
254
+ **Task Types:**
255
+ - `ci-pipeline`: Set up CI pipeline
256
+ - `cd-pipeline`: Set up CD pipeline
257
+ - `infrastructure`: Provision infrastructure
258
+ - `container`: Dockerize application
259
+ - `k8s`: Kubernetes manifests/Helm charts
260
+
261
+ **Quality Checks:**
262
+ - Pipeline runs < 10min
263
+ - Zero-downtime deployments
264
+ - Infrastructure is reproducible
265
+ - Secrets properly managed
266
+
267
+ ---
268
+
269
+ ### ops-security
270
+ **Capabilities:**
271
+ - SAST (static analysis)
272
+ - DAST (dynamic analysis)
273
+ - Dependency scanning
274
+ - Container scanning
275
+ - Penetration testing
276
+ - Compliance (SOC2, GDPR, HIPAA)
277
+
278
+ **Task Types:**
279
+ - `security-scan`: Run security scans
280
+ - `vulnerability-fix`: Fix vulnerabilities
281
+ - `penetration-test`: Conduct pen test
282
+ - `compliance-check`: Verify compliance
283
+ - `security-policy`: Implement security policies
284
+
285
+ **Quality Checks:**
286
+ - Zero high/critical vulnerabilities
287
+ - All secrets in vault
288
+ - HTTPS everywhere
289
+ - Input sanitization verified
290
+
291
+ ---
292
+
293
+ ### ops-monitor
294
+ **Capabilities:**
295
+ - Observability (Datadog, New Relic, Grafana)
296
+ - Logging (ELK, Loki)
297
+ - Tracing (Jaeger, Zipkin)
298
+ - Alerting rules
299
+ - SLO/SLI definition
300
+ - Dashboards
301
+
302
+ **Task Types:**
303
+ - `monitoring-setup`: Set up monitoring
304
+ - `dashboard`: Create dashboard
305
+ - `alert-rule`: Define alert rules
306
+ - `log-pipeline`: Configure logging
307
+ - `tracing`: Implement distributed tracing
308
+
309
+ **Quality Checks:**
310
+ - All services have health checks
311
+ - Critical paths have alerts
312
+ - Logs are structured JSON
313
+ - Traces cover full request lifecycle
314
+
315
+ ---
316
+
317
+ ### ops-incident
318
+ **Capabilities:**
319
+ - Incident detection
320
+ - Runbook creation
321
+ - Auto-remediation scripts
322
+ - Root cause analysis
323
+ - Post-mortem documentation
324
+ - On-call management
325
+
326
+ **Task Types:**
327
+ - `runbook`: Create runbook
328
+ - `auto-remediation`: Script auto-fix
329
+ - `incident-response`: Handle incident
330
+ - `rca`: Root cause analysis
331
+ - `postmortem`: Write postmortem
332
+
333
+ **Quality Checks:**
334
+ - MTTR < 30min for P1
335
+ - All incidents have RCA
336
+ - Runbooks are tested
337
+ - Auto-remediation success > 80%
338
+
339
+ ---
340
+
341
+ ### ops-release
342
+ **Capabilities:**
343
+ - Semantic versioning
344
+ - Changelog generation
345
+ - Release notes
346
+ - Feature flags
347
+ - Blue-green deployments
348
+ - Canary releases
349
+ - Rollback procedures
350
+
351
+ **Task Types:**
352
+ - `version-bump`: Version release
353
+ - `changelog`: Generate changelog
354
+ - `feature-flag`: Implement feature flag
355
+ - `canary`: Canary deployment
356
+ - `rollback`: Execute rollback
357
+
358
+ **Quality Checks:**
359
+ - All releases tagged
360
+ - Changelog accurate
361
+ - Rollback tested
362
+ - Feature flags documented
363
+
364
+ ---
365
+
366
+ ### ops-cost
367
+ **Capabilities:**
368
+ - Cloud cost analysis
369
+ - Resource right-sizing
370
+ - Reserved instance planning
371
+ - Spot instance strategies
372
+ - Cost allocation tags
373
+ - Budget alerts
374
+
375
+ **Task Types:**
376
+ - `cost-analysis`: Analyze spending
377
+ - `right-size`: Optimize resources
378
+ - `spot-strategy`: Implement spot instances
379
+ - `budget-alert`: Set up alerts
380
+ - `cost-report`: Generate cost report
381
+
382
+ **Quality Checks:**
383
+ - Monthly cost within budget
384
+ - No unused resources
385
+ - All resources tagged
386
+ - Cost per user tracked
387
+
388
+ ---
389
+
390
+ ### ops-sre
391
+ **Capabilities:**
392
+ - Site Reliability Engineering
393
+ - SLO/SLI/SLA definition
394
+ - Error budgets
395
+ - Capacity planning
396
+ - Chaos engineering
397
+ - Toil reduction
398
+ - On-call procedures
399
+
400
+ **Task Types:**
401
+ - `slo-define`: Define SLOs and SLIs
402
+ - `error-budget`: Track and manage error budgets
403
+ - `capacity-plan`: Plan for scale
404
+ - `chaos-test`: Run chaos experiments
405
+ - `toil-reduce`: Automate manual processes
406
+
407
+ **Quality Checks:**
408
+ - SLOs documented and measured
409
+ - Error budget not exhausted
410
+ - Capacity headroom > 30%
411
+ - Chaos tests pass
412
+
413
+ ---
414
+
415
+ ### ops-compliance
416
+ **Capabilities:**
417
+ - SOC 2 Type II preparation
418
+ - GDPR compliance
419
+ - HIPAA compliance
420
+ - PCI-DSS compliance
421
+ - ISO 27001
422
+ - Audit preparation
423
+ - Policy documentation
424
+
425
+ **Task Types:**
426
+ - `compliance-assess`: Assess current compliance state
427
+ - `policy-write`: Write security policies
428
+ - `control-implement`: Implement required controls
429
+ - `audit-prep`: Prepare for external audit
430
+ - `evidence-collect`: Gather compliance evidence
431
+
432
+ **Quality Checks:**
433
+ - All required policies documented
434
+ - Controls implemented and tested
435
+ - Evidence organized and accessible
436
+ - Audit findings addressed
437
+
438
+ ---
439
+
440
+ ## Business Swarm (8 Agents)
441
+
442
+ ### biz-marketing
443
+ **Capabilities:**
444
+ - Landing page copy
445
+ - SEO optimization
446
+ - Content marketing
447
+ - Email campaigns
448
+ - Social media content
449
+ - Analytics tracking
450
+
451
+ **Task Types:**
452
+ - `landing-page`: Create landing page
453
+ - `seo`: Optimize for search
454
+ - `blog-post`: Write blog post
455
+ - `email-campaign`: Create email sequence
456
+ - `social-content`: Social media posts
457
+
458
+ **Quality Checks:**
459
+ - Core Web Vitals pass
460
+ - Meta tags complete
461
+ - Analytics tracking verified
462
+ - A/B tests running
463
+
464
+ ---
465
+
466
+ ### biz-sales
467
+ **Capabilities:**
468
+ - CRM setup (HubSpot, Salesforce)
469
+ - Sales pipeline design
470
+ - Outreach templates
471
+ - Demo scripts
472
+ - Proposal generation
473
+ - Contract management
474
+
475
+ **Task Types:**
476
+ - `crm-setup`: Configure CRM
477
+ - `outreach`: Create outreach sequence
478
+ - `demo-script`: Write demo script
479
+ - `proposal`: Generate proposal
480
+ - `pipeline`: Design sales pipeline
481
+
482
+ **Quality Checks:**
483
+ - CRM data clean
484
+ - Follow-up automation working
485
+ - Proposals branded correctly
486
+ - Pipeline stages defined
487
+
488
+ ---
489
+
490
+ ### biz-finance
491
+ **Capabilities:**
492
+ - Billing system setup (Stripe, Paddle)
493
+ - Invoice generation
494
+ - Revenue recognition
495
+ - Runway calculation
496
+ - Financial reporting
497
+ - Pricing strategy
498
+
499
+ **Task Types:**
500
+ - `billing-setup`: Configure billing
501
+ - `pricing`: Define pricing tiers
502
+ - `invoice`: Generate invoices
503
+ - `financial-report`: Create report
504
+ - `runway`: Calculate runway
505
+
506
+ **Quality Checks:**
507
+ - PCI compliance
508
+ - Invoices accurate
509
+ - Metrics tracked (MRR, ARR, churn)
510
+ - Runway > 6 months
511
+
512
+ ---
513
+
514
+ ### biz-legal
515
+ **Capabilities:**
516
+ - Terms of Service
517
+ - Privacy Policy
518
+ - Cookie Policy
519
+ - GDPR compliance
520
+ - Contract templates
521
+ - IP protection
522
+
523
+ **Task Types:**
524
+ - `tos`: Generate Terms of Service
525
+ - `privacy-policy`: Create privacy policy
526
+ - `gdpr`: Implement GDPR compliance
527
+ - `contract`: Create contract template
528
+ - `compliance`: Verify legal compliance
529
+
530
+ **Quality Checks:**
531
+ - All policies published
532
+ - Cookie consent implemented
533
+ - Data deletion capability
534
+ - Contracts reviewed
535
+
536
+ ---
537
+
538
+ ### biz-support
539
+ **Capabilities:**
540
+ - Help documentation
541
+ - FAQ creation
542
+ - Chatbot setup
543
+ - Ticket system
544
+ - Knowledge base
545
+ - User onboarding
546
+
547
+ **Task Types:**
548
+ - `help-docs`: Write documentation
549
+ - `faq`: Create FAQ
550
+ - `chatbot`: Configure chatbot
551
+ - `ticket-system`: Set up support
552
+ - `onboarding`: Design user onboarding
553
+
554
+ **Quality Checks:**
555
+ - All features documented
556
+ - FAQ covers common questions
557
+ - Response time < 4h
558
+ - Onboarding completion > 80%
559
+
560
+ ---
561
+
562
+ ### biz-hr
563
+ **Capabilities:**
564
+ - Job description writing
565
+ - Recruiting pipeline setup
566
+ - Interview process design
567
+ - Onboarding documentation
568
+ - Culture documentation
569
+ - Employee handbook
570
+ - Performance review templates
571
+
572
+ **Task Types:**
573
+ - `job-post`: Write job description
574
+ - `recruiting-setup`: Set up recruiting pipeline
575
+ - `interview-design`: Design interview process
576
+ - `onboarding-docs`: Create onboarding materials
577
+ - `culture-docs`: Document company culture
578
+
579
+ **Quality Checks:**
580
+ - Job posts are inclusive and clear
581
+ - Interview process documented
582
+ - Onboarding covers all essentials
583
+ - Policies are compliant
584
+
585
+ ---
586
+
587
+ ### biz-investor
588
+ **Capabilities:**
589
+ - Pitch deck creation
590
+ - Investor update emails
591
+ - Data room preparation
592
+ - Cap table management
593
+ - Financial modeling
594
+ - Due diligence preparation
595
+ - Term sheet review
596
+
597
+ **Task Types:**
598
+ - `pitch-deck`: Create/update pitch deck
599
+ - `investor-update`: Write monthly update
600
+ - `data-room`: Prepare data room
601
+ - `financial-model`: Build financial model
602
+ - `dd-prep`: Prepare for due diligence
603
+
604
+ **Quality Checks:**
605
+ - Metrics accurate and sourced
606
+ - Narrative compelling and clear
607
+ - Data room organized
608
+ - Financials reconciled
609
+
610
+ ---
611
+
612
+ ### biz-partnerships
613
+ **Capabilities:**
614
+ - Partnership outreach
615
+ - Integration partnerships
616
+ - Co-marketing agreements
617
+ - Channel partnerships
618
+ - API partnership programs
619
+ - Partner documentation
620
+ - Revenue sharing models
621
+
622
+ **Task Types:**
623
+ - `partner-outreach`: Identify and reach partners
624
+ - `integration-partner`: Technical integration partnership
625
+ - `co-marketing`: Plan co-marketing campaign
626
+ - `partner-docs`: Create partner documentation
627
+ - `partner-program`: Design partner program
628
+
629
+ **Quality Checks:**
630
+ - Partners aligned with strategy
631
+ - Agreements documented
632
+ - Integration tested
633
+ - ROI tracked
634
+
635
+ ---
636
+
637
+ ## Data Swarm (3 Agents)
638
+
639
+ ### data-ml
640
+ **Capabilities:**
641
+ - Machine learning model development
642
+ - MLOps and model deployment
643
+ - Feature engineering
644
+ - Model training and tuning
645
+ - A/B testing for ML models
646
+ - Model monitoring
647
+ - LLM integration and prompting
648
+
649
+ **Task Types:**
650
+ - `model-train`: Train ML model
651
+ - `model-deploy`: Deploy model to production
652
+ - `feature-eng`: Engineer features
653
+ - `model-monitor`: Set up model monitoring
654
+ - `llm-integrate`: Integrate LLM capabilities
655
+
656
+ **Quality Checks:**
657
+ - Model performance meets threshold
658
+ - Training reproducible
659
+ - Model versioned
660
+ - Monitoring alerts configured
661
+
662
+ ---
663
+
664
+ ### data-eng
665
+ **Capabilities:**
666
+ - ETL pipeline development
667
+ - Data warehousing (Snowflake, BigQuery, Redshift)
668
+ - dbt transformations
669
+ - Airflow/Dagster orchestration
670
+ - Data quality checks
671
+ - Schema design
672
+ - Data governance
673
+
674
+ **Task Types:**
675
+ - `etl-pipeline`: Build ETL pipeline
676
+ - `dbt-model`: Create dbt model
677
+ - `data-quality`: Implement data quality checks
678
+ - `warehouse-design`: Design warehouse schema
679
+ - `pipeline-monitor`: Monitor data pipelines
680
+
681
+ **Quality Checks:**
682
+ - Pipelines idempotent
683
+ - Data freshness SLA met
684
+ - Quality checks passing
685
+ - Documentation complete
686
+
687
+ ---
688
+
689
+ ### data-analytics
690
+ **Capabilities:**
691
+ - Business intelligence
692
+ - Dashboard creation (Metabase, Looker, Tableau)
693
+ - SQL analysis
694
+ - Metrics definition
695
+ - Self-serve analytics
696
+ - Data storytelling
697
+
698
+ **Task Types:**
699
+ - `dashboard`: Create analytics dashboard
700
+ - `metrics-define`: Define business metrics
701
+ - `analysis`: Perform ad-hoc analysis
702
+ - `self-serve`: Set up self-serve analytics
703
+ - `report`: Generate business report
704
+
705
+ **Quality Checks:**
706
+ - Metrics clearly defined
707
+ - Dashboards performant
708
+ - Data accurate
709
+ - Insights actionable
710
+
711
+ ---
712
+
713
+ ## Product Swarm (3 Agents)
714
+
715
+ ### prod-pm
716
+ **Capabilities:**
717
+ - Product requirements documentation
718
+ - User story writing
719
+ - Backlog grooming and prioritization
720
+ - Roadmap planning
721
+ - Feature specifications
722
+ - Stakeholder communication
723
+ - Competitive analysis
724
+
725
+ **Task Types:**
726
+ - `prd-write`: Write product requirements
727
+ - `user-story`: Create user stories
728
+ - `backlog-groom`: Groom and prioritize backlog
729
+ - `roadmap`: Update product roadmap
730
+ - `spec`: Write feature specification
731
+
732
+ **Quality Checks:**
733
+ - Requirements clear and testable
734
+ - Acceptance criteria defined
735
+ - Priorities justified
736
+ - Stakeholders aligned
737
+
738
+ ---
739
+
740
+ ### prod-design
741
+ **Capabilities:**
742
+ - Design system creation
743
+ - UI/UX patterns
744
+ - Figma prototyping
745
+ - Accessibility design
746
+ - User research synthesis
747
+ - Design documentation
748
+ - Component library
749
+
750
+ **Task Types:**
751
+ - `design-system`: Create/update design system
752
+ - `prototype`: Create Figma prototype
753
+ - `ux-pattern`: Define UX pattern
754
+ - `accessibility`: Ensure accessible design
755
+ - `component`: Design component
756
+
757
+ **Quality Checks:**
758
+ - Design system consistent
759
+ - Prototypes tested
760
+ - WCAG compliant
761
+ - Components documented
762
+
763
+ ---
764
+
765
+ ### prod-techwriter
766
+ **Capabilities:**
767
+ - API documentation
768
+ - User guides and tutorials
769
+ - Release notes
770
+ - README files
771
+ - Architecture documentation
772
+ - Runbooks
773
+ - Knowledge base articles
774
+
775
+ **Task Types:**
776
+ - `api-docs`: Write API documentation
777
+ - `user-guide`: Create user guide
778
+ - `release-notes`: Write release notes
779
+ - `tutorial`: Create tutorial
780
+ - `architecture-doc`: Document architecture
781
+
782
+ **Quality Checks:**
783
+ - Documentation accurate
784
+ - Examples work
785
+ - Searchable and organized
786
+ - Up to date with code
787
+
788
+ ---
789
+
790
+ ## Review Swarm (3 Agents)
791
+
792
+ ### review-code
793
+ **Capabilities:**
794
+ - Code quality assessment
795
+ - Design pattern recognition
796
+ - SOLID principles verification
797
+ - Code smell detection
798
+ - Maintainability scoring
799
+ - Duplication detection
800
+ - Complexity analysis
801
+
802
+ **Task Types:**
803
+ - `review-code`: Full code review
804
+ - `review-pr`: Pull request review
805
+ - `review-refactor`: Review refactoring changes
806
+
807
+ **Review Output Format:**
808
+ ```json
809
+ {
810
+ "strengths": ["Well-structured modules", "Good test coverage"],
811
+ "issues": [
812
+ {
813
+ "severity": "Medium",
814
+ "description": "Function exceeds 50 lines",
815
+ "location": "src/auth.js:45",
816
+ "suggestion": "Extract validation logic to separate function"
817
+ }
818
+ ],
819
+ "assessment": "PASS|FAIL"
820
+ }
821
+ ```
822
+
823
+ **Model:** opus (required for deep analysis)
824
+
825
+ ---
826
+
827
+ ### review-business
828
+ **Capabilities:**
829
+ - Requirements alignment verification
830
+ - Business logic correctness
831
+ - Edge case identification
832
+ - User flow validation
833
+ - Acceptance criteria checking
834
+ - Domain model accuracy
835
+
836
+ **Task Types:**
837
+ - `review-business`: Business logic review
838
+ - `review-requirements`: Requirements alignment check
839
+ - `review-edge-cases`: Edge case analysis
840
+
841
+ **Review Focus:**
842
+ - Does implementation match PRD requirements?
843
+ - Are all acceptance criteria met?
844
+ - Are edge cases handled?
845
+ - Is domain logic correct?
846
+
847
+ **Model:** opus (required for requirements understanding)
848
+
849
+ ---
850
+
851
+ ### review-security
852
+ **Capabilities:**
853
+ - Vulnerability detection
854
+ - Authentication review
855
+ - Authorization verification
856
+ - Input validation checking
857
+ - Secret exposure detection
858
+ - Dependency vulnerability scanning
859
+ - OWASP Top 10 checking
860
+
861
+ **Task Types:**
862
+ - `review-security`: Full security review
863
+ - `review-auth`: Authentication/authorization review
864
+ - `review-input`: Input validation review
865
+
866
+ **Critical Issues (Always FAIL):**
867
+ - Hardcoded secrets/credentials
868
+ - SQL injection vulnerabilities
869
+ - XSS vulnerabilities
870
+ - Missing authentication
871
+ - Broken access control
872
+ - Sensitive data exposure
873
+
874
+ **Model:** opus (required for security analysis)
875
+
876
+ ---
877
+
878
+ ## Growth Swarm (4 Agents)
879
+
880
+ ### growth-hacker
881
+ **Capabilities:**
882
+ - Growth experiment design
883
+ - Viral loop optimization
884
+ - Referral program design
885
+ - Activation optimization
886
+ - Retention strategies
887
+ - Churn prediction
888
+ - PLG (Product-Led Growth) tactics
889
+
890
+ **Task Types:**
891
+ - `growth-experiment`: Design growth experiment
892
+ - `viral-loop`: Optimize viral coefficient
893
+ - `referral-program`: Design referral system
894
+ - `activation`: Improve activation rate
895
+ - `retention`: Implement retention tactics
896
+
897
+ **Quality Checks:**
898
+ - Experiments statistically valid
899
+ - Metrics tracked
900
+ - Results documented
901
+ - Winners implemented
902
+
903
+ ---
904
+
905
+ ### growth-community
906
+ **Capabilities:**
907
+ - Community building
908
+ - Discord/Slack community management
909
+ - User-generated content programs
910
+ - Ambassador programs
911
+ - Community events
912
+ - Feedback collection
913
+ - Community analytics
914
+
915
+ **Task Types:**
916
+ - `community-setup`: Set up community platform
917
+ - `ambassador`: Create ambassador program
918
+ - `event`: Plan community event
919
+ - `ugc`: Launch UGC program
920
+ - `feedback-loop`: Implement feedback collection
921
+
922
+ **Quality Checks:**
923
+ - Community guidelines published
924
+ - Engagement metrics tracked
925
+ - Feedback actioned
926
+ - Community health monitored
927
+
928
+ ---
929
+
930
+ ### growth-success
931
+ **Capabilities:**
932
+ - Customer success workflows
933
+ - Health scoring
934
+ - Churn prevention
935
+ - Expansion revenue
936
+ - QBR (Quarterly Business Review)
937
+ - Customer journey mapping
938
+ - NPS and CSAT programs
939
+
940
+ **Task Types:**
941
+ - `health-score`: Implement health scoring
942
+ - `churn-prevent`: Churn prevention workflow
943
+ - `expansion`: Identify expansion opportunities
944
+ - `qbr`: Prepare QBR materials
945
+ - `nps`: Implement NPS program
946
+
947
+ **Quality Checks:**
948
+ - Health scores calibrated
949
+ - At-risk accounts identified
950
+ - NRR (Net Revenue Retention) tracked
951
+ - Customer feedback actioned
952
+
953
+ ---
954
+
955
+ ### growth-lifecycle
956
+ **Capabilities:**
957
+ - Email lifecycle marketing
958
+ - In-app messaging
959
+ - Push notification strategy
960
+ - Behavioral triggers
961
+ - Segmentation
962
+ - Personalization
963
+ - Re-engagement campaigns
964
+
965
+ **Task Types:**
966
+ - `lifecycle-email`: Create lifecycle email sequence
967
+ - `in-app`: Implement in-app messaging
968
+ - `push`: Design push notification strategy
969
+ - `segment`: Create user segments
970
+ - `re-engage`: Build re-engagement campaign
971
+
972
+ **Quality Checks:**
973
+ - Messages personalized
974
+ - Triggers tested
975
+ - Opt-out working
976
+ - Performance tracked
977
+
978
+ ---
979
+
980
+ ## Agent Communication Protocol
981
+
982
+ ### Heartbeat (every 60s)
983
+ ```json
984
+ {
985
+ "from": "agent-id",
986
+ "type": "heartbeat",
987
+ "timestamp": "ISO",
988
+ "status": "active|idle|working",
989
+ "currentTask": "task-id|null",
990
+ "metrics": {
991
+ "tasksCompleted": 5,
992
+ "uptime": 3600
993
+ }
994
+ }
995
+ ```
996
+
997
+ ### Task Claim
998
+ ```json
999
+ {
1000
+ "from": "agent-id",
1001
+ "type": "task-claim",
1002
+ "taskId": "uuid",
1003
+ "timestamp": "ISO"
1004
+ }
1005
+ ```
1006
+
1007
+ ### Task Complete
1008
+ ```json
1009
+ {
1010
+ "from": "agent-id",
1011
+ "type": "task-complete",
1012
+ "taskId": "uuid",
1013
+ "result": "success|failure",
1014
+ "output": {},
1015
+ "duration": 120,
1016
+ "timestamp": "ISO"
1017
+ }
1018
+ ```
1019
+
1020
+ ### Blocker
1021
+ ```json
1022
+ {
1023
+ "from": "agent-id",
1024
+ "to": "orchestrator",
1025
+ "type": "blocker",
1026
+ "taskId": "uuid",
1027
+ "reason": "string",
1028
+ "attemptedSolutions": [],
1029
+ "timestamp": "ISO"
1030
+ }
1031
+ ```
1032
+
1033
+ ### Scale Request
1034
+ ```json
1035
+ {
1036
+ "from": "orchestrator",
1037
+ "type": "scale-request",
1038
+ "agentType": "eng-backend",
1039
+ "count": 2,
1040
+ "reason": "queue-depth",
1041
+ "timestamp": "ISO"
1042
+ }
1043
+ ```