claude-code-templates 1.21.4 → 1.21.6

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 (498) hide show
  1. package/components/agents/ai-specialists/ai-ethics-advisor.md +195 -0
  2. package/components/agents/ai-specialists/hackathon-ai-strategist.md +46 -0
  3. package/components/agents/ai-specialists/llms-maintainer.md +94 -0
  4. package/components/agents/ai-specialists/model-evaluator.md +150 -0
  5. package/components/agents/ai-specialists/prompt-engineer.md +112 -0
  6. package/components/agents/ai-specialists/search-specialist.md +59 -0
  7. package/components/agents/ai-specialists/task-decomposition-expert.md +97 -0
  8. package/components/agents/api-graphql/graphql-architect.md +208 -0
  9. package/components/agents/api-graphql/graphql-performance-optimizer.md +357 -0
  10. package/components/agents/api-graphql/graphql-security-specialist.md +519 -0
  11. package/components/agents/blockchain-web3/smart-contract-auditor.md +32 -0
  12. package/components/agents/blockchain-web3/smart-contract-specialist.md +32 -0
  13. package/components/agents/blockchain-web3/web3-integration-specialist.md +32 -0
  14. package/components/agents/business-marketing/business-analyst.md +194 -0
  15. package/components/agents/business-marketing/content-marketer.md +36 -0
  16. package/components/agents/business-marketing/customer-support.md +36 -0
  17. package/components/agents/business-marketing/legal-advisor.md +50 -0
  18. package/components/agents/business-marketing/marketing-attribution-analyst.md +352 -0
  19. package/components/agents/business-marketing/payment-integration.md +33 -0
  20. package/components/agents/business-marketing/product-strategist.md +212 -0
  21. package/components/agents/business-marketing/risk-manager.md +42 -0
  22. package/components/agents/business-marketing/sales-automator.md +36 -0
  23. package/components/agents/data-ai/ai-engineer.md +33 -0
  24. package/components/agents/data-ai/computer-vision-engineer.md +562 -0
  25. package/components/agents/data-ai/data-engineer.md +33 -0
  26. package/components/agents/data-ai/data-scientist.md +337 -0
  27. package/components/agents/data-ai/ml-engineer.md +33 -0
  28. package/components/agents/data-ai/mlops-engineer.md +58 -0
  29. package/components/agents/data-ai/nlp-engineer.md +680 -0
  30. package/components/agents/data-ai/quant-analyst.md +33 -0
  31. package/components/agents/database/database-admin.md +33 -0
  32. package/components/agents/database/database-architect.md +590 -0
  33. package/components/agents/database/database-optimization.md +33 -0
  34. package/components/agents/database/database-optimizer.md +33 -0
  35. package/components/agents/database/nosql-specialist.md +708 -0
  36. package/components/agents/database/supabase-schema-architect.md +138 -0
  37. package/components/agents/deep-research-team/academic-researcher.md +33 -0
  38. package/components/agents/deep-research-team/agent-overview.md +235 -0
  39. package/components/agents/deep-research-team/competitive-intelligence-analyst.md +530 -0
  40. package/components/agents/deep-research-team/data-analyst.md +112 -0
  41. package/components/agents/deep-research-team/fact-checker.md +553 -0
  42. package/components/agents/deep-research-team/query-clarifier.md +73 -0
  43. package/components/agents/deep-research-team/report-generator.md +108 -0
  44. package/components/agents/deep-research-team/research-brief-generator.md +108 -0
  45. package/components/agents/deep-research-team/research-coordinator.md +94 -0
  46. package/components/agents/deep-research-team/research-orchestrator.md +119 -0
  47. package/components/agents/deep-research-team/research-synthesizer.md +109 -0
  48. package/components/agents/deep-research-team/technical-researcher.md +95 -0
  49. package/components/agents/development-team/backend-architect.md +31 -0
  50. package/components/agents/development-team/cli-ui-designer.md +405 -0
  51. package/components/agents/development-team/devops-engineer.md +886 -0
  52. package/components/agents/development-team/frontend-developer.md +32 -0
  53. package/components/agents/development-team/fullstack-developer.md +1205 -0
  54. package/components/agents/development-team/ios-developer.md +36 -0
  55. package/components/agents/development-team/mobile-developer.md +33 -0
  56. package/components/agents/development-team/ui-ux-designer.md +36 -0
  57. package/components/agents/development-tools/code-reviewer.md +30 -0
  58. package/components/agents/development-tools/command-expert.md +422 -0
  59. package/components/agents/development-tools/context-manager.md +65 -0
  60. package/components/agents/development-tools/debugger.md +31 -0
  61. package/components/agents/development-tools/dx-optimizer.md +64 -0
  62. package/components/agents/development-tools/error-detective.md +33 -0
  63. package/components/agents/development-tools/mcp-expert.md +259 -0
  64. package/components/agents/development-tools/performance-profiler.md +799 -0
  65. package/components/agents/development-tools/test-engineer.md +936 -0
  66. package/components/agents/devops-infrastructure/cloud-architect.md +33 -0
  67. package/components/agents/devops-infrastructure/deployment-engineer.md +33 -0
  68. package/components/agents/devops-infrastructure/devops-troubleshooter.md +33 -0
  69. package/components/agents/devops-infrastructure/monitoring-specialist.md +36 -0
  70. package/components/agents/devops-infrastructure/network-engineer.md +33 -0
  71. package/components/agents/devops-infrastructure/security-engineer.md +971 -0
  72. package/components/agents/devops-infrastructure/terraform-specialist.md +36 -0
  73. package/components/agents/devops-infrastructure/vercel-deployment-specialist.md +357 -0
  74. package/components/agents/documentation/api-documenter.md +33 -0
  75. package/components/agents/documentation/changelog-generator.md +37 -0
  76. package/components/agents/documentation/docusaurus-expert.md +52 -0
  77. package/components/agents/documentation/technical-writer.md +37 -0
  78. package/components/agents/expert-advisors/agent-expert.md +477 -0
  79. package/components/agents/expert-advisors/architect-review.md +50 -0
  80. package/components/agents/expert-advisors/dependency-manager.md +45 -0
  81. package/components/agents/expert-advisors/documentation-expert.md +47 -0
  82. package/components/agents/ffmpeg-clip-team/audio-mixer.md +37 -0
  83. package/components/agents/ffmpeg-clip-team/audio-quality-controller.md +100 -0
  84. package/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +60 -0
  85. package/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +46 -0
  86. package/components/agents/ffmpeg-clip-team/podcast-transcriber.md +68 -0
  87. package/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +69 -0
  88. package/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +98 -0
  89. package/components/agents/ffmpeg-clip-team/video-editor.md +37 -0
  90. package/components/agents/game-development/3d-artist.md +37 -0
  91. package/components/agents/game-development/game-designer.md +37 -0
  92. package/components/agents/game-development/unity-game-developer.md +110 -0
  93. package/components/agents/game-development/unreal-engine-developer.md +128 -0
  94. package/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +101 -0
  95. package/components/agents/mcp-dev-team/mcp-integration-engineer.md +37 -0
  96. package/components/agents/mcp-dev-team/mcp-protocol-specialist.md +37 -0
  97. package/components/agents/mcp-dev-team/mcp-registry-navigator.md +112 -0
  98. package/components/agents/mcp-dev-team/mcp-security-auditor.md +70 -0
  99. package/components/agents/mcp-dev-team/mcp-server-architect.md +74 -0
  100. package/components/agents/mcp-dev-team/mcp-testing-engineer.md +106 -0
  101. package/components/agents/modernization/architecture-modernizer.md +37 -0
  102. package/components/agents/modernization/cloud-migration-specialist.md +37 -0
  103. package/components/agents/modernization/legacy-modernizer.md +33 -0
  104. package/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +306 -0
  105. package/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +343 -0
  106. package/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +216 -0
  107. package/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +82 -0
  108. package/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +195 -0
  109. package/components/agents/obsidian-ops-team/Scripts/link_suggester.py +301 -0
  110. package/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +197 -0
  111. package/components/agents/obsidian-ops-team/Scripts/moc_generator.py +296 -0
  112. package/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +122 -0
  113. package/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +387 -0
  114. package/components/agents/obsidian-ops-team/connection-agent.md +67 -0
  115. package/components/agents/obsidian-ops-team/content-curator.md +81 -0
  116. package/components/agents/obsidian-ops-team/metadata-agent.md +51 -0
  117. package/components/agents/obsidian-ops-team/moc-agent.md +112 -0
  118. package/components/agents/obsidian-ops-team/review-agent.md +94 -0
  119. package/components/agents/obsidian-ops-team/tag-agent.md +92 -0
  120. package/components/agents/obsidian-ops-team/vault-optimizer.md +76 -0
  121. package/components/agents/ocr-extraction-team/document-structure-analyzer.md +37 -0
  122. package/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +58 -0
  123. package/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +36 -0
  124. package/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +37 -0
  125. package/components/agents/ocr-extraction-team/ocr-quality-assurance.md +62 -0
  126. package/components/agents/ocr-extraction-team/text-comparison-validator.md +60 -0
  127. package/components/agents/ocr-extraction-team/visual-analysis-ocr.md +52 -0
  128. package/components/agents/performance-testing/load-testing-specialist.md +37 -0
  129. package/components/agents/performance-testing/performance-engineer.md +33 -0
  130. package/components/agents/performance-testing/react-performance-optimization.md +65 -0
  131. package/components/agents/performance-testing/test-automator.md +33 -0
  132. package/components/agents/performance-testing/web-vitals-optimizer.md +37 -0
  133. package/components/agents/podcast-creator-team/academic-research-synthesizer.md +61 -0
  134. package/components/agents/podcast-creator-team/comprehensive-researcher.md +49 -0
  135. package/components/agents/podcast-creator-team/episode-orchestrator.md +52 -0
  136. package/components/agents/podcast-creator-team/guest-outreach-coordinator.md +37 -0
  137. package/components/agents/podcast-creator-team/market-research-analyst.md +54 -0
  138. package/components/agents/podcast-creator-team/podcast-editor.md +37 -0
  139. package/components/agents/podcast-creator-team/podcast-trend-scout.md +60 -0
  140. package/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +48 -0
  141. package/components/agents/podcast-creator-team/seo-podcast-optimizer.md +58 -0
  142. package/components/agents/podcast-creator-team/social-media-copywriter.md +57 -0
  143. package/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +62 -0
  144. package/components/agents/programming-languages/c-pro.md +36 -0
  145. package/components/agents/programming-languages/c-sharp-pro.md +40 -0
  146. package/components/agents/programming-languages/cpp-pro.md +39 -0
  147. package/components/agents/programming-languages/golang-pro.md +33 -0
  148. package/components/agents/programming-languages/javascript-pro.md +36 -0
  149. package/components/agents/programming-languages/php-pro.md +44 -0
  150. package/components/agents/programming-languages/python-pro.md +33 -0
  151. package/components/agents/programming-languages/rust-pro.md +36 -0
  152. package/components/agents/programming-languages/shell-scripting-pro.md +38 -0
  153. package/components/agents/programming-languages/sql-pro.md +36 -0
  154. package/components/agents/programming-languages/typescript-pro.md +38 -0
  155. package/components/agents/realtime/supabase-realtime-optimizer.md +193 -0
  156. package/components/agents/security/api-security-audit.md +93 -0
  157. package/components/agents/security/compliance-specialist.md +37 -0
  158. package/components/agents/security/incident-responder.md +75 -0
  159. package/components/agents/security/penetration-tester.md +37 -0
  160. package/components/agents/security/security-auditor.md +33 -0
  161. package/components/agents/web-tools/nextjs-architecture-expert.md +194 -0
  162. package/components/agents/web-tools/react-performance-optimizer.md +425 -0
  163. package/components/agents/web-tools/seo-analyzer.md +37 -0
  164. package/components/agents/web-tools/url-context-validator.md +61 -0
  165. package/components/agents/web-tools/url-link-extractor.md +59 -0
  166. package/components/agents/web-tools/web-accessibility-checker.md +37 -0
  167. package/components/commands/automation/act.md +57 -0
  168. package/components/commands/automation/ci-pipeline.md +378 -0
  169. package/components/commands/automation/husky.md +130 -0
  170. package/components/commands/automation/workflow-orchestrator.md +576 -0
  171. package/components/commands/database/supabase-backup-manager.md +37 -0
  172. package/components/commands/database/supabase-data-explorer.md +37 -0
  173. package/components/commands/database/supabase-migration-assistant.md +37 -0
  174. package/components/commands/database/supabase-performance-optimizer.md +37 -0
  175. package/components/commands/database/supabase-realtime-monitor.md +37 -0
  176. package/components/commands/database/supabase-schema-sync.md +37 -0
  177. package/components/commands/database/supabase-security-audit.md +37 -0
  178. package/components/commands/database/supabase-type-generator.md +37 -0
  179. package/components/commands/deployment/add-changelog.md +92 -0
  180. package/components/commands/deployment/blue-green-deployment.md +824 -0
  181. package/components/commands/deployment/changelog-demo-command.md +43 -0
  182. package/components/commands/deployment/ci-setup.md +323 -0
  183. package/components/commands/deployment/containerize-application.md +93 -0
  184. package/components/commands/deployment/deployment-monitoring.md +1228 -0
  185. package/components/commands/deployment/hotfix-deploy.md +283 -0
  186. package/components/commands/deployment/prepare-release.md +357 -0
  187. package/components/commands/deployment/rollback-deploy.md +145 -0
  188. package/components/commands/deployment/setup-automated-releases.md +143 -0
  189. package/components/commands/deployment/setup-kubernetes-deployment.md +93 -0
  190. package/components/commands/documentation/create-architecture-documentation.md +95 -0
  191. package/components/commands/documentation/create-onboarding-guide.md +93 -0
  192. package/components/commands/documentation/doc-api.md +242 -0
  193. package/components/commands/documentation/docs-maintenance.md +119 -0
  194. package/components/commands/documentation/generate-api-documentation.md +97 -0
  195. package/components/commands/documentation/interactive-documentation.md +133 -0
  196. package/components/commands/documentation/load-llms-txt.md +39 -0
  197. package/components/commands/documentation/migration-guide.md +250 -0
  198. package/components/commands/documentation/troubleshooting-guide.md +370 -0
  199. package/components/commands/documentation/update-docs.md +107 -0
  200. package/components/commands/game-development/game-analytics-integration.md +128 -0
  201. package/components/commands/game-development/game-asset-pipeline.md +108 -0
  202. package/components/commands/game-development/game-performance-profiler.md +78 -0
  203. package/components/commands/game-development/game-testing-framework.md +112 -0
  204. package/components/commands/game-development/unity-project-setup.md +190 -0
  205. package/components/commands/git-workflow/branch-cleanup.md +181 -0
  206. package/components/commands/git-workflow/commit.md +167 -0
  207. package/components/commands/git-workflow/create-pr.md +19 -0
  208. package/components/commands/git-workflow/create-pull-request.md +126 -0
  209. package/components/commands/git-workflow/create-worktrees.md +174 -0
  210. package/components/commands/git-workflow/fix-github-issue.md +13 -0
  211. package/components/commands/git-workflow/git-bisect-helper.md +261 -0
  212. package/components/commands/git-workflow/pr-review.md +76 -0
  213. package/components/commands/git-workflow/update-branch-name.md +9 -0
  214. package/components/commands/nextjs-vercel/nextjs-api-tester.md +480 -0
  215. package/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +406 -0
  216. package/components/commands/nextjs-vercel/nextjs-component-generator.md +489 -0
  217. package/components/commands/nextjs-vercel/nextjs-middleware-creator.md +712 -0
  218. package/components/commands/nextjs-vercel/nextjs-migration-helper.md +778 -0
  219. package/components/commands/nextjs-vercel/nextjs-performance-audit.md +653 -0
  220. package/components/commands/nextjs-vercel/nextjs-scaffold.md +237 -0
  221. package/components/commands/nextjs-vercel/vercel-deploy-optimize.md +341 -0
  222. package/components/commands/nextjs-vercel/vercel-edge-function.md +810 -0
  223. package/components/commands/nextjs-vercel/vercel-env-sync.md +666 -0
  224. package/components/commands/orchestration/archive.md +414 -0
  225. package/components/commands/orchestration/commit.md +305 -0
  226. package/components/commands/orchestration/find.md +272 -0
  227. package/components/commands/orchestration/log.md +355 -0
  228. package/components/commands/orchestration/move.md +220 -0
  229. package/components/commands/orchestration/optimize.md +375 -0
  230. package/components/commands/orchestration/remove.md +301 -0
  231. package/components/commands/orchestration/report.md +292 -0
  232. package/components/commands/orchestration/resume.md +256 -0
  233. package/components/commands/orchestration/start.md +169 -0
  234. package/components/commands/orchestration/status.md +219 -0
  235. package/components/commands/orchestration/sync.md +294 -0
  236. package/components/commands/performance/add-performance-monitoring.md +84 -0
  237. package/components/commands/performance/implement-caching-strategy.md +84 -0
  238. package/components/commands/performance/optimize-api-performance.md +119 -0
  239. package/components/commands/performance/optimize-build.md +139 -0
  240. package/components/commands/performance/optimize-bundle-size.md +84 -0
  241. package/components/commands/performance/optimize-database-performance.md +84 -0
  242. package/components/commands/performance/optimize-memory-usage.md +91 -0
  243. package/components/commands/performance/performance-audit.md +89 -0
  244. package/components/commands/performance/setup-cdn-optimization.md +84 -0
  245. package/components/commands/performance/system-behavior-simulator.md +415 -0
  246. package/components/commands/project-management/add-package.md +90 -0
  247. package/components/commands/project-management/add-to-changelog.md +37 -0
  248. package/components/commands/project-management/create-feature.md +130 -0
  249. package/components/commands/project-management/create-jtbd.md +37 -0
  250. package/components/commands/project-management/create-prd.md +36 -0
  251. package/components/commands/project-management/create-prp.md +37 -0
  252. package/components/commands/project-management/init-project.md +80 -0
  253. package/components/commands/project-management/milestone-tracker.md +44 -0
  254. package/components/commands/project-management/pac-configure.md +32 -0
  255. package/components/commands/project-management/pac-create-epic.md +41 -0
  256. package/components/commands/project-management/pac-create-ticket.md +42 -0
  257. package/components/commands/project-management/pac-update-status.md +39 -0
  258. package/components/commands/project-management/pac-validate.md +35 -0
  259. package/components/commands/project-management/project-health-check.md +58 -0
  260. package/components/commands/project-management/project-timeline-simulator.md +37 -0
  261. package/components/commands/project-management/project-to-linear.md +38 -0
  262. package/components/commands/project-management/release.md +31 -0
  263. package/components/commands/project-management/todo.md +62 -0
  264. package/components/commands/security/add-authentication-system.md +34 -0
  265. package/components/commands/security/dependency-audit.md +32 -0
  266. package/components/commands/security/penetration-test.md +40 -0
  267. package/components/commands/security/secrets-scanner.md +39 -0
  268. package/components/commands/security/security-audit.md +82 -0
  269. package/components/commands/security/security-hardening.md +33 -0
  270. package/components/commands/setup/create-database-migrations.md +35 -0
  271. package/components/commands/setup/design-database-schema.md +37 -0
  272. package/components/commands/setup/design-rest-api.md +37 -0
  273. package/components/commands/setup/implement-graphql-api.md +37 -0
  274. package/components/commands/setup/migrate-to-typescript.md +37 -0
  275. package/components/commands/setup/setup-ci-cd-pipeline.md +37 -0
  276. package/components/commands/setup/setup-development-environment.md +37 -0
  277. package/components/commands/setup/setup-docker-containers.md +37 -0
  278. package/components/commands/setup/setup-formatting.md +37 -0
  279. package/components/commands/setup/setup-linting.md +37 -0
  280. package/components/commands/setup/setup-monitoring-observability.md +37 -0
  281. package/components/commands/setup/setup-monorepo.md +37 -0
  282. package/components/commands/setup/setup-rate-limiting.md +37 -0
  283. package/components/commands/setup/update-dependencies.md +35 -0
  284. package/components/commands/simulation/business-scenario-explorer.md +37 -0
  285. package/components/commands/simulation/constraint-modeler.md +37 -0
  286. package/components/commands/simulation/decision-tree-explorer.md +37 -0
  287. package/components/commands/simulation/digital-twin-creator.md +37 -0
  288. package/components/commands/simulation/future-scenario-generator.md +37 -0
  289. package/components/commands/simulation/market-response-modeler.md +37 -0
  290. package/components/commands/simulation/monte-carlo-simulator.md +37 -0
  291. package/components/commands/simulation/simulation-calibrator.md +37 -0
  292. package/components/commands/simulation/system-dynamics-modeler.md +37 -0
  293. package/components/commands/simulation/timeline-compressor.md +37 -0
  294. package/components/commands/svelte/svelte:a11y.md +105 -0
  295. package/components/commands/svelte/svelte:component.md +81 -0
  296. package/components/commands/svelte/svelte:debug.md +48 -0
  297. package/components/commands/svelte/svelte:migrate.md +79 -0
  298. package/components/commands/svelte/svelte:optimize.md +99 -0
  299. package/components/commands/svelte/svelte:scaffold.md +89 -0
  300. package/components/commands/svelte/svelte:storybook-migrate.md +204 -0
  301. package/components/commands/svelte/svelte:storybook-mock.md +213 -0
  302. package/components/commands/svelte/svelte:storybook-setup.md +113 -0
  303. package/components/commands/svelte/svelte:storybook-story.md +145 -0
  304. package/components/commands/svelte/svelte:storybook-troubleshoot.md +191 -0
  305. package/components/commands/svelte/svelte:storybook.md +48 -0
  306. package/components/commands/svelte/svelte:test-coverage.md +77 -0
  307. package/components/commands/svelte/svelte:test-fix.md +74 -0
  308. package/components/commands/svelte/svelte:test-setup.md +85 -0
  309. package/components/commands/svelte/svelte:test.md +60 -0
  310. package/components/commands/sync/bidirectional-sync.md +37 -0
  311. package/components/commands/sync/bulk-import-issues.md +37 -0
  312. package/components/commands/sync/cross-reference-manager.md +37 -0
  313. package/components/commands/sync/issue-to-linear-task.md +37 -0
  314. package/components/commands/sync/linear-task-to-issue.md +37 -0
  315. package/components/commands/sync/sync-automation-setup.md +37 -0
  316. package/components/commands/sync/sync-conflict-resolver.md +37 -0
  317. package/components/commands/sync/sync-health-monitor.md +37 -0
  318. package/components/commands/sync/sync-issues-to-linear.md +37 -0
  319. package/components/commands/sync/sync-linear-to-issues.md +37 -0
  320. package/components/commands/sync/sync-migration-assistant.md +37 -0
  321. package/components/commands/sync/sync-pr-to-task.md +37 -0
  322. package/components/commands/sync/sync-status.md +391 -0
  323. package/components/commands/sync/task-from-pr.md +37 -0
  324. package/components/commands/team/architecture-review.md +37 -0
  325. package/components/commands/team/decision-quality-analyzer.md +37 -0
  326. package/components/commands/team/dependency-mapper.md +37 -0
  327. package/components/commands/team/estimate-assistant.md +37 -0
  328. package/components/commands/team/issue-triage.md +37 -0
  329. package/components/commands/team/memory-spring-cleaning.md +37 -0
  330. package/components/commands/team/migration-assistant.md +37 -0
  331. package/components/commands/team/retrospective-analyzer.md +37 -0
  332. package/components/commands/team/session-learning-capture.md +37 -0
  333. package/components/commands/team/sprint-planning.md +189 -0
  334. package/components/commands/team/standup-report.md +37 -0
  335. package/components/commands/team/team-knowledge-mapper.md +37 -0
  336. package/components/commands/team/team-velocity-tracker.md +37 -0
  337. package/components/commands/team/team-workload-balancer.md +37 -0
  338. package/components/commands/testing/add-mutation-testing.md +37 -0
  339. package/components/commands/testing/add-property-based-testing.md +37 -0
  340. package/components/commands/testing/e2e-setup.md +37 -0
  341. package/components/commands/testing/generate-test-cases.md +37 -0
  342. package/components/commands/testing/generate-tests.md +82 -0
  343. package/components/commands/testing/setup-comprehensive-testing.md +37 -0
  344. package/components/commands/testing/setup-load-testing.md +37 -0
  345. package/components/commands/testing/setup-visual-testing.md +37 -0
  346. package/components/commands/testing/test-automation-orchestrator.md +37 -0
  347. package/components/commands/testing/test-changelog-automation.md +37 -0
  348. package/components/commands/testing/test-coverage.md +37 -0
  349. package/components/commands/testing/test-quality-analyzer.md +37 -0
  350. package/components/commands/testing/testing_plan_integration.md +37 -0
  351. package/components/commands/testing/write-tests.md +37 -0
  352. package/components/commands/utilities/all-tools.md +31 -0
  353. package/components/commands/utilities/architecture-scenario-explorer.md +375 -0
  354. package/components/commands/utilities/check-file.md +53 -0
  355. package/components/commands/utilities/clean-branches.md +243 -0
  356. package/components/commands/utilities/clean.md +1 -0
  357. package/components/commands/utilities/code-permutation-tester.md +341 -0
  358. package/components/commands/utilities/code-review.md +70 -0
  359. package/components/commands/utilities/code-to-task.md +583 -0
  360. package/components/commands/utilities/context-prime.md +1 -0
  361. package/components/commands/utilities/debug-error.md +121 -0
  362. package/components/commands/utilities/directory-deep-dive.md +34 -0
  363. package/components/commands/utilities/explain-code.md +194 -0
  364. package/components/commands/utilities/fix-issue.md +85 -0
  365. package/components/commands/utilities/generate-linear-worklog.md +113 -0
  366. package/components/commands/utilities/git-status.md +39 -0
  367. package/components/commands/utilities/initref.md +3 -0
  368. package/components/commands/utilities/prime.md +41 -0
  369. package/components/commands/utilities/refactor-code.md +116 -0
  370. package/components/commands/utilities/ultra-think.md +153 -0
  371. package/components/hooks/HOOK_PATTERNS_COMPRESSED.json +1 -0
  372. package/components/hooks/automation/build-on-change.json +16 -0
  373. package/components/hooks/automation/dependency-checker.json +16 -0
  374. package/components/hooks/automation/deployment-health-monitor.json +29 -0
  375. package/components/hooks/automation/discord-detailed-notifications.json +26 -0
  376. package/components/hooks/automation/discord-error-notifications.json +37 -0
  377. package/components/hooks/automation/discord-notifications.json +25 -0
  378. package/components/hooks/automation/simple-notifications.json +16 -0
  379. package/components/hooks/automation/slack-detailed-notifications.json +26 -0
  380. package/components/hooks/automation/slack-error-notifications.json +37 -0
  381. package/components/hooks/automation/slack-notifications.json +25 -0
  382. package/components/hooks/automation/telegram-detailed-notifications.json +26 -0
  383. package/components/hooks/automation/telegram-error-notifications.json +37 -0
  384. package/components/hooks/automation/telegram-notifications.json +25 -0
  385. package/components/hooks/automation/vercel-auto-deploy.json +17 -0
  386. package/components/hooks/automation/vercel-environment-sync.json +29 -0
  387. package/components/hooks/development-tools/change-tracker.json +25 -0
  388. package/components/hooks/development-tools/command-logger.json +16 -0
  389. package/components/hooks/development-tools/file-backup.json +16 -0
  390. package/components/hooks/development-tools/lint-on-save.json +16 -0
  391. package/components/hooks/development-tools/nextjs-code-quality-enforcer.json +17 -0
  392. package/components/hooks/development-tools/smart-formatting.json +16 -0
  393. package/components/hooks/git-workflow/auto-git-add.json +16 -0
  394. package/components/hooks/git-workflow/smart-commit.json +25 -0
  395. package/components/hooks/performance/performance-budget-guard.json +27 -0
  396. package/components/hooks/performance/performance-monitor.json +27 -0
  397. package/components/hooks/post-tool/format-javascript-files.json +16 -0
  398. package/components/hooks/post-tool/format-python-files.json +16 -0
  399. package/components/hooks/post-tool/git-add-changes.json +25 -0
  400. package/components/hooks/post-tool/run-tests-after-changes.json +16 -0
  401. package/components/hooks/pre-tool/backup-before-edit.json +16 -0
  402. package/components/hooks/pre-tool/notify-before-bash.json +16 -0
  403. package/components/hooks/security/file-protection.json +16 -0
  404. package/components/hooks/security/security-scanner.json +16 -0
  405. package/components/hooks/testing/test-runner.json +16 -0
  406. package/components/mcps/browser_automation/browser-use-mcp-server.json +20 -0
  407. package/components/mcps/browser_automation/browsermcp.json +9 -0
  408. package/components/mcps/browser_automation/mcp-server-browserbase.json +14 -0
  409. package/components/mcps/browser_automation/mcp-server-playwright.json +9 -0
  410. package/components/mcps/browser_automation/playwright-mcp-server.json +9 -0
  411. package/components/mcps/browser_automation/playwright-mcp.json +11 -0
  412. package/components/mcps/database/mysql-integration.json +12 -0
  413. package/components/mcps/database/postgresql-integration.json +12 -0
  414. package/components/mcps/database/supabase.json +17 -0
  415. package/components/mcps/deepgraph/deepgraph-nextjs.json +13 -0
  416. package/components/mcps/deepgraph/deepgraph-react.json +13 -0
  417. package/components/mcps/deepgraph/deepgraph-typescript.json +13 -0
  418. package/components/mcps/deepgraph/deepgraph-vue.json +13 -0
  419. package/components/mcps/devtools/circleci.json +13 -0
  420. package/components/mcps/devtools/context7.json +9 -0
  421. package/components/mcps/devtools/firefly-mcp.json +13 -0
  422. package/components/mcps/devtools/ios-simulator-mcp.json +9 -0
  423. package/components/mcps/devtools/just-mcp.json +9 -0
  424. package/components/mcps/devtools/leetcode.json +8 -0
  425. package/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +9 -0
  426. package/components/mcps/devtools/mcp-server-trello.json +12 -0
  427. package/components/mcps/filesystem/filesystem-access.json +13 -0
  428. package/components/mcps/integration/github-integration.json +12 -0
  429. package/components/mcps/integration/memory-integration.json +9 -0
  430. package/components/mcps/marketing/facebook-ads-mcp-server.json +13 -0
  431. package/components/mcps/marketing/google-ads-mcp-server.json +11 -0
  432. package/components/mcps/web/web-fetch.json +9 -0
  433. package/components/sandbox/README.md +169 -0
  434. package/components/sandbox/e2b/.env.example +10 -0
  435. package/components/sandbox/e2b/SANDBOX_DEBUGGING.md +203 -0
  436. package/components/sandbox/e2b/claude-code-sandbox.md +110 -0
  437. package/components/sandbox/e2b/e2b-launcher.py +426 -0
  438. package/components/sandbox/e2b/e2b-monitor.py +229 -0
  439. package/components/sandbox/e2b/requirements.txt +1 -0
  440. package/components/settings/api/bedrock-configuration.json +7 -0
  441. package/components/settings/api/corporate-proxy.json +7 -0
  442. package/components/settings/api/custom-headers.json +6 -0
  443. package/components/settings/api/vertex-configuration.json +8 -0
  444. package/components/settings/authentication/api-key-helper.json +7 -0
  445. package/components/settings/authentication/force-claudeai-login.json +4 -0
  446. package/components/settings/authentication/force-console-login.json +4 -0
  447. package/components/settings/cleanup/retention-7-days.json +4 -0
  448. package/components/settings/cleanup/retention-90-days.json +4 -0
  449. package/components/settings/environment/bash-timeouts.json +8 -0
  450. package/components/settings/environment/development-utils.json +8 -0
  451. package/components/settings/environment/performance-optimization.json +8 -0
  452. package/components/settings/environment/privacy-focused.json +10 -0
  453. package/components/settings/global/aws-credentials.json +5 -0
  454. package/components/settings/global/custom-model.json +7 -0
  455. package/components/settings/global/git-commit-settings.json +4 -0
  456. package/components/settings/mcp/disable-risky-servers.json +8 -0
  457. package/components/settings/mcp/enable-all-project-servers.json +4 -0
  458. package/components/settings/mcp/enable-specific-servers.json +8 -0
  459. package/components/settings/mcp/mcp-timeouts.json +8 -0
  460. package/components/settings/model/use-haiku.json +4 -0
  461. package/components/settings/model/use-sonnet.json +4 -0
  462. package/components/settings/permissions/additional-directories.json +11 -0
  463. package/components/settings/permissions/allow-git-operations.json +14 -0
  464. package/components/settings/permissions/allow-npm-commands.json +11 -0
  465. package/components/settings/permissions/deny-sensitive-files.json +11 -0
  466. package/components/settings/permissions/development-mode.json +31 -0
  467. package/components/settings/permissions/read-only-mode.json +18 -0
  468. package/components/settings/statusline/asset-pipeline-controller-statusline.json +7 -0
  469. package/components/settings/statusline/bug-circus-statusline.json +7 -0
  470. package/components/settings/statusline/code-casino-statusline.json +7 -0
  471. package/components/settings/statusline/code-spaceship-statusline.json +7 -0
  472. package/components/settings/statusline/colorful-statusline.json +7 -0
  473. package/components/settings/statusline/command-statusline.json +8 -0
  474. package/components/settings/statusline/context-monitor.json +7 -0
  475. package/components/settings/statusline/context-monitor.py +236 -0
  476. package/components/settings/statusline/data-ocean-statusline.json +7 -0
  477. package/components/settings/statusline/emotion-theater-statusline.json +7 -0
  478. package/components/settings/statusline/game-performance-monitor-statusline.json +7 -0
  479. package/components/settings/statusline/git-branch-statusline.json +7 -0
  480. package/components/settings/statusline/minimal-statusline.json +7 -0
  481. package/components/settings/statusline/multiplatform-build-status-statusline.json +7 -0
  482. package/components/settings/statusline/productivity-rainbow-statusline.json +7 -0
  483. package/components/settings/statusline/programmer-tamagotchi-statusline.json +7 -0
  484. package/components/settings/statusline/programming-fitness-tracker-statusline.json +7 -0
  485. package/components/settings/statusline/project-info-statusline.json +7 -0
  486. package/components/settings/statusline/rpg-status-bar-statusline.json +7 -0
  487. package/components/settings/statusline/time-statusline.json +7 -0
  488. package/components/settings/statusline/unity-project-dashboard-statusline.json +7 -0
  489. package/components/settings/statusline/vercel-deployment-monitor.json +7 -0
  490. package/components/settings/statusline/vercel-error-alert-system.json +7 -0
  491. package/components/settings/statusline/vercel-multi-env-status.json +7 -0
  492. package/components/settings/statusline/virtual-code-garden-statusline.json +7 -0
  493. package/components/settings/statusline/zero-config-deployment-monitor.json +7 -0
  494. package/components/settings/telemetry/custom-telemetry.json +7 -0
  495. package/components/settings/telemetry/disable-telemetry.json +6 -0
  496. package/components/settings/telemetry/enable-telemetry.json +6 -0
  497. package/package.json +2 -1
  498. package/src/index.js +59 -24
