antigravity-ide 4.2.0 → 4.2.1

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 (354) hide show
  1. package/.agent/.shared/{technical/ai-master → ai-master}/README.md +1 -12
  2. package/.agent/.shared/{technical/api-standards → api-standards}/README.md +1 -12
  3. package/.agent/.shared/compliance/README.md +19 -0
  4. package/.agent/.shared/{technical/database-master → database-master}/README.md +2 -12
  5. package/.agent/.shared/{core/design-philosophy → design-philosophy}/README.md +1 -12
  6. package/.agent/.shared/design-system/README.md +18 -0
  7. package/.agent/.shared/domain-blueprints/README.md +18 -0
  8. package/.agent/.shared/dx-toolkit/README.md +19 -0
  9. package/.agent/.shared/i18n-master/README.md +18 -0
  10. package/.agent/.shared/infra-blueprints/README.md +18 -0
  11. package/.agent/.shared/metrics/README.md +17 -0
  12. package/.agent/.shared/resilience-patterns/README.md +19 -0
  13. package/.agent/.shared/security-armor/README.md +25 -0
  14. package/.agent/.shared/{technical/seo-master → seo-master}/README.md +1 -12
  15. package/.agent/.shared/testing-master/README.md +20 -0
  16. package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/README.md +1 -12
  17. package/.agent/.shared/vitals-templates/README.md +18 -0
  18. package/.agent/ARCHITECTURE.md +7 -10
  19. package/.agent/ARCHITECTURE.vi.md +8 -8
  20. package/.agent/RESOURCES.md +1 -0
  21. package/.agent/agents/accessibility-expert.md +22 -0
  22. package/.agent/agents/api-architect.md +22 -0
  23. package/.agent/agents/backend-specialist.eco.md +19 -0
  24. package/.agent/agents/backend-specialist.instant.md +19 -0
  25. package/.agent/agents/backend-specialist.md +19 -154
  26. package/.agent/agents/cloud-architect.md +189 -108
  27. package/.agent/agents/codebase-expert.md +23 -0
  28. package/.agent/agents/compliance-expert.md +22 -0
  29. package/.agent/agents/data-scientist.md +22 -0
  30. package/.agent/agents/debugger.eco.md +20 -0
  31. package/.agent/agents/debugger.instant.md +20 -0
  32. package/.agent/agents/debugger.md +182 -83
  33. package/.agent/agents/deep-thinker.ultra.md +23 -0
  34. package/.agent/agents/devex-optimizer.md +22 -0
  35. package/.agent/agents/devops-architect.md +22 -0
  36. package/.agent/agents/documentation-writer.md +72 -125
  37. package/.agent/agents/frontend-specialist.eco.md +19 -0
  38. package/.agent/agents/frontend-specialist.instant.md +19 -0
  39. package/.agent/agents/frontend-specialist.md +7 -40
  40. package/.agent/agents/game-developer.md +116 -111
  41. package/.agent/agents/growth-engineer.md +22 -0
  42. package/.agent/agents/i18n-specialist.md +21 -0
  43. package/.agent/agents/legacy-modernizer.md +22 -0
  44. package/.agent/agents/microservices-specialist.md +22 -0
  45. package/.agent/agents/mobile-developer.md +321 -108
  46. package/.agent/agents/motion-designer.md +22 -0
  47. package/.agent/agents/orchestrator.creative.md +28 -0
  48. package/.agent/agents/orchestrator.eco.md +29 -0
  49. package/.agent/agents/orchestrator.instant.md +29 -0
  50. package/.agent/agents/orchestrator.md +366 -106
  51. package/.agent/agents/orchestrator.ultra.md +28 -0
  52. package/.agent/agents/performance-benchmarker.md +22 -0
  53. package/.agent/agents/performance-optimizer.md +136 -105
  54. package/.agent/agents/project-planner.eco.md +19 -0
  55. package/.agent/agents/project-planner.instant.md +19 -0
  56. package/.agent/agents/project-planner.md +39 -132
  57. package/.agent/agents/quality-inspector.md +32 -136
  58. package/.agent/agents/security-auditor.md +15 -138
  59. package/.agent/agents/security-pentester.md +22 -0
  60. package/.agent/agents/seo-specialist.md +72 -118
  61. package/.agent/agents/serverless-expert.md +22 -0
  62. package/.agent/agents/test-engineer.md +11 -142
  63. package/.agent/fastcode_index.json +1038 -0
  64. package/.agent/mcp_config.json +24 -0
  65. package/.agent/rules/GEMINI.eco.md +37 -0
  66. package/.agent/rules/GEMINI.instant.md +37 -0
  67. package/.agent/rules/GEMINI.md +31 -62
  68. package/.agent/rules/api-spec.md +28 -0
  69. package/.agent/rules/code-quality.md +3 -34
  70. package/.agent/rules/database.md +24 -0
  71. package/.agent/rules/devops.md +23 -0
  72. package/.agent/rules/frontend.md +3 -3
  73. package/.agent/rules/growth-strategy.md +22 -0
  74. package/.agent/rules/logging-monitoring.md +22 -0
  75. package/.agent/rules/quality-assurance.md +22 -0
  76. package/.agent/rules/strict-protocol.md +3 -44
  77. package/.agent/rules/system-reasoning.md +20 -0
  78. package/.agent/rules/system-update.md +3 -56
  79. package/.agent/rules/ui-design.md +23 -0
  80. package/.agent/rules/ux-patterns.md +23 -0
  81. package/.agent/scripts/auto_preview.py +148 -0
  82. package/.agent/scripts/checklist.py +252 -0
  83. package/.agent/scripts/session_manager.py +120 -0
  84. package/.agent/scripts/simulation_install.js +59 -0
  85. package/.agent/scripts/sync_to_global.py +78 -0
  86. package/.agent/scripts/translate_workflows.py +53 -0
  87. package/.agent/scripts/verify_all.py +327 -0
  88. package/.agent/scripts/verify_shared_modules.js +126 -0
  89. package/.agent/skills/agent-backend-patterns/SKILL.md +6 -13
  90. package/.agent/skills/ai-engineer/SKILL.md +16 -29
  91. package/.agent/skills/api-documenter/SKILL.md +4 -4
  92. package/.agent/skills/app-builder/SKILL.md +1 -1
  93. package/.agent/skills/app-builder/tech-stack.md +2 -2
  94. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +79 -39
  95. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +75 -53
  96. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +119 -56
  97. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +94 -61
  98. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +82 -56
  99. package/.agent/skills/cloud-architect-master/SKILL.md +4 -9
  100. package/.agent/skills/cro-expert-kit/SKILL.md +4 -9
  101. package/.agent/skills/database-migration/SKILL.md +3 -9
  102. package/.agent/skills/deployment-engineer/SKILL.md +3 -9
  103. package/.agent/skills/fastcode-search/SKILL.md +46 -0
  104. package/.agent/skills/fastcode-search/fastcode_config.example.json +17 -0
  105. package/.agent/skills/frontend-design/ux-psychology.md +585 -10
  106. package/.agent/skills/frontend-trends-2026/SKILL.md +78 -0
  107. package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +42 -0
  108. package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +32 -0
  109. package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +27 -0
  110. package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
  111. package/.agent/skills/game-development/2d-games/SKILL.md +2 -4
  112. package/.agent/skills/game-development/3d-games/SKILL.md +2 -4
  113. package/.agent/skills/game-development/SKILL.md +149 -18
  114. package/.agent/skills/game-development/game-art/SKILL.md +2 -4
  115. package/.agent/skills/game-development/game-audio/SKILL.md +2 -4
  116. package/.agent/skills/game-development/game-design/SKILL.md +2 -4
  117. package/.agent/skills/game-development/mobile-games/SKILL.md +2 -4
  118. package/.agent/skills/game-development/multiplayer/SKILL.md +2 -4
  119. package/.agent/skills/game-development/pc-games/SKILL.md +2 -4
  120. package/.agent/skills/game-development/vr-ar/SKILL.md +2 -4
  121. package/.agent/skills/game-development/web-games/SKILL.md +2 -4
  122. package/.agent/skills/geo-fundamentals/SKILL.md +136 -9
  123. package/.agent/skills/git-collaboration-master/SKILL.md +4 -9
  124. package/.agent/skills/i18n-localization/SKILL.md +118 -10
  125. package/.agent/skills/incident-responder/SKILL.md +6 -9
  126. package/.agent/skills/legacy-modernizer/SKILL.md +4 -9
  127. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +14 -2
  128. package/.agent/skills/mcp-builder/SKILL.md +164 -21
  129. package/.agent/skills/mobile-design/SKILL.md +369 -21
  130. package/.agent/skills/mobile-design/mobile-performance.md +1 -1
  131. package/.agent/skills/modern-web-architect/SKILL.md +6 -12
  132. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
  133. package/.agent/skills/penetration-tester-master/SKILL.md +4 -9
  134. package/.agent/skills/performance-engineer/SKILL.md +5 -4
  135. package/.agent/skills/production-code-audit/SKILL.md +0 -6
  136. package/.agent/skills/rust-pro/SKILL.md +177 -0
  137. package/.agent/skills/security-auditor/SKILL.md +27 -35
  138. package/.agent/skills/seo-expert-kit/SKILL.md +4 -9
  139. package/.agent/skills/tdd-master-workflow/SKILL.md +3 -9
  140. package/.agent/workflows/audit.md +16 -30
  141. package/.agent/workflows/brainstorm.md +96 -33
  142. package/.agent/workflows/create.md +45 -37
  143. package/.agent/workflows/debug.md +84 -45
  144. package/.agent/workflows/deep-security-audit.md +9 -0
  145. package/.agent/workflows/deploy.md +158 -33
  146. package/.agent/workflows/document.md +15 -38
  147. package/.agent/workflows/enhance.md +48 -33
  148. package/.agent/workflows/growth-max.md +9 -0
  149. package/.agent/workflows/monitor.md +14 -35
  150. package/.agent/workflows/orchestrate.md +218 -31
  151. package/.agent/workflows/performance-max.md +9 -0
  152. package/.agent/workflows/plan.md +70 -39
  153. package/.agent/workflows/security.md +14 -35
  154. package/.agent/workflows/seo.md +16 -39
  155. package/.agent/workflows/status.md +72 -33
  156. package/.agent/workflows/test.md +127 -30
  157. package/.agent/workflows/ui-ux-pro-max.md +283 -24
  158. package/.editorconfig +21 -0
  159. package/.gitattributes +7 -0
  160. package/CHANGELOG.md +32 -0
  161. package/ERRORS.md +67 -0
  162. package/{.agent/GEMINI.md → GEMINI.md} +5 -4
  163. package/LICENSE +8 -22
  164. package/README.md +72 -102
  165. package/README.vi.md +110 -90
  166. package/action.yml +32 -0
  167. package/antigravity-ide-logo.png +0 -0
  168. package/antigravity-ide-logo.svg +24 -0
  169. package/assets/skills-bundle.json +1 -0
  170. package/cli/create.js +413 -275
  171. package/cli/index.js +24 -28
  172. package/cli/lib/auto-update.js +21 -14
  173. package/cli/logic/skill-definitions.js +39 -0
  174. package/cli/manifest.js +524 -0
  175. package/cli/prompts.js +145 -151
  176. package/cli/skills/fastcode.js +181 -0
  177. package/docs/AGENTS_GUIDE.vi.md +45 -38
  178. package/docs/AGENT_FLOW.md +608 -0
  179. package/docs/CONTRIBUTING.md +46 -0
  180. package/docs/CONTRIBUTING.vi.md +3 -12
  181. package/docs/COPYRIGHT.md +57 -0
  182. package/docs/DEPLOYMENT.md +77 -0
  183. package/docs/{GEMINI_USAGE.md → GEMINI_GUIDE.md} +6 -6
  184. package/docs/GLOSSARY.md +109 -0
  185. package/docs/GLOSSARY.vi.md +30 -49
  186. package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
  187. package/docs/MASTER_GUIDE.md +103 -0
  188. package/docs/OPERATIONAL_FLOW.md +147 -0
  189. package/docs/OPERATIONAL_FLOW.vi.md +0 -15
  190. package/docs/PLAN-upgrade-core-architecture.md +71 -0
  191. package/docs/{PUBLISHING_GUIDE.md → PUBLISHING.md} +3 -31
  192. package/docs/RULES_GUIDE.vi.md +31 -67
  193. package/docs/SHARED_LIBRARY_GUIDE.vi.md +22 -18
  194. package/docs/SKILLS.md +610 -0
  195. package/docs/SKILLS_GUIDE.vi.md +32 -118
  196. package/docs/TROUBLESHOOTING.md +43 -0
  197. package/docs/TROUBLESHOOTING.vi.md +2 -10
  198. package/docs/WORKFLOW_GUIDE.vi.md +9 -57
  199. package/jest.config.js +8 -0
  200. package/package.json +8 -31
  201. package/scripts/bump.js +93 -0
  202. package/scripts/bundle-skills.js +59 -0
  203. package/scripts/internal/automation/auto-release.js +177 -0
  204. package/scripts/internal/fractalize-skills.js +89 -0
  205. package/scripts/internal/generate-skill-definitions.js +134 -0
  206. package/scripts/internal/internal/update-docs.js +115 -0
  207. package/scripts/internal/refactor-skill-content.js +127 -0
  208. package/scripts/internal/rename-skills.js +96 -0
  209. package/scripts/internal/sync-skills.js +112 -0
  210. package/scripts/internal/update-frontmatter-names.js +99 -0
  211. package/scripts/internal/verification/audit-dna.js +56 -0
  212. package/scripts/internal/verification/audit-skills.js +65 -0
  213. package/setup.js +114 -147
  214. package/web/src/app/docs/guide/examples/brainstorm/page.mdx +91 -0
  215. package/web/src/app/docs/guide/examples/create/page.mdx +84 -0
  216. package/web/src/app/docs/guide/examples/debugging/page.mdx +83 -0
  217. package/web/src/app/docs/guide/examples/deployment/page.mdx +93 -0
  218. package/web/src/app/docs/guide/examples/new-feature/page.mdx +102 -0
  219. package/web/src/app/docs/guide/examples/orchestration/page.mdx +99 -0
  220. package/web/src/app/docs/guide/examples/plan/page.mdx +76 -0
  221. package/web/src/app/docs/guide/examples/preview/page.mdx +77 -0
  222. package/web/src/app/docs/guide/examples/status/page.mdx +78 -0
  223. package/web/src/app/docs/guide/examples/test/page.mdx +80 -0
  224. package/web/src/app/docs/guide/examples/ui-design/page.mdx +90 -0
  225. package/web/src/components/mdx/Callout.tsx +60 -0
  226. package/web/src/components/mdx/FeatureGrid.tsx +38 -0
  227. package/web/src/components/mdx/ProTips.tsx +29 -0
  228. package/web/src/components/mdx/StepList.tsx +33 -0
  229. package/web/src/components/mdx/Terminal.tsx +58 -0
  230. package/web/src/components/mdx/index.ts +5 -0
  231. package/web/src/mdx-components.tsx +98 -0
  232. package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +0 -202
  233. package/.agent/skills/brand-guidelines-anthropic/SKILL.md +0 -26
  234. package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +0 -5
  235. package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +0 -14
  236. package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +0 -6
  237. package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +0 -7
  238. package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +0 -6
  239. package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +0 -6
  240. package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +0 -7
  241. package/.agent/skills/internal-comms-anthropic/LICENSE.txt +0 -202
  242. package/.agent/skills/internal-comms-anthropic/SKILL.md +0 -33
  243. package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +0 -47
  244. package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +0 -65
  245. package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +0 -30
  246. package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +0 -16
  247. package/.agent/skills/last30days/tests/__init__.py +0 -1
  248. package/.agent/skills/last30days/tests/test_cache.py +0 -59
  249. package/.agent/skills/last30days/tests/test_dates.py +0 -114
  250. package/.agent/skills/last30days/tests/test_dedupe.py +0 -111
  251. package/.agent/skills/last30days/tests/test_models.py +0 -135
  252. package/.agent/skills/last30days/tests/test_normalize.py +0 -138
  253. package/.agent/skills/last30days/tests/test_render.py +0 -116
  254. package/.agent/skills/last30days/tests/test_score.py +0 -168
  255. package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +0 -57
  256. package/.agent/skills/loki-mode/.github/workflows/claude.yml +0 -50
  257. package/.agent/skills/loki-mode/.github/workflows/release.yml +0 -128
  258. package/.agent/skills/loki-mode/tests/run-all-tests.sh +0 -78
  259. package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +0 -348
  260. package/.agent/skills/loki-mode/tests/test-bootstrap.sh +0 -196
  261. package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +0 -389
  262. package/.agent/skills/loki-mode/tests/test-state-recovery.sh +0 -393
  263. package/.agent/skills/loki-mode/tests/test-task-queue.sh +0 -396
  264. package/.agent/skills/loki-mode/tests/test-wrapper.sh +0 -314
  265. package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +0 -379
  266. package/cli/logic/product-skills.js +0 -58
  267. /package/.agent/.shared/{technical/ai-master → ai-master}/best_patterns.md +0 -0
  268. /package/.agent/.shared/{technical/ai-master → ai-master}/checklists/prompt_audit.md +0 -0
  269. /package/.agent/.shared/{technical/ai-master → ai-master}/presets/model_configs.json +0 -0
  270. /package/.agent/.shared/{technical/api-standards → api-standards}/data +0 -0
  271. /package/.agent/.shared/{technical/api-standards → api-standards}/endpoints_naming.md +0 -0
  272. /package/.agent/.shared/{technical/api-standards → api-standards}/error_codes.csv +0 -0
  273. /package/.agent/.shared/{technical/api-standards → api-standards}/pagination_sorting.md +0 -0
  274. /package/.agent/.shared/{technical/api-standards → api-standards}/response_format.json +0 -0
  275. /package/.agent/.shared/{verticals/compliance → compliance}/legal_templates.md +0 -0
  276. /package/.agent/.shared/{technical/database-master → database-master}/schemas/auth_rbac.sql +0 -0
  277. /package/.agent/.shared/{technical/database-master → database-master}/schemas/cms.sql +0 -0
  278. /package/.agent/.shared/{technical/database-master → database-master}/schemas/ecommerce.sql +0 -0
  279. /package/.agent/.shared/{core/design-philosophy → design-philosophy}/MANIFESTO.md +0 -0
  280. /package/.agent/.shared/{core/design-philosophy → design-philosophy}/checklists/tactile_audit.md +0 -0
  281. /package/.agent/.shared/{core/design-philosophy → design-philosophy}/checklists/visual_audit.md +0 -0
  282. /package/.agent/.shared/{core/design-philosophy → design-philosophy}/presets/linear_glow.json +0 -0
  283. /package/.agent/.shared/{technical/design-system → design-system}/brand_presets.json +0 -0
  284. /package/.agent/.shared/{technical/design-system → design-system}/micro_interactions.md +0 -0
  285. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/edtech.md +0 -0
  286. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/fintech.md +0 -0
  287. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/fnb_restaurant.md +0 -0
  288. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/freelance_marketplace.md +0 -0
  289. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/healthcare.md +0 -0
  290. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/hospitality_tourism.md +0 -0
  291. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/logistics.md +0 -0
  292. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/marketing_automation.md +0 -0
  293. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/personal_branding.md +0 -0
  294. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/real_estate.md +0 -0
  295. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/retail_ecommerce.md +0 -0
  296. /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/standard-pro-agents.md +0 -0
  297. /package/.agent/.shared/{core/dx-toolkit → dx-toolkit}/checklists/code_review.md +0 -0
  298. /package/.agent/.shared/{core/dx-toolkit → dx-toolkit}/presets/vscode_settings.json +0 -0
  299. /package/.agent/.shared/{technical/i18n-master → i18n-master}/vi_tech_dictionary.csv +0 -0
  300. /package/.agent/.shared/{technical/i18n-master → i18n-master}/workflows.json +0 -0
  301. /package/.agent/.shared/{verticals/infra-blueprints → infra-blueprints}/deployment_specs.md +0 -0
  302. /package/.agent/.shared/{core/metrics → metrics}/benchmarks.json +0 -0
  303. /package/.agent/.shared/{technical/resilience-patterns → resilience-patterns}/checklists/chaos_engineering.md +0 -0
  304. /package/.agent/.shared/{technical/resilience-patterns → resilience-patterns}/presets/circuit_breaker.json +0 -0
  305. /package/.agent/.shared/{technical/security-armor → security-armor}/checklists/vuln_scan.md +0 -0
  306. /package/.agent/.shared/{technical/security-armor → security-armor}/hardening.md +0 -0
  307. /package/.agent/.shared/{technical/security-armor → security-armor}/presets/helmet_config.json +0 -0
  308. /package/.agent/.shared/{technical/seo-master → seo-master}/checklists/technical_seo.md +0 -0
  309. /package/.agent/.shared/{technical/seo-master → seo-master}/presets/json_ld_schema.json +0 -0
  310. /package/.agent/.shared/{technical/testing-master → testing-master}/checklists/pre_release.md +0 -0
  311. /package/.agent/.shared/{technical/testing-master → testing-master}/scenarios.md +0 -0
  312. /package/.agent/{skills → .shared}/ui-ux-pro-max/data/charts.csv +0 -0
  313. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/colors.csv +0 -0
  314. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/icons.csv +0 -0
  315. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/landing.csv +0 -0
  316. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/products.csv +0 -0
  317. /package/.agent/{skills → .shared}/ui-ux-pro-max/data/prompts.csv +0 -0
  318. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/react-performance.csv +0 -0
  319. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
  320. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
  321. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
  322. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
  323. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
  324. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
  325. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
  326. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/react.csv +0 -0
  327. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
  328. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
  329. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
  330. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/vue.csv +0 -0
  331. /package/.agent/{skills → .shared}/ui-ux-pro-max/data/styles.csv +0 -0
  332. /package/.agent/{skills → .shared}/ui-ux-pro-max/data/typography.csv +0 -0
  333. /package/.agent/{skills → .shared}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
  334. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
  335. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/web-interface.csv +0 -0
  336. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
  337. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  338. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/core.py +0 -0
  339. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/design_system.py +0 -0
  340. /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/search.py +0 -0
  341. /package/.agent/.shared/{core/vitals-templates → vitals-templates}/audit_report.md +0 -0
  342. /package/.agent/.shared/{core/vitals-templates → vitals-templates}/plan_prd.md +0 -0
  343. /package/.agent/skills/ai-engineer/{sub-skills → resources}/ai_infra_stack.md +0 -0
  344. /package/.agent/skills/cloud-architect-master/{sub-skills → resources}/cost_optimization_checklist.md +0 -0
  345. /package/.agent/skills/cro-expert-kit/{sub-skills → resources}/psychological_triggers.md +0 -0
  346. /package/.agent/skills/database-migration/{sub-skills → resources}/zero_downtime_strategy.md +0 -0
  347. /package/.agent/skills/deployment-engineer/{sub-skills → resources}/k8s_best_practices.md +0 -0
  348. /package/.agent/skills/git-collaboration-master/{sub-skills → resources}/pr_template.md +0 -0
  349. /package/.agent/skills/incident-responder/{sub-skills → resources}/incident_severity_levels.md +0 -0
  350. /package/.agent/skills/legacy-modernizer/{sub-skills → resources}/strangler_fig_pattern.md +0 -0
  351. /package/.agent/skills/penetration-tester-master/{sub-skills → resources}/owasp_top_10_2025.md +0 -0
  352. /package/.agent/skills/production-code-audit/{sub-skills → resources}/solid_principles_cheat_sheet.md +0 -0
  353. /package/.agent/skills/seo-expert-kit/{sub-skills → resources}/technical_seo_checklist.md +0 -0
  354. /package/.agent/skills/tdd-master-workflow/{sub-skills → resources}/unit_test_naming_convention.md +0 -0
