@polymorphism-tech/morph-spec 4.7.2 → 4.8.4

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 (342) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +379 -414
  3. package/bin/morph-spec.js +57 -394
  4. package/bin/validate.js +2 -26
  5. package/claude-plugin.json +2 -2
  6. package/docs/CHEATSHEET.md +203 -221
  7. package/docs/QUICKSTART.md +2 -8
  8. package/framework/CLAUDE.md +1 -1
  9. package/framework/commands/morph-proposal.md +3 -3
  10. package/framework/hooks/README.md +2 -5
  11. package/framework/hooks/claude-code/pre-tool-use/protect-readonly-files.js +4 -55
  12. package/framework/hooks/claude-code/session-start/inject-morph-context.js +20 -5
  13. package/framework/hooks/claude-code/statusline.py +6 -1
  14. package/framework/hooks/dev/check-sync-health.js +117 -0
  15. package/framework/hooks/dev/guard-version-numbers.js +57 -0
  16. package/framework/hooks/dev/sync-standards-registry.js +60 -0
  17. package/framework/hooks/dev/sync-template-registry.js +60 -0
  18. package/framework/hooks/dev/validate-skill-format.js +70 -0
  19. package/framework/hooks/dev/validate-standard-format.js +73 -0
  20. package/framework/hooks/shared/payload-utils.js +39 -0
  21. package/framework/hooks/shared/state-reader.js +25 -1
  22. package/framework/rules/morph-workflow.md +1 -1
  23. package/framework/skills/level-0-meta/morph-init/SKILL.md +216 -0
  24. package/framework/skills/level-0-meta/morph-replicate/SKILL.md +4 -4
  25. package/framework/skills/level-0-meta/tool-usage-guide/SKILL.md +4 -4
  26. package/framework/skills/level-0-meta/verification-before-completion/SKILL.md +1 -1
  27. package/framework/skills/level-1-workflows/phase-clarify/SKILL.md +192 -191
  28. package/framework/skills/level-1-workflows/phase-codebase-analysis/SKILL.md +181 -180
  29. package/framework/skills/level-1-workflows/phase-design/SKILL.md +339 -338
  30. package/framework/skills/level-1-workflows/phase-implement/SKILL.md +254 -253
  31. package/framework/skills/level-1-workflows/phase-setup/SKILL.md +168 -170
  32. package/framework/skills/level-1-workflows/phase-tasks/SKILL.md +284 -283
  33. package/framework/skills/level-1-workflows/phase-uiux/SKILL.md +246 -245
  34. package/framework/templates/examples/design-system-examples.md +1 -1
  35. package/framework/templates/ui/FluentDesignTheme.cs +1 -1
  36. package/framework/templates/ui/MudTheme.cs +1 -1
  37. package/framework/templates/ui/design-system.css +1 -1
  38. package/package.json +7 -5
  39. package/src/commands/agents/index.js +1 -2
  40. package/src/commands/index.js +13 -16
  41. package/src/commands/project/doctor.js +100 -14
  42. package/src/commands/project/index.js +7 -10
  43. package/src/commands/project/init.js +398 -528
  44. package/src/commands/project/install-plugin-cmd.js +28 -0
  45. package/src/commands/project/setup-infra-cmd.js +12 -0
  46. package/src/commands/project/tutorial.js +115 -0
  47. package/src/commands/state/approve.js +213 -221
  48. package/src/commands/state/index.js +0 -1
  49. package/src/commands/state/state.js +337 -365
  50. package/src/commands/templates/index.js +0 -4
  51. package/src/commands/trust/trust.js +1 -93
  52. package/src/commands/utils/index.js +1 -5
  53. package/src/commands/validation/index.js +1 -5
  54. package/src/core/registry/command-registry.js +11 -285
  55. package/src/core/state/state-manager.js +5 -2
  56. package/src/lib/detectors/index.js +81 -87
  57. package/src/lib/detectors/structure-detector.js +275 -273
  58. package/src/lib/generators/recap-generator.js +232 -225
  59. package/src/scripts/global-install.js +34 -0
  60. package/src/scripts/install-plugin.js +126 -0
  61. package/src/scripts/setup-infra.js +203 -0
  62. package/src/utils/agents-installer.js +10 -1
  63. package/src/utils/hooks-installer.js +66 -3
  64. package/.morph/.morphversion +0 -5
  65. package/.morph/analytics/threads-log.jsonl +0 -5
  66. package/.morph/config/config.json +0 -8
  67. package/.morph/framework/agents.json +0 -1815
  68. package/.morph/framework/hooks/README.md +0 -205
  69. package/.morph/framework/hooks/claude-code/notification/approval-reminder.js +0 -54
  70. package/.morph/framework/hooks/claude-code/post-tool-use/dispatch.js +0 -83
  71. package/.morph/framework/hooks/claude-code/post-tool-use/handle-tool-failure.js +0 -42
  72. package/.morph/framework/hooks/claude-code/pre-compact/save-morph-context.js +0 -61
  73. package/.morph/framework/hooks/claude-code/pre-tool-use/enforce-phase-writes.js +0 -71
  74. package/.morph/framework/hooks/claude-code/pre-tool-use/protect-readonly-files.js +0 -58
  75. package/.morph/framework/hooks/claude-code/pre-tool-use/protect-spec-files.js +0 -64
  76. package/.morph/framework/hooks/claude-code/session-start/inject-morph-context.js +0 -94
  77. package/.morph/framework/hooks/claude-code/statusline.py +0 -538
  78. package/.morph/framework/hooks/claude-code/statusline.sh +0 -7
  79. package/.morph/framework/hooks/claude-code/stop/validate-completion.js +0 -88
  80. package/.morph/framework/hooks/claude-code/user-prompt/enrich-prompt.js +0 -91
  81. package/.morph/framework/hooks/git/commit-msg/conventional-commits.sh +0 -33
  82. package/.morph/framework/hooks/git/pre-commit/agents.sh +0 -25
  83. package/.morph/framework/hooks/git/pre-commit/orchestrator.sh +0 -64
  84. package/.morph/framework/hooks/git/pre-commit/specs.sh +0 -50
  85. package/.morph/framework/hooks/git/pre-push/run-tests.sh +0 -44
  86. package/.morph/framework/hooks/shared/hook-response.js +0 -45
  87. package/.morph/framework/hooks/shared/phase-utils.js +0 -129
  88. package/.morph/framework/hooks/shared/state-reader.js +0 -138
  89. package/.morph/framework/hooks/shared/stdin-reader.js +0 -26
  90. package/.morph/framework/standards/STANDARDS.json +0 -933
  91. package/.morph/framework/standards/ai-agents/blazor-ui.md +0 -364
  92. package/.morph/framework/standards/ai-agents/production.md +0 -415
  93. package/.morph/framework/standards/ai-agents/setup.md +0 -418
  94. package/.morph/framework/standards/ai-agents/team-orchestration.md +0 -479
  95. package/.morph/framework/standards/ai-agents/workflows.md +0 -354
  96. package/.morph/framework/standards/architecture/ddd/aggregates.md +0 -120
  97. package/.morph/framework/standards/architecture/ddd/bounded-contexts.md +0 -105
  98. package/.morph/framework/standards/architecture/ddd/complexity-levels.md +0 -108
  99. package/.morph/framework/standards/architecture/ddd/entities.md +0 -99
  100. package/.morph/framework/standards/architecture/ddd/ubiquitous-language.md +0 -58
  101. package/.morph/framework/standards/architecture/ddd/value-objects.md +0 -124
  102. package/.morph/framework/standards/backend/api/minimal-api.md +0 -494
  103. package/.morph/framework/standards/backend/api/rest.md +0 -492
  104. package/.morph/framework/standards/backend/api/validation.md +0 -88
  105. package/.morph/framework/standards/backend/authentication/passkeys.md +0 -428
  106. package/.morph/framework/standards/backend/database/ef-core.md +0 -199
  107. package/.morph/framework/standards/backend/database/migrations.md +0 -393
  108. package/.morph/framework/standards/backend/database/postgresql/database.md +0 -352
  109. package/.morph/framework/standards/backend/database/repository-patterns.md +0 -528
  110. package/.morph/framework/standards/backend/database/vector-search-rag.md +0 -541
  111. package/.morph/framework/standards/backend/dotnet/async.md +0 -366
  112. package/.morph/framework/standards/backend/dotnet/core.md +0 -117
  113. package/.morph/framework/standards/backend/dotnet/di.md +0 -439
  114. package/.morph/framework/standards/backend/dotnet/program-cs-checklist.md +0 -92
  115. package/.morph/framework/standards/backend/integrations/asaas/asaas-api.md +0 -216
  116. package/.morph/framework/standards/backend/integrations/clerk/clerk-auth.md +0 -290
  117. package/.morph/framework/standards/backend/integrations/hangfire/hangfire-jobs.md +0 -350
  118. package/.morph/framework/standards/backend/integrations/resend/resend-email.md +0 -385
  119. package/.morph/framework/standards/context/analytics.md +0 -96
  120. package/.morph/framework/standards/context/bundles.md +0 -110
  121. package/.morph/framework/standards/context/priming.md +0 -78
  122. package/.morph/framework/standards/core/architecture.md +0 -185
  123. package/.morph/framework/standards/core/coding.md +0 -214
  124. package/.morph/framework/standards/core/git-branching-strategy.md +0 -403
  125. package/.morph/framework/standards/core/git.md +0 -185
  126. package/.morph/framework/standards/core/testing.md +0 -295
  127. package/.morph/framework/standards/data/nosql/blob-storage.md +0 -102
  128. package/.morph/framework/standards/data/nosql/cache/redis.md +0 -97
  129. package/.morph/framework/standards/data/nosql/cosmos-db.md +0 -118
  130. package/.morph/framework/standards/data/vector-search/azure-ai-search.md +0 -121
  131. package/.morph/framework/standards/data/vector-search/rag-chunking.md +0 -104
  132. package/.morph/framework/standards/frontend/blazor/design-checklist.md +0 -222
  133. package/.morph/framework/standards/frontend/blazor/fluent-ui-setup.md +0 -595
  134. package/.morph/framework/standards/frontend/blazor/fluent-ui.md +0 -137
  135. package/.morph/framework/standards/frontend/blazor/html-conversion.md +0 -184
  136. package/.morph/framework/standards/frontend/blazor/lifecycle.md +0 -195
  137. package/.morph/framework/standards/frontend/blazor/pitfalls.md +0 -198
  138. package/.morph/framework/standards/frontend/blazor/state.md +0 -191
  139. package/.morph/framework/standards/frontend/design-system/animations.md +0 -151
  140. package/.morph/framework/standards/frontend/design-system/naming.md +0 -64
  141. package/.morph/framework/standards/frontend/nextjs/app-router.md +0 -123
  142. package/.morph/framework/standards/frontend/nextjs/components.md +0 -132
  143. package/.morph/framework/standards/frontend/nextjs/data-fetching.md +0 -126
  144. package/.morph/framework/standards/frontend/nextjs/forms.md +0 -128
  145. package/.morph/framework/standards/frontend/nextjs/naming-conventions.md +0 -67
  146. package/.morph/framework/standards/frontend/nextjs/nextjs-patterns.md +0 -215
  147. package/.morph/framework/standards/frontend/nextjs/project-structure.md +0 -102
  148. package/.morph/framework/standards/frontend/nextjs/state-management.md +0 -72
  149. package/.morph/framework/standards/frontend/nextjs/testing.md +0 -111
  150. package/.morph/framework/standards/infrastructure/azure/azure.md +0 -624
  151. package/.morph/framework/standards/infrastructure/azure/bicep/bicep-patterns.md +0 -422
  152. package/.morph/framework/standards/infrastructure/azure/devops/azure-devops-setup.md +0 -516
  153. package/.morph/framework/standards/infrastructure/azure/devops/local-development.md +0 -520
  154. package/.morph/framework/standards/infrastructure/azure/services/functions.md +0 -486
  155. package/.morph/framework/standards/infrastructure/azure/services/service-bus.md +0 -459
  156. package/.morph/framework/standards/infrastructure/azure/services/storage.md +0 -407
  157. package/.morph/framework/standards/infrastructure/docker/easypanel-deploy.md +0 -196
  158. package/.morph/framework/standards/infrastructure/supabase/mcp-setup.md +0 -252
  159. package/.morph/framework/standards/infrastructure/supabase/supabase-auth.md +0 -176
  160. package/.morph/framework/standards/infrastructure/supabase/supabase-pgvector.md +0 -169
  161. package/.morph/framework/standards/infrastructure/supabase/supabase-rls.md +0 -184
  162. package/.morph/framework/standards/infrastructure/supabase/supabase-storage.md +0 -153
  163. package/.morph/framework/standards/integration/api/graphql.md +0 -91
  164. package/.morph/framework/standards/integration/api/grpc.md +0 -114
  165. package/.morph/framework/standards/integration/api/rest-design.md +0 -95
  166. package/.morph/framework/standards/integration/event-driven/cqrs.md +0 -101
  167. package/.morph/framework/standards/integration/event-driven/event-sourcing.md +0 -124
  168. package/.morph/framework/standards/integration/event-driven/service-bus.md +0 -95
  169. package/.morph/framework/standards/integration/mcp/mcp-tools.md +0 -384
  170. package/.morph/framework/standards/observability/logging.md +0 -131
  171. package/.morph/framework/standards/observability/metrics.md +0 -121
  172. package/.morph/framework/standards/observability/monitoring.md +0 -114
  173. package/.morph/framework/standards/observability/tracing.md +0 -132
  174. package/.morph/framework/standards/workflows/parallel-execution.md +0 -112
  175. package/.morph/framework/standards/workflows/thread-management.md +0 -113
  176. package/.morph/framework/templates/.idea/morph-templates.xml +0 -92
  177. package/.morph/framework/templates/.vscode/morph-templates.code-snippets +0 -186
  178. package/.morph/framework/templates/IDE-SNIPPETS.md +0 -266
  179. package/.morph/framework/templates/README.md +0 -814
  180. package/.morph/framework/templates/REGISTRY.json +0 -1888
  181. package/.morph/framework/templates/code/dotnet/backend/repository.cs +0 -141
  182. package/.morph/framework/templates/code/dotnet/backend/service.cs +0 -139
  183. package/.morph/framework/templates/code/dotnet/contracts/Commands.cs +0 -74
  184. package/.morph/framework/templates/code/dotnet/contracts/Entities.cs +0 -25
  185. package/.morph/framework/templates/code/dotnet/contracts/Queries.cs +0 -74
  186. package/.morph/framework/templates/code/dotnet/contracts/README.md +0 -74
  187. package/.morph/framework/templates/code/dotnet/contracts/api-contracts.cs +0 -173
  188. package/.morph/framework/templates/code/dotnet/contracts/contracts-level1.cs +0 -69
  189. package/.morph/framework/templates/code/dotnet/contracts/contracts-level2.cs +0 -86
  190. package/.morph/framework/templates/code/dotnet/contracts/contracts-level3.cs +0 -41
  191. package/.morph/framework/templates/code/dotnet/database/migration.cs +0 -83
  192. package/.morph/framework/templates/code/dotnet/frontend/component.razor +0 -239
  193. package/.morph/framework/templates/code/dotnet/jobs/agent.cs +0 -163
  194. package/.morph/framework/templates/code/dotnet/jobs/job.cs +0 -171
  195. package/.morph/framework/templates/code/dotnet/test.cs +0 -239
  196. package/.morph/framework/templates/code/sql/rls-policy.sql +0 -57
  197. package/.morph/framework/templates/code/sql/supabase-migration.sql +0 -100
  198. package/.morph/framework/templates/code/sql/supabase-migration.template.sql +0 -113
  199. package/.morph/framework/templates/code/typescript/contracts.ts +0 -168
  200. package/.morph/framework/templates/context/CONTEXT-FEATURE.md +0 -276
  201. package/.morph/framework/templates/context/CONTEXT.md +0 -181
  202. package/.morph/framework/templates/docs/clarifications.md +0 -253
  203. package/.morph/framework/templates/docs/onboarding.md +0 -123
  204. package/.morph/framework/templates/docs/proposal.md +0 -182
  205. package/.morph/framework/templates/docs/schema-analysis.md +0 -119
  206. package/.morph/framework/templates/docs/spec.md +0 -198
  207. package/.morph/framework/templates/docs/ui-components.md +0 -124
  208. package/.morph/framework/templates/docs/ui-design-system.md +0 -76
  209. package/.morph/framework/templates/docs/ui-flows.md +0 -167
  210. package/.morph/framework/templates/docs/ui-mockups.md +0 -98
  211. package/.morph/framework/templates/docs/user-stories.md +0 -34
  212. package/.morph/framework/templates/examples/design-system-examples.md +0 -357
  213. package/.morph/framework/templates/examples/spec-examples.md +0 -90
  214. package/.morph/framework/templates/feature/decisions.md +0 -187
  215. package/.morph/framework/templates/feature/recap.md +0 -146
  216. package/.morph/framework/templates/feature/tasks.md +0 -199
  217. package/.morph/framework/templates/frontend/nextjs/Dockerfile.nextjs.hbs +0 -43
  218. package/.morph/framework/templates/frontend/nextjs/client-component.tsx.hbs +0 -26
  219. package/.morph/framework/templates/frontend/nextjs/env.mjs.hbs +0 -32
  220. package/.morph/framework/templates/frontend/nextjs/feature-form.tsx.hbs +0 -56
  221. package/.morph/framework/templates/frontend/nextjs/page.tsx.hbs +0 -22
  222. package/.morph/framework/templates/frontend/nextjs/tsconfig.json.hbs +0 -26
  223. package/.morph/framework/templates/frontend/nextjs/use-feature.ts.hbs +0 -54
  224. package/.morph/framework/templates/infrastructure/azure/Dockerfile.example +0 -82
  225. package/.morph/framework/templates/infrastructure/azure/README.md +0 -286
  226. package/.morph/framework/templates/infrastructure/azure/app-insights.bicep +0 -63
  227. package/.morph/framework/templates/infrastructure/azure/app-service.bicep +0 -164
  228. package/.morph/framework/templates/infrastructure/azure/container-app-env.bicep +0 -49
  229. package/.morph/framework/templates/infrastructure/azure/container-app.bicep +0 -156
  230. package/.morph/framework/templates/infrastructure/azure/deploy-checklist.md +0 -426
  231. package/.morph/framework/templates/infrastructure/azure/deploy.ps1 +0 -229
  232. package/.morph/framework/templates/infrastructure/azure/deploy.sh +0 -208
  233. package/.morph/framework/templates/infrastructure/azure/key-vault.bicep +0 -91
  234. package/.morph/framework/templates/infrastructure/azure/main.bicep +0 -189
  235. package/.morph/framework/templates/infrastructure/azure/parameters.dev.json +0 -29
  236. package/.morph/framework/templates/infrastructure/azure/parameters.prod.json +0 -29
  237. package/.morph/framework/templates/infrastructure/azure/parameters.staging.json +0 -29
  238. package/.morph/framework/templates/infrastructure/azure/sql-database.bicep +0 -103
  239. package/.morph/framework/templates/infrastructure/azure/storage.bicep +0 -106
  240. package/.morph/framework/templates/infrastructure/docker/Dockerfile.template +0 -58
  241. package/.morph/framework/templates/infrastructure/docker/docker-compose.template.yml +0 -67
  242. package/.morph/framework/templates/infrastructure/docker/dockerfile-api.dockerfile +0 -38
  243. package/.morph/framework/templates/infrastructure/docker/dockerfile-web.dockerfile +0 -48
  244. package/.morph/framework/templates/infrastructure/docker/easypanel.template.json +0 -54
  245. package/.morph/framework/templates/infrastructure/github/README.md +0 -593
  246. package/.morph/framework/templates/infrastructure/github/actions/azure-auth/action.yml.hbs +0 -22
  247. package/.morph/framework/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +0 -45
  248. package/.morph/framework/templates/infrastructure/github/actions/health-check/action.yml.hbs +0 -27
  249. package/.morph/framework/templates/infrastructure/github/workflows/deploy-azure-app-service.yml.hbs +0 -61
  250. package/.morph/framework/templates/infrastructure/github/workflows/deploy-easypanel.yml.hbs +0 -31
  251. package/.morph/framework/templates/infrastructure/github/workflows/docker-build-push.yml.hbs +0 -59
  252. package/.morph/framework/templates/infrastructure/github/workflows/dotnet-build.yml.hbs +0 -39
  253. package/.morph/framework/templates/integrations/asaas-client.cs +0 -387
  254. package/.morph/framework/templates/integrations/asaas-webhook.cs +0 -351
  255. package/.morph/framework/templates/integrations/azure-identity-config.cs +0 -288
  256. package/.morph/framework/templates/integrations/clerk-config.cs +0 -258
  257. package/.morph/framework/templates/meta-prompts/fusion/fusion-agent.md +0 -76
  258. package/.morph/framework/templates/meta-prompts/fusion/fusion-aggregator.md +0 -100
  259. package/.morph/framework/templates/meta-prompts/hops/hop-retry.md +0 -78
  260. package/.morph/framework/templates/meta-prompts/hops/hop-validation.md +0 -97
  261. package/.morph/framework/templates/meta-prompts/hops/hop-wrapper.md +0 -36
  262. package/.morph/framework/templates/meta-prompts/parallel-workers/parallel-coordinator.md +0 -113
  263. package/.morph/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +0 -80
  264. package/.morph/framework/templates/meta-prompts/squad-leaders/backend-squad.md +0 -90
  265. package/.morph/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +0 -126
  266. package/.morph/framework/templates/meta-prompts/squad-leaders/squad-leader.md +0 -43
  267. package/.morph/framework/templates/meta-prompts/validators/checkpoint-validator.md +0 -107
  268. package/.morph/framework/templates/meta-prompts/validators/pre-commit-validator.md +0 -95
  269. package/.morph/framework/templates/project-structure/dotnet-ddd.md +0 -70
  270. package/.morph/framework/templates/saas/subscription.cs +0 -347
  271. package/.morph/framework/templates/saas/tenant.cs +0 -338
  272. package/.morph/framework/templates/state.template.json +0 -17
  273. package/.morph/framework/templates/ui/FluentDesignTheme.cs +0 -149
  274. package/.morph/framework/templates/ui/MudTheme.cs +0 -281
  275. package/.morph/framework/templates/ui/design-system.css +0 -226
  276. package/.morph/logs/tool-failures.log +0 -17
  277. package/.morph/memory/pre-compact-2026-02-24T17-43-30-049Z.json +0 -16
  278. package/.morph/plans/eager-watching-bunny.md +0 -105
  279. package/.morph/plans/temporal-seeking-nebula.md +0 -45
  280. package/.morph/state.json +0 -48
  281. package/CLAUDE.md +0 -77
  282. package/docs/ARCHITECTURE.md +0 -331
  283. package/docs/COMMAND-FLOWS.md +0 -368
  284. package/docs/claude-alignment-report.md +0 -137
  285. package/docs/examples/order-management/contracts.cs +0 -84
  286. package/docs/examples/order-management/proposal.md +0 -24
  287. package/docs/examples/order-management/spec.md +0 -162
  288. package/docs/plans/2026-02-22-claude-docs-morph-alignment-analysis.md +0 -512
  289. package/docs/plans/2026-02-22-claude-settings.md +0 -515
  290. package/docs/plans/2026-02-22-morph-cc-alignment-impl.md +0 -728
  291. package/docs/plans/2026-02-22-morph-spec-next.md +0 -478
  292. package/docs/plans/2026-02-22-native-alignment-design.md +0 -199
  293. package/docs/plans/2026-02-22-native-alignment-impl.md +0 -925
  294. package/docs/plans/2026-02-22-native-enrichment-design.md +0 -244
  295. package/docs/plans/2026-02-22-native-enrichment.md +0 -735
  296. package/docs/plans/2026-02-23-ddd-architecture-refactor.md +0 -1153
  297. package/docs/plans/2026-02-23-ddd-nextsteps.md +0 -682
  298. package/docs/plans/2026-02-23-infra-architect-refactor.md +0 -437
  299. package/docs/plans/2026-02-23-nextjs-code-review-design.md +0 -156
  300. package/docs/plans/2026-02-23-nextjs-code-review-impl.md +0 -1254
  301. package/docs/plans/2026-02-23-nextjs-standards-design.md +0 -149
  302. package/docs/plans/2026-02-23-nextjs-standards-impl.md +0 -1846
  303. package/scripts/generate-refs.js +0 -336
  304. package/scripts/generate-standards-registry.js +0 -44
  305. package/scripts/scan-nextjs.mjs +0 -169
  306. package/scripts/validate-real.mjs +0 -255
  307. package/src/commands/feature/create-story.js +0 -362
  308. package/src/commands/feature/index.js +0 -6
  309. package/src/commands/feature/shard-spec.js +0 -225
  310. package/src/commands/feature/sprint-status.js +0 -250
  311. package/src/commands/generation/generate-onboarding.js +0 -169
  312. package/src/commands/generation/generate.js +0 -276
  313. package/src/commands/generation/index.js +0 -5
  314. package/src/commands/learning/capture-pattern.js +0 -121
  315. package/src/commands/learning/index.js +0 -5
  316. package/src/commands/learning/search-patterns.js +0 -126
  317. package/src/commands/mcp/mcp.js +0 -102
  318. package/src/commands/project/changes.js +0 -66
  319. package/src/commands/project/cost.js +0 -179
  320. package/src/commands/project/diff.js +0 -278
  321. package/src/commands/project/revert.js +0 -173
  322. package/src/commands/project/standards.js +0 -80
  323. package/src/commands/project/sync.js +0 -167
  324. package/src/commands/project/update-agents.js +0 -23
  325. package/src/commands/state/rollback-phase.js +0 -185
  326. package/src/commands/templates/template-customize.js +0 -87
  327. package/src/commands/templates/template-list.js +0 -114
  328. package/src/commands/templates/template-show.js +0 -129
  329. package/src/commands/templates/template-validate.js +0 -91
  330. package/src/commands/utils/troubleshoot.js +0 -222
  331. package/src/commands/validation/analyze-blazor-concurrency.js +0 -193
  332. package/src/commands/validation/lint-fluent.js +0 -352
  333. package/src/commands/validation/validate-blazor-state.js +0 -210
  334. package/src/commands/validation/validate-blazor.js +0 -156
  335. package/src/commands/validation/validate-css.js +0 -84
  336. package/src/lib/detectors/conversation-analyzer.js +0 -163
  337. package/src/lib/learning/index.js +0 -7
  338. package/src/lib/learning/learning-system.js +0 -520
  339. package/src/lib/troubleshooting/index.js +0 -8
  340. package/src/lib/troubleshooting/troubleshoot-grep.js +0 -198
  341. package/src/lib/troubleshooting/troubleshoot-index.js +0 -144
  342. package/src/llm/environment-detector.js +0 -43
