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
@@ -0,0 +1,147 @@
1
+ # Operational Flow Guide 📘
2
+
3
+ > **Foreword**: Building software is a **long conversation** between the Boss (User) and the Employee (AI). This document is not theory; it provides **Sample Transcripts** of 5 real-world projects so you can copy-paste and learn how to "command" effectively.
4
+
5
+ ---
6
+
7
+ ## 🎯 Case Study 1: E-commerce Platform (Web Fullstack) 🛒
8
+ **Difficulty**: High | **Timeline**: 2 weeks (equiv) | **Focus**: Database, API, State Management.
9
+
10
+ ### Phase 1: Kickoff & Foundation (10%)
11
+ > **Boss**: `/create` (select SME, Industry F&B)
12
+ >
13
+ > **Boss**: `/plan`
14
+ > **Prompt**: "I want to build a Sneaker store. Needs Homepage, Detail page, Cart, and Admin Dashboard. Analyze what Tables we need in the Database?"
15
+ >
16
+ > **Boss**: *Approves plan* -> "Ok, plan looks good. Create the folder structure."
17
+
18
+ ### Phase 2: Backend & Database (30%)
19
+ > **Boss**: "Now design the Database Schema. Use PostgreSQL."
20
+ > **Context**: `@database-architect`
21
+ > **Prompt**: "Create `schema.sql`. Need `Users`, `Products` (with size, color), `Orders`, `OrderItems` tables. Add an Index to the `price` column for faster filtering."
22
+ >
23
+ > **Boss**: "Now write the Register/Login API."
24
+ > **Context**: `@backend` `@security`
25
+ > **Prompt**: "Create POST `/auth/register` API. Validate email strictly. Password must be hashed with Bcrypt. Return a JWT Token."
26
+ >
27
+ > **Boss**: *Tests and finds error* -> `/debug`
28
+ > **Prompt**: "I sent a Login request but got 500. Log says: `Cannot read property 'hash' of undefined`. Fix ASAP."
29
+ > **Context**: `@debug`
30
+
31
+ ### Phase 3: Frontend (40%)
32
+ > **Boss**: "Switch to UI. Use Next.js."
33
+ > **Context**: `@frontend` `@ui-ux-pro-max`
34
+ > **Prompt**: "Create `ProductCard` component. Requirements: Large image, bold title, red price. On hover, the card should elevate (shadow)."
35
+ >
36
+ > **Boss**: "Make the Shopping Cart page."
37
+ > **Context**: `@frontend`
38
+ > **Prompt**: "Create `/cart` page. Use Zustand for cart state management. Show product list, quantity toggle, and subtotal."
39
+ >
40
+ > **Boss**: "Ugly. Fix the CSS."
41
+ > **Context**: `@ui-ux-pro-max`
42
+ > **Prompt**: "The 'Checkout' button looks cheap. Change it to an orange-purple gradient, rounded corners, and add a Shopping Bag icon."
43
+
44
+ ### Phase 4: Integration & Polish (20%)
45
+ > **Boss**: "Connect API to Frontend."
46
+ > **Prompt**: "On Login page, when user clicks Submit, call `/auth/login` API. If success, save token to localStorage and redirect to Home."
47
+ >
48
+ > **Boss**: "Check performance."
49
+ > **Context**: `@performance`
50
+ > **Prompt**: "Run Lighthouse audit on Home page. Optimize images and lazy load heavy components for me."
51
+
52
+ ---
53
+
54
+ ## 🎯 Case Study 2: Mobile Game "Flappy Clone" (Indie Game) 🎮
55
+ **Difficulty**: Medium | **Focus**: Logic, Physics, Performance.
56
+
57
+ ### Phase 1: Core Logic
58
+ > **Boss**: `/create` (select Mobile & Game)
59
+ >
60
+ > **Boss**: "Write gravity logic for the bird."
61
+ > **Context**: `@game-development`
62
+ > **Prompt**: "Create `Bird` class. Have an `update()` function. Every frame `y` increases (falls). When calling `flap()`, `velocity` jumps up. Tune numbers to feel like real Flappy Bird."
63
+
64
+ ### Phase 2: Gameplay Loop
65
+ > **Boss**: "Make obstacles (Pipes)."
66
+ > **Prompt**: "Create `PipeManager` class. Spawn a pipe pair (top/bottom) every 2 seconds. Pipes move right to left. If bird collides, Game Over."
67
+
68
+ ### Phase 3: Polish
69
+ > **Boss**: "Add sound."
70
+ > **Prompt**: "Play `sfx_wing.mp3` when flying. Play `sfx_hit.mp3` on death."
71
+ >
72
+ > **Boss**: `/debug` (Game stutters)
73
+ > **Context**: `@performance`
74
+ > **Prompt**: "Game lags after playing a while. I suspect too many objects are created without deletion. Check for memory leaks in `PipeManager`?"
75
+
76
+ ---
77
+
78
+ ## 🎯 Case Study 3: Digital Banking (Fintech Enterprise) 🏦
79
+ **Difficulty**: Very Hard | **Focus**: Security, Audit, Compliance.
80
+
81
+ ### Phase 1: Hardening
82
+ > **Boss**: `/create` (select Enterprise, Finance)
83
+ >
84
+ > **Boss**: "Design security architecture."
85
+ > **Context**: `@security-auditor`
86
+ > **Prompt**: "Review `server.js`. Ensure Helmet, Rate Limiting, and CORS are strictly configured. Block strange IPs from Admin API."
87
+
88
+ ### Phase 2: Sensitive Logic
89
+ > **Boss**: "Write money transfer function."
90
+ > **Context**: `@backend` `@database-architect`
91
+ > **Prompt**: "Write `transferMoney` function. MUST use Database Transaction. Debit A and Credit B must happen simultaneously. Rollback immediately on error. Log everything to Audit table."
92
+
93
+ ### Phase 3: Audit
94
+ > **Boss**: `/audit`
95
+ > **Context**: `@compliance`
96
+ > **Prompt**: "Scan entire code for accidental logging of sensitive info (Card numbers, Phone). Project must comply with PCI-DSS."
97
+
98
+ ---
99
+
100
+ ## 🎯 Case Study 4: Personal Blog (Personal Brand) ✍️
101
+ **Difficulty**: Easy | **Focus**: SEO, Speed, Content.
102
+
103
+ > **Boss**: `/create` (Personal)
104
+ >
105
+ > **Boss**: "Write Home page intro."
106
+ > **Context**: `@seo-expert-kit`
107
+ > **Prompt**: "Write intro content introducing me as an AI Engineer with 5 years exp. Embed keywords like 'AI Consultant', 'Machine Learning' for Google ranking."
108
+ >
109
+ > **Boss**: "Add Dark Mode."
110
+ > **Context**: `@frontend`
111
+ > **Prompt**: "Add Light/Dark toggle in top right. Save setting to local storage."
112
+ >
113
+ > **Boss**: `/deploy` -> "Push to Vercel for me."
114
+
115
+ ---
116
+
117
+ ## 🎯 Case Study 5: Data Processing Tool (Python AI Lab) 🐍
118
+ **Difficulty**: Specialist | **Focus**: Python, Data, Charts.
119
+
120
+ > **Boss**: `/create` (select Advanced - Python)
121
+ > **Boss**: *Sees Python missing warning* -> "Ok, run the install command."
122
+ >
123
+ > **Boss**: "Write script to read Excel."
124
+ > **Context**: `@data-engineer`
125
+ > **Prompt**: "Use `pandas` to read `sales.xlsx`. Clean data: Remove empty rows, fill 0 for missing values."
126
+ >
127
+ > **Boss**: "Draw chart."
128
+ > **Context**: `@ai-engineer`
129
+ > **Prompt**: "Use `matplotlib` to plot line chart of monthly revenue. Export to `chart.png`."
130
+
131
+ ---
132
+
133
+ ## 📝 Summary of "Magic Spells" (Prompt Patterns)
134
+
135
+ 1. **"Role - Task - Standard" Model**:
136
+ * *Basic*: "Write login code." (Vague)
137
+ * *Pro*: "Act as `@security`, write Login API (`Task`), require password hash and Anti-Brute Force (`Standard`)."
138
+
139
+ 2. **"Evidence-based Debugging" Model**:
140
+ * *Basic*: "Code is broken, fix it." (AI guesses)
141
+ * *Pro*: "Call `/debug`. I got `Error: connection refused` at line 50 of `db.js`. Analyze if it's config port issue or DB not running?"
142
+
143
+ 3. **"Iterative" Model**:
144
+ * Lap 1: "Create basic UI first."
145
+ * Lap 2: "Add CSS to make it pretty."
146
+ * Lap 3: "Optimize code to be cleaner."
147
+ * *(Don't force AI to be perfect in the very first prompt)*.
@@ -4,15 +4,6 @@
4
4
 
5
5
  ---
6
6
 
7
- ## 🛡️ Cơ chế Bảo vệ & Tự học (The Watchdog v4.0.8)
8
-
9
- Dự án v4.0.8 tích hợp sẵn hệ thống giám sát cấp cao:
10
- - **Chống Treo & Lặp**: Agent tự ngắt các tác vụ bị kẹt và báo cáo cho User.
11
- - **Học Từ Sai Lầm**: Mọi lỗi (Test fail, Agent hiểu sai) đều được ghi vào `ERRORS.md` để rút kinh nghiệm cho lần sau.
12
- - **Kỷ Luật PDCA**: Mọi task đều đi qua chu kỳ Lập kế hoạch -> Thực thi -> Kiểm tra -> Cải tiến.
13
-
14
- ---
15
-
16
7
  ## 🎯 Case Study 1: Sàn Thương mại Điện tử (Web Fullstack) 🛒
17
8
  **Độ khó**: Cao | **Thời gian**: 2 tuần quy đổi | **Trọng tâm**: Database, API, State Management.
18
9
 
@@ -154,9 +145,3 @@ Dự án v4.0.8 tích hợp sẵn hệ thống giám sát cấp cao:
154
145
  * Vòng 2: "Thêm CSS cho đẹp."
155
146
  * Vòng 3: "Tối ưu code cho gọn."
156
147
  * *(Đừng bắt AI làm hoàn hảo ngay từ lệnh đầu tiên)*.
157
-
158
- 4. **Mô hình "Bảo trì Thần tốc"**:
159
- * Khi thấy Agent chạy chệch hướng hoặc Rules bị cũ: "Chạy `npx antigravity-ide` để **Repair & Sync** toàn bộ hệ thống ngay lập tức."
160
-
161
- ---
162
- *Cẩm nang này sẽ được cập nhật liên tục theo các phiên bản mới của Antigravity IDE.*
@@ -0,0 +1,71 @@
1
+ # PLAN: Upgrade Core Architecture to Context-Aware Rules
2
+
3
+ > **Goal**: Refactor `.agent/rules` from a monolithic design to a modular, context-aware structure leveraging Antigravity's advanced triggers (Glob, Model Decision).
4
+
5
+ ---
6
+
7
+ ## 1. Analysis & Strategy
8
+
9
+ **Current State:**
10
+ - Single `GEMINI.md` file doing everything.
11
+ - Wasted context tokens (loading Backend rules when working on CSS).
12
+ - Lack of file-specific enforcement.
13
+
14
+ **Target State:**
15
+ - **Modular**: Separate files for Security, Frontend, Backend, DevOps.
16
+ - **Context-Aware**:
17
+ - `glob`: Load Frontend rules ONLY for `.tsx/.css`.
18
+ - `model_decision`: Load Debug rules ONLY when needed.
19
+ - `always_on`: Keep Security & Personality active globally.
20
+
21
+ ---
22
+
23
+ ## 2. Execution Phase (Task Breakdown)
24
+
25
+ ### Phase 2.1: Refactor Global Rules (`rules/`)
26
+
27
+ - [ ] **Update `GEMINI.md`**
28
+ - **Trigger**: `always_on`
29
+ - **Content**: Agent Identity, Core Ethics, PDCA Cycle, Socratic Gate.
30
+
31
+ - [ ] **Create `security.md`**
32
+ - **Trigger**: `always_on`
33
+ - **Content**: OWASP Top 10, Secret Management, `rm -rf` protection.
34
+
35
+ - [ ] **Create `frontend.md`**
36
+ - **Trigger**: `glob: "**/*.{js,jsx,ts,tsx,css,scss,html}"`
37
+ - **Content**: UI/UX Premium, Component patterns, State management.
38
+
39
+ - [ ] **Create `backend.md`**
40
+ - **Trigger**: `glob: "**/*.{py,js,ts,go,rs,sql,php}"` (Exclude frontend-only paths if possible, or assume overlap)
41
+ - **Content**: API Standards, DB Schema 3NF, Error Handling.
42
+
43
+ - [ ] **Create `debug.md`**
44
+ - **Trigger**: `model_decision` ("When the user needs to fix bugs, analyze errors, or troubleshoot issues.")
45
+ - **Content**: Root cause analysis, systematically reading files, test-first fix.
46
+
47
+ ### Phase 2.2: Standardize Workflows (`workflows/`)
48
+
49
+ - [ ] Audit all 11 workflows.
50
+ - [ ] Ensure valid YAML frontmatter with `description` for correct Slash Command mapping.
51
+
52
+ ### Phase 2.3: System Synchronization
53
+
54
+ - [ ] Update `setup.js` to ensure recursive copying of the new `rules/` structure.
55
+ - [ ] Update `README.vi.md` to explain the new "Context-Aware Rule System".
56
+
57
+ ---
58
+
59
+ ## 3. Verification Checklist
60
+
61
+ 1. **Security Check**: Is `security.md` loaded even when editing a simple text file? (Yes, via `always_on`).
62
+ 2. **Context Check**: Does `frontend.md` load when I open `App.tsx`?
63
+ 3. **Smart Check**: Does `debug.md` load when I say "Fix this error"?
64
+
65
+ ---
66
+
67
+ ## 4. Agent Assignments
68
+
69
+ - **Architect**: `project-planner` (Created this plan)
70
+ - **Implementer**: `orchestrator` (Will execute file creations)
71
+ - **Validator**: `quality-inspector` (Will verify rule triggers)
@@ -3,16 +3,13 @@
3
3
  ## ✅ Published Successfully!
4
4
 
5
5
  **Package:** `antigravity-ide`
6
- **Version:** `4.0.8`
7
- **Published:** 2026-02-08
6
+ **Version:** `4.2.1`
7
+ **Published:** 2026-02-16
8
8
  **Link:** https://www.npmjs.com/package/antigravity-ide
9
9
 
10
10
  ---
11
11
 
12
-
13
- > **⚠️ QUAN TRỌNG**: Chỉ thực hiện quy trình này khi **ĐƯỢC NGƯỜI DÙNG YÊU CẦU**. Tuyệt đối không tự ý release.
14
-
15
- ## 1. Pre-flight Checklist (Tự động)
12
+ ## Pre-publish Checklist
16
13
 
17
14
  All steps completed:
18
15
 
@@ -179,28 +176,3 @@ npm owner add <username> antigravity-ide
179
176
  ---
180
177
 
181
178
  **Congratulations! Your package is now live on npm! 🎉**
182
-
183
- ---
184
-
185
- ## GitHub Packages Support
186
-
187
- This project is configured to **Dual Publish**:
188
- 1. **npm Registry**: `antigravity-ide` (Public, Unscoped)
189
- 2. **GitHub Packages**: `@Dokhacgiakhoa/antigravity-ide` (Scoped to repository owner)
190
-
191
- ### How it works
192
- The `release.yml` workflow automatically renames the package to `@Dokhacgiakhoa/antigravity-ide` *only* during the GitHub Packages publishing step. This ensures the source code remains `antigravity-ide` for npm compatibility.
193
-
194
- ### Installing from GitHub Packages
195
- To install the scoped version from GitHub:
196
-
197
- 1. Create a `.npmrc` file in your project:
198
- ```ini
199
- @Dokhacgiakhoa:registry=https://npm.pkg.github.com
200
- //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
201
- ```
202
-
203
- 2. Install:
204
- ```bash
205
- npm install @Dokhacgiakhoa/antigravity-ide
206
- ```
@@ -1,96 +1,60 @@
1
- # 📜 Hướng Dẫn Sử Dụng "Luật Hệ Thống" (Rules System) v4.0.8
1
+ # 📜 Hướng Dẫn Sử Dụng "Luật Hệ Thống" (Rules System)
2
2
 
3
- > **Cơ chế hoạt động**: Antigravity sử dụng cơ chế **Hybrid Language Protocol** (Song ngữ Anh-Việt) để tối ưu hóa cả khả năng hiểu của AI sự tiện lợi cho đội ngũ phát triển.
3
+ > **Cơ chế hoạt động**: Antigravity sử dụng cơ chế **Hybrid Trigger** (Kết hợp Tự động & Gọi tên) để đảm bảo code vừa nhanh vừa chuẩn.
4
4
 
5
5
  ---
6
6
 
7
- ## 0. Triết "Mục đích kép" (Dual Audience)
8
-
9
- Các file trong thư mục `.agent/rules/` được thiết kế để phục vụ cùng lúc 2 đối tượng:
10
-
11
- 1. **🤖 AI Agent (Constraint Layer)**:
12
- - Đóng vai trò là "Rào chắn" (Guardrails).
13
- - Ví dụ: Khi Agent đọc rule `code-quality.md`, nó biết ngay lệnh cấm: *"No console.log in production"*.
14
- - Agent hiểu hoàn hảo cả Tiếng Anh (Keyword) và Tiếng Việt (Context).
15
-
16
- 2. **👨‍💻 Human Team (Standard Layer)**:
17
- - Đóng vai trò là "Cẩm nang phát triển" (Wiki).
18
- - Thành viên mới gia nhập dự án có thể đọc để nắm bắt Coding Style, Quy trình Git, Bảo mật.
19
- - Sử dụng Tiếng Việt giúp anh em dev nắm bắt nhanh hơn, tránh rào cản ngôn ngữ.
20
-
21
- 3. **🏢 Professional Protocol (Compliance Layer)**:
22
- - Mọi Rule hiện nay đều được liên kết trực tiếp vào các Phase của **Unified Protocol** (Discovery, Planning, Execution, Audit).
23
- - Agent không thể bỏ qua Rule nếu muốn pass qua giai đoạn **Audit**.
24
-
25
- ---
26
-
27
- ## 1. Giao thức Ngôn ngữ Lai (Hybrid Language Protocol)
28
-
29
- Để đạt hiệu quả tối đa, hệ thống áp dụng quy tắc ngôn ngữ sau:
30
-
31
- | Thành phần | Ngôn ngữ | Lý do | Ví dụ |
32
- | :--- | :--- | :--- | :--- |
33
- | **Logic Cốt lõi** | 🇬🇧 **Tiếng Anh** | Chính xác cho máy, keyword chuẩn quốc tế. | `Metadata`, `Variable Name`, `Anti-Patterns` |
34
- | **Giải thích/Ngữ cảnh** | 🇻🇳 **Tiếng Việt** | Tự nhiên, dễ hiểu cho người Việt. | "Mục tiêu: Đảm bảo mã nguồn sạch..." |
35
- | **Cấu hình (Config)** | 🇬🇧 **Tiếng Anh** | Bắt buộc do cú pháp hệ thống. | `json`, `yaml`, `regex` |
36
-
37
- ---
38
-
39
- ## 2. Phân Loại Rules
7
+ ## 1. Phân Loại Rules
40
8
 
41
9
  ### 🤖 Nhóm Tự Động (Auto-Active)
42
10
  *Luôn chạy ngầm, bạn không cần gọi.*
43
11
 
44
- | Rule | Chức năng | Ngôn ngữ |
12
+ | Rule | Kích hoạt khi | Chức năng |
45
13
  | :--- | :--- | :--- |
46
- | **`GEMINI.md`** | **Hiến pháp lõi**: Định hình nhân dạng, tính cách và các mode vận hành (Solo/Team/Factory). | Hybrid |
47
- | **`security.md`** | **Bảo mật**: Chặn hardcode API Key, SQL Injection, XSS. | Hybrid |
48
- | **`code-quality.md`** | **Chất lượng**: Quy định về Naming, Comments, Error Handling. | Hybrid |
49
- | **`frontend.md`** | **Giao diện**: Chuẩn hóa UI/UX, Responsive, Performance. | Hybrid |
50
- | **`backend.md`** | **Hệ thống**: Chuẩn Clean Architecture, API Response, DB Schema. | Hybrid |
51
- | **`testing-standard.md`** | **Kiểm thử**: Quy chuẩn Pyramid, Naming, Mocking & Coverage. | Hybrid |
52
- | **`malware-protection`** | **An toàn**: Chống virus, link độc hại và kiểm soát package. | English |
53
- | **`error-logging`** | **Học tập**: Tự động ghi lại lỗi vào ERRORS.md. | Hybrid |
54
- | **`docs-update`** | **Tài liệu**: Checklist tự động cập nhật docs khi có tính năng mới. | Hybrid |
55
- | **`system-update`** | **Hệ thống**: Tự động kiểm tra và nâng cấp Antigravity IDE. | Hybrid |
56
- | **`runtime-watchdog`** | **An toàn**: Chống treo, vòng lặp vô hạn và lỗi Agent phản hồi chậm. | Hybrid |
14
+ | **`security`** | **Luôn luôn** | Chặn hardcode API Key, SQL Injection, XSS. |
15
+ | **`frontend`** | File `.js`, `.css`, `.tsx` | Chuẩn hóa UI, Spacing, Responsive. |
16
+ | **`backend`** | File `.py`, `.go`, `.sql` | Chuẩn Clean Architecture, API Response. |
17
+ | **`gemini`** | **Luôn luôn** | Cấu hình lõi, tính cách Agent. |
57
18
 
58
19
  ### 🛠️ Nhóm Theo Yêu Cầu (On-Demand / @Tags)
59
20
  *Chỉ chạy khi có ngữ cảnh phù hợp hoặc được bạn gọi đích danh.*
60
21
 
61
22
  | Tag Gọi | Tên Rule | Chức năng |
62
23
  | :--- | :--- | :--- |
63
- | **`@biz`** | `business.md` | Kiểm tra logic nghiệp vụ, tính tiền, quyền hạn. |
64
- | **`@legal`** | `compliance.md` | Rà soát GDPR, bảo mật dữ liệu, Logging chuẩn. |
65
- | **`@arch`** | `architecture-review.md` | Đánh giá khả năng chịu tải, HA, Microservices. |
66
- | **`@debug`** | `debug.md` | Kích hoạt quy trình 4 bước: Điều tra -> Test -> Sửa -> Báo cáo. |
24
+ | **`@biz`** | `business` | Kiểm tra logic nghiệp vụ, tính tiền, quyền hạn. |
25
+ | **`@legal`** | `compliance` | Rà soát GDPR, bảo mật dữ liệu, Logging chuẩn. |
26
+ | **`@arch`** | `architecture-review` | Đánh giá khả năng chịu tải, HA, Microservices. |
27
+ | **`@debug`** | `debug` | Kích hoạt quy trình 4 bước: Điều tra -> Test -> Sửa -> Báo cáo. |
67
28
 
68
29
  ---
69
30
 
70
- ## 3. Cách Sử Dụng Semantic Tags (@)
31
+ ## 2. Cách Sử Dụng Semantic Tags (@)
71
32
 
72
33
  Bạn có thể dùng ký tự `@` trong lệnh chat để **ép buộc** Agent tập trung vào một khía cạnh cụ thể.
73
34
 
74
- **Ví dụ thực tế:**
35
+ ### Ví dụ thực tế:
36
+
37
+ **1. Khi Review Logic Tính Tiền:**
38
+ > "Agent, hãy `@biz` check lại hàm tính thuế này xem có bị lỗi làm tròn số (Float) không?"
39
+ *(Agent sẽ lôi `rules/business.md` ra để soi kỹ vấn đề Decimal vs Float)*
75
40
 
76
- 1. **Khi Review Logic Tính Tiền:**
77
- > "Agent, hãy `@biz` check lại hàm tính thuế này xem bị lỗi làm tròn số (Float) không?"
78
- *(Agent sẽ lôi `rules/business.md` ra để soi kỹ vấn đề Decimal vs Float)*
41
+ **2. Khi Audit Bảo Mật Dữ Liệu:**
42
+ > "Code này `@legal` vi phạm quy tắc log email người dùng không?"
43
+ *(Agent sẽ đối chiếu với `rules/compliance.md` về PII masking)*
79
44
 
80
- 2. **Khi Audit Bảo Mật Dữ Liệu:**
81
- > "Code này `@legal` vi phạm quy tắc log email người dùng không?"
82
- *(Agent sẽ đối chiếu với `rules/compliance.md` về PII masking)*
45
+ **3. Khi Sửa Lỗi Khó:**
46
+ > "Hệ thống đang bị lỗi 500, `@debug` điều tra giúp tôi."
47
+ *(Agent kích hoạt chế độ Sherlock Holmes)*
83
48
 
84
- 3. **Khi Sửa Lỗi Khó:**
85
- > "Hệ thống đang bị lỗi 500, `@debug` điều tra giúp tôi."
86
- *(Agent kích hoạt chế độ Sherlock Holmes)*
49
+ **4. Khi Thiết Kế Hệ Thống Lớn:**
50
+ > "Tôi muốn xây dựng module Payment, `@arch` vấn giải pháp chịu tải cao."
51
+ *(Agent dùng `rules/architecture-review.md` để vấn Redis/Queue)*
87
52
 
88
53
  ---
89
54
 
90
- ## 4. Tại sao cần chia ra như vậy?
55
+ ## 3. Tại sao cần chia ra như vậy?
91
56
 
92
- * **Tránh Overload**: Nếu nạp **tất cả** luật cùng lúc, Agent sẽ bị "quá tải" (Cognitive Overload).
93
- * **Tăng độ chính xác**: Cơ chế **@Tags** giúp bạn điều hướng sự tập trung của Agent vào đúng chỗ cần thiết nhất.
94
- * **Thân thiện**: Cách viết Hybrid giúp Rule trở nên "có hồn" hơn, giống như một người mentor đang hướng dẫn team.
57
+ * Nếu nạp **tất cả** luật cùng lúc: Agent sẽ bị "quá tải" (Cognitive Overload), dẫn đến xử lý chậm và hay quên các chi tiết nhỏ.
58
+ * Cơ chế **@Tags** giúp bạn điều hướng sự tập trung của Agent vào đúng chỗ cần thiết nhất tại thời điểm đó.
95
59
 
96
- > **Lời khuyên**: Hãy coi `rules/` thư viện luật pháp của dự án. Khi cần ban hành luật mới, hãy tạo file mới hoặc sửa file cũ theo chuẩn Hybrid này.
60
+ > **Mẹo**: Hãy coi các Rule này các "Cố vấn chuyên môn". Khi cần ai, hãy gọi tên người đó!
@@ -11,30 +11,34 @@ Khi cần, Agent chỉ việc "copy-paste" ra dùng. Nhanh và Chuẩn.
11
11
 
12
12
  ---
13
13
 
14
- ## 2. Danh mục 17 Kho Tàng (Modules) v4.0
14
+ ## 2. Danh mục 17 Kho Tàng (Modules)
15
15
 
16
- ### 🏢 Nhóm Cốt Lõi (Core DNA)
17
- * **`design-philosophy`**: Triết thiết kế (Linear, Magic UI).
18
- * **`dx-toolkit`**: Công cụ hỗ trợ Dev (VSCode Settings, Linting).
19
- * **`metrics`**: Cấu hình giám sát (Logging, Telemetry).
20
- * **`vitals-templates`**: Tiêu chuẩn hiệu năng (Lighthouse Config).
16
+ ### 🧠 Cốt Lõi & AI
17
+ * **`ai-master`**: Chứa các Prompt mẫu, cấu hình RAG System.
18
+ * **`core`**: Cấu trúc dự án mẫu (Project Structure).
21
19
 
22
- ### 🛠️ Nhóm Kỹ Thuật (Technical Stack)
23
- * **`ai-master`**: Prompt mẫu, cấu hình RAG System.
20
+ ### 🛡️ Bảo Mật & Tuân Thủ
21
+ * **`security-armor`**: Bộ quy tắc chống hack (OWASP), script quét lỗ hổng.
22
+ * **`compliance`**: Mẫu pháp lý (Privacy Policy, GDPR Checklists).
24
23
  * **`api-standards`**: Chuẩn thiết kế API (RESTful, Error Codes).
25
- * **`database-master`**: Các mẫu Schema DB (E-commerce, SaaS).
24
+
25
+ ### 🎨 Giao Diện & Trải Nghiệm
26
26
  * **`design-system`**: Bộ Token màu sắc, Typography chuẩn.
27
- * **`i18n-master`**: Hệ thống đa ngôn ngữ.
27
+ * **`ui-ux-pro-max`**: Các hiệu ứng động cao cấp (Motion Presets).
28
+ * **`design-philosophy`**: Triết lý thiết kế (Linear, Magic UI).
29
+
30
+ ### 🏗️ Hạ Tầng & Vận Hành
31
+ * **`infra-blueprints`**: File cấu hình Docker, Terraform, CI/CD.
32
+ * **`database-master`**: Các mẫu Schema DB (E-commerce, Social, SaaS).
33
+ * **`metrics`**: Cấu hình giám sát (Logging, Telemetry).
28
34
  * **`resilience-patterns`**: Mẫu thiết kế chịu lỗi (Circuit Breaker).
29
- * **`security-armor`**: Bộ quy tắc chống hack (OWASP).
30
- * **`seo-master`**: Checklist SEO, mẫu JSON-LD.
31
- * **`testing-master`**: Chiến lược kiểm thử toàn diện.
32
- * **`ui-ux-pro-max`**: Hiệu ứng động cao cấp.
33
35
 
34
- ### 🌐 Nhóm Chuyên Biệt (Vertical Blueprints)
35
- * **`compliance`**: Mẫu pháp (GDPR, HIPAA).
36
- * **`domain-blueprints`**: Kiến trúc mẫu theo từng ngành nghề.
37
- * **`infra-blueprints`**: Cấu hình hạ tầng (Docker, Terraform).
36
+ ### 📈 Tăng Trưởng & Chất Lượng
37
+ * **`seo-master`**: Checklist SEO, mẫu JSON-LD.
38
+ * **`testing-master`**: Kịch bản test mẫu (E2E, Unit Test).
39
+ * **`vitals-templates`**: Tiêu chuẩn hiệu năng (Lighthouse Config).
40
+ * **`i18n-master`**: File ngôn ngữ mẫu (Đa ngôn ngữ).
41
+ * **`dx-toolkit`**: Công cụ hỗ trợ Dev (VSCode Settings, Linting).
38
42
 
39
43
  ---
40
44