@@ -1,64 +1,103 @@
1
1
  ---
2
- description: Gặp lỗi khó sửa? Để AI soi log và sửa giúp bạn theo quy trình chuyên nghiệp.
2
+ description: Gặp lỗi khó sửa? Để AI soi log và sửa giúp bạn.
3
3
  ---
4
4
 
5
- # /debug - Systematic Debugging System
5
+ # /debug - Systematic Problem Investigation
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
9
  ---
10
10
 
11
- ## 🟢 PHASE 1: Forensic Discovery (The "Crime Scene")
12
- **Agent**: `explorer-agent` & `debugger`
13
- **Mission**: Isolate the exact point of failure.
14
- - **Action**: Read the Stack Trace or Terminal Logs.
15
- - **Action**: Locate the failing file:line.
16
- - **DNA Link**: Consult `rules/error-logging.md` to see if this is a known recurring issue.
17
-
18
- ## 🟡 PHASE 2: Root Cause Analysis (RCA)
19
- **Agent**: `debugger`
20
- **Mission**: Formulate a hypothesis (Why is it broken?).
21
- - **Hypothesis Checklist**:
22
- - Null/Undefined safety?
23
- - Race condition / Sync error?
24
- - Missing environment variable?
25
- - Breaking dependency change?
26
- - **Artifact**: Propose the fix to the User with [Pros/Cons].
27
-
28
- ## 🔵 PHASE 3: Surgical Repair
29
- **Agent**: `backend-specialist` or `frontend-specialist`
30
- **Mission**: Apply the targetted fix.
31
- - **Correction**: Wrap sensitive logic in `try...catch`.
32
- - **Defensive API**: Use Optional Chaining (`?.`) and Nullish Coalescing (`??`).
33
-
34
- ## 🔴 PHASE 4: Verification & Post-Mortem
35
- **Agent**: `test-engineer` & `quality-inspector`
36
- **Mission**: Ensure the "Bleeding" has stopped.
37
- - **Action**: Run the failing test case to confirm FIX.
38
- - **Reporting**: Log the incident in `ERRORS.md`.
39
- - **Handoff**: Create a `walkthrough.md` explaining the fix.
11
+ ## Purpose
12
+
13
+ This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
40
14
 