@@ -1,1815 +0,0 @@
1
- {
2
- "$schema": "./agent-schema.json",
3
- "version": "3.2.0-hierarchical",
4
- "total_agents": 38,
5
- "tiers": {
6
- "tier_1_orchestrators": 3,
7
- "tier_2_leaders": 4,
8
- "tier_3_specialists": 26,
9
- "tier_4_validators": 5
10
- },
11
- "agents": {
12
- "_comment_tier_1": "=== TIER 1: ORCHESTRATORS (3) ===",
13
- "standards-architect": {
14
- "tier": 1,
15
- "role": "orchestrator",
16
- "title": "Chief Architect",
17
- "domains": [
18
- "architecture",
19
- "developer-experience"
20
- ],
21
- "keywords": [],
22
- "always_active": true,
23
- "validators": [
24
- "architecture",
25
- "packages"
26
- ],
27
- "relationships": {
28
- "reports_to": "user",
29
- "coordinates": [
30
- "dotnet-senior",
31
- "infra-architect",
32
- "ui-designer",
33
- "domain-architect",
34
- "testing-specialist",
35
- "code-analyzer",
36
- "troubleshooting-expert",
37
- "documentation-specialist",
38
- "load-testing-expert"
39
- ],
40
- "escalates_to": "user",
41
- "team_role": "lead"
42
- },
43
- "standards": [
44
- "core/coding.md",
45
- "core/architecture.md",
46
- "backend/dotnet/program-cs-checklist.md"
47
- ],
48
- "teammate": {
49
- "role": "Team Lead (Delegate Mode)",
50
- "icon": "🎯",
51
- "spawn_prompt": "You are the Chief Architect and Team Lead in delegate mode. Coordinate Domain Leaders, resolve conflicts, synthesize results. DO NOT implement code yourself. Escalate conflicts to user when teammates disagree on architecture/tech choices."
52
- }
53
- },
54
- "ai-system-architect": {
55
- "tier": 1,
56
- "role": "orchestrator",
57
- "title": "AI/Agent Architect",
58
- "domains": [
59
- "ai-orchestration",
60
- "architecture"
61
- ],
62
- "keywords": [
63
- "agent system",
64
- "ai architecture",
65
- "orchestration",
66
- "multi-agent",
67
- "agent workflow"
68
- ],
69
- "always_active": false,
70
- "validators": [
71
- "architecture"
72
- ],
73
- "relationships": {
74
- "reports_to": "standards-architect",
75
- "coordinates": [
76
- "ms-agent-expert"
77
- ],
78
- "escalates_to": "standards-architect",
79
- "collaborates_with": [
80
- "dotnet-senior"
81
- ],
82
- "team_role": "orchestrator"
83
- },
84
- "standards": [
85
- "core/coding.md",
86
- "core/architecture.md",
87
- "ai-agents/setup.md",
88
- "ai-agents/workflows.md",
89
- "ai-agents/production.md",
90
- "ai-agents/blazor-ui.md"
91
- ],
92
- "teammate": {
93
- "role": "AI Architect",
94
- "icon": "🤖",
95
- "spawn_prompt": "You are the AI/Agent System Architect. Design agent workflows, tool integrations, and orchestration patterns. Coordinate with ms-agent-expert for implementation."
96
- }
97
- },
98
- "popm-advisor": {
99
- "tier": 1,
100
- "role": "orchestrator",
101
- "title": "Product/Project Advisor",
102
- "domains": [
103
- "requirements",
104
- "business-value"
105
- ],
106
- "keywords": [
107
- "unclear",
108
- "requirements",
109
- "priority",
110
- "roi",
111
- "business value",
112
- "user story"
113
- ],
114
- "always_active": false,
115
- "validators": [],
116
- "relationships": {
117
- "reports_to": "user",
118
- "coordinates": [],
119
- "team_role": "planning_only",
120
- "active_phases": [
121
- "proposal",
122
- "setup",
123
- "design"
124
- ]
125
- },
126
- "standards": [
127
- "core/coding.md",
128
- "core/architecture.md"
129
- ],
130
- "teammate": null
131
- },
132
- "_comment_tier_2": "=== TIER 2: DOMAIN LEADERS (4) ===",
133
- "dotnet-senior": {
134
- "tier": 2,
135
- "role": "domain-leader",
136
- "title": "Backend Squad Leader",
137
- "domains": [
138
- "backend"
139
- ],
140
- "keywords": [
141
- "backend",
142
- "api",
143
- "dotnet",
144
- ".net",
145
- "csharp",
146
- "c#",
147
- "web api",
148
- "minimal api"
149
- ],
150
- "always_active": true,
151
- "validators": [
152
- "architecture",
153
- "packages"
154
- ],
155
- "relationships": {
156
- "reports_to": "standards-architect",
157
- "coordinates": [
158
- "ef-modeler",
159
- "event-architect",
160
- "api-designer",
161
- "nosql-cache-expert",
162
- "hangfire-orchestrator",
163
- "ms-agent-expert",
164
- "asaas-financial",
165
- "clerk-auth",
166
- "resend-email"
167
- ],
168
- "escalates_to": "standards-architect",
169
- "collaborates_with": [
170
- "infra-architect",
171
- "blazor-builder",
172
- "nextjs-expert"
173
- ],
174
- "team_role": "domain_leader"
175
- },
176
- "standards": [
177
- "core/coding.md",
178
- "core/architecture.md",
179
- "backend/dotnet/core.md",
180
- "backend/dotnet/program-cs-checklist.md"
181
- ],
182
- "teammate": {
183
- "role": "Backend Squad Leader",
184
- "icon": "⚙️",
185
- "spawn_prompt": "You are the Backend Squad Leader. Coordinate backend specialists (ef-modeler, event-architect, api-designer, etc.). Assign tasks, review designs, enforce backend standards. Escalate cross-domain conflicts to standards-architect."
186
- }
187
- },
188
- "infra-architect": {
189
- "tier": 2,
190
- "role": "domain-leader",
191
- "title": "Infrastructure Squad Leader",
192
- "domains": [
193
- "infrastructure"
194
- ],
195
- "keywords": [
196
- "infrastructure",
197
- "infra",
198
- "cloud",
199
- "deployment",
200
- "hosting",
201
- "ci/cd",
202
- "container",
203
- "iac",
204
- "pipeline"
205
- ],
206
- "always_active": true,
207
- "validators": [
208
- "architecture"
209
- ],
210
- "relationships": {
211
- "reports_to": "standards-architect",
212
- "coordinates": [
213
- "azure-architect",
214
- "devops-engineer",
215
- "container-specialist",
216
- "observability-expert"
217
- ],
218
- "escalates_to": "standards-architect",
219
- "collaborates_with": [
220
- "dotnet-senior",
221
- "ui-designer"
222
- ],
223
- "team_role": "domain_leader"
224
- },
225
- "standards": [
226
- "core/coding.md",
227
- "core/architecture.md"
228
- ],
229
- "teammate": {
230
- "role": "Infrastructure Squad Leader",
231
- "icon": "🏗️",
232
- "spawn_prompt": "You are the Infrastructure Squad Leader. Coordinate infra specialists regardless of cloud provider (azure-architect, devops-engineer, container-specialist, observability-expert). Focus on IaC, CI/CD, containerization, cost optimization. Delegate to azure-architect for Azure-specific work. Escalate to standards-architect on conflicts."
233
- }
234
- },
235
- "azure-architect": {
236
- "tier": 3,
237
- "role": "specialist",
238
- "title": "Azure Infrastructure Specialist",
239
- "domains": [
240
- "infrastructure"
241
- ],
242
- "keywords": [
243
- "azure",
244
- "bicep",
245
- "arm template",
246
- "azure resources",
247
- "container apps",
248
- "azure sql",
249
- "key vault",
250
- "app insights"
251
- ],
252
- "always_active": false,
253
- "validators": [
254
- "architecture"
255
- ],
256
- "relationships": {
257
- "reports_to": "infra-architect",
258
- "coordinates": [
259
- "bicep-architect",
260
- "devops-engineer",
261
- "container-specialist",
262
- "observability-expert",
263
- "azure-identity"
264
- ],
265
- "escalates_to": "infra-architect",
266
- "collaborates_with": [
267
- "bicep-architect",
268
- "devops-engineer",
269
- "container-specialist"
270
- ],
271
- "team_role": "specialist"
272
- },
273
- "standards": [
274
- "core/coding.md",
275
- "core/architecture.md",
276
- "azure.md"
277
- ],
278
- "teammate": {
279
- "role": "Infrastructure Squad Leader",
280
- "icon": "☁️",
281
- "spawn_prompt": "You are the Azure Infrastructure Specialist (tier-3). Focus exclusively on Azure resources, Bicep IaC templates, Azure cost optimization, and zero-portal policy. Report to infra-architect. Coordinate with bicep-architect for IaC, devops-engineer for Azure pipelines, container-specialist for Container Apps."
282
- }
283
- },
284
- "ui-designer": {
285
- "tier": 2,
286
- "role": "domain-leader",
287
- "title": "UI/UX Squad Leader",
288
- "domains": [
289
- "frontend-design"
290
- ],
291
- "keywords": [
292
- "wireframe",
293
- "mockup",
294
- "user flow",
295
- "ux",
296
- "design",
297
- "interface design",
298
- "user experience",
299
- "page",
300
- "dashboard",
301
- "form",
302
- "UI",
303
- "settings",
304
- "interface",
305
- "screen",
306
- "panel",
307
- "portal",
308
- "view"
309
- ],
310
- "always_active": false,
311
- "validators": [
312
- "design-system",
313
- "contrast"
314
- ],
315
- "relationships": {
316
- "reports_to": "standards-architect",
317
- "coordinates": [
318
- "blazor-builder",
319
- "nextjs-expert",
320
- "css-specialist"
321
- ],
322
- "escalates_to": "standards-architect",
323
- "collaborates_with": [
324
- "dotnet-senior"
325
- ],
326
- "team_role": "domain_leader",
327
- "active_phases": [
328
- "uiux"
329
- ]
330
- },
331
- "standards": [
332
- "frontend/blazor/fluent-ui.md",
333
- "mudblazor-blazor.md",
334
- "frontend/design-system/naming.md",
335
- "frontend/design-system/animations.md"
336
- ],
337
- "teammate": {
338
- "role": "UI/UX Squad Leader (FASE 1.5)",
339
- "icon": "🎨",
340
- "spawn_prompt": "You are the UI/UX Squad Leader for FASE 1.5. Create wireframes, mockups, user flows. Define design system (colors, typography, spacing). Coordinate with blazor-builder or nextjs-expert for stack-specific patterns. Work is AGNOSTIC (no implementation code)."
341
- }
342
- },
343
- "_comment_tier_3_backend": "=== TIER 3: BACKEND SPECIALISTS (10) ===",
344
- "ef-modeler": {
345
- "tier": 3,
346
- "role": "specialist",
347
- "title": "Data Persistence Specialist (Relational)",
348
- "domains": [
349
- "backend-data"
350
- ],
351
- "keywords": [
352
- "entity",
353
- "database",
354
- "migration",
355
- "ef core",
356
- "entity framework",
357
- "sql",
358
- "dbcontext"
359
- ],
360
- "always_active": false,
361
- "validators": [
362
- "architecture",
363
- "blazor-concurrency"
364
- ],
365
- "relationships": {
366
- "reports_to": "dotnet-senior",
367
- "coordinates": [],
368
- "escalates_to": "dotnet-senior",
369
- "collaborates_with": [
370
- "blazor-builder",
371
- "nextjs-expert",
372
- "api-designer",
373
- "nosql-cache-expert"
374
- ],
375
- "team_role": "specialist"
376
- },
377
- "standards": [
378
- "core/coding.md",
379
- "backend/database/ef-core.md",
380
- "backend/dotnet/core.md"
381
- ],
382
- "teammate": {
383
- "role": "Data Persistence Specialist",
384
- "icon": "🗄️",
385
- "spawn_prompt": "You are the Data Persistence Specialist (EF Core). Focus on Models/, Migrations/, DbContext. Follow blazor-efcore.md standards. Use IDbContextFactory for background ops. Message blazor-builder when entities ready for UI binding."
386
- }
387
- },
388
- "event-architect": {
389
- "tier": 3,
390
- "role": "specialist",
391
- "title": "Event-Driven Architecture Specialist",
392
- "domains": [
393
- "backend-events"
394
- ],
395
- "keywords": [
396
- "event",
397
- "service bus",
398
- "rabbitmq",
399
- "cqrs",
400
- "event sourcing",
401
- "messaging",
402
- "pub/sub",
403
- "domain events",
404
- "saga",
405
- "real-time",
406
- "realtime",
407
- "websocket",
408
- "live updates"
409
- ],
410
- "always_active": false,
411
- "validators": [
412
- "architecture",
413
- "event-driven"
414
- ],
415
- "relationships": {
416
- "reports_to": "dotnet-senior",
417
- "coordinates": [],
418
- "escalates_to": "dotnet-senior",
419
- "collaborates_with": [
420
- "domain-architect",
421
- "api-designer",
422
- "infra-architect"
423
- ],
424
- "team_role": "specialist"
425
- },
426
- "standards": [
427
- "core/coding.md",
428
- "core/architecture.md"
429
- ],
430
- "teammate": {
431
- "role": "Event-Driven Architecture Specialist",
432
- "icon": "📨",
433
- "spawn_prompt": "You are the Event-Driven Architecture Specialist. Implement Azure Service Bus queues/topics, CQRS patterns, Event Sourcing, Domain Events. Design idempotent handlers, dead letter queues, saga patterns. Collaborate with domain-architect for event design."
434
- }
435
- },
436
- "api-designer": {
437
- "tier": 3,
438
- "role": "specialist",
439
- "title": "API Design Specialist",
440
- "domains": [
441
- "backend-api"
442
- ],
443
- "keywords": [
444
- "rest",
445
- "graphql",
446
- "grpc",
447
- "api",
448
- "openapi",
449
- "swagger",
450
- "versioning",
451
- "rate limiting",
452
- "hot chocolate",
453
- "endpoint"
454
- ],
455
- "always_active": false,
456
- "validators": [
457
- "architecture",
458
- "api-design"
459
- ],
460
- "relationships": {
461
- "reports_to": "dotnet-senior",
462
- "coordinates": [],
463
- "escalates_to": "dotnet-senior",
464
- "collaborates_with": [
465
- "ef-modeler",
466
- "event-architect",
467
- "blazor-builder",
468
- "nextjs-expert"
469
- ],
470
- "team_role": "specialist"
471
- },
472
- "standards": [
473
- "core/coding.md",
474
- "core/architecture.md"
475
- ],
476
- "teammate": {
477
- "role": "API Design Specialist",
478
- "icon": "🔌",
479
- "spawn_prompt": "You are the API Design Specialist. Design REST APIs (resource naming, HTTP verbs, status codes), GraphQL schemas with Hot Chocolate, gRPC .proto files. Add OpenAPI/Swagger annotations. Implement API versioning, rate limiting. Review with frontend specialists."
480
- }
481
- },
482
- "nosql-cache-expert": {
483
- "tier": 3,
484
- "role": "specialist",
485
- "title": "NoSQL & Cache Specialist",
486
- "domains": [
487
- "backend-nosql"
488
- ],
489
- "keywords": [
490
- "cosmos",
491
- "cosmosdb",
492
- "redis",
493
- "cache",
494
- "blob storage",
495
- "nosql",
496
- "document db",
497
- "key-value",
498
- "azure storage"
499
- ],
500
- "always_active": false,
501
- "validators": [
502
- "architecture"
503
- ],
504
- "relationships": {
505
- "reports_to": "dotnet-senior",
506
- "coordinates": [],
507
- "escalates_to": "dotnet-senior",
508
- "collaborates_with": [
509
- "ef-modeler",
510
- "infra-architect"
511
- ],
512
- "team_role": "specialist"
513
- },
514
- "standards": [
515
- "core/coding.md",
516
- "core/architecture.md"
517
- ],
518
- "teammate": {
519
- "role": "NoSQL & Cache Specialist",
520
- "icon": "💾",
521
- "spawn_prompt": "You are the NoSQL & Cache Specialist. Implement Azure Cosmos DB (SQL API, partition keys, RUs), Redis Cache (cache-aside, read-through, write-behind), Blob Storage (hot/cool/archive tiers). Design cache invalidation strategies."
522
- }
523
- },
524
- "domain-architect": {
525
- "tier": 2,
526
- "role": "domain-leader",
527
- "title": "Domain Modeling Leader",
528
- "domains": [
529
- "backend-ddd"
530
- ],
531
- "keywords": [
532
- "ddd",
533
- "domain driven design",
534
- "aggregate",
535
- "entity",
536
- "value object",
537
- "domain event",
538
- "bounded context",
539
- "ubiquitous language",
540
- "domain modeling"
541
- ],
542
- "always_active": true,
543
- "validators": [
544
- "architecture"
545
- ],
546
- "relationships": {
547
- "reports_to": "standards-architect",
548
- "coordinates": [
549
- "ef-modeler",
550
- "event-architect"
551
- ],
552
- "escalates_to": "standards-architect",
553
- "collaborates_with": [
554
- "dotnet-senior",
555
- "api-designer"
556
- ],
557
- "team_role": "domain_leader"
558
- },
559
- "standards": [
560
- "core/coding.md",
561
- "core/architecture.md",
562
- "architecture/ddd/complexity-levels.md",
563
- "architecture/ddd/aggregates.md",
564
- "architecture/ddd/entities.md",
565
- "architecture/ddd/value-objects.md",
566
- "architecture/ddd/bounded-contexts.md",
567
- "architecture/ddd/ubiquitous-language.md"
568
- ],
569
- "active_phases": [
570
- "design",
571
- "implement"
572
- ],
573
- "teammate": {
574
- "role": "Domain Modeling Leader",
575
- "icon": "📐",
576
- "spawn_prompt": "You are the Domain Modeling Leader for MORPH-SPEC. Your primary responsibility is detecting the correct domain complexity level and producing the Aggregate Blueprint before any contracts are generated.\n\nALWAYS start with the 5-question complexity detection:\n1. Does the main entity have state transitions? (Draft → Confirmed → Shipped) → Yes = Level 2+\n2. Are there business invariants? (\"can only cancel if Active\") → Yes = Level 2+\n3. Are there derived calculations? (Total, Balance, Discount) → Yes = Level 2+\n4. Do other modules need to react to changes? (Domain Events with consumers) → Yes = Level 2+\n5. Did the user explicitly declare a Bounded Context? Or are there 3+ domains with conflicting models? → Yes = Level 3\nIf none of the above: Level 1 (CRUD)\n\nFor Level 1: Use contracts-level1.cs template. No AggregateRoot, no Domain Events.\nFor Level 2: Use contracts-level2.cs template. Design AggregateRoot with factory methods, invariants, Value Objects, Domain Events.\nFor Level 3: Use contracts-level3.cs template. Add BOUNDED_CONTEXT namespace, Integration Events, cross-BC ID references only.\n\nDocument in spec.md under ## Domain Complexity and ## Aggregate Blueprint (Level 2+).\nCoordinate ef-modeler for persistence design and event-architect for Domain Event patterns.\nRef: framework/standards/architecture/ddd/complexity-levels.md"
577
- }
578
- },
579
- "hangfire-orchestrator": {
580
- "tier": 3,
581
- "role": "specialist",
582
- "title": "Background Jobs Specialist",
583
- "domains": [
584
- "backend-jobs"
585
- ],
586
- "keywords": [
587
- "scheduled",
588
- "job",
589
- "background",
590
- "cron",
591
- "hangfire",
592
- "recurring",
593
- "fire and forget",
594
- "delayed"
595
- ],
596
- "always_active": false,
597
- "validators": [
598
- "architecture",
599
- "blazor-concurrency"
600
- ],
601
- "relationships": {
602
- "reports_to": "dotnet-senior",
603
- "coordinates": [],
604
- "escalates_to": "dotnet-senior",
605
- "collaborates_with": [
606
- "ef-modeler",
607
- "infra-architect"
608
- ],
609
- "team_role": "specialist"
610
- },
611
- "standards": [
612
- "core/coding.md",
613
- "core/architecture.md"
614
- ],
615
- "teammate": {
616
- "role": "Background Jobs Specialist",
617
- "icon": "⏰",
618
- "spawn_prompt": "You are the Background Jobs Specialist (Hangfire). Implement fire-and-forget jobs, delayed jobs, recurring jobs (cron), continuations (chaining). Configure retry policies, queue management. Use IDbContextFactory for scoped operations."
619
- }
620
- },
621
- "ms-agent-expert": {
622
- "tier": 3,
623
- "role": "specialist",
624
- "title": "Microsoft Agent Framework Expert",
625
- "domains": [
626
- "ai-agents"
627
- ],
628
- "keywords": [
629
- "agent",
630
- "ai",
631
- "llm",
632
- "rag",
633
- "embedding",
634
- "mcp",
635
- "a2a",
636
- "middleware",
637
- "microsoft agent framework",
638
- "ichatclient"
639
- ],
640
- "always_active": false,
641
- "validators": [
642
- "architecture",
643
- "packages"
644
- ],
645
- "relationships": {
646
- "reports_to": "ai-system-architect",
647
- "coordinates": [],
648
- "escalates_to": "ai-system-architect",
649
- "collaborates_with": [
650
- "dotnet-senior",
651
- "infra-architect"
652
- ],
653
- "team_role": "specialist"
654
- },
655
- "standards": [
656
- "core/coding.md",
657
- "ai-agents/setup.md",
658
- "ai-agents/workflows.md",
659
- "ai-agents/production.md",
660
- "ai-agents/blazor-ui.md"
661
- ],
662
- "teammate": {
663
- "role": "Microsoft Agent Framework Expert",
664
- "icon": "🤖",
665
- "spawn_prompt": "You are the Microsoft Agent Framework Expert. Implement ChatClientAgent, AIFunctionFactory, agent workflows (sequential, handoff, group chat). Integrate MCP tools (McpClientFactory, ListToolsAsync, Cast<AITool>). Host agents via A2A protocol (MapA2A, agent cards). Add middleware pipeline, observability (WithOpenTelemetry)."
666
- }
667
- },
668
- "supabase-expert": {
669
- "tier": 3,
670
- "role": "specialist",
671
- "title": "Supabase & PostgreSQL Specialist",
672
- "domains": [
673
- "backend-supabase"
674
- ],
675
- "keywords": [
676
- "supabase",
677
- "postgresql",
678
- "rls",
679
- "realtime",
680
- "pgvector",
681
- "row level security",
682
- "edge functions"
683
- ],
684
- "always_active": false,
685
- "validators": [
686
- "architecture",
687
- "packages"
688
- ],
689
- "relationships": {
690
- "reports_to": "dotnet-senior",
691
- "coordinates": [],
692
- "escalates_to": "dotnet-senior",
693
- "collaborates_with": [
694
- "nextjs-expert",
695
- "vector-search-expert",
696
- "ef-modeler"
697
- ],
698
- "team_role": "specialist"
699
- },
700
- "standards": [
701
- "core/coding.md",
702
- "core/architecture.md"
703
- ],
704
- "teammate": {
705
- "role": "Supabase & PostgreSQL Specialist",
706
- "icon": "🐘",
707
- "spawn_prompt": "You are the Supabase & PostgreSQL Specialist. Implement Supabase Auth (magic links, OAuth, JWT), Row Level Security (RLS policies), Realtime subscriptions, Edge Functions (Deno/TypeScript). Use pgvector for embeddings/similarity search. Design efficient schemas with proper indexing. Coordinate with nextjs-expert for frontend integration."
708
- }
709
- },
710
- "vector-search-expert": {
711
- "tier": 3,
712
- "role": "specialist",
713
- "title": "Vector Search & RAG Specialist",
714
- "domains": [
715
- "ai-vector"
716
- ],
717
- "keywords": [
718
- "vector db",
719
- "embeddings",
720
- "semantic search",
721
- "rag",
722
- "pgvector",
723
- "similarity search",
724
- "retrieval augmented"
725
- ],
726
- "always_active": false,
727
- "validators": [
728
- "architecture"
729
- ],
730
- "relationships": {
731
- "reports_to": "ai-system-architect",
732
- "coordinates": [],
733
- "escalates_to": "ai-system-architect",
734
- "collaborates_with": [
735
- "ms-agent-expert",
736
- "supabase-expert",
737
- "context-optimizer"
738
- ],
739
- "team_role": "specialist"
740
- },
741
- "standards": [
742
- "core/coding.md",
743
- "ai-agents/setup.md",
744
- "ai-agents/workflows.md"
745
- ],
746
- "teammate": {
747
- "role": "Vector Search & RAG Specialist",
748
- "icon": "🔎",
749
- "spawn_prompt": "You are the Vector Search & RAG Specialist. Implement vector embeddings (OpenAI, Azure AI), similarity search (pgvector, Azure AI Search), RAG pipelines (chunking, embedding, retrieval). Design hybrid search (vector + full-text). Optimize embedding dimensions and index types (HNSW, IVFFlat). Collaborate with ms-agent-expert for agent integration and supabase-expert for pgvector storage."
750
- }
751
- },
752
- "context-optimizer": {
753
- "tier": 3,
754
- "role": "specialist",
755
- "title": "Context & Token Optimization Specialist",
756
- "domains": [
757
- "ai-context"
758
- ],
759
- "keywords": [
760
- "context window",
761
- "token optimization",
762
- "chunking",
763
- "context compression",
764
- "summarization",
765
- "token budget"
766
- ],
767
- "always_active": false,
768
- "validators": [],
769
- "relationships": {
770
- "reports_to": "ai-system-architect",
771
- "coordinates": [],
772
- "escalates_to": "ai-system-architect",
773
- "collaborates_with": [
774
- "ms-agent-expert",
775
- "vector-search-expert"
776
- ],
777
- "team_role": "specialist"
778
- },
779
- "standards": [
780
- "core/coding.md",
781
- "ai-agents/workflows.md"
782
- ],
783
- "teammate": {
784
- "role": "Context & Token Optimization Specialist",
785
- "icon": "🧠",
786
- "spawn_prompt": "You are the Context & Token Optimization Specialist. Optimize context windows (sliding window, summarization, selective inclusion), implement token counting and budget management, design chunking strategies (semantic, fixed-size, recursive). Reduce costs through prompt caching, context compression. Coordinate with vector-search-expert for retrieval-based context building."
787
- }
788
- },
789
- "asaas-financial": {
790
- "tier": 3,
791
- "role": "specialist",
792
- "title": "Payment Integration Specialist (Brazil)",
793
- "domains": [
794
- "integration-payment"
795
- ],
796
- "keywords": [
797
- "asaas",
798
- "payment",
799
- "pix",
800
- "boleto",
801
- "credit card",
802
- "subscription",
803
- "pagamento"
804
- ],
805
- "always_active": false,
806
- "validators": [
807
- "architecture",
808
- "contract-compliance"
809
- ],
810
- "relationships": {
811
- "reports_to": "dotnet-senior",
812
- "coordinates": [],
813
- "escalates_to": "dotnet-senior",
814
- "collaborates_with": [
815
- "blazor-builder",
816
- "nextjs-expert"
817
- ],
818
- "team_role": "specialist"
819
- },
820
- "standards": [
821
- "core/coding.md",
822
- "core/architecture.md"
823
- ],
824
- "teammate": {
825
- "role": "Payment Integration Specialist",
826
- "icon": "💳",
827
- "spawn_prompt": "You are the Payment Integration Specialist (Asaas SDK for Brazil). Implement PIX payments, Boleto generation, Credit Card processing, Subscription management. Follow contract-compliance validator patterns for SDK usage."
828
- }
829
- },
830
- "clerk-auth": {
831
- "tier": 3,
832
- "role": "specialist",
833
- "title": "Auth SaaS Integration Specialist",
834
- "domains": [
835
- "integration-auth"
836
- ],
837
- "keywords": [
838
- "clerk",
839
- "clerk auth",
840
- "add auth",
841
- "implement auth",
842
- "login",
843
- "signup",
844
- "oauth"
845
- ],
846
- "negativeKeywords": [
847
- "existing auth",
848
- "current auth",
849
- "integrate with auth",
850
- "already have auth"
851
- ],
852
- "always_active": false,
853
- "validators": [
854
- "architecture"
855
- ],
856
- "relationships": {
857
- "reports_to": "dotnet-senior",
858
- "coordinates": [],
859
- "escalates_to": "dotnet-senior",
860
- "collaborates_with": [
861
- "blazor-builder",
862
- "nextjs-expert",
863
- "azure-identity"
864
- ],
865
- "team_role": "specialist"
866
- },
867
- "standards": [
868
- "core/coding.md",
869
- "core/architecture.md"
870
- ],
871
- "teammate": {
872
- "role": "Auth SaaS Integration Specialist",
873
- "icon": "🔐",
874
- "spawn_prompt": "You are the Auth SaaS Integration Specialist (Clerk SDK). Implement Clerk authentication flows (login, signup, OAuth), session management, user profile. Integrate with Blazor or Next.js frontend."
875
- }
876
- },
877
- "resend-email": {
878
- "tier": 3,
879
- "role": "specialist",
880
- "title": "Email Integration Specialist",
881
- "domains": [
882
- "integration-email"
883
- ],
884
- "keywords": [
885
- "resend",
886
- "email",
887
- "transactional email",
888
- "email notification",
889
- "send email",
890
- "email template",
891
- "smtp"
892
- ],
893
- "negativeKeywords": [
894
- "push notification",
895
- "in-app notification",
896
- "notification preference",
897
- "notification settings"
898
- ],
899
- "always_active": false,
900
- "validators": [
901
- "architecture",
902
- "contract-compliance"
903
- ],
904
- "relationships": {
905
- "reports_to": "dotnet-senior",
906
- "coordinates": [],
907
- "escalates_to": "dotnet-senior",
908
- "collaborates_with": [
909
- "hangfire-orchestrator"
910
- ],
911
- "team_role": "specialist"
912
- },
913
- "standards": [
914
- "core/coding.md",
915
- "core/architecture.md"
916
- ],
917
- "teammate": {
918
- "role": "Email Integration Specialist",
919
- "icon": "📧",
920
- "spawn_prompt": "You are the Email Integration Specialist (Resend SDK). Implement transactional emails, email templates, notification sending. Follow contract-compliance validator for SDK usage patterns."
921
- }
922
- },
923
- "_comment_tier_3_frontend": "=== TIER 3: FRONTEND SPECIALISTS (3) ===",
924
- "blazor-builder": {
925
- "tier": 3,
926
- "role": "specialist",
927
- "title": "Blazor Development Specialist",
928
- "domains": [
929
- "frontend-blazor"
930
- ],
931
- "keywords": [
932
- "blazor",
933
- "razor",
934
- "server-side",
935
- "component",
936
- "fluent ui",
937
- "mudblazor",
938
- "signalr",
939
- "page",
940
- "view",
941
- "form"
942
- ],
943
- "always_active": false,
944
- "validators": [
945
- "architecture",
946
- "blazor",
947
- "blazor-concurrency",
948
- "blazor-state",
949
- "css",
950
- "design-system"
951
- ],
952
- "relationships": {
953
- "reports_to": "ui-designer",
954
- "coordinates": [],
955
- "escalates_to": "standards-architect",
956
- "collaborates_with": [
957
- "ef-modeler",
958
- "api-designer",
959
- "css-specialist"
960
- ],
961
- "team_role": "specialist",
962
- "active_phases": [
963
- "uiux",
964
- "implement"
965
- ]
966
- },
967
- "standards": [
968
- "core/coding.md",
969
- "frontend/blazor/lifecycle.md",
970
- "frontend/blazor/state.md",
971
- "frontend/blazor/pitfalls.md",
972
- "backend/database/ef-core.md",
973
- "frontend/blazor/fluent-ui.md",
974
- "mudblazor-blazor.md"
975
- ],
976
- "teammate": {
977
- "role": "Blazor Development Specialist",
978
- "icon": "⚡",
979
- "spawn_prompt": "You are the Blazor Development Specialist. Build Blazor Server components (Fluent UI or MudBlazor). Follow component-per-file pattern, use @inject for DI, implement loading states and error boundaries. Integrate SignalR for real-time features. Message ef-modeler for data, css-specialist for design system validation."
980
- }
981
- },
982
- "nextjs-expert": {
983
- "tier": 3,
984
- "role": "specialist",
985
- "title": "Next.js Development Specialist",
986
- "domains": [
987
- "frontend-nextjs"
988
- ],
989
- "keywords": [
990
- "next.js",
991
- "nextjs",
992
- "react",
993
- "tsx",
994
- "shadcn",
995
- "tailwind",
996
- "tanstack",
997
- "react-query",
998
- "zod",
999
- "react-hook-form",
1000
- "app router",
1001
- "server component",
1002
- "client component"
1003
- ],
1004
- "always_active": false,
1005
- "validators": [
1006
- "packages",
1007
- "nextjs-component"
1008
- ],
1009
- "relationships": {
1010
- "reports_to": "ui-designer",
1011
- "coordinates": [],
1012
- "escalates_to": "standards-architect",
1013
- "collaborates_with": [
1014
- "api-designer",
1015
- "css-specialist"
1016
- ],
1017
- "team_role": "specialist",
1018
- "active_phases": [
1019
- "uiux",
1020
- "implement"
1021
- ]
1022
- },
1023
- "standards": [
1024
- "core/coding.md",
1025
- "core/architecture.md",
1026
- "frontend/nextjs/naming-conventions.md",
1027
- "frontend/nextjs/project-structure.md",
1028
- "frontend/nextjs/app-router.md",
1029
- "frontend/nextjs/components.md",
1030
- "frontend/nextjs/data-fetching.md",
1031
- "frontend/nextjs/forms.md",
1032
- "frontend/nextjs/state-management.md",
1033
- "frontend/nextjs/testing.md",
1034
- "frontend/nextjs/nextjs-patterns.md"
1035
- ],
1036
- "teammate": {
1037
- "role": "Next.js Development Specialist",
1038
- "icon": "⚛️",
1039
- "spawn_prompt": "You are the Next.js Development Specialist. Build Next.js 14+ applications with shadcn/ui components, TanStack Query for data fetching, Server Actions for mutations. Implement Route Handlers for API routes. Message api-designer for backend endpoints, css-specialist for design system."
1040
- }
1041
- },
1042
- "css-specialist": {
1043
- "tier": 3,
1044
- "role": "specialist",
1045
- "title": "CSS & Design System Specialist",
1046
- "domains": [
1047
- "frontend-css"
1048
- ],
1049
- "keywords": [
1050
- "css",
1051
- "design system",
1052
- "styling",
1053
- "theme",
1054
- "design tokens",
1055
- "palette"
1056
- ],
1057
- "always_active": false,
1058
- "validators": [
1059
- "css",
1060
- "contrast",
1061
- "design-system"
1062
- ],
1063
- "relationships": {
1064
- "reports_to": "ui-designer",
1065
- "coordinates": [],
1066
- "escalates_to": "ui-designer",
1067
- "collaborates_with": [
1068
- "blazor-builder",
1069
- "nextjs-expert"
1070
- ],
1071
- "team_role": "specialist",
1072
- "active_phases": [
1073
- "implement"
1074
- ]
1075
- },
1076
- "standards": [
1077
- "frontend/design-system/naming.md",
1078
- "frontend/design-system/animations.md"
1079
- ],
1080
- "teammate": {
1081
- "role": "CSS & Design System Specialist",
1082
- "icon": "🎨",
1083
- "spawn_prompt": "You are the CSS & Design System Specialist (FASE 5 only). Validate CSS follows design system (no off-palette colors), review naming conventions (BEM), ensure no inline styles with hardcoded values. Run design-system, css, contrast validators."
1084
- }
1085
- },
1086
- "_comment_tier_3_infra": "=== TIER 3: INFRASTRUCTURE SPECIALISTS (6) ===",
1087
- "bicep-architect": {
1088
- "tier": 3,
1089
- "role": "specialist",
1090
- "title": "Infrastructure as Code Specialist",
1091
- "domains": [
1092
- "infrastructure-iac"
1093
- ],
1094
- "keywords": [
1095
- "bicep",
1096
- "iac",
1097
- "infra",
1098
- "provision",
1099
- "arm template",
1100
- "infrastructure as code"
1101
- ],
1102
- "always_active": false,
1103
- "validators": [
1104
- "architecture"
1105
- ],
1106
- "relationships": {
1107
- "reports_to": "azure-architect",
1108
- "coordinates": [],
1109
- "escalates_to": "azure-architect",
1110
- "collaborates_with": [
1111
- "devops-engineer",
1112
- "container-specialist"
1113
- ],
1114
- "team_role": "specialist"
1115
- },
1116
- "standards": [
1117
- "core/coding.md",
1118
- "core/architecture.md",
1119
- "azure.md"
1120
- ],
1121
- "teammate": {
1122
- "role": "Infrastructure as Code Specialist",
1123
- "icon": "📜",
1124
- "spawn_prompt": "You are the Infrastructure as Code Specialist (Bicep). Write main.bicep, modules/*.bicep, parameters.{env}.json. Never create Azure resources manually. Collaborate with azure-architect for resource design, devops-engineer for CI/CD integration."
1125
- }
1126
- },
1127
- "devops-engineer": {
1128
- "tier": 3,
1129
- "role": "specialist",
1130
- "title": "CI/CD Specialist",
1131
- "domains": [
1132
- "infrastructure-cicd"
1133
- ],
1134
- "keywords": [
1135
- "pipeline",
1136
- "ci/cd",
1137
- "deploy",
1138
- "release",
1139
- "github actions",
1140
- "azure pipelines",
1141
- "deployment"
1142
- ],
1143
- "always_active": false,
1144
- "validators": [
1145
- "architecture"
1146
- ],
1147
- "relationships": {
1148
- "reports_to": "infra-architect",
1149
- "coordinates": [],
1150
- "escalates_to": "infra-architect",
1151
- "collaborates_with": [
1152
- "bicep-architect",
1153
- "container-specialist"
1154
- ],
1155
- "team_role": "specialist"
1156
- },
1157
- "standards": [
1158
- "core/coding.md",
1159
- "core/architecture.md"
1160
- ],
1161
- "teammate": {
1162
- "role": "CI/CD Specialist",
1163
- "icon": "🚀",
1164
- "spawn_prompt": "You are the CI/CD Specialist. Build Azure Pipelines or GitHub Actions workflows. Implement Blue-Green, Canary, Rolling deployment strategies. Integrate with bicep-architect for IaC deployment, container-specialist for image builds."
1165
- }
1166
- },
1167
- "container-specialist": {
1168
- "tier": 3,
1169
- "role": "specialist",
1170
- "title": "Containerization Specialist",
1171
- "domains": [
1172
- "infrastructure-containers"
1173
- ],
1174
- "keywords": [
1175
- "docker",
1176
- "container",
1177
- "containerize",
1178
- "dockerfile",
1179
- "multi-stage",
1180
- "container apps"
1181
- ],
1182
- "always_active": false,
1183
- "validators": [
1184
- "architecture"
1185
- ],
1186
- "relationships": {
1187
- "reports_to": "infra-architect",
1188
- "coordinates": [],
1189
- "escalates_to": "infra-architect",
1190
- "collaborates_with": [
1191
- "bicep-architect",
1192
- "devops-engineer"
1193
- ],
1194
- "team_role": "specialist"
1195
- },
1196
- "standards": [
1197
- "core/coding.md",
1198
- "core/architecture.md"
1199
- ],
1200
- "teammate": {
1201
- "role": "Containerization Specialist",
1202
- "icon": "🐳",
1203
- "spawn_prompt": "You are the Containerization Specialist. Write Dockerfiles (multi-stage builds), .dockerignore. Deploy to Azure Container Apps (scale-to-zero, KEDA scaling). Optimize image size, configure health checks."
1204
- }
1205
- },
1206
- "observability-expert": {
1207
- "tier": 3,
1208
- "role": "specialist",
1209
- "title": "Observability Specialist",
1210
- "domains": [
1211
- "infrastructure-observability"
1212
- ],
1213
- "keywords": [
1214
- "monitoring",
1215
- "logging",
1216
- "tracing",
1217
- "metrics",
1218
- "app insights",
1219
- "serilog",
1220
- "opentelemetry",
1221
- "dashboards",
1222
- "alerts"
1223
- ],
1224
- "always_active": false,
1225
- "validators": [
1226
- "observability"
1227
- ],
1228
- "relationships": {
1229
- "reports_to": "infra-architect",
1230
- "coordinates": [],
1231
- "escalates_to": "infra-architect",
1232
- "collaborates_with": [
1233
- "dotnet-senior",
1234
- "ms-agent-expert"
1235
- ],
1236
- "team_role": "specialist"
1237
- },
1238
- "standards": [
1239
- "core/coding.md",
1240
- "core/architecture.md"
1241
- ],
1242
- "teammate": {
1243
- "role": "Observability Specialist",
1244
- "icon": "📊",
1245
- "spawn_prompt": "You are the Observability Specialist. Setup Application Insights (connection strings, sampling), configure Serilog (sinks, enrichers), instrument OpenTelemetry (.NET SDK). Create custom metrics, dashboards, alert rules. Write Log Analytics queries (KQL)."
1246
- }
1247
- },
1248
- "azure-identity": {
1249
- "tier": 3,
1250
- "role": "specialist",
1251
- "title": "Microsoft Identity Specialist",
1252
- "domains": [
1253
- "infrastructure-identity"
1254
- ],
1255
- "keywords": [
1256
- "identity",
1257
- "entra",
1258
- "microsoft auth",
1259
- "azure ad",
1260
- "b2c",
1261
- "passkeys",
1262
- "webauthn",
1263
- "managed identity"
1264
- ],
1265
- "always_active": false,
1266
- "validators": [
1267
- "architecture"
1268
- ],
1269
- "relationships": {
1270
- "reports_to": "infra-architect",
1271
- "coordinates": [],
1272
- "escalates_to": "infra-architect",
1273
- "collaborates_with": [
1274
- "blazor-builder",
1275
- "nextjs-expert",
1276
- "clerk-auth"
1277
- ],
1278
- "team_role": "specialist"
1279
- },
1280
- "standards": [
1281
- "core/coding.md",
1282
- "core/architecture.md"
1283
- ],
1284
- "teammate": {
1285
- "role": "Microsoft Identity Specialist",
1286
- "icon": "🔑",
1287
- "spawn_prompt": "You are the Microsoft Identity Specialist. Implement Azure AD B2C, Entra External ID, Managed Identity for Azure resources. Add WebAuthn/Passkeys support (FIDO2 registration/authentication flows). Collaborate with frontend specialists for UI integration."
1288
- }
1289
- },
1290
- "_comment_tier_3_quality": "=== TIER 3: QUALITY SPECIALISTS (6) ===",
1291
- "testing-specialist": {
1292
- "tier": 3,
1293
- "role": "specialist",
1294
- "title": "Testing Specialist",
1295
- "domains": [
1296
- "quality-testing"
1297
- ],
1298
- "keywords": [
1299
- "test",
1300
- "testing",
1301
- "unit",
1302
- "integration",
1303
- "e2e",
1304
- "xunit",
1305
- "moq",
1306
- "testcontainers",
1307
- "bunit"
1308
- ],
1309
- "always_active": false,
1310
- "validators": [
1311
- "architecture"
1312
- ],
1313
- "relationships": {
1314
- "reports_to": "standards-architect",
1315
- "coordinates": [],
1316
- "escalates_to": "standards-architect",
1317
- "collaborates_with": [
1318
- "dotnet-senior",
1319
- "blazor-builder",
1320
- "nextjs-expert"
1321
- ],
1322
- "team_role": "specialist"
1323
- },
1324
- "standards": [
1325
- "core/coding.md",
1326
- "core/architecture.md"
1327
- ],
1328
- "teammate": {
1329
- "role": "Testing Specialist",
1330
- "icon": "🧪",
1331
- "spawn_prompt": "You are the Testing Specialist. Write unit tests (xUnit, Moq/NSubstitute, FluentAssertions), integration tests (TestContainers, Respawn for DB reset), Blazor component tests (bUnit), HTTP mocking (WireMock). Follow Arrange-Act-Assert (AAA) pattern."
1332
- }
1333
- },
1334
- "code-analyzer": {
1335
- "tier": 3,
1336
- "role": "specialist",
1337
- "title": "Code Quality Analyst",
1338
- "domains": [
1339
- "quality-review"
1340
- ],
1341
- "keywords": [
1342
- "analyze",
1343
- "review",
1344
- "refactor",
1345
- "clean code",
1346
- "smell",
1347
- "duplicate",
1348
- "solid",
1349
- "architecture review"
1350
- ],
1351
- "always_active": false,
1352
- "validators": [
1353
- "architecture",
1354
- "packages"
1355
- ],
1356
- "relationships": {
1357
- "reports_to": "standards-architect",
1358
- "coordinates": [],
1359
- "escalates_to": "standards-architect",
1360
- "collaborates_with": [
1361
- "dotnet-senior",
1362
- "troubleshooting-expert"
1363
- ],
1364
- "team_role": "specialist"
1365
- },
1366
- "standards": [
1367
- "core/coding.md",
1368
- "core/architecture.md"
1369
- ],
1370
- "teammate": {
1371
- "role": "Code Quality Analyst",
1372
- "icon": "🔍",
1373
- "spawn_prompt": "You are the Code Quality Analyst. Review code for architecture violations, clean code principles (naming, complexity, duplication), SOLID principles. Identify code smells, suggest refactorings. Run architecture and packages validators."
1374
- }
1375
- },
1376
- "troubleshooting-expert": {
1377
- "tier": 3,
1378
- "role": "specialist",
1379
- "title": "Troubleshooting & Debug Expert",
1380
- "domains": [
1381
- "quality-debug"
1382
- ],
1383
- "keywords": [
1384
- "debug",
1385
- "troubleshoot",
1386
- "root cause",
1387
- "analyze error",
1388
- "investigate",
1389
- "diagnose"
1390
- ],
1391
- "always_active": false,
1392
- "validators": [],
1393
- "relationships": {
1394
- "reports_to": "standards-architect",
1395
- "coordinates": [],
1396
- "escalates_to": "standards-architect",
1397
- "collaborates_with": [
1398
- "code-analyzer",
1399
- "testing-specialist"
1400
- ],
1401
- "team_role": "escalation_specialist",
1402
- "spawn_trigger": "escalation_after_3_failures"
1403
- },
1404
- "standards": [
1405
- "core/coding.md",
1406
- "core/architecture.md"
1407
- ],
1408
- "teammate": {
1409
- "role": "Troubleshooting Expert (Escalation)",
1410
- "icon": "🔧",
1411
- "spawn_prompt": "You are the Troubleshooting Expert (spawned after 3 failed attempts). Analyze root cause of failures: validation errors, compilation errors, runtime exceptions. Review attempt logs from recovery-tracker. Propose alternative approaches. Message standards-architect with findings."
1412
- }
1413
- },
1414
- "load-testing-expert": {
1415
- "tier": 3,
1416
- "role": "specialist",
1417
- "title": "Load Testing & Performance Specialist",
1418
- "domains": [
1419
- "quality-performance"
1420
- ],
1421
- "keywords": [
1422
- "load test",
1423
- "performance test",
1424
- "k6",
1425
- "jmeter",
1426
- "stress test",
1427
- "capacity planning",
1428
- "bottleneck",
1429
- "scalability",
1430
- "concurrent users"
1431
- ],
1432
- "always_active": false,
1433
- "validators": [
1434
- "performance"
1435
- ],
1436
- "relationships": {
1437
- "reports_to": "standards-architect",
1438
- "coordinates": [],
1439
- "escalates_to": "standards-architect",
1440
- "collaborates_with": [
1441
- "infra-architect",
1442
- "observability-expert"
1443
- ],
1444
- "team_role": "specialist"
1445
- },
1446
- "standards": [
1447
- "core/coding.md",
1448
- "core/architecture.md"
1449
- ],
1450
- "teammate": {
1451
- "role": "Load Testing Specialist",
1452
- "icon": "📈",
1453
- "spawn_prompt": "You are the Load Testing Specialist. Write k6 scripts (stress test, spike test, soak test), JMeter test plans. Analyze bottlenecks (DB, CPU, memory). Recommend capacity planning (how many users system supports). Collaborate with observability-expert for metrics."
1454
- }
1455
- },
1456
- "documentation-specialist": {
1457
- "tier": 3,
1458
- "role": "specialist",
1459
- "title": "Documentation Specialist",
1460
- "domains": [
1461
- "developer-experience-docs"
1462
- ],
1463
- "keywords": [
1464
- "readme",
1465
- "documentation",
1466
- "api docs",
1467
- "contributing",
1468
- "deployment guide",
1469
- "onboarding"
1470
- ],
1471
- "always_active": false,
1472
- "validators": [],
1473
- "relationships": {
1474
- "reports_to": "standards-architect",
1475
- "coordinates": [],
1476
- "escalates_to": "standards-architect",
1477
- "collaborates_with": [
1478
- "api-designer",
1479
- "devops-engineer"
1480
- ],
1481
- "team_role": "post_implementation",
1482
- "spawn_trigger": "post_fase_5"
1483
- },
1484
- "standards": [
1485
- "core/coding.md",
1486
- "core/architecture.md"
1487
- ],
1488
- "teammate": {
1489
- "role": "Documentation Specialist (Post-FASE 5)",
1490
- "icon": "📝",
1491
- "spawn_prompt": "You are the Documentation Specialist (runs after FASE 5). Generate README.md (how to run project), CONTRIBUTING.md (contributor guide), API documentation (Swagger annotations, markdown docs), deployment guides (infra setup). Update existing docs with new features."
1492
- }
1493
- },
1494
- "_comment_tier_4": "=== TIER 4: VALIDATORS (5) ===",
1495
- "security-expert": {
1496
- "tier": 4,
1497
- "role": "validator",
1498
- "title": "Security Validator",
1499
- "domains": [
1500
- "security"
1501
- ],
1502
- "keywords": [
1503
- "sql injection",
1504
- "xss",
1505
- "secrets",
1506
- "security scan",
1507
- "vulnerability",
1508
- "csrf",
1509
- "insecure deserialization"
1510
- ],
1511
- "always_active": true,
1512
- "validators": [
1513
- "security"
1514
- ],
1515
- "relationships": {
1516
- "reports_to": "standards-architect",
1517
- "coordinates": [],
1518
- "runs_in": "hooks",
1519
- "hook_triggers": [
1520
- "TeammateIdle",
1521
- "TaskCompleted"
1522
- ],
1523
- "team_role": "validator"
1524
- },
1525
- "standards": [
1526
- "core/coding.md",
1527
- "core/architecture.md"
1528
- ],
1529
- "teammate": null,
1530
- "hook_behavior": {
1531
- "validates": [
1532
- "SQL injection (string concatenation in queries)",
1533
- "Hardcoded secrets (API keys, passwords, connection strings)",
1534
- "XSS (@Html.Raw usage in Razor/Blazor)",
1535
- "Insecure deserialization (BinaryFormatter)",
1536
- "CSRF (missing anti-forgery tokens)"
1537
- ],
1538
- "severity": "error",
1539
- "blocks_on_fail": true
1540
- }
1541
- },
1542
- "architecture-expert": {
1543
- "tier": 4,
1544
- "role": "validator",
1545
- "title": "Architecture Validator",
1546
- "domains": [
1547
- "architecture"
1548
- ],
1549
- "keywords": [
1550
- "architecture",
1551
- "clean code",
1552
- "solid",
1553
- "dependency injection"
1554
- ],
1555
- "always_active": true,
1556
- "validators": [
1557
- "architecture"
1558
- ],
1559
- "relationships": {
1560
- "reports_to": "standards-architect",
1561
- "coordinates": [],
1562
- "runs_in": "hooks",
1563
- "hook_triggers": [
1564
- "TeammateIdle",
1565
- "TaskCompleted"
1566
- ],
1567
- "team_role": "validator"
1568
- },
1569
- "standards": [
1570
- "core/coding.md",
1571
- "core/architecture.md"
1572
- ],
1573
- "teammate": null,
1574
- "hook_behavior": {
1575
- "validates": [
1576
- "DbContext injection (IDbContextFactory required)",
1577
- "Async/await patterns (no .Result or .Wait)",
1578
- "DI registration order (services before middleware)",
1579
- "Blazor render mode compatibility"
1580
- ],
1581
- "severity": "error",
1582
- "blocks_on_fail": true
1583
- }
1584
- },
1585
- "packages-validator": {
1586
- "tier": 4,
1587
- "role": "validator",
1588
- "title": "Packages Validator",
1589
- "domains": [
1590
- "packages"
1591
- ],
1592
- "keywords": [
1593
- "nuget",
1594
- "packages",
1595
- "dependencies",
1596
- "version conflict"
1597
- ],
1598
- "always_active": true,
1599
- "validators": [
1600
- "packages"
1601
- ],
1602
- "relationships": {
1603
- "reports_to": "standards-architect",
1604
- "coordinates": [],
1605
- "runs_in": "hooks",
1606
- "hook_triggers": [
1607
- "TaskCompleted"
1608
- ],
1609
- "team_role": "validator"
1610
- },
1611
- "standards": [
1612
- "core/coding.md"
1613
- ],
1614
- "teammate": null,
1615
- "hook_behavior": {
1616
- "validates": [
1617
- "NuGet version conflicts (same package, different versions)",
1618
- "Incompatible .NET 10 packages",
1619
- "Security vulnerabilities (outdated packages)"
1620
- ],
1621
- "severity": "error",
1622
- "blocks_on_fail": true
1623
- }
1624
- },
1625
- "design-system-validator": {
1626
- "tier": 4,
1627
- "role": "validator",
1628
- "title": "Design System Validator",
1629
- "domains": [
1630
- "design-system"
1631
- ],
1632
- "keywords": [
1633
- "design system",
1634
- "css",
1635
- "color palette",
1636
- "spacing"
1637
- ],
1638
- "always_active": true,
1639
- "validators": [
1640
- "design-system"
1641
- ],
1642
- "relationships": {
1643
- "reports_to": "ui-designer",
1644
- "coordinates": [],
1645
- "runs_in": "hooks",
1646
- "hook_triggers": [
1647
- "TeammateIdle"
1648
- ],
1649
- "team_role": "validator"
1650
- },
1651
- "standards": [
1652
- "frontend/design-system/naming.md",
1653
- "frontend/design-system/animations.md"
1654
- ],
1655
- "teammate": null,
1656
- "hook_behavior": {
1657
- "validates": [
1658
- "CSS color palette compliance (primary, secondary, accent)",
1659
- "Spacing values (use var(--spacing-*))",
1660
- "Typography scale (use var(--font-*))",
1661
- "Component naming (PascalCase for Blazor, kebab-case for CSS)"
1662
- ],
1663
- "severity": "warning",
1664
- "blocks_on_fail": false
1665
- }
1666
- },
1667
- "blazor-concurrency-validator": {
1668
- "tier": 4,
1669
- "role": "validator",
1670
- "title": "Blazor Concurrency Validator",
1671
- "domains": [
1672
- "blazor-concurrency"
1673
- ],
1674
- "keywords": [
1675
- "blazor",
1676
- "dbcontext",
1677
- "lifecycle",
1678
- "async",
1679
- "concurrency"
1680
- ],
1681
- "always_active": false,
1682
- "validators": [
1683
- "blazor-concurrency"
1684
- ],
1685
- "relationships": {
1686
- "reports_to": "blazor-builder",
1687
- "coordinates": [],
1688
- "runs_in": "hooks",
1689
- "hook_triggers": [
1690
- "TaskCompleted"
1691
- ],
1692
- "team_role": "validator"
1693
- },
1694
- "standards": [
1695
- "frontend/blazor/lifecycle.md",
1696
- "frontend/blazor/pitfalls.md",
1697
- "frontend/blazor/state.md"
1698
- ],
1699
- "teammate": null,
1700
- "hook_behavior": {
1701
- "validates": [
1702
- "DbContext lifecycle violations (dispose, scope issues)",
1703
- "Async void methods (use async Task instead)",
1704
- "JSInterop in OnInitialized (move to OnAfterRender)",
1705
- "State mutation without StateHasChanged"
1706
- ],
1707
- "severity": "error",
1708
- "blocks_on_fail": true
1709
- }
1710
- }
1711
- },
1712
- "squads": {
1713
- "backend_squad": {
1714
- "leader": "dotnet-senior",
1715
- "members": [
1716
- "ef-modeler",
1717
- "event-architect",
1718
- "api-designer",
1719
- "nosql-cache-expert",
1720
- "hangfire-orchestrator",
1721
- "ms-agent-expert",
1722
- "supabase-expert",
1723
- "vector-search-expert",
1724
- "context-optimizer",
1725
- "asaas-financial",
1726
- "clerk-auth",
1727
- "resend-email"
1728
- ],
1729
- "domains": [
1730
- "backend",
1731
- "backend-data",
1732
- "backend-events",
1733
- "backend-api",
1734
- "backend-nosql",
1735
- "backend-ddd",
1736
- "backend-jobs",
1737
- "ai-agents",
1738
- "backend-supabase",
1739
- "ai-vector",
1740
- "ai-context",
1741
- "integration-payment",
1742
- "integration-auth",
1743
- "integration-email"
1744
- ]
1745
- },
1746
- "frontend_squad": {
1747
- "leader": "ui-designer",
1748
- "members": [
1749
- "blazor-builder",
1750
- "nextjs-expert",
1751
- "css-specialist"
1752
- ],
1753
- "domains": [
1754
- "frontend-design",
1755
- "frontend-blazor",
1756
- "frontend-nextjs",
1757
- "frontend-css"
1758
- ],
1759
- "active_phases": {
1760
- "design": [
1761
- "ui-designer"
1762
- ],
1763
- "implement": [
1764
- "blazor-builder",
1765
- "nextjs-expert",
1766
- "css-specialist"
1767
- ]
1768
- }
1769
- },
1770
- "infrastructure_squad": {
1771
- "leader": "infra-architect",
1772
- "members": [
1773
- "bicep-architect",
1774
- "devops-engineer",
1775
- "container-specialist",
1776
- "observability-expert",
1777
- "azure-identity"
1778
- ],
1779
- "domains": [
1780
- "infrastructure",
1781
- "infrastructure-iac",
1782
- "infrastructure-cicd",
1783
- "infrastructure-containers",
1784
- "infrastructure-observability",
1785
- "infrastructure-identity"
1786
- ]
1787
- },
1788
- "quality_squad": {
1789
- "leader": "standards-architect",
1790
- "members": [
1791
- "testing-specialist",
1792
- "code-analyzer",
1793
- "troubleshooting-expert",
1794
- "load-testing-expert",
1795
- "documentation-specialist"
1796
- ],
1797
- "domains": [
1798
- "quality-testing",
1799
- "quality-review",
1800
- "quality-debug",
1801
- "quality-performance",
1802
- "developer-experience-docs"
1803
- ],
1804
- "note": "No permanent leader — standards-architect coordinates directly"
1805
- }
1806
- },
1807
- "relationship_types": {
1808
- "reports_to": "Hierarchical manager relationship",
1809
- "coordinates": "Manages/leads these agents",
1810
- "escalates_to": "Where to escalate unresolved issues",
1811
- "collaborates_with": "Peer agents for cross-domain work",
1812
- "runs_in": "Execution context (hooks, not teammates)",
1813
- "team_role": "Role in Agent Teams (lead, domain_leader, specialist, validator, escalation_specialist, post_implementation, planning_only)"
1814
- }
1815
- }