@@ -0,0 +1,576 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, Bash
3
+ argument-hint: [workflow-name] | create | run | schedule | monitor
4
+ description: Orchestrate complex automation workflows with task dependencies, scheduling, and cross-platform execution
5
+ model: sonnet
6
+ ---
7
+
8
+ # Workflow Orchestrator
9
+
10
+ Orchestrate complex automation workflows: $ARGUMENTS
11
+
12
+ ## Current Workflow State
13
+
14
+ - Existing workflows: !`find . -name "*.workflow.json" -o -name "workflow.yml" -o -name "Taskfile.yml" | head -5`
15
+ - Cron jobs: !`crontab -l 2>/dev/null || echo "No crontab found"`
16
+ - Running processes: !`ps aux | grep -E "(workflow|task|job)" | head -3`
17
+ - System capabilities: !`which docker node python3 | head -3`
18
+ - Configuration: @.workflow-config.json or @workflows/ (if exists)
19
+
20
+ ## Task
21
+
22
+ Create and manage complex automation workflows with dependency management, scheduling, and monitoring.
23
+
24
+ ## Workflow Definition Structure
25
+
26
+ ### Basic Workflow Schema
27
+ ```json
28
+ {
29
+ "name": "deployment-workflow",
30
+ "version": "1.0.0",
31
+ "description": "Complete deployment automation with testing and rollback",
32
+ "trigger": {
33
+ "type": "manual|schedule|webhook|file_change",
34
+ "config": {
35
+ "schedule": "0 2 * * *",
36
+ "files": ["src/**/*", "package.json"],
37
+ "webhook": "/trigger/deploy"
38
+ }
39
+ },
40
+ "environment": {
41
+ "NODE_ENV": "production",
42
+ "LOG_LEVEL": "info"
43
+ },
44
+ "tasks": [
45
+ {
46
+ "id": "pre-build",
47
+ "name": "Pre-build validation",
48
+ "type": "shell",
49
+ "command": "npm run validate",
50
+ "timeout": 300,
51
+ "retry": {
52
+ "attempts": 3,
53
+ "delay": 5000
54
+ }
55
+ },
56
+ {
57
+ "id": "build",
58
+ "name": "Build application",
59
+ "type": "shell",
60
+ "command": "npm run build",
61
+ "depends_on": ["pre-build"],
62
+ "parallel": false,
63
+ "timeout": 600
64
+ },
65
+ {
66
+ "id": "test",
67
+ "name": "Run tests",
68
+ "type": "shell",
69
+ "command": "npm run test:ci",
70
+ "depends_on": ["build"],
71
+ "condition": "${env.SKIP_TESTS} != 'true'"
72
+ },
73
+ {
74
+ "id": "deploy",
75
+ "name": "Deploy to staging",
76
+ "type": "shell",
77
+ "command": "npm run deploy:staging",
78
+ "depends_on": ["test"],
79
+ "on_success": ["notify-success"],
80
+ "on_failure": ["rollback", "notify-failure"]
81
+ }
82
+ ],
83
+ "notifications": {
84
+ "channels": ["slack", "email"],
85
+ "on_completion": true,
86
+ "on_failure": true
87
+ }
88
+ }
89
+ ```
90
+
91
+ ## Advanced Workflow Features
92
+
93
+ ### 1. **Conditional Execution**
94
+ ```json
95
+ {
96
+ "id": "conditional-deploy",
97
+ "name": "Deploy if tests pass",
98
+ "type": "conditional",
99
+ "condition": "${tasks.test.exit_code} == 0 && ${env.DEPLOY_ENABLED} == 'true'",
100
+ "then": {
101
+ "type": "shell",
102
+ "command": "npm run deploy"
103
+ },
104
+ "else": {
105
+ "type": "shell",
106
+ "command": "echo 'Skipping deployment'"
107
+ }
108
+ }
109
+ ```
110
+
111
+ ### 2. **Parallel Task Execution**
112
+ ```json
113
+ {
114
+ "id": "parallel-tests",
115
+ "name": "Run parallel test suites",
116
+ "type": "parallel",
117
+ "tasks": [
118
+ {
119
+ "id": "unit-tests",
120
+ "command": "npm run test:unit"
121
+ },
122
+ {
123
+ "id": "integration-tests",
124
+ "command": "npm run test:integration"
125
+ },
126
+ {
127
+ "id": "e2e-tests",
128
+ "command": "npm run test:e2e"
129
+ }
130
+ ],
131
+ "wait_for": "all|any|first",
132
+ "timeout": 1800
133
+ }
134
+ ```
135
+
136
+ ### 3. **Loop and Iteration**
137
+ ```json
138
+ {
139
+ "id": "deploy-multiple-envs",
140
+ "name": "Deploy to multiple environments",
141
+ "type": "loop",
142
+ "items": ["staging", "qa", "production"],
143
+ "task": {
144
+ "type": "shell",
145
+ "command": "npm run deploy -- --env ${item}",
146
+ "timeout": 300
147
+ },
148
+ "parallel": false,
149
+ "stop_on_failure": true
150
+ }
151
+ ```
152
+
153
+ ### 4. **File and Data Processing**
154
+ ```json
155
+ {
156
+ "id": "process-data",
157
+ "name": "Process data files",
158
+ "type": "data_processor",
159
+ "input": {
160
+ "type": "file",
161
+ "path": "data/*.json"
162
+ },
163
+ "processor": {
164
+ "type": "javascript",
165
+ "script": "scripts/process-data.js"
166
+ },
167
+ "output": {
168
+ "type": "file",
169
+ "path": "processed/output.json"
170
+ }
171
+ }
172
+ ```
173
+
174
+ ## Workflow Orchestration Engine
175
+
176
+ ### Core Engine Implementation
177
+ ```javascript
178
+ class WorkflowOrchestrator {
179
+ constructor(config) {
180
+ this.config = config;
181
+ this.tasks = new Map();
182
+ this.running = new Set();
183
+ this.completed = new Set();
184
+ this.failed = new Set();
185
+ this.logger = new Logger(config.logLevel);
186
+ }
187
+
188
+ async execute(workflowPath) {
189
+ const workflow = await this.loadWorkflow(workflowPath);
190
+
191
+ try {
192
+ await this.validateWorkflow(workflow);
193
+ await this.setupEnvironment(workflow.environment);
194
+
195
+ const result = await this.executeWorkflow(workflow);
196
+ await this.cleanup();
197
+
198
+ return result;
199
+ } catch (error) {
200
+ await this.handleError(error, workflow);
201
+ throw error;
202
+ }
203
+ }
204
+
205
+ async executeWorkflow(workflow) {
206
+ const taskGraph = this.buildDependencyGraph(workflow.tasks);
207
+ const execution = {
208
+ id: this.generateExecutionId(),
209
+ workflow: workflow.name,
210
+ startTime: Date.now(),
211
+ tasks: {}
212
+ };
213
+
214
+ while (this.hasRunnableTasks(taskGraph)) {
215
+ const runnableTasks = this.getRunnableTasks(taskGraph);
216
+
217
+ if (runnableTasks.length === 0) {
218
+ break; // Circular dependency or all failed
219
+ }
220
+
221
+ await this.executeTaskBatch(runnableTasks, execution);
222
+ }
223
+
224
+ return this.generateExecutionReport(execution);
225
+ }
226
+
227
+ async executeTask(task, execution) {
228
+ const taskExecution = {
229
+ id: task.id,
230
+ name: task.name,
231
+ startTime: Date.now(),
232
+ status: 'running'
233
+ };
234
+
235
+ execution.tasks[task.id] = taskExecution;
236
+ this.running.add(task.id);
237
+
238
+ try {
239
+ // Pre-execution hooks
240
+ await this.runPreHooks(task);
241
+
242
+ // Task execution
243
+ const result = await this.runTaskByType(task);
244
+
245
+ // Post-execution hooks
246
+ await this.runPostHooks(task, result);
247
+
248
+ taskExecution.endTime = Date.now();
249
+ taskExecution.duration = taskExecution.endTime - taskExecution.startTime;
250
+ taskExecution.status = 'completed';
251
+ taskExecution.result = result;
252
+
253
+ this.completed.add(task.id);
254
+ this.running.delete(task.id);
255
+
256
+ // Handle success callbacks
257
+ if (task.on_success) {
258
+ await this.executeCallbacks(task.on_success, taskExecution);
259
+ }
260
+
261
+ return result;
262
+ } catch (error) {
263
+ taskExecution.endTime = Date.now();
264
+ taskExecution.duration = taskExecution.endTime - taskExecution.startTime;
265
+ taskExecution.status = 'failed';
266
+ taskExecution.error = error.message;
267
+
268
+ this.failed.add(task.id);
269
+ this.running.delete(task.id);
270
+
271
+ // Handle failure callbacks
272
+ if (task.on_failure) {
273
+ await this.executeCallbacks(task.on_failure, taskExecution);
274
+ }
275
+
276
+ throw error;
277
+ }
278
+ }
279
+
280
+ async runTaskByType(task) {
281
+ switch (task.type) {
282
+ case 'shell':
283
+ return await this.executeShellTask(task);
284
+ case 'http':
285
+ return await this.executeHttpTask(task);
286
+ case 'docker':
287
+ return await this.executeDockerTask(task);
288
+ case 'javascript':
289
+ return await this.executeJavaScriptTask(task);
290
+ case 'python':
291
+ return await this.executePythonTask(task);
292
+ default:
293
+ throw new Error(`Unknown task type: ${task.type}`);
294
+ }
295
+ }
296
+ }
297
+ ```
298
+
299
+ ### Task Types Implementation
300
+
301
+ #### Shell Task
302
+ ```javascript
303
+ async executeShellTask(task) {
304
+ const { spawn } = require('child_process');
305
+
306
+ return new Promise((resolve, reject) => {
307
+ const process = spawn('sh', ['-c', task.command], {
308
+ cwd: task.cwd || process.cwd(),
309
+ env: { ...process.env, ...task.environment },
310
+ stdio: ['pipe', 'pipe', 'pipe']
311
+ });
312
+
313
+ let stdout = '';
314
+ let stderr = '';
315
+
316
+ process.stdout.on('data', (data) => {
317
+ stdout += data.toString();
318
+ if (task.live_output) {
319
+ console.log(data.toString());
320
+ }
321
+ });
322
+
323
+ process.stderr.on('data', (data) => {
324
+ stderr += data.toString();
325
+ });
326
+
327
+ const timeout = setTimeout(() => {
328
+ process.kill('SIGKILL');
329
+ reject(new Error(`Task timeout after ${task.timeout}ms`));
330
+ }, task.timeout || 300000);
331
+
332
+ process.on('close', (code) => {
333
+ clearTimeout(timeout);
334
+ if (code === 0) {
335
+ resolve({ stdout, stderr, exitCode: code });
336
+ } else {
337
+ reject(new Error(`Shell command failed with exit code ${code}: ${stderr}`));
338
+ }
339
+ });
340
+ });
341
+ }
342
+ ```
343
+
344
+ #### HTTP Task
345
+ ```javascript
346
+ async executeHttpTask(task) {
347
+ const axios = require('axios');
348
+
349
+ const config = {
350
+ method: task.method || 'GET',
351
+ url: task.url,
352
+ headers: task.headers || {},
353
+ timeout: task.timeout || 30000
354
+ };
355
+
356
+ if (task.data) {
357
+ config.data = task.data;
358
+ }
359
+
360
+ if (task.auth) {
361
+ config.auth = task.auth;
362
+ }
363
+
364
+ try {
365
+ const response = await axios(config);
366
+ return {
367
+ status: response.status,
368
+ data: response.data,
369
+ headers: response.headers
370
+ };
371
+ } catch (error) {
372
+ throw new Error(`HTTP request failed: ${error.message}`);
373
+ }
374
+ }
375
+ ```
376
+
377
+ ## Workflow Scheduling
378
+
379
+ ### Cron Integration
380
+ ```bash
381
+ #!/bin/bash
382
+ # setup-workflow-cron.sh
383
+
384
+ # Daily backup workflow
385
+ 0 2 * * * cd /path/to/project && node workflow-engine.js run backup-workflow.json
386
+
387
+ # Hourly health check
388
+ 0 * * * * cd /path/to/project && node workflow-engine.js run health-check.json
389
+
390
+ # Weekly cleanup
391
+ 0 0 * * 0 cd /path/to/project && node workflow-engine.js run cleanup-workflow.json
392
+ ```
393
+
394
+ ### Systemd Timer (Linux)
395
+ ```ini
396
+ # /etc/systemd/system/workflow-orchestrator.timer
397
+ [Unit]
398
+ Description=Workflow Orchestrator Timer
399
+ Requires=workflow-orchestrator.service
400
+
401
+ [Timer]
402
+ OnCalendar=*:0/5
403
+ Persistent=true
404
+
405
+ [Install]
406
+ WantedBy=timers.target
407
+ ```
408
+
409
+ ## Monitoring and Alerting
410
+
411
+ ### Workflow Metrics Dashboard
412
+ ```javascript
413
+ class WorkflowMonitor {
414
+ constructor() {
415
+ this.metrics = {
416
+ totalRuns: 0,
417
+ successfulRuns: 0,
418
+ failedRuns: 0,
419
+ averageDuration: 0,
420
+ taskMetrics: new Map()
421
+ };
422
+ }
423
+
424
+ recordExecution(execution) {
425
+ this.metrics.totalRuns++;
426
+
427
+ if (execution.status === 'completed') {
428
+ this.metrics.successfulRuns++;
429
+ } else {
430
+ this.metrics.failedRuns++;
431
+ }
432
+
433
+ // Update average duration
434
+ const totalDuration = this.metrics.averageDuration * (this.metrics.totalRuns - 1) + execution.duration;
435
+ this.metrics.averageDuration = totalDuration / this.metrics.totalRuns;
436
+
437
+ // Record task metrics
438
+ for (const [taskId, task] of Object.entries(execution.tasks)) {
439
+ if (!this.metrics.taskMetrics.has(taskId)) {
440
+ this.metrics.taskMetrics.set(taskId, {
441
+ runs: 0,
442
+ failures: 0,
443
+ averageDuration: 0
444
+ });
445
+ }
446
+
447
+ const taskMetrics = this.metrics.taskMetrics.get(taskId);
448
+ taskMetrics.runs++;
449
+
450
+ if (task.status === 'failed') {
451
+ taskMetrics.failures++;
452
+ }
453
+
454
+ const taskTotalDuration = taskMetrics.averageDuration * (taskMetrics.runs - 1) + task.duration;
455
+ taskMetrics.averageDuration = taskTotalDuration / taskMetrics.runs;
456
+ }
457
+ }
458
+
459
+ getHealthReport() {
460
+ const successRate = (this.metrics.successfulRuns / this.metrics.totalRuns) * 100;
461
+
462
+ return {
463
+ overall: {
464
+ successRate: successRate.toFixed(2) + '%',
465
+ totalRuns: this.metrics.totalRuns,
466
+ averageDuration: (this.metrics.averageDuration / 1000).toFixed(2) + 's'
467
+ },
468
+ tasks: this.getTaskHealthReport()
469
+ };
470
+ }
471
+ }
472
+ ```
473
+
474
+ ### Alert Configuration
475
+ ```json
476
+ {
477
+ "alerts": [
478
+ {
479
+ "name": "workflow-failure",
480
+ "condition": "execution.status === 'failed'",
481
+ "channels": ["slack", "email"],
482
+ "template": "Workflow ${workflow.name} failed: ${error.message}"
483
+ },
484
+ {
485
+ "name": "high-failure-rate",
486
+ "condition": "metrics.successRate < 90",
487
+ "channels": ["slack"],
488
+ "template": "Workflow success rate dropped to ${metrics.successRate}%"
489
+ },
490
+ {
491
+ "name": "long-duration",
492
+ "condition": "execution.duration > workflow.expected_duration * 2",
493
+ "channels": ["email"],
494
+ "template": "Workflow taking unusually long: ${execution.duration}ms"
495
+ }
496
+ ]
497
+ }
498
+ ```
499
+
500
+ ## CLI Interface
501
+
502
+ ### Command-line Usage
503
+ ```bash
504
+ # Create new workflow
505
+ workflow create --name "deployment" --template "web-app"
506
+
507
+ # Run workflow
508
+ workflow run deployment-workflow.json
509
+
510
+ # Schedule workflow
511
+ workflow schedule --cron "0 2 * * *" backup-workflow.json
512
+
513
+ # Monitor workflows
514
+ workflow monitor --live
515
+
516
+ # View execution history
517
+ workflow history --limit 10
518
+
519
+ # Get workflow status
520
+ workflow status --execution-id abc123
521
+
522
+ # Validate workflow
523
+ workflow validate deployment-workflow.json
524
+
525
+ # Generate workflow from template
526
+ workflow generate --type "ci-cd" --output ci-workflow.json
527
+ ```
528
+
529
+ ## Integration Examples
530
+
531
+ ### Slack Integration
532
+ ```javascript
533
+ async function sendSlackNotification(message, channel = '#deployments') {
534
+ const webhook = process.env.SLACK_WEBHOOK_URL;
535
+
536
+ await axios.post(webhook, {
537
+ channel: channel,
538
+ text: message,
539
+ username: 'Workflow Orchestrator',
540
+ icon_emoji: ':gear:'
541
+ });
542
+ }
543
+ ```
544
+
545
+ ### Docker Integration
546
+ ```json
547
+ {
548
+ "id": "docker-build",
549
+ "name": "Build Docker image",
550
+ "type": "docker",
551
+ "config": {
552
+ "dockerfile": "Dockerfile",
553
+ "context": ".",
554
+ "tags": ["myapp:latest", "myapp:${env.BUILD_NUMBER}"],
555
+ "build_args": {
556
+ "NODE_ENV": "production"
557
+ }
558
+ }
559
+ }
560
+ ```
561
+
562
+ ### Database Integration
563
+ ```json
564
+ {
565
+ "id": "db-migration",
566
+ "name": "Run database migrations",
567
+ "type": "database",
568
+ "config": {
569
+ "connection": "${env.DATABASE_URL}",
570
+ "migrations_path": "migrations/",
571
+ "rollback_on_failure": true
572
+ }
573
+ }
574
+ ```
575
+
576
+ This workflow orchestrator provides enterprise-grade automation capabilities with dependency management, monitoring, and cross-platform execution support.
@@ -0,0 +1,37 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, Bash
3
+ argument-hint: [operation] | --backup | --restore | --schedule | --validate | --cleanup
4
+ description: Manage Supabase database backups with automated scheduling and recovery procedures
5
+ model: sonnet
6
+ ---
7
+
8
+ # Supabase Backup Manager
9
+
10
+ Manage comprehensive Supabase database backups with automated scheduling and recovery validation: **$ARGUMENTS**
11
+
12
+ ## Current Backup Context
13
+
14
+ - Supabase project: MCP integration for backup operations and status monitoring
15
+ - Backup storage: Current backup configuration and storage capacity
16
+ - Recovery testing: Last backup validation and recovery procedure verification
17
+ - Automation status: !`find . -name "*.yml" -o -name "*.json" | xargs grep -l "backup\|cron" 2>/dev/null | head -3` scheduled backup configuration
18
+
19
+ ## Task
20
+
21
+ Execute comprehensive backup management with automated procedures and recovery validation:
22
+
23
+ **Backup Operation**: Use $ARGUMENTS to specify backup creation, data restoration, schedule management, backup validation, or cleanup procedures
24
+
25
+ **Backup Management Framework**:
26
+ 1. **Backup Strategy** - Design backup schedules, implement retention policies, configure incremental backups, optimize storage usage
27
+ 2. **Automated Backup** - Create database snapshots, export schema and data, validate backup integrity, monitor backup completion
28
+ 3. **Recovery Procedures** - Test restore processes, validate data integrity, implement point-in-time recovery, optimize recovery time
29
+ 4. **Schedule Management** - Configure automated backup schedules, implement backup monitoring, setup failure notifications, optimize backup windows
30
+ 5. **Storage Optimization** - Manage backup storage, implement compression strategies, archive old backups, monitor storage costs
31
+ 6. **Disaster Recovery** - Plan disaster recovery procedures, test recovery scenarios, document recovery processes, validate business continuity
32
+
33
+ **Advanced Features**: Automated backup validation, recovery time optimization, cross-region backup replication, backup encryption, compliance reporting.
34
+
35
+ **Monitoring Integration**: Backup success monitoring, failure alerting, storage usage tracking, recovery time measurement, compliance reporting.
36
+
37
+ **Output**: Complete backup management system with automated schedules, recovery procedures, validation reports, and disaster recovery planning.
@@ -0,0 +1,37 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, Bash
3
+ argument-hint: [table-name] | --query [sql] | --export | --inspect
4
+ description: Explore and analyze Supabase database data with intelligent querying and visualization
5
+ model: sonnet
6
+ ---
7
+
8
+ # Supabase Data Explorer
9
+
10
+ Explore and analyze Supabase database with intelligent querying and data insights: **$ARGUMENTS**
11
+
12
+ ## Current Data Context
13
+
14
+ - Supabase MCP: Connected with read-only access for safe data exploration
15
+ - Target table: Analysis of $ARGUMENTS for data exploration scope
16
+ - Local queries: !`find . -name "*.sql" | head -5` existing SQL files for reference
17
+ - Data models: !`find . -name "types" -o -name "models" -type d | head -3` application data structures
18
+
19
+ ## Task
20
+
21
+ Execute comprehensive database exploration with intelligent analysis and insights:
22
+
23
+ **Exploration Focus**: Use $ARGUMENTS to specify table inspection, SQL query execution, data export, or comprehensive database inspection
24
+
25
+ **Data Exploration Framework**:
26
+ 1. **Database Discovery** - Explore table structures, analyze relationships, identify data patterns, assess data quality metrics
27
+ 2. **Intelligent Querying** - Execute read-only queries via MCP, optimize query performance, provide result analysis, suggest query improvements
28
+ 3. **Data Analysis** - Generate data insights, identify trends and anomalies, calculate statistical summaries, analyze data distribution
29
+ 4. **Schema Inspection** - Examine table schemas, analyze foreign key relationships, assess index effectiveness, review constraint validations
30
+ 5. **Export & Visualization** - Export data in multiple formats, create data visualizations, generate summary reports, optimize data presentation
31
+ 6. **Performance Analysis** - Analyze query execution plans, identify performance bottlenecks, suggest optimization strategies, monitor resource usage
32
+
33
+ **Advanced Features**: Interactive data exploration, automated insight generation, data quality assessment, relationship mapping, trend analysis.
34
+
35
+ **Safety Features**: Read-only operations, query validation, result limiting, performance monitoring, error handling.
36
+
37
+ **Output**: Comprehensive data exploration with insights, optimized queries, export files, and performance recommendations.
@@ -0,0 +1,37 @@
1
+ ---
2
+ allowed-tools: Read, Write, Edit, Bash
3
+ argument-hint: [migration-type] | --create | --alter | --seed | --rollback
4
+ description: Generate and manage Supabase database migrations with automated testing and validation
5
+ model: sonnet
6
+ ---
7
+
8
+ # Supabase Migration Assistant
9
+
10
+ Generate and manage Supabase migrations with comprehensive testing and validation: **$ARGUMENTS**
11
+
12
+ ## Current Migration Context
13
+
14
+ - Supabase project: MCP integration for migration management and validation
15
+ - Migration files: !`find . -name "*migrations*" -type d -o -name "*.sql" | head -5` existing migration structure
16
+ - Schema version: Current database schema state and migration history
17
+ - Local changes: !`git diff --name-only | grep -E "\\.sql$|\\.ts$" | head -3` pending database modifications
18
+
19
+ ## Task
20
+
21
+ Execute comprehensive migration management with automated validation and testing:
22
+
23
+ **Migration Type**: Use $ARGUMENTS to specify table creation, schema alterations, data seeding, or migration rollback
24
+
25
+ **Migration Management Framework**:
26
+ 1. **Migration Planning** - Analyze schema requirements, design migration strategy, identify dependencies, plan rollback procedures
27
+ 2. **Code Generation** - Generate migration SQL files, create TypeScript types, implement safety checks, optimize execution order
28
+ 3. **Validation Testing** - Test migration on development data, validate schema changes, verify data integrity, check constraint violations
29
+ 4. **Supabase Integration** - Apply migrations via MCP server, monitor execution status, handle error conditions, validate final state
30
+ 5. **Type Generation** - Generate TypeScript types, update application interfaces, sync with client-side schemas, maintain type safety
31
+ 6. **Rollback Strategy** - Create rollback migrations, test rollback procedures, implement data preservation, validate recovery process
32
+
33
+ **Advanced Features**: Automated type generation, migration testing, performance impact analysis, team collaboration, CI/CD integration.
34
+
35
+ **Safety Measures**: Pre-migration backups, dry-run validation, rollback testing, data integrity checks, performance monitoring.
36
+
37
+ **Output**: Complete migration suite with SQL files, TypeScript types, test validation, rollback procedures, and deployment documentation.