41
15
  ---
42
16
 
43
- ## Output Format:
17
+ ## Behavior
18
+
19
+ When `/debug` is triggered:
20
+
21
+ 1. **Gather information**
22
+ - Error message
23
+ - Reproduction steps
24
+ - Expected vs actual behavior
25
+ - Recent changes
26
+
27
+ 2. **Form hypotheses**
28
+ - List possible causes
29
+ - Order by likelihood
30
+
31
+ 3. **Investigate systematically**
32
+ - Test each hypothesis
33
+ - Check logs, data flow
34
+ - Use elimination method
35
+
36
+ 4. **Fix and prevent**
37
+ - Apply fix
38
+ - Explain root cause
39
+ - Add prevention measures
40
+
41
+ ---
42
+
43
+ ## Output Format
44
+
44
45
  ```markdown
45
- ## 🐞 Debug Report: [Bug Title]
46
+ ## 🔍 Debug: [Issue]
47
+
48
+ ### 1. Symptom
49
+ [What's happening]
50
+
51
+ ### 2. Information Gathered
52
+ - Error: `[error message]`
53
+ - File: `[filepath]`
54
+ - Line: [line number]
55
+
56
+ ### 3. Hypotheses
57
+ 1. ❓ [Most likely cause]
58
+ 2. ❓ [Second possibility]
59
+ 3. ❓ [Less likely cause]
46
60
 
47
- ### Root Cause
48
- [One sentence explanation]
61
+ ### 4. Investigation
49
62
 
50
- ### The Fix
51
- [Diff or explanation]
63
+ **Testing hypothesis 1:**
64
+ [What I checked] → [Result]
52
65
 
53
- ### Verification
54
- - [ ] Test case passed
55
- - [ ] No regression found
56
- - [ ] Error logged in ERRORS.md
66
+ **Testing hypothesis 2:**
67
+ [What I checked] [Result]
68
+
69
+ ### 5. Root Cause
70
+ 🎯 **[Explanation of why this happened]**
71
+
72
+ ### 6. Fix
73
+ ```[language]
74
+ // Before
75
+ [broken code]
76
+
77
+ // After
78
+ [fixed code]
79
+ ```
80
+
81
+ ### 7. Prevention
82
+ 🛡️ [How to prevent this in the future]
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Examples
88
+
89
+ ```
90
+ /debug login not working
91
+ /debug API returns 500
92
+ /debug form doesn't submit
93
+ /debug data not saving
57
94
  ```
58
95
 
59
96
  ---
60
97
 
61
- ## Key Principles:
62
- - **Evidence-First**: Don't guess, use the logs.
63
- - **Regression-Aware**: Every fix must come with a test case to prevent it from returning.
64
- - **Clean Fix**: Don't use "band-aid" fixes unless it's a critical production outage.
98
+ ## Key Principles
99
+
100
+ - **Ask before assuming** - get full error context
101
+ - **Test hypotheses** - don't guess randomly
102
+ - **Explain why** - not just what to fix
103
+ - **Prevent recurrence** - add tests, validation
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Perform a 4-tier comprehensive security audit of the entire codebase.
3
+ ---
4
+
5
+ 1. /security - Run automated scanners.
6
+ 2. Use `security-auditor` agent to perform manual code review.
7
+ 3. Use `penetration-tester-master` to simulate attacks.
8
+ 4. Use `debugger` to fix identified vulnerabilities.
9
+ 5. Generate a `SECURITY_AUDIT.md` report.
@@ -2,50 +2,175 @@
2
2
  description: Code xong rồi? Đẩy lên Server/Vercel thôi.
3
3
  ---
4
4
 
5
- # /deploy - Production Release System
5
+ # /deploy - Production Deployment
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
9
  ---
10
10
 
11
- ## 🟢 PHASE 1: Pre-Flight Integrity Check
12
- **Agent**: `devops-engineer` & `security-auditor`
13
- **Mission**: Ensure the code is "Deployable."
14
- - **Action**: Run `npm run build` and `npm test`.
15
- - **Checklist**:
16
- - [ ] Zero Lint/TS errors.
17
- - [ ] All security patches applied (`npm audit`).
18
- - [ ] Environment variables configured in Production.
11
+ ## Purpose
19
12
 
20
- ## 🟡 PHASE 2: Artifact Creation & Gating
21
- **Agent**: `devops-engineer`
22
- **Mission**: Build the release.
23
- - **Action**: Create the production bundle/container.
24
- - **Gate**: Stop and verify the "Pre-deploy Checklist" success.
13
+ This command handles production deployment with pre-flight checks, deployment execution, and verification.
25
14
 
26
- ## 🔵 PHASE 3: Surgical Deployment
27
- **Agent**: `devops-engineer`
28
- **Mission**: Switch the traffic.
29
- - **Action**: Execute `vercel --prod`, `railway up`, or target platform command.
30
- - **Strategy**: Use Blue/Green or Canary if supported by the infrastructure.
15
+ ---
16
+
17
+ ## Sub-commands
31
18
 
32
- ## 🔴 PHASE 4: Health Audit & Verification
33
- **Agent**: `performance-optimizer` & `incident-responder`
34
- **Mission**: Verify the "Live" state.
35
- - **Action**: Check Production URL response time and status.
36
- - **Action**: Verify Database connectivity in the live environment.
37
- - **Artifact**: Provide the Production URL and Health Badge to the User.
19
+ ```
20
+ /deploy - Interactive deployment wizard
21
+ /deploy check - Run pre-deployment checks only
22
+ /deploy preview - Deploy to preview/staging
23
+ /deploy production - Deploy to production
24
+ /deploy rollback - Rollback to previous version
25
+ ```
38
26
 
39
27
  ---
40
28
 
41
- ## Deployment Rules:
42
- - **No Yolo-Deploy**: Never deploy without a successful local build.
43
- - **Rollback Ready**: Always have a plan to return to the previous version.
44
- - **Zero Downtime**: Prioritize strategies that don't break the user experience.
29
+ ## Pre-Deployment Checklist
30
+
31
+ Before any deployment:
32
+
33
+ ```markdown
34
+ ## 🚀 Pre-Deploy Checklist
35
+
36
+ ### Code Quality
37
+ - [ ] No TypeScript errors (`npx tsc --noEmit`)
38
+ - [ ] ESLint passing (`npx eslint .`)
39
+ - [ ] All tests passing (`npm test`)
40
+
41
+ ### Security
42
+ - [ ] No hardcoded secrets
43
+ - [ ] Environment variables documented
44
+ - [ ] Dependencies audited (`npm audit`)
45
+
46
+ ### Performance
47
+ - [ ] Bundle size acceptable
48
+ - [ ] No console.log statements
49
+ - [ ] Images optimized
50
+
51
+ ### Documentation
52
+ - [ ] README updated
53
+ - [ ] CHANGELOG updated
54
+ - [ ] API docs current
55
+
56
+ ### Ready to deploy? (y/n)
57
+ ```
45
58
 
46
59
  ---
47
60
 
48
- ## Examples:
49
- - `/deploy production`
50
- - `/deploy preview`
51
- - `/deploy check`
61
+ ## Deployment Flow
62
+
63
+ ```
64
+ ┌─────────────────┐
65
+ │ /deploy │
66
+ └────────┬────────┘
67
+
68
+
69
+ ┌─────────────────┐
70
+ │ Pre-flight │
71
+ │ checks │
72
+ └────────┬────────┘
73
+
74
+ Pass? ──No──► Fix issues
75
+
76
+ Yes
77
+
78
+
79
+ ┌─────────────────┐
80
+ │ Build │
81
+ │ application │
82
+ └────────┬────────┘
83
+
84
+
85
+ ┌─────────────────┐
86
+ │ Deploy to │
87
+ │ platform │
88
+ └────────┬────────┘
89
+
90
+
91
+ ┌─────────────────┐
92
+ │ Health check │
93
+ │ & verify │
94
+ └────────┬────────┘
95
+
96
+
97
+ ┌─────────────────┐
98
+ │ ✅ Complete │
99
+ └─────────────────┘
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Output Format
105
+
106
+ ### Successful Deploy
107
+
108
+ ```markdown
109
+ ## 🚀 Deployment Complete
110
+
111
+ ### Summary
112
+ - **Version:** v1.2.3
113
+ - **Environment:** production
114
+ - **Duration:** 47 seconds
115
+ - **Platform:** Vercel
116
+
117
+ ### URLs
118
+ - 🌐 Production: https://app.example.com
119
+ - 📊 Dashboard: https://vercel.com/project
120
+
121
+ ### What Changed
122
+ - Added user profile feature
123
+ - Fixed login bug
124
+ - Updated dependencies
125
+
126
+ ### Health Check
127
+ ✅ API responding (200 OK)
128
+ ✅ Database connected
129
+ ✅ All services healthy
130
+ ```
131
+
132
+ ### Failed Deploy
133
+
134
+ ```markdown
135
+ ## ❌ Deployment Failed
136
+
137
+ ### Error
138
+ Build failed at step: TypeScript compilation
139
+
140
+ ### Details
141
+ ```
142
+ error TS2345: Argument of type 'string' is not assignable...
143
+ ```
144
+
145
+ ### Resolution
146
+ 1. Fix TypeScript error in `src/services/user.ts:45`
147
+ 2. Run `npm run build` locally to verify
148
+ 3. Try `/deploy` again
149
+
150
+ ### Rollback Available
151
+ Previous version (v1.2.2) is still active.
152
+ Run `/deploy rollback` if needed.
153
+ ```
154
+
155
+ ---
156
+
157
+ ## Platform Support
158
+
159
+ | Platform | Command | Notes |
160
+ |----------|---------|-------|
161
+ | Vercel | `vercel --prod` | Auto-detected for Next.js |
162
+ | Railway | `railway up` | Needs Railway CLI |
163
+ | Fly.io | `fly deploy` | Needs flyctl |
164
+ | Docker | `docker compose up -d` | For self-hosted |
165
+
166
+ ---
167
+
168
+ ## Examples
169
+
170
+ ```
171
+ /deploy
172
+ /deploy check
173
+ /deploy preview
174
+ /deploy production --skip-tests
175
+ /deploy rollback
176
+ ```
@@ -1,50 +1,27 @@
1
1
  ---
