loki-mode 11.36.0 → 11.36.2

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 (76) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/dashboard/__init__.py +1 -1
  4. package/docs/CLI-REFERENCE.md +1 -1
  5. package/docs/COMPONENTS.md +2 -2
  6. package/docs/INSTALLATION.md +1 -1
  7. package/docs/ISSUE-TO-PR-GOLDEN-PATH-PLAN.md +2 -2
  8. package/docs/dev/project-structure.md +0 -1
  9. package/loki-ts/dist/loki.js +2 -2
  10. package/mcp/__init__.py +1 -1
  11. package/package.json +2 -2
  12. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  13. package/references/agent-types.md +1047 -0
  14. package/skills/agents.md +1 -1
  15. package/skills/production.md +602 -1
  16. package/skills/providers.md +256 -1
  17. package/web-app/dist/assets/{AdminPage-D73t1zi7.js → AdminPage-VMdXCL6Z.js} +1 -1
  18. package/web-app/dist/assets/{Avatar-Pgu94LDs.js → Avatar-u2uOGouZ.js} +1 -1
  19. package/web-app/dist/assets/{Badge-B2X33p01.js → Badge-Djyiy-OK.js} +1 -1
  20. package/web-app/dist/assets/{Button-BaRCk5ob.js → Button-DtzBRjJb.js} +1 -1
  21. package/web-app/dist/assets/{CockpitPage-Du1NIwsO.js → CockpitPage-B5Q3cIfS.js} +1 -1
  22. package/web-app/dist/assets/{ComparePage-CVLjwYcX.js → ComparePage-D26OOxGe.js} +1 -1
  23. package/web-app/dist/assets/{ErrorBoundary-C6umXLhq.js → ErrorBoundary-gQ0ajPif.js} +1 -1
  24. package/web-app/dist/assets/{EvidenceReceiptPanel-BVOwvWB9.js → EvidenceReceiptPanel-BoWDPbo6.js} +1 -1
  25. package/web-app/dist/assets/{GitHubIssuesPanel-CgKnhO5u.js → GitHubIssuesPanel-C4gdFuJu.js} +1 -1
  26. package/web-app/dist/assets/{GitHubPRsPanel-PRvPjrr2.js → GitHubPRsPanel-Gb37Pfw2.js} +1 -1
  27. package/web-app/dist/assets/{HomePage-DcZri4TP.js → HomePage-C2XTx12e.js} +2 -2
  28. package/web-app/dist/assets/{LoginPage-_4Ao0Rez.js → LoginPage-Bpmi4ohR.js} +1 -1
  29. package/web-app/dist/assets/{MagicPage-BbJc2ZOg.js → MagicPage-B5nvAWDT.js} +1 -1
  30. package/web-app/dist/assets/{MetricsPage-CeZVEo69.js → MetricsPage-TcUUhxGR.js} +1 -1
  31. package/web-app/dist/assets/{NotFoundPage-g8x8mIY4.js → NotFoundPage-feaH_MlW.js} +1 -1
  32. package/web-app/dist/assets/{ProjectPage-DJa1I91a.js → ProjectPage-DctsQGNj.js} +3 -3
  33. package/web-app/dist/assets/{ProjectsPage-DNLPtJay.js → ProjectsPage-DQQ-t6go.js} +1 -1
  34. package/web-app/dist/assets/{SettingsPage-BlpOmTtJ.js → SettingsPage-BSgKRreC.js} +1 -1
  35. package/web-app/dist/assets/{ShowcasePage-CHJyHYEN.js → ShowcasePage-DfPu21Jh.js} +1 -1
  36. package/web-app/dist/assets/{SystemSettingsPage-0ZnQejCy.js → SystemSettingsPage-h9_O9kOO.js} +1 -1
  37. package/web-app/dist/assets/{TeamsPage-FdJfcD1C.js → TeamsPage-C7DTUuMO.js} +1 -1
  38. package/web-app/dist/assets/{TemplatesPage-CaPsg6RE.js → TemplatesPage-Bi37a0cj.js} +1 -1
  39. package/web-app/dist/assets/{TerminalOutput-BBf53veh.js → TerminalOutput-DQzYlXby.js} +1 -1
  40. package/web-app/dist/assets/{activity-BZZBaTk4.js → activity-DLAeEmKf.js} +1 -1
  41. package/web-app/dist/assets/{bell-CEbh5wcI.js → bell-DgRtSLvd.js} +1 -1
  42. package/web-app/dist/assets/{bot-CR3ELz3P.js → bot-C2m7OeqV.js} +1 -1
  43. package/web-app/dist/assets/{check-CSZ8Imm9.js → check-BrBcDclF.js} +1 -1
  44. package/web-app/dist/assets/{chevron-left-DanE2Hss.js → chevron-left-C9VzYegT.js} +1 -1
  45. package/web-app/dist/assets/{circle-alert-DbJb8YuD.js → circle-alert-BCmS5TEl.js} +1 -1
  46. package/web-app/dist/assets/{clock-BP8uTe0w.js → clock-BNvzvy9h.js} +1 -1
  47. package/web-app/dist/assets/{cloud-L-gsOd6z.js → cloud-B9RC-OzI.js} +1 -1
  48. package/web-app/dist/assets/{code-xml-Y_EN8uAF.js → code-xml-Dq5h9Y4x.js} +1 -1
  49. package/web-app/dist/assets/{database-Dk3IyOhB.js → database-BZM5e6dN.js} +1 -1
  50. package/web-app/dist/assets/{dollar-sign-u1BAuVVd.js → dollar-sign-CG2hFMYV.js} +1 -1
  51. package/web-app/dist/assets/{file-code-corner-Cx4c5ngU.js → file-code-corner-CbkPzEr1.js} +1 -1
  52. package/web-app/dist/assets/{file-plus-ZttsmeuR.js → file-plus-DLIPXn2k.js} +1 -1
  53. package/web-app/dist/assets/{globe-B4wt_UbY.js → globe-7kPrJ_Vy.js} +1 -1
  54. package/web-app/dist/assets/{hammer-Bkkzme0X.js → hammer-ZsTmZCz4.js} +1 -1
  55. package/web-app/dist/assets/{index-qFl2U4PP.js → index-BJfP9ylx.js} +3 -3
  56. package/web-app/dist/assets/{layers-uK6Y9vzW.js → layers-DT-7ulEf.js} +1 -1
  57. package/web-app/dist/assets/{loader-circle-CSEhSCyJ.js → loader-circle-B4HgIJl7.js} +1 -1
  58. package/web-app/dist/assets/{lock-Cl8vENNw.js → lock-CcK3qv3U.js} +1 -1
  59. package/web-app/dist/assets/{package-B4KdlkGK.js → package-D7j5jIRE.js} +1 -1
  60. package/web-app/dist/assets/{plus-Cx7wCatc.js → plus-D61O8i_1.js} +1 -1
  61. package/web-app/dist/assets/{refresh-cw-Ba8y00l0.js → refresh-cw-BwKxbGei.js} +1 -1
  62. package/web-app/dist/assets/{rotate-ccw-Dj_tGfar.js → rotate-ccw-BFsHb_Do.js} +1 -1
  63. package/web-app/dist/assets/{scroll-text-DKp4aaqK.js → scroll-text-BHIKikTn.js} +1 -1
  64. package/web-app/dist/assets/{server-DHSSF41S.js → server-DbucCXky.js} +1 -1
  65. package/web-app/dist/assets/{shield-alert-3z9YnSzz.js → shield-alert-CfPhky3w.js} +1 -1
  66. package/web-app/dist/assets/{thumbs-up-BA2y9kYN.js → thumbs-up-CyQoJXN3.js} +1 -1
  67. package/web-app/dist/assets/{trash-2-0RcWshkw.js → trash-2-DTmFWzg7.js} +1 -1
  68. package/web-app/dist/assets/{trending-down-BdhmG8vV.js → trending-down-CS5Oqc6g.js} +1 -1
  69. package/web-app/dist/assets/{trending-up-Cn6kNnmP.js → trending-up-CmBBN4R9.js} +1 -1
  70. package/web-app/dist/assets/{upload-DFOQfmyN.js → upload-DGePZkS3.js} +1 -1
  71. package/web-app/dist/assets/{usePolling-40ulE-Te.js → usePolling-DEPQP4xT.js} +1 -1
  72. package/web-app/dist/assets/{user-BVPC2VOO.js → user-Bogh2WEE.js} +1 -1
  73. package/web-app/dist/index.html +1 -1
  74. package/references/agents.md +0 -1043
  75. package/references/multi-provider.md +0 -445
  76. package/references/production-patterns.md +0 -574