2
- description: Lười viết docs? Để AI tự viết cho chuyên nghiệp và đầy đủ.
2
+ description: Lười viết docs? Để AI tự viết cho.
3
3
  ---
4
4
 
5
- # /document - Knowledge & Documentation System
5
+ # /document - Auto Documentation
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
9
  ---
10
10
 
11
- ## 🟢 PHASE 1: Codebase Extraction
12
- **Agent**: `explorer-agent` & `documentation-writer`
13
- **Mission**: Understand what needs explaining.
14
- - **Action**: Extract Docstrings, Type Definitions, and API routes.
15
- - **Action**: Identify "Knowledge Gaps" in current documentation.
11
+ ## Task
12
+ Keep documentation in sync with code.
16
13
 
17
- ## 🟡 PHASE 2: Logic & Structural Drafting
18
- **Agent**: `documentation-writer`
19
- **Mission**: Create the narrative.
20
- - **Protocol**:
21
- - Why does this code exist? (Business Logic).
22
- - How do I use it? (Quick Start/Examples).
23
- - What are the risks? (Caveats/Notes).
24
- - **Format**: Use GitHub Flavored Markdown (GFM) with appropriate Alerts.
25
-
26
- ## 🔵 PHASE 3: Surgical Update
27
- **Agent**: `documentation-writer`
28
- **Mission**: Apply the knowledge.
29
- - **Action**: Create or Update `README.md`, `API.md`, or code comments.
30
- - **Standard**: Follow [documentation-templates](file:///skills/documentation-templates/SKILL.md).
31
-
32
- ## 🔴 PHASE 4: Clarity Audit & Sync
33
- **Agent**: `quality-inspector` & `seo-specialist`
34
- **Mission**: Ensure the docs are discoverable and clear.
35
- - **Verification**: Run `textlint` and check for broken links.
36
- - **Artifact**: Create a unified `walkthrough.md` if this was a major doc update.
37
-
38
- ---
39
-
40
- ## Documentation Mandates:
41
- - **No Stale Docs**: Documentation must match current code state.
42
- - **AI-Ready**: Use structured headers to help other agents find context.
43
- - **User-Centric**: Write for the persona appropriate for the file (Dev vs User).
14
+ ### Steps:
15
+ 1. **Scan Codebase**: Read function signatures and comments.
16
+ 2. **Generate API Docs**: Create Swagger/OpenAPI spec.
17
+ 3. **Update README**: Refresh feature list and usage examples.
18
+ 4. **Internal Docs**: Update `ARCHITECTURE.md` if structure changed.
44
19
 
45
20
  ---
46
21
 
47
- ## Examples:
48
- - `/document this entire directory`
49
- - `/document the authentication flow`
50
- - `/document generate API reference`
22
+ ## Usage
23
+ ```
24
+ /document api # Generate API reference
25
+ /document readme # Update README.md
26
+ /document all # Full documentation refresh
27
+ ```
@@ -2,47 +2,62 @@
2
2
  description: Muốn sửa màu, thêm nút, sửa logic nhỏ? Vào đây.
3
3
  ---
4
4
 
5
- # /enhance - Incremental Feature Upgrade
5
+ # /enhance - Update Application
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
9
  ---
10
10
 
11
- ## 🟢 PHASE 1: Impact Discovery
12
- **Agent**: `explorer-agent` & `frontend-specialist`
13
- **Mission**: Map the "Blast Radius."
14
- - **Action**: Identify all components and services affected by the change.
15
- - **Action**: Check for breaking CSS or Logic changes.
16
-
17
- ## 🟡 PHASE 2: Enhancement Plan
18
- **Agent**: `project-planner`
19
- **Mission**: Strategic addition.
20
- - **Action**: Create a mini-plan in the `task.md`.
21
- - **Note**: For major UI overhauls, invoke `/brainstorm` first.
22
-
23
- ## 🔵 PHASE 3: Surgical Implementation
24
- **Agent**: `frontend-specialist` or `backend-specialist`
25
- **Mission**: Add the "WOW" factor.
26
- - **Action**: Implement changes using `ui-ux-pro-max` standards.
27
- - **Standard**: Follow [clean-code](file:///skills/clean-code/SKILL.md) and [tailwind-patterns](file:///skills/tailwind-patterns/SKILL.md).
28
-
29
- ## 🔴 PHASE 4: Professional Verification
30
- **Agent**: `quality-inspector` & `test-engineer`
31
- **Mission**: Verify the delta.
32
- - **Action**: Run `/preview` to playtest the UI.
33
- - **Action**: Verify that existing tests still pass (Regression Check).
34
- - **Handoff**: Document the change in `walkthrough.md`.
11
+ ## Task
12
+
13
+ This command adds features or makes updates to existing application.
14
+
15
+ ### Steps:
16
+
17
+ 1. **Understand Current State**
18
+ - Load project state with `python .agent/scripts/session_manager.py info`
19
+ - Understand existing features, tech stack
20
+
21
+ 2. **Plan Changes**
22
+ - Determine what will be added/changed
23
+ - Detect affected files
24
+ - Check dependencies
25
+
26
+ 3. **Present Plan to User** (for major changes)
27
+ ```
28
+ "To add admin panel:
29
+ - I'll create 15 new files
30
+ - Update 8 files
31
+ - Takes ~10 minutes
32
+
33
+ Should I start?"
34
+ ```
35
+
36
+ 4. **Apply**
37
+ - Call relevant agents
38
+ - Make changes
39
+ - Test
40
+
41
+ 5. **Update Preview**
42
+ - Hot reload or restart
35
43
 
36
44
  ---
37
45
 
38
- ## Enhancement Principles:
39
- - **Non-Destructive**: Don't break existing features to add new ones.
40
- - **Consistent UI**: New elements must match the existing Design System.
41
- - **Atomic Commits**: Group project changes in logical git commits.
46
+ ## Usage Examples
47
+
48
+ ```
49
+ /enhance add dark mode
50
+ /enhance build admin panel
51
+ /enhance integrate payment system
52
+ /enhance add search feature
53
+ /enhance edit profile page
54
+ /enhance make responsive
55
+ ```
42
56
 
43
57
  ---
44
58
 
45
- ## Examples:
46
- - `/enhance add dark mode toggle`
47
- - `/enhance integrate Google Auth`
48
- - `/enhance make the landing page sections fade in`
59
+ ## Caution
60
+
61
+ - Get approval for major changes
62
+ - Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
63
+ - Commit each change with git
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Perform a full audit and optimization for SEO, Performance, and Conversion.
3
+ ---
4
+
5
+ 1. /seo - Run basic SEO checks.
6
+ 2. Run Lighthouse via browser tool for Performance metrics.
7
+ 3. Use `growth-engineer` to review CTA placement and conversion copy.
8
+ 4. Use `seo-specialist` to implement Schema markup.
9
+ 5. Generate a `GROWTH_REPORT.md` with actionable metrics.
@@ -1,47 +1,26 @@
1
1
  ---
2
- description: Server và Pipeline có ổn không? Cài đặt giám sát ngay.
2
+ description: Server có ổn không? Cài giám sát ngay.
3
3
  ---
4
4
 
5
- # /monitor - Full-Stack Observability & Health
5
+ # /monitor - DevOps & Observability
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
9
  ---
10
10
 
11
- ## 🟢 PHASE 1: Topology Discovery
12
- **Agent**: `devops-engineer` & `explorer-agent`
13
- **Mission**: Map the "Heartbeat" locations.
14
- - **Action**: Identify critical services, databases, and CI/CD pipelines.
15
- - **Action**: Locate existing logging and metrics configuration.
11
+ ## Task
12
+ Setup logging and monitoring for Production.
16
13
 
17
- ## 🟡 PHASE 2: Sourcing & Alerting Logic
18
- **Agent**: `incident-responder` or `devops-engineer`
19
- **Mission**: Define "Healthy."
20
- - **Action**: Set thresholds for Error Rates, Latency (p99), and Resource Saturation.
21
- - **Action**: Configure Alerting routes (Slack, Email, PagerTree).
22
-
23
- ## 🔵 PHASE 3: Surgical Instrumentation
24
- **Agent**: `devops-engineer`
25
- **Mission**: Install the "Nervous System."
26
- - **Action**: Setup OpenTelemetry, Prometheus, or Grafana Dashboards.
27
- - **Action**: Implement log rotation and sanitization filters.
28
-
29
- ## 🔴 PHASE 4: Reliability Audit
30
- **Agent**: `quality-inspector`
31
- **Mission**: Verify the "Watchman."
32
- - **Verification**: Trigger a mock failure to test alert delivery.
33
- - **Reporting**: Report the Dashboard URL or "Health Status" to the User.
34
-
35
- ---
36
-
37
- ## Observability Principles:
38
- - **Zero Blindspots**: Monitor the "Critical Path" end-to-end.
39
- - **No Noise**: Alerts must be actionable; suppress low-signal chatter.
40
- - **Evidence-Based**: Operational decisions must be based on metrics, not intuition.
14
+ ### Steps:
15
+ 1. **Logging**: Config structured logging (JSON format).
16
+ 2. **Error Tracking**: Setup Sentry/LogRocket/Datadog.
17
+ 3. **Health Checks**: Create `/health` API endpoint.
18
+ 4. **Alerting**: Define thresholds for CPU/Memory warnings.
41
19
 
42
20
  ---
43
21
 
44
- ## Examples:
45
- - `/monitor setup uptime tracking`
46
- - `/monitor dashboard for backend latency`
47
- - `/monitor check pipeline reliability`
22
+ ## Usage
23
+ ```
24
+ /monitor setup sentry # Install Sentry SDK
25
+ /monitor check # Verify observability
26
+ ```