@@ -241,3 +241,1050 @@ SPAWN -> INITIALIZE -> POLL_QUEUE -> CLAIM_TASK -> EXECUTE -> REPORT -> POLL_QUE
241
241
  3. Log all new decisions to own context file
242
242
  4. Reference lineage in all commits
243
243
  5. Periodic context sync: check if inherited context has been updated upstream
244
+
245
+ ---
246
+
247
+ ## Agent Role Prompt Template
248
+
249
+ Each agent receives a role prompt stored in `.loki/prompts/{agent-type}.md`:
250
+
251
+ ```markdown
252
+ # Agent Identity
253
+
254
+ You are **{AGENT_TYPE}** agent with ID **{AGENT_ID}**.
255
+
256
+ ## Your Capabilities
257
+ {CAPABILITY_LIST}
258
+
259
+ ## Your Constraints
260
+ - Only claim tasks matching your capabilities
261
+ - Always verify before assuming (web search, test code)
262
+ - Checkpoint state before major operations
263
+ - Report blockers within 15 minutes if stuck
264
+ - Log all decisions with reasoning
265
+
266
+ ## Task Execution Loop
267
+ 1. Read `.loki/queue/pending.json`
268
+ 2. Find task where `type` matches your capabilities
269
+ 3. Acquire task lock (atomic claim)
270
+ 4. Execute task following your capability guidelines
271
+ 5. Write result to `.loki/messages/outbox/{AGENT_ID}/`
272
+ 6. Update `.loki/state/agents/{AGENT_ID}.json`
273
+ 7. Mark task complete or failed
274
+ 8. Return to step 1
275
+
276
+ ## Communication
277
+ - Inbox: `.loki/messages/inbox/{AGENT_ID}/`
278
+ - Outbox: `.loki/messages/outbox/{AGENT_ID}/`
279
+ - Broadcasts: `.loki/messages/broadcast/`
280
+
281
+ ## State File
282
+ Location: `.loki/state/agents/{AGENT_ID}.json`
283
+ Update after every task completion.
284
+ ```
285
+
286
+ ---
287
+
288
+ ## Per-Role Task Types and Quality Checks
289
+
290
+ Each role lists its capabilities (the domain tables above are the summary), then its task types, quality checks and review specifics.
291
+
292
+ ### Engineering Domain (8 Agents)
293
+
294
+ #### eng-frontend
295
+ **Capabilities:**
296
+ - React, Vue, Svelte, Next.js, Nuxt, SvelteKit
297
+ - TypeScript, JavaScript
298
+ - Tailwind, CSS Modules, styled-components
299
+ - Responsive design, mobile-first
300
+ - Accessibility (WCAG 2.1 AA)
301
+ - Performance optimization (Core Web Vitals)
302
+
303
+ **Task Types:**
304
+ - `ui-component`: Build UI component
305
+ - `page-layout`: Create page layout
306
+ - `styling`: Implement designs
307
+ - `accessibility-fix`: Fix a11y issues
308
+ - `frontend-perf`: Optimize bundle, lazy loading
309
+
310
+ **Quality Checks:**
311
+ - Lighthouse score > 90
312
+ - No console errors
313
+ - Cross-browser testing (Chrome, Firefox, Safari)
314
+ - Mobile responsive verification
315
+
316
+ ---
317
+
318
+ #### eng-backend
319
+ **Capabilities:**
320
+ - Node.js, Python, Go, Rust, Java
321
+ - REST API, GraphQL, gRPC
322
+ - Authentication (OAuth, JWT, sessions)
323
+ - Authorization (RBAC, ABAC)
324
+ - Caching (Redis, Memcached)
325
+ - Message queues (RabbitMQ, SQS, Kafka)
326
+
327
+ **Task Types:**
328
+ - `api-endpoint`: Implement API endpoint
329
+ - `service`: Build microservice
330
+ - `integration`: Third-party API integration
331
+ - `auth`: Authentication/authorization
332
+ - `business-logic`: Core business rules
333
+
334
+ **Quality Checks:**
335
+ - API response < 100ms p99
336
+ - Input validation on all endpoints
337
+ - Error handling with proper status codes
338
+ - Rate limiting implemented
339
+
340
+ ---
341
+
342
+ #### eng-database
343
+ **Capabilities:**
344
+ - PostgreSQL, MySQL, MongoDB, Redis
345
+ - Schema design, normalization
346
+ - Migrations (Prisma, Drizzle, Knex, Alembic)
347
+ - Query optimization, indexing
348
+ - Replication, sharding strategies
349
+ - Backup and recovery
350
+
351
+ **Task Types:**
352
+ - `schema-design`: Design database schema
353
+ - `migration`: Create migration
354
+ - `query-optimize`: Optimize slow queries
355
+ - `index`: Add/optimize indexes
356
+ - `data-seed`: Create seed data
357
+
358
+ **Quality Checks:**
359
+ - No N+1 queries
360
+ - All queries use indexes (EXPLAIN ANALYZE)
361
+ - Migrations are reversible
362
+ - Foreign keys enforced
363
+
364
+ ---
365
+
366
+ #### eng-mobile
367
+ **Capabilities:**
368
+ - React Native, Flutter, Swift, Kotlin
369
+ - Cross-platform strategies
370
+ - Native modules, platform-specific code
371
+ - Push notifications
372
+ - Offline-first, local storage
373
+ - App store deployment
374
+
375
+ **Task Types:**
376
+ - `mobile-screen`: Implement screen
377
+ - `native-feature`: Camera, GPS, biometrics
378
+ - `offline-sync`: Offline data handling
379
+ - `push-notification`: Notification system
380
+ - `app-store`: Prepare store submission
381
+
382
+ **Quality Checks:**
383
+ - 60fps smooth scrolling
384
+ - App size < 50MB
385
+ - Cold start < 3s
386
+ - Memory efficient
387
+
388
+ ---
389
+
390
+ #### eng-api
391
+ **Capabilities:**
392
+ - OpenAPI/Swagger specification
393
+ - API versioning strategies
394
+ - SDK generation
395
+ - Rate limiting design
396
+ - Webhook systems
397
+ - API documentation
398
+
399
+ **Task Types:**
400
+ - `api-spec`: Write OpenAPI spec
401
+ - `sdk-generate`: Generate client SDKs
402
+ - `webhook`: Implement webhook system
403
+ - `api-docs`: Generate documentation
404
+ - `versioning`: Implement API versioning
405
+
406
+ **Quality Checks:**
407
+ - 100% endpoint documentation
408
+ - All errors have consistent format
409
+ - SDK tests pass
410
+ - Postman collection updated
411
+
412
+ ---
413
+
414
+ #### eng-qa
415
+ **Capabilities:**
416
+ - Unit testing (Jest, pytest, Go test)
417
+ - Integration testing
418
+ - E2E testing (Playwright, Cypress)
419
+ - Load testing (k6, Artillery)
420
+ - Fuzz testing
421
+ - Test automation
422
+
423
+ **Task Types:**
424
+ - `unit-test`: Write unit tests
425
+ - `integration-test`: Write integration tests
426
+ - `e2e-test`: Write E2E tests
427
+ - `load-test`: Performance/load testing
428
+ - `test-coverage`: Increase coverage
429
+
430
+ **Quality Checks:**
431
+ - Coverage > 80%
432
+ - All critical paths tested
433
+ - No flaky tests
434
+ - CI passes consistently
435
+
436
+ ---
437
+
438
+ #### eng-perf
439
+ **Capabilities:**
440
+ - Application profiling (CPU, memory, I/O)
441
+ - Performance benchmarking
442
+ - Bottleneck identification
443
+ - Caching strategy (Redis, CDN, in-memory)
444
+ - Database query optimization
445
+ - Bundle size optimization
446
+ - Core Web Vitals optimization
447
+
448
+ **Task Types:**
449
+ - `profile`: Profile application performance
450
+ - `benchmark`: Create performance benchmarks
451
+ - `optimize`: Optimize identified bottleneck
452
+ - `cache-strategy`: Design/implement caching
453
+ - `bundle-optimize`: Reduce bundle/binary size
454
+
455
+ **Quality Checks:**
456
+ - p99 latency < target
457
+ - Memory usage stable (no leaks)
458
+ - Benchmarks documented and reproducible
459
+ - Before/after metrics recorded
460
+
461
+ ---
462
+
463
+ #### eng-infra
464
+ **Capabilities:**
465
+ - Dockerfile creation and optimization
466
+ - Kubernetes manifest review
467
+ - Helm chart development
468
+ - Infrastructure as Code review
469
+ - Container security
470
+ - Multi-stage builds
471
+ - Resource limits and requests
472
+
473
+ **Task Types:**
474
+ - `dockerfile`: Create/optimize Dockerfile
475
+ - `k8s-manifest`: Write K8s manifests
476
+ - `helm-chart`: Develop Helm charts
477
+ - `iac-review`: Review Terraform/Pulumi code
478
+ - `container-security`: Harden containers
479
+
480
+ **Quality Checks:**
481
+ - Images use minimal base
482
+ - No secrets in images
483
+ - Resource limits set
484
+ - Health checks defined
485
+
486
+ ---
487
+
488
+ ### Operations Domain (8 Agents)
489
+
490
+ #### ops-devops
491
+ **Capabilities:**
492
+ - CI/CD (GitHub Actions, GitLab CI, Jenkins)
493
+ - Infrastructure as Code (Terraform, Pulumi, CDK)
494
+ - Container orchestration (Docker, Kubernetes)
495
+ - Cloud platforms (AWS, GCP, Azure)
496
+ - GitOps (ArgoCD, Flux)
497
+
498
+ **Task Types:**
499
+ - `ci-pipeline`: Set up CI pipeline
500
+ - `cd-pipeline`: Set up CD pipeline
501
+ - `infrastructure`: Provision infrastructure
502
+ - `container`: Dockerize application
503
+ - `k8s`: Kubernetes manifests/Helm charts
504
+
505
+ **Quality Checks:**
506
+ - Pipeline runs < 10min
507
+ - Zero-downtime deployments
508
+ - Infrastructure is reproducible
509
+ - Secrets properly managed
510
+
511
+ ---
512
+
513
+ #### ops-security
514
+ **Capabilities:**
515
+ - SAST (static analysis)
516
+ - DAST (dynamic analysis)
517
+ - Dependency scanning
518
+ - Container scanning
519
+ - Penetration testing
520
+ - Compliance (SOC2, GDPR, HIPAA)
521
+
522
+ **Task Types:**
523
+ - `security-scan`: Run security scans
524
+ - `vulnerability-fix`: Fix vulnerabilities
525
+ - `penetration-test`: Conduct pen test
526
+ - `compliance-check`: Verify compliance
527
+ - `security-policy`: Implement security policies
528
+
529
+ **Quality Checks:**
530
+ - Zero high/critical vulnerabilities
531
+ - All secrets in vault
532
+ - HTTPS everywhere
533
+ - Input sanitization verified
534
+
535
+ ---
536
+
537
+ #### ops-monitor
538
+ **Capabilities:**
539
+ - Observability (Datadog, New Relic, Grafana)
540
+ - Logging (ELK, Loki)
541
+ - Tracing (Jaeger, Zipkin)
542
+ - Alerting rules
543
+ - SLO/SLI definition
544
+ - Dashboards
545
+
546
+ **Task Types:**
547
+ - `monitoring-setup`: Set up monitoring
548
+ - `dashboard`: Create dashboard
549
+ - `alert-rule`: Define alert rules
550
+ - `log-pipeline`: Configure logging
551
+ - `tracing`: Implement distributed tracing
552
+
553
+ **Quality Checks:**
554
+ - All services have health checks
555
+ - Critical paths have alerts
556
+ - Logs are structured JSON
557
+ - Traces cover full request lifecycle
558
+
559
+ ---
560
+
561
+ #### ops-incident
562
+ **Capabilities:**
563
+ - Incident detection
564
+ - Runbook creation
565
+ - Auto-remediation scripts
566
+ - Root cause analysis
567
+ - Post-mortem documentation
568
+ - On-call management
569
+
570
+ **Task Types:**
571
+ - `runbook`: Create runbook
572
+ - `auto-remediation`: Script auto-fix
573
+ - `incident-response`: Handle incident
574
+ - `rca`: Root cause analysis
575
+ - `postmortem`: Write postmortem
576
+
577
+ **Quality Checks:**
578
+ - MTTR < 30min for P1
579
+ - All incidents have RCA
580
+ - Runbooks are tested
581
+ - Auto-remediation success > 80%
582
+
583
+ ---
584
+
585
+ #### ops-release
586
+ **Capabilities:**
587
+ - Semantic versioning
588
+ - Changelog generation
589
+ - Release notes
590
+ - Feature flags
591
+ - Blue-green deployments
592
+ - Canary releases
593
+ - Rollback procedures
594
+
595
+ **Task Types:**
596
+ - `version-bump`: Version release
597
+ - `changelog`: Generate changelog
598
+ - `feature-flag`: Implement feature flag
599
+ - `canary`: Canary deployment
600
+ - `rollback`: Execute rollback
601
+
602
+ **Quality Checks:**
603
+ - All releases tagged
604
+ - Changelog accurate
605
+ - Rollback tested
606
+ - Feature flags documented
607
+
608
+ ---
609
+
610
+ #### ops-cost
611
+ **Capabilities:**
612
+ - Cloud cost analysis
613
+ - Resource right-sizing
614
+ - Reserved instance planning
615
+ - Spot instance strategies
616
+ - Cost allocation tags
617
+ - Budget alerts
618
+
619
+ **Task Types:**
620
+ - `cost-analysis`: Analyze spending
621
+ - `right-size`: Optimize resources
622
+ - `spot-strategy`: Implement spot instances
623
+ - `budget-alert`: Set up alerts
624
+ - `cost-report`: Generate cost report
625
+
626
+ **Quality Checks:**
627
+ - Monthly cost within budget
628
+ - No unused resources
629
+ - All resources tagged
630
+ - Cost per user tracked
631
+
632
+ ---
633
+
634
+ #### ops-sre
635
+ **Capabilities:**
636
+ - Site Reliability Engineering
637
+ - SLO/SLI/SLA definition
638
+ - Error budgets
639
+ - Capacity planning
640
+ - Chaos engineering
641
+ - Toil reduction
642
+ - On-call procedures
643
+
644
+ **Task Types:**
645
+ - `slo-define`: Define SLOs and SLIs
646
+ - `error-budget`: Track and manage error budgets
647
+ - `capacity-plan`: Plan for scale
648
+ - `chaos-test`: Run chaos experiments
649
+ - `toil-reduce`: Automate manual processes
650
+
651
+ **Quality Checks:**
652
+ - SLOs documented and measured
653
+ - Error budget not exhausted
654
+ - Capacity headroom > 30%
655
+ - Chaos tests pass
656
+
657
+ ---
658
+
659
+ #### ops-compliance
660
+ **Capabilities:**
661
+ - SOC 2 Type II preparation
662
+ - GDPR compliance
663
+ - HIPAA compliance
664
+ - PCI-DSS compliance
665
+ - ISO 27001
666
+ - Audit preparation
667
+ - Policy documentation
668
+
669
+ **Task Types:**
670
+ - `compliance-assess`: Assess current compliance state
671
+ - `policy-write`: Write security policies
672
+ - `control-implement`: Implement required controls
673
+ - `audit-prep`: Prepare for external audit
674
+ - `evidence-collect`: Gather compliance evidence
675
+
676
+ **Quality Checks:**
677
+ - All required policies documented
678
+ - Controls implemented and tested
679
+ - Evidence organized and accessible
680
+ - Audit findings addressed
681
+
682
+ ---
683
+
684
+ ### Business Domain (8 Agents)
685
+
686
+ #### biz-marketing
687
+ **Capabilities:**
688
+ - Landing page copy
689
+ - SEO optimization
690
+ - Content marketing
691
+ - Email campaigns
692
+ - Social media content
693
+ - Analytics tracking
694
+
695
+ **Task Types:**
696
+ - `landing-page`: Create landing page
697
+ - `seo`: Optimize for search
698
+ - `blog-post`: Write blog post
699
+ - `email-campaign`: Create email sequence
700
+ - `social-content`: Social media posts
701
+
702
+ **Quality Checks:**
703
+ - Core Web Vitals pass
704
+ - Meta tags complete
705
+ - Analytics tracking verified
706
+ - A/B tests running
707
+
708
+ ---
709
+
710
+ #### biz-sales
711
+ **Capabilities:**
712
+ - CRM setup (HubSpot, Salesforce)
713
+ - Sales pipeline design
714
+ - Outreach templates
715
+ - Demo scripts
716
+ - Proposal generation
717
+ - Contract management
718
+
719
+ **Task Types:**
720
+ - `crm-setup`: Configure CRM
721
+ - `outreach`: Create outreach sequence
722
+ - `demo-script`: Write demo script
723
+ - `proposal`: Generate proposal
724
+ - `pipeline`: Design sales pipeline
725
+
726
+ **Quality Checks:**
727
+ - CRM data clean
728
+ - Follow-up automation working
729
+ - Proposals branded correctly
730
+ - Pipeline stages defined
731
+
732
+ ---
733
+
734
+ #### biz-finance
735
+ **Capabilities:**
736
+ - Billing system setup (Stripe, Paddle)
737
+ - Invoice generation
738
+ - Revenue recognition
739
+ - Runway calculation
740
+ - Financial reporting
741
+ - Pricing strategy
742
+
743
+ **Task Types:**
744
+ - `billing-setup`: Configure billing
745
+ - `pricing`: Define pricing tiers
746
+ - `invoice`: Generate invoices
747
+ - `financial-report`: Create report
748
+ - `runway`: Calculate runway
749
+
750
+ **Quality Checks:**
751
+ - PCI compliance
752
+ - Invoices accurate
753
+ - Metrics tracked (MRR, ARR, churn)
754
+ - Runway > 6 months
755
+
756
+ ---
757
+
758
+ #### biz-legal
759
+ **Capabilities:**
760
+ - Terms of Service
761
+ - Privacy Policy
762
+ - Cookie Policy
763
+ - GDPR compliance
764
+ - Contract templates
765
+ - IP protection
766
+
767
+ **Task Types:**
768
+ - `tos`: Generate Terms of Service
769
+ - `privacy-policy`: Create privacy policy
770
+ - `gdpr`: Implement GDPR compliance
771
+ - `contract`: Create contract template
772
+ - `compliance`: Verify legal compliance
773
+
774
+ **Quality Checks:**
775
+ - All policies published
776
+ - Cookie consent implemented
777
+ - Data deletion capability
778
+ - Contracts reviewed
779
+
780
+ ---
781
+
782
+ #### biz-support
783
+ **Capabilities:**
784
+ - Help documentation
785
+ - FAQ creation
786
+ - Chatbot setup
787
+ - Ticket system
788
+ - Knowledge base
789
+ - User onboarding
790
+
791
+ **Task Types:**
792
+ - `help-docs`: Write documentation
793
+ - `faq`: Create FAQ
794
+ - `chatbot`: Configure chatbot
795
+ - `ticket-system`: Set up support
796
+ - `onboarding`: Design user onboarding
797
+
798
+ **Quality Checks:**
799
+ - All features documented
800
+ - FAQ covers common questions
801
+ - Response time < 4h
802
+ - Onboarding completion > 80%
803
+
804
+ ---
805
+
806
+ #### biz-hr
807
+ **Capabilities:**
808
+ - Job description writing
809
+ - Recruiting pipeline setup
810
+ - Interview process design
811
+ - Onboarding documentation
812
+ - Culture documentation
813
+ - Employee handbook
814
+ - Performance review templates
815
+
816
+ **Task Types:**
817
+ - `job-post`: Write job description
818
+ - `recruiting-setup`: Set up recruiting pipeline
819
+ - `interview-design`: Design interview process
820
+ - `onboarding-docs`: Create onboarding materials
821
+ - `culture-docs`: Document company culture
822
+
823
+ **Quality Checks:**
824
+ - Job posts are inclusive and clear
825
+ - Interview process documented
826
+ - Onboarding covers all essentials
827
+ - Policies are compliant
828
+
829
+ ---
830
+
831
+ #### biz-investor
832
+ **Capabilities:**
833
+ - Pitch deck creation
834
+ - Investor update emails
835
+ - Data room preparation
836
+ - Cap table management
837
+ - Financial modeling
838
+ - Due diligence preparation
839
+ - Term sheet review
840
+
841
+ **Task Types:**
842
+ - `pitch-deck`: Create/update pitch deck
843
+ - `investor-update`: Write monthly update
844
+ - `data-room`: Prepare data room
845
+ - `financial-model`: Build financial model
846
+ - `dd-prep`: Prepare for due diligence
847
+
848
+ **Quality Checks:**
849
+ - Metrics accurate and sourced
850
+ - Narrative compelling and clear
851
+ - Data room organized
852
+ - Financials reconciled
853
+
854
+ ---
855
+
856
+ #### biz-partnerships
857
+ **Capabilities:**
858
+ - Partnership outreach
859
+ - Integration partnerships
860
+ - Co-marketing agreements
861
+ - Channel partnerships
862
+ - API partnership programs
863
+ - Partner documentation
864
+ - Revenue sharing models
865
+
866
+ **Task Types:**
867
+ - `partner-outreach`: Identify and reach partners
868
+ - `integration-partner`: Technical integration partnership
869
+ - `co-marketing`: Plan co-marketing campaign
870
+ - `partner-docs`: Create partner documentation
871
+ - `partner-program`: Design partner program
872
+
873
+ **Quality Checks:**
874
+ - Partners aligned with strategy
875
+ - Agreements documented
876
+ - Integration tested
877
+ - ROI tracked
878
+
879
+ ---
880
+
881
+ ### Data Domain (3 Agents)
882
+
883
+ #### data-ml
884
+ **Capabilities:**
885
+ - Machine learning model development
886
+ - MLOps and model deployment
887
+ - Feature engineering
888
+ - Model training and tuning
889
+ - A/B testing for ML models
890
+ - Model monitoring
891
+ - LLM integration and prompting
892
+
893
+ **Task Types:**
894
+ - `model-train`: Train ML model
895
+ - `model-deploy`: Deploy model to production
896
+ - `feature-eng`: Engineer features
897
+ - `model-monitor`: Set up model monitoring
898
+ - `llm-integrate`: Integrate LLM capabilities
899
+
900
+ **Quality Checks:**
901
+ - Model performance meets threshold
902
+ - Training reproducible
903
+ - Model versioned
904
+ - Monitoring alerts configured
905
+
906
+ ---
907
+
908
+ #### data-eng
909
+ **Capabilities:**
910
+ - ETL pipeline development
911
+ - Data warehousing (Snowflake, BigQuery, Redshift)
912
+ - dbt transformations
913
+ - Airflow/Dagster orchestration
914
+ - Data quality checks
915
+ - Schema design
916
+ - Data governance
917
+
918
+ **Task Types:**
919
+ - `etl-pipeline`: Build ETL pipeline
920
+ - `dbt-model`: Create dbt model
921
+ - `data-quality`: Implement data quality checks
922
+ - `warehouse-design`: Design warehouse schema
923
+ - `pipeline-monitor`: Monitor data pipelines
924
+
925
+ **Quality Checks:**
926
+ - Pipelines idempotent
927
+ - Data freshness SLA met
928
+ - Quality checks passing
929
+ - Documentation complete
930
+
931
+ ---
932
+
933
+ #### data-analytics
934
+ **Capabilities:**
935
+ - Business intelligence
936
+ - Dashboard creation (Metabase, Looker, Tableau)
937
+ - SQL analysis
938
+ - Metrics definition
939
+ - Self-serve analytics
940
+ - Data storytelling
941
+
942
+ **Task Types:**
943
+ - `dashboard`: Create analytics dashboard
944
+ - `metrics-define`: Define business metrics
945
+ - `analysis`: Perform ad-hoc analysis
946
+ - `self-serve`: Set up self-serve analytics
947
+ - `report`: Generate business report
948
+
949
+ **Quality Checks:**
950
+ - Metrics clearly defined
951
+ - Dashboards performant
952
+ - Data accurate
953
+ - Insights actionable
954
+
955
+ ---
956
+
957
+ ### Product Domain (3 Agents)
958
+
959
+ #### prod-pm
960
+ **Capabilities:**
961
+ - Product requirements documentation
962
+ - User story writing
963
+ - Backlog grooming and prioritization
964
+ - Roadmap planning
965
+ - Feature specifications
966
+ - Stakeholder communication
967
+ - Competitive analysis
968
+
969
+ **Task Types:**
970
+ - `prd-write`: Write product requirements
971
+ - `user-story`: Create user stories
972
+ - `backlog-groom`: Groom and prioritize backlog
973
+ - `roadmap`: Update product roadmap
974
+ - `spec`: Write feature specification
975
+
976
+ **Quality Checks:**
977
+ - Requirements clear and testable
978
+ - Acceptance criteria defined
979
+ - Priorities justified
980
+ - Stakeholders aligned
981
+
982
+ ---
983
+
984
+ #### prod-design
985
+ **Capabilities:**
986
+ - Design system creation
987
+ - UI/UX patterns
988
+ - Figma prototyping
989
+ - Accessibility design
990
+ - User research synthesis
991
+ - Design documentation
992
+ - Component library
993
+
994
+ **Task Types:**
995
+ - `design-system`: Create/update design system
996
+ - `prototype`: Create Figma prototype
997
+ - `ux-pattern`: Define UX pattern
998
+ - `accessibility`: Ensure accessible design
999
+ - `component`: Design component
1000
+
1001
+ **Quality Checks:**
1002
+ - Design system consistent
1003
+ - Prototypes tested
1004
+ - WCAG compliant
1005
+ - Components documented
1006
+
1007
+ ---
1008
+
1009
+ #### prod-techwriter
1010
+ **Capabilities:**
1011
+ - API documentation
1012
+ - User guides and tutorials
1013
+ - Release notes
1014
+ - README files
1015
+ - Architecture documentation
1016
+ - Runbooks
1017
+ - Knowledge base articles
1018
+
1019
+ **Task Types:**
1020
+ - `api-docs`: Write API documentation
1021
+ - `user-guide`: Create user guide
1022
+ - `release-notes`: Write release notes
1023
+ - `tutorial`: Create tutorial
1024
+ - `architecture-doc`: Document architecture
1025
+
1026
+ **Quality Checks:**
1027
+ - Documentation accurate
1028
+ - Examples work
1029
+ - Searchable and organized
1030
+ - Up to date with code
1031
+
1032
+ ---
1033
+
1034
+ ### Review Domain (3 Agents)
1035
+
1036
+ #### review-code
1037
+ **Capabilities:**
1038
+ - Code quality assessment
1039
+ - Design pattern recognition
1040
+ - SOLID principles verification
1041
+ - Code smell detection
1042
+ - Maintainability scoring
1043
+ - Duplication detection
1044
+ - Complexity analysis
1045
+
1046
+ **Task Types:**
1047
+ - `review-code`: Full code review
1048
+ - `review-pr`: Pull request review
1049
+ - `review-refactor`: Review refactoring changes
1050
+
1051
+ **Review Output Format:**
1052
+ ```json
1053
+ {
1054
+ "strengths": ["Well-structured modules", "Good test coverage"],
1055
+ "issues": [
1056
+ {
1057
+ "severity": "Medium",
1058
+ "description": "Function exceeds 50 lines",
1059
+ "location": "src/auth.js:45",
1060
+ "suggestion": "Extract validation logic to separate function"
1061
+ }
1062
+ ],
1063
+ "assessment": "PASS|FAIL"
1064
+ }
1065
+ ```
1066
+
1067
+ **Model:** opus (required for deep analysis)
1068
+
1069
+ ---
1070
+
1071
+ #### review-business
1072
+ **Capabilities:**
1073
+ - Requirements alignment verification
1074
+ - Business logic correctness
1075
+ - Edge case identification
1076
+ - User flow validation
1077
+ - Acceptance criteria checking
1078
+ - Domain model accuracy
1079
+
1080
+ **Task Types:**
1081
+ - `review-business`: Business logic review
1082
+ - `review-requirements`: Requirements alignment check
1083
+ - `review-edge-cases`: Edge case analysis
1084
+
1085
+ **Review Focus:**
1086
+ - Does implementation match PRD requirements?
1087
+ - Are all acceptance criteria met?
1088
+ - Are edge cases handled?
1089
+ - Is domain logic correct?
1090
+
1091
+ **Model:** opus (required for requirements understanding)
1092
+
1093
+ ---
1094
+
1095
+ #### review-security
1096
+ **Capabilities:**
1097
+ - Vulnerability detection
1098
+ - Authentication review
1099
+ - Authorization verification
1100
+ - Input validation checking
1101
+ - Secret exposure detection
1102
+ - Dependency vulnerability scanning
1103
+ - OWASP Top 10 checking
1104
+
1105
+ **Task Types:**
1106
+ - `review-security`: Full security review
1107
+ - `review-auth`: Authentication/authorization review
1108
+ - `review-input`: Input validation review
1109
+
1110
+ **Critical Issues (Always FAIL):**
1111
+ - Hardcoded secrets/credentials
1112
+ - SQL injection vulnerabilities
1113
+ - XSS vulnerabilities
1114
+ - Missing authentication
1115
+ - Broken access control
1116
+ - Sensitive data exposure
1117
+
1118
+ **Model:** opus (required for security analysis)
1119
+
1120
+ ---
1121
+
1122
+ ### Growth Domain (4 Agents)
1123
+
1124
+ #### growth-hacker
1125
+ **Capabilities:**
1126
+ - Growth experiment design
1127
+ - Viral loop optimization
1128
+ - Referral program design
1129
+ - Activation optimization
1130
+ - Retention strategies
1131
+ - Churn prediction
1132
+ - PLG (Product-Led Growth) tactics
1133
+
1134
+ **Task Types:**
1135
+ - `growth-experiment`: Design growth experiment
1136
+ - `viral-loop`: Optimize viral coefficient
1137
+ - `referral-program`: Design referral system
1138
+ - `activation`: Improve activation rate
1139
+ - `retention`: Implement retention tactics
1140
+
1141
+ **Quality Checks:**
1142
+ - Experiments statistically valid
1143
+ - Metrics tracked
1144
+ - Results documented
1145
+ - Winners implemented
1146
+
1147
+ ---
1148
+
1149
+ #### growth-community
1150
+ **Capabilities:**
1151
+ - Community building
1152
+ - Discord/Slack community management
1153
+ - User-generated content programs
1154
+ - Ambassador programs
1155
+ - Community events
1156
+ - Feedback collection
1157
+ - Community analytics
1158
+
1159
+ **Task Types:**
1160
+ - `community-setup`: Set up community platform
1161
+ - `ambassador`: Create ambassador program
1162
+ - `event`: Plan community event
1163
+ - `ugc`: Launch UGC program
1164
+ - `feedback-loop`: Implement feedback collection
1165
+
1166
+ **Quality Checks:**
1167
+ - Community guidelines published
1168
+ - Engagement metrics tracked
1169
+ - Feedback actioned
1170
+ - Community health monitored
1171
+
1172
+ ---
1173
+
1174
+ #### growth-success
1175
+ **Capabilities:**
1176
+ - Customer success workflows
1177
+ - Health scoring
1178
+ - Churn prevention
1179
+ - Expansion revenue
1180
+ - QBR (Quarterly Business Review)
1181
+ - Customer journey mapping
1182
+ - NPS and CSAT programs
1183
+
1184
+ **Task Types:**
1185
+ - `health-score`: Implement health scoring
1186
+ - `churn-prevent`: Churn prevention workflow
1187
+ - `expansion`: Identify expansion opportunities
1188
+ - `qbr`: Prepare QBR materials
1189
+ - `nps`: Implement NPS program
1190
+
1191
+ **Quality Checks:**
1192
+ - Health scores calibrated
1193
+ - At-risk accounts identified
1194
+ - NRR (Net Revenue Retention) tracked
1195
+ - Customer feedback actioned
1196
+
1197
+ ---
1198
+
1199
+ #### growth-lifecycle
1200
+ **Capabilities:**
1201
+ - Email lifecycle marketing
1202
+ - In-app messaging
1203
+ - Push notification strategy
1204
+ - Behavioral triggers
1205
+ - Segmentation
1206
+ - Personalization
1207
+ - Re-engagement campaigns
1208
+
1209
+ **Task Types:**
1210
+ - `lifecycle-email`: Create lifecycle email sequence
1211
+ - `in-app`: Implement in-app messaging
1212
+ - `push`: Design push notification strategy
1213
+ - `segment`: Create user segments
1214
+ - `re-engage`: Build re-engagement campaign
1215
+
1216
+ **Quality Checks:**
1217
+ - Messages personalized
1218
+ - Triggers tested
1219
+ - Opt-out working
1220
+ - Performance tracked
1221
+
1222
+ ---
1223
+
1224
+
1225
+ ---
1226
+
1227
+ ## Agent Communication Protocol
1228
+
1229
+ ### Heartbeat (every 60s)
1230
+ ```json
1231
+ {
1232
+ "from": "agent-id",
1233
+ "type": "heartbeat",
1234
+ "timestamp": "ISO",
1235
+ "status": "active|idle|working",
1236
+ "currentTask": "task-id|null",
1237
+ "metrics": {
1238
+ "tasksCompleted": 5,
1239
+ "uptime": 3600
1240
+ }
1241
+ }
1242
+ ```
1243
+
1244
+ ### Task Claim
1245
+ ```json
1246
+ {
1247
+ "from": "agent-id",
1248
+ "type": "task-claim",
1249
+ "taskId": "uuid",
1250
+ "timestamp": "ISO"
1251
+ }
1252
+ ```
1253
+
1254
+ ### Task Complete
1255
+ ```json
1256
+ {
1257
+ "from": "agent-id",
1258
+ "type": "task-complete",
1259
+ "taskId": "uuid",
1260
+ "result": "success|failure",
1261
+ "output": {},
1262
+ "duration": 120,
1263
+ "timestamp": "ISO"
1264
+ }
1265
+ ```
1266
+
1267
+ ### Blocker
1268
+ ```json
1269
+ {
1270
+ "from": "agent-id",
1271
+ "to": "orchestrator",
1272
+ "type": "blocker",
1273
+ "taskId": "uuid",
1274
+ "reason": "string",
1275
+ "attemptedSolutions": [],
1276
+ "timestamp": "ISO"
1277
+ }
1278
+ ```
1279
+
1280
+ ### Scale Request
1281
+ ```json
1282
+ {
1283
+ "from": "orchestrator",
1284
+ "type": "scale-request",
1285
+ "agentType": "eng-backend",
1286
+ "count": 2,
1287
+ "reason": "queue-depth",
1288
+ "timestamp": "ISO"
1289
+ }
1290
+ ```