antigravity-ide 4.2.1 → 4.3.3

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 (359) hide show
  1. package/.agent/.shared/{design-philosophy → core/design-philosophy}/README.md +12 -1
  2. package/.agent/.shared/{ai-master → technical/ai-master}/README.md +12 -1
  3. package/.agent/.shared/{api-standards → technical/api-standards}/README.md +12 -1
  4. package/.agent/.shared/{database-master → technical/database-master}/README.md +12 -2
  5. package/.agent/.shared/{seo-master → technical/seo-master}/README.md +12 -1
  6. package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/README.md +12 -1
  7. package/.agent/ARCHITECTURE.md +16 -10
  8. package/.agent/ARCHITECTURE.vi.md +8 -8
  9. package/{GEMINI.md → .agent/GEMINI.md} +4 -5
  10. package/.agent/RESOURCES.md +6 -1
  11. package/.agent/agents/backend-specialist.md +154 -19
  12. package/.agent/agents/browser-subagent.md +45 -0
  13. package/.agent/agents/cloud-architect.md +108 -189
  14. package/.agent/agents/debugger.md +83 -182
  15. package/.agent/agents/documentation-writer.md +125 -72
  16. package/.agent/agents/frontend-specialist.md +40 -7
  17. package/.agent/agents/game-developer.md +111 -116
  18. package/.agent/agents/mobile-developer.md +108 -321
  19. package/.agent/agents/orchestrator.md +106 -366
  20. package/.agent/agents/performance-optimizer.md +105 -136
  21. package/.agent/agents/project-planner.md +132 -39
  22. package/.agent/agents/quality-inspector.md +136 -32
  23. package/.agent/agents/security-auditor.md +138 -15
  24. package/.agent/agents/seo-specialist.md +118 -72
  25. package/.agent/agents/test-engineer.md +142 -11
  26. package/.agent/brain/task.md +16 -0
  27. package/.agent/rules/GEMINI.md +63 -31
  28. package/.agent/rules/code-quality.md +34 -3
  29. package/.agent/rules/frontend.md +3 -3
  30. package/.agent/rules/strict-protocol.md +44 -3
  31. package/.agent/rules/system-update.md +56 -3
  32. package/.agent/skills/agent-backend-patterns/SKILL.md +16 -3
  33. package/.agent/skills/ai-engineer/SKILL.md +29 -16
  34. package/.agent/skills/api-documenter/SKILL.md +4 -4
  35. package/.agent/skills/app-builder/SKILL.md +1 -1
  36. package/.agent/skills/app-builder/tech-stack.md +2 -2
  37. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
  38. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
  39. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
  40. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
  41. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
  42. package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +202 -0
  43. package/.agent/skills/brand-guidelines-anthropic/SKILL.md +26 -0
  44. package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +5 -0
  45. package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +14 -0
  46. package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +6 -0
  47. package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +7 -0
  48. package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +6 -0
  49. package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +6 -0
  50. package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +7 -0
  51. package/.agent/skills/cloud-architect-master/SKILL.md +9 -4
  52. package/.agent/skills/cro-expert-kit/SKILL.md +9 -4
  53. package/.agent/skills/database-migration/SKILL.md +9 -3
  54. package/.agent/skills/deployment-engineer/SKILL.md +9 -3
  55. package/.agent/skills/frontend-design/ux-psychology.md +10 -585
  56. package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
  57. package/.agent/skills/game-development/2d-games/SKILL.md +4 -2
  58. package/.agent/skills/game-development/3d-games/SKILL.md +4 -2
  59. package/.agent/skills/game-development/SKILL.md +18 -149
  60. package/.agent/skills/game-development/game-art/SKILL.md +4 -2
  61. package/.agent/skills/game-development/game-audio/SKILL.md +4 -2
  62. package/.agent/skills/game-development/game-design/SKILL.md +4 -2
  63. package/.agent/skills/game-development/mobile-games/SKILL.md +4 -2
  64. package/.agent/skills/game-development/multiplayer/SKILL.md +4 -2
  65. package/.agent/skills/game-development/pc-games/SKILL.md +4 -2
  66. package/.agent/skills/game-development/vr-ar/SKILL.md +4 -2
  67. package/.agent/skills/game-development/web-games/SKILL.md +4 -2
  68. package/.agent/skills/geo-fundamentals/SKILL.md +9 -136
  69. package/.agent/skills/git-collaboration-master/SKILL.md +9 -4
  70. package/.agent/skills/i18n-localization/SKILL.md +10 -118
  71. package/.agent/skills/incident-responder/SKILL.md +9 -6
  72. package/.agent/skills/internal-comms-anthropic/LICENSE.txt +202 -0
  73. package/.agent/skills/internal-comms-anthropic/SKILL.md +33 -0
  74. package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +47 -0
  75. package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +65 -0
  76. package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +30 -0
  77. package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +16 -0
  78. package/.agent/skills/last30days/tests/__init__.py +1 -0
  79. package/.agent/skills/last30days/tests/test_cache.py +59 -0
  80. package/.agent/skills/last30days/tests/test_dates.py +114 -0
  81. package/.agent/skills/last30days/tests/test_dedupe.py +111 -0
  82. package/.agent/skills/last30days/tests/test_models.py +135 -0
  83. package/.agent/skills/last30days/tests/test_normalize.py +138 -0
  84. package/.agent/skills/last30days/tests/test_render.py +116 -0
  85. package/.agent/skills/last30days/tests/test_score.py +168 -0
  86. package/.agent/skills/legacy-modernizer/SKILL.md +9 -4
  87. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +2 -14
  88. package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +57 -0
  89. package/.agent/skills/loki-mode/.github/workflows/claude.yml +50 -0
  90. package/.agent/skills/loki-mode/.github/workflows/release.yml +128 -0
  91. package/.agent/skills/loki-mode/tests/run-all-tests.sh +78 -0
  92. package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +348 -0
  93. package/.agent/skills/loki-mode/tests/test-bootstrap.sh +196 -0
  94. package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +389 -0
  95. package/.agent/skills/loki-mode/tests/test-state-recovery.sh +393 -0
  96. package/.agent/skills/loki-mode/tests/test-task-queue.sh +396 -0
  97. package/.agent/skills/loki-mode/tests/test-wrapper.sh +314 -0
  98. package/.agent/skills/mcp-builder/SKILL.md +21 -164
  99. package/.agent/skills/mobile-design/SKILL.md +21 -369
  100. package/.agent/skills/mobile-design/mobile-performance.md +1 -1
  101. package/.agent/skills/modern-web-architect/SKILL.md +12 -6
  102. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
  103. package/.agent/skills/penetration-tester-master/SKILL.md +9 -4
  104. package/.agent/skills/performance-engineer/SKILL.md +4 -5
  105. package/.agent/skills/production-code-audit/SKILL.md +6 -0
  106. package/.agent/skills/rust-pro/SKILL.md +0 -177
  107. package/.agent/skills/security-auditor/SKILL.md +35 -27
  108. package/.agent/skills/seo-expert-kit/SKILL.md +9 -4
  109. package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +379 -0
  110. package/.agent/skills/tdd-master-workflow/SKILL.md +9 -3
  111. package/.agent/workflows/audit.md +30 -16
  112. package/.agent/workflows/brainstorm.md +33 -96
  113. package/.agent/workflows/create.md +37 -45
  114. package/.agent/workflows/debug.md +45 -84
  115. package/.agent/workflows/deploy.md +33 -158
  116. package/.agent/workflows/document.md +38 -15
  117. package/.agent/workflows/enhance.md +33 -48
  118. package/.agent/workflows/monitor.md +35 -14
  119. package/.agent/workflows/orchestrate.md +33 -218
  120. package/.agent/workflows/plan.md +39 -70
  121. package/.agent/workflows/security.md +35 -14
  122. package/.agent/workflows/seo.md +39 -16
  123. package/.agent/workflows/status.md +33 -72
  124. package/.agent/workflows/test.md +30 -127
  125. package/.agent/workflows/ui-ux-pro-max.md +24 -283
  126. package/LICENSE +22 -8
  127. package/README.md +105 -72
  128. package/README.vi.md +93 -110
  129. package/cli/create.js +275 -413
  130. package/cli/index.js +36 -24
  131. package/cli/lib/auto-update.js +14 -21
  132. package/cli/logic/product-skills.js +58 -0
  133. package/cli/logic/skill-definitions.js +0 -39
  134. package/cli/prompts.js +151 -145
  135. package/cli/skills/browser-subagent-core/SKILL.md +22 -0
  136. package/cli/tools/browser.js +75 -0
  137. package/cli/ui/dashboard.js +48 -0
  138. package/docs/AGENTS_GUIDE.vi.md +39 -45
  139. package/docs/CONTRIBUTING.vi.md +12 -3
  140. package/docs/{GEMINI_GUIDE.md → GEMINI_USAGE.md} +6 -6
  141. package/docs/GLOSSARY.vi.md +49 -30
  142. package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
  143. package/docs/OPERATIONAL_FLOW.vi.md +15 -0
  144. package/docs/{PUBLISHING.md → PUBLISHING_GUIDE.md} +31 -3
  145. package/docs/RULES_GUIDE.vi.md +67 -31
  146. package/docs/SHARED_LIBRARY_GUIDE.vi.md +18 -22
  147. package/docs/SKILLS_GUIDE.vi.md +119 -32
  148. package/docs/TROUBLESHOOTING.vi.md +10 -2
  149. package/docs/WORKFLOW_GUIDE.vi.md +57 -9
  150. package/package.json +32 -8
  151. package/setup.js +147 -114
  152. package/.agent/.shared/compliance/README.md +0 -19
  153. package/.agent/.shared/design-system/README.md +0 -18
  154. package/.agent/.shared/domain-blueprints/README.md +0 -18
  155. package/.agent/.shared/dx-toolkit/README.md +0 -19
  156. package/.agent/.shared/i18n-master/README.md +0 -18
  157. package/.agent/.shared/infra-blueprints/README.md +0 -18
  158. package/.agent/.shared/metrics/README.md +0 -17
  159. package/.agent/.shared/resilience-patterns/README.md +0 -19
  160. package/.agent/.shared/security-armor/README.md +0 -25
  161. package/.agent/.shared/testing-master/README.md +0 -20
  162. package/.agent/.shared/vitals-templates/README.md +0 -18
  163. package/.agent/agents/accessibility-expert.md +0 -22
  164. package/.agent/agents/api-architect.md +0 -22
  165. package/.agent/agents/backend-specialist.eco.md +0 -19
  166. package/.agent/agents/backend-specialist.instant.md +0 -19
  167. package/.agent/agents/codebase-expert.md +0 -23
  168. package/.agent/agents/compliance-expert.md +0 -22
  169. package/.agent/agents/data-scientist.md +0 -22
  170. package/.agent/agents/debugger.eco.md +0 -20
  171. package/.agent/agents/debugger.instant.md +0 -20
  172. package/.agent/agents/deep-thinker.ultra.md +0 -23
  173. package/.agent/agents/devex-optimizer.md +0 -22
  174. package/.agent/agents/devops-architect.md +0 -22
  175. package/.agent/agents/frontend-specialist.eco.md +0 -19
  176. package/.agent/agents/frontend-specialist.instant.md +0 -19
  177. package/.agent/agents/growth-engineer.md +0 -22
  178. package/.agent/agents/i18n-specialist.md +0 -21
  179. package/.agent/agents/legacy-modernizer.md +0 -22
  180. package/.agent/agents/microservices-specialist.md +0 -22
  181. package/.agent/agents/motion-designer.md +0 -22
  182. package/.agent/agents/orchestrator.creative.md +0 -28
  183. package/.agent/agents/orchestrator.eco.md +0 -29
  184. package/.agent/agents/orchestrator.instant.md +0 -29
  185. package/.agent/agents/orchestrator.ultra.md +0 -28
  186. package/.agent/agents/performance-benchmarker.md +0 -22
  187. package/.agent/agents/project-planner.eco.md +0 -19
  188. package/.agent/agents/project-planner.instant.md +0 -19
  189. package/.agent/agents/security-pentester.md +0 -22
  190. package/.agent/agents/serverless-expert.md +0 -22
  191. package/.agent/fastcode_index.json +0 -1038
  192. package/.agent/mcp_config.json +0 -24
  193. package/.agent/rules/GEMINI.eco.md +0 -37
  194. package/.agent/rules/GEMINI.instant.md +0 -37
  195. package/.agent/rules/api-spec.md +0 -28
  196. package/.agent/rules/database.md +0 -24
  197. package/.agent/rules/devops.md +0 -23
  198. package/.agent/rules/growth-strategy.md +0 -22
  199. package/.agent/rules/logging-monitoring.md +0 -22
  200. package/.agent/rules/quality-assurance.md +0 -22
  201. package/.agent/rules/system-reasoning.md +0 -20
  202. package/.agent/rules/ui-design.md +0 -23
  203. package/.agent/rules/ux-patterns.md +0 -23
  204. package/.agent/scripts/auto_preview.py +0 -148
  205. package/.agent/scripts/checklist.py +0 -252
  206. package/.agent/scripts/session_manager.py +0 -120
  207. package/.agent/scripts/simulation_install.js +0 -59
  208. package/.agent/scripts/sync_to_global.py +0 -78
  209. package/.agent/scripts/translate_workflows.py +0 -53
  210. package/.agent/scripts/verify_all.py +0 -327
  211. package/.agent/scripts/verify_shared_modules.js +0 -126
  212. package/.agent/skills/fastcode-search/SKILL.md +0 -46
  213. package/.agent/skills/fastcode-search/fastcode_config.example.json +0 -17
  214. package/.agent/skills/frontend-trends-2026/SKILL.md +0 -78
  215. package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +0 -42
  216. package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +0 -32
  217. package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +0 -27
  218. package/.agent/workflows/deep-security-audit.md +0 -9
  219. package/.agent/workflows/growth-max.md +0 -9
  220. package/.agent/workflows/performance-max.md +0 -9
  221. package/.editorconfig +0 -21
  222. package/.gitattributes +0 -7
  223. package/CHANGELOG.md +0 -32
  224. package/ERRORS.md +0 -67
  225. package/action.yml +0 -32
  226. package/antigravity-ide-logo.png +0 -0
  227. package/antigravity-ide-logo.svg +0 -24
  228. package/assets/skills-bundle.json +0 -1
  229. package/cli/manifest.js +0 -524
  230. package/cli/skills/fastcode.js +0 -181
  231. package/docs/AGENT_FLOW.md +0 -608
  232. package/docs/CONTRIBUTING.md +0 -46
  233. package/docs/COPYRIGHT.md +0 -57
  234. package/docs/DEPLOYMENT.md +0 -77
  235. package/docs/GLOSSARY.md +0 -109
  236. package/docs/MASTER_GUIDE.md +0 -103
  237. package/docs/OPERATIONAL_FLOW.md +0 -147
  238. package/docs/PLAN-upgrade-core-architecture.md +0 -71
  239. package/docs/SKILLS.md +0 -610
  240. package/docs/TROUBLESHOOTING.md +0 -43
  241. package/jest.config.js +0 -8
  242. package/scripts/bump.js +0 -93
  243. package/scripts/bundle-skills.js +0 -59
  244. package/scripts/internal/automation/auto-release.js +0 -177
  245. package/scripts/internal/fractalize-skills.js +0 -89
  246. package/scripts/internal/generate-skill-definitions.js +0 -134
  247. package/scripts/internal/internal/update-docs.js +0 -115
  248. package/scripts/internal/refactor-skill-content.js +0 -127
  249. package/scripts/internal/rename-skills.js +0 -96
  250. package/scripts/internal/sync-skills.js +0 -112
  251. package/scripts/internal/update-frontmatter-names.js +0 -99
  252. package/scripts/internal/verification/audit-dna.js +0 -56
  253. package/scripts/internal/verification/audit-skills.js +0 -65
  254. package/web/src/app/docs/guide/examples/brainstorm/page.mdx +0 -91
  255. package/web/src/app/docs/guide/examples/create/page.mdx +0 -84
  256. package/web/src/app/docs/guide/examples/debugging/page.mdx +0 -83
  257. package/web/src/app/docs/guide/examples/deployment/page.mdx +0 -93
  258. package/web/src/app/docs/guide/examples/new-feature/page.mdx +0 -102
  259. package/web/src/app/docs/guide/examples/orchestration/page.mdx +0 -99
  260. package/web/src/app/docs/guide/examples/plan/page.mdx +0 -76
  261. package/web/src/app/docs/guide/examples/preview/page.mdx +0 -77
  262. package/web/src/app/docs/guide/examples/status/page.mdx +0 -78
  263. package/web/src/app/docs/guide/examples/test/page.mdx +0 -80
  264. package/web/src/app/docs/guide/examples/ui-design/page.mdx +0 -90
  265. package/web/src/components/mdx/Callout.tsx +0 -60
  266. package/web/src/components/mdx/FeatureGrid.tsx +0 -38
  267. package/web/src/components/mdx/ProTips.tsx +0 -29
  268. package/web/src/components/mdx/StepList.tsx +0 -33
  269. package/web/src/components/mdx/Terminal.tsx +0 -58
  270. package/web/src/components/mdx/index.ts +0 -5
  271. package/web/src/mdx-components.tsx +0 -98
  272. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/MANIFESTO.md +0 -0
  273. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/tactile_audit.md +0 -0
  274. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/visual_audit.md +0 -0
  275. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/presets/linear_glow.json +0 -0
  276. /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/checklists/code_review.md +0 -0
  277. /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/presets/vscode_settings.json +0 -0
  278. /package/.agent/.shared/{metrics → core/metrics}/benchmarks.json +0 -0
  279. /package/.agent/.shared/{vitals-templates → core/vitals-templates}/audit_report.md +0 -0
  280. /package/.agent/.shared/{vitals-templates → core/vitals-templates}/plan_prd.md +0 -0
  281. /package/.agent/.shared/{ai-master → technical/ai-master}/best_patterns.md +0 -0
  282. /package/.agent/.shared/{ai-master → technical/ai-master}/checklists/prompt_audit.md +0 -0
  283. /package/.agent/.shared/{ai-master → technical/ai-master}/presets/model_configs.json +0 -0
  284. /package/.agent/.shared/{api-standards → technical/api-standards}/data +0 -0
  285. /package/.agent/.shared/{api-standards → technical/api-standards}/endpoints_naming.md +0 -0
  286. /package/.agent/.shared/{api-standards → technical/api-standards}/error_codes.csv +0 -0
  287. /package/.agent/.shared/{api-standards → technical/api-standards}/pagination_sorting.md +0 -0
  288. /package/.agent/.shared/{api-standards → technical/api-standards}/response_format.json +0 -0
  289. /package/.agent/.shared/{database-master → technical/database-master}/schemas/auth_rbac.sql +0 -0
  290. /package/.agent/.shared/{database-master → technical/database-master}/schemas/cms.sql +0 -0
  291. /package/.agent/.shared/{database-master → technical/database-master}/schemas/ecommerce.sql +0 -0
  292. /package/.agent/.shared/{design-system → technical/design-system}/brand_presets.json +0 -0
  293. /package/.agent/.shared/{design-system → technical/design-system}/micro_interactions.md +0 -0
  294. /package/.agent/.shared/{i18n-master → technical/i18n-master}/vi_tech_dictionary.csv +0 -0
  295. /package/.agent/.shared/{i18n-master → technical/i18n-master}/workflows.json +0 -0
  296. /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/checklists/chaos_engineering.md +0 -0
  297. /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/presets/circuit_breaker.json +0 -0
  298. /package/.agent/.shared/{security-armor → technical/security-armor}/checklists/vuln_scan.md +0 -0
  299. /package/.agent/.shared/{security-armor → technical/security-armor}/hardening.md +0 -0
  300. /package/.agent/.shared/{security-armor → technical/security-armor}/presets/helmet_config.json +0 -0
  301. /package/.agent/.shared/{seo-master → technical/seo-master}/checklists/technical_seo.md +0 -0
  302. /package/.agent/.shared/{seo-master → technical/seo-master}/presets/json_ld_schema.json +0 -0
  303. /package/.agent/.shared/{testing-master → technical/testing-master}/checklists/pre_release.md +0 -0
  304. /package/.agent/.shared/{testing-master → technical/testing-master}/scenarios.md +0 -0
  305. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/colors.csv +0 -0
  306. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/icons.csv +0 -0
  307. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/landing.csv +0 -0
  308. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/products.csv +0 -0
  309. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/react-performance.csv +0 -0
  310. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
  311. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
  312. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
  313. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
  314. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
  315. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
  316. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
  317. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react.csv +0 -0
  318. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
  319. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
  320. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
  321. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/vue.csv +0 -0
  322. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
  323. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/web-interface.csv +0 -0
  324. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
  325. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  326. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/core.py +0 -0
  327. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/design_system.py +0 -0
  328. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/search.py +0 -0
  329. /package/.agent/.shared/{compliance → verticals/compliance}/legal_templates.md +0 -0
  330. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/edtech.md +0 -0
  331. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fintech.md +0 -0
  332. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fnb_restaurant.md +0 -0
  333. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/freelance_marketplace.md +0 -0
  334. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/healthcare.md +0 -0
  335. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/hospitality_tourism.md +0 -0
  336. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/logistics.md +0 -0
  337. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/marketing_automation.md +0 -0
  338. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/personal_branding.md +0 -0
  339. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/real_estate.md +0 -0
  340. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/retail_ecommerce.md +0 -0
  341. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/standard-pro-agents.md +0 -0
  342. /package/.agent/.shared/{infra-blueprints → verticals/infra-blueprints}/deployment_specs.md +0 -0
  343. /package/.agent/skills/ai-engineer/{resources → sub-skills}/ai_infra_stack.md +0 -0
  344. /package/.agent/skills/cloud-architect-master/{resources → sub-skills}/cost_optimization_checklist.md +0 -0
  345. /package/.agent/skills/cro-expert-kit/{resources → sub-skills}/psychological_triggers.md +0 -0
  346. /package/.agent/skills/database-migration/{resources → sub-skills}/zero_downtime_strategy.md +0 -0
  347. /package/.agent/skills/deployment-engineer/{resources → sub-skills}/k8s_best_practices.md +0 -0
  348. /package/.agent/skills/git-collaboration-master/{resources → sub-skills}/pr_template.md +0 -0
  349. /package/.agent/skills/incident-responder/{resources → sub-skills}/incident_severity_levels.md +0 -0
  350. /package/.agent/skills/legacy-modernizer/{resources → sub-skills}/strangler_fig_pattern.md +0 -0
  351. /package/.agent/skills/penetration-tester-master/{resources → sub-skills}/owasp_top_10_2025.md +0 -0
  352. /package/.agent/skills/production-code-audit/{resources → sub-skills}/solid_principles_cheat_sheet.md +0 -0
  353. /package/.agent/skills/seo-expert-kit/{resources → sub-skills}/technical_seo_checklist.md +0 -0
  354. /package/.agent/skills/tdd-master-workflow/{resources → sub-skills}/unit_test_naming_convention.md +0 -0
  355. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/charts.csv +0 -0
  356. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/prompts.csv +0 -0
  357. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/styles.csv +0 -0
  358. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/typography.csv +0 -0
  359. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
@@ -0,0 +1,75 @@
1
+ const { chromium } = require('playwright');
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ /**
6
+ * 🤖 Browser Subagent Core
7
+ * Module gốc phục vụ cho hệ thống Antigravity Agent-First
8
+ * Hỗ trợ giao tiếp trực tiếp với DOM và Vision.
9
+ */
10
+ class BrowserSubagent {
11
+ constructor() {
12
+ this.browser = null;
13
+ this.page = null;
14
+ }
15
+
16
+ async init(headless = true) {
17
+ if (!this.browser) {
18
+ // Sử dụng Chromium core từ Playwright cho Sandbox mặc định
19
+ this.browser = await chromium.launch({ headless });
20
+ this.page = await this.browser.newPage();
21
+ // Thiết lập tỷ lệ màn hình tiêu chuẩn cho Vision check
22
+ await this.page.setViewportSize({ width: 1280, height: 800 });
23
+ }
24
+ }
25
+
26
+ async goto(url) {
27
+ await this.init();
28
+ const response = await this.page.goto(url, { waitUntil: 'networkidle' });
29
+ return {
30
+ status: response.status(),
31
+ url: this.page.url()
32
+ };
33
+ }
34
+
35
+ async readDOM(selector = 'body') {
36
+ if (!this.page) throw new Error('Trình duyệt chưa được Agent khởi tạo. Gọi goto() trước.');
37
+ // Rút trích DOM thành văn bản thuần, lược bỏ các tag thừa
38
+ const domContent = await this.page.$eval(selector, el => el.innerText);
39
+ return domContent.trim();
40
+ }
41
+
42
+ async type(selector, text) {
43
+ if (!this.page) throw new Error('Trình duyệt chưa được khởi tạo.');
44
+ await this.page.fill(selector, text);
45
+ return `✅ Đã nhập text vào [${selector}]`;
46
+ }
47
+
48
+ async click(selector) {
49
+ if (!this.page) throw new Error('Trình duyệt chưa được khởi tạo.');
50
+ await this.page.click(selector);
51
+ await this.page.waitForLoadState('networkidle');
52
+ return `✅ Đã tương tác click vào [${selector}]`;
53
+ }
54
+
55
+ async captureScreenshot(name = 'vision-check') {
56
+ if (!this.page) throw new Error('Trình duyệt chưa được khởi tạo.');
57
+
58
+ const outDir = path.join(process.cwd(), '.agent', 'vision');
59
+ if (!fs.existsSync(outDir)) fs.mkdirSync(outDir, { recursive: true });
60
+
61
+ const filePath = path.join(outDir, `${name}-${Date.now()}.png`);
62
+ await this.page.screenshot({ path: filePath, fullPage: true });
63
+ return filePath;
64
+ }
65
+
66
+ async close() {
67
+ if (this.browser) {
68
+ await this.browser.close();
69
+ this.browser = null;
70
+ this.page = null;
71
+ }
72
+ }
73
+ }
74
+
75
+ module.exports = { BrowserSubagent };
@@ -0,0 +1,48 @@
1
+ const chalk = require('chalk');
2
+ const boxen = require('boxen');
3
+
4
+ async function launchManagerView(projectDir) {
5
+ console.clear();
6
+
7
+ const title = chalk.cyan.bold('🌌 Antigravity IDE • Manager View (Agent-First Mode)');
8
+
9
+ // Giả lập trạng thái các Agent đang hoạt động
10
+ const agents = [
11
+ { name: 'orchestrator', status: chalk.green('IDLE'), task: '-' },
12
+ { name: 'frontend-specialist', status: chalk.blue('WORKING'), task: 'TSK-001: Lên khung Dashboard' },
13
+ { name: 'browser-subagent', status: chalk.yellow('WAITING'), task: 'DOM Analysis (Pending)' },
14
+ { name: 'security-auditor', status: chalk.green('IDLE'), task: '-' }
15
+ ];
16
+
17
+ const render = () => {
18
+ console.clear();
19
+ console.log(boxen(title, { padding: 1, borderColor: 'cyan', borderStyle: 'double', textAlignment: 'center', width: 70 }));
20
+ console.log('\n' + chalk.bold.white('👥 Active Agent Swarm:\n'));
21
+
22
+ agents.forEach(a => {
23
+ console.log(` [${a.status.padEnd(18)}] ${chalk.bold(a.name.padEnd(20))} | ${chalk.gray(a.task)}`);
24
+ });
25
+
26
+ console.log('\n' + chalk.gray('──────────────────────────────────────────────────────────────────────'));
27
+ console.log(chalk.gray(' Press Ctrl+C to exit Manager View'));
28
+ };
29
+
30
+ render();
31
+
32
+ // Vòng lặp giả lập realtime
33
+ const interval = setInterval(() => {
34
+ const statuses = [chalk.green('IDLE'), chalk.blue('WORKING'), chalk.yellow('WAITING'), chalk.magenta('THINKING')];
35
+ agents[0].status = statuses[Math.floor(Math.random() * statuses.length)];
36
+ agents[1].task = 'TSK-001: Tích hợp cli-table3';
37
+ render();
38
+ }, 2000);
39
+
40
+ // Xử lý luồng dừng
41
+ process.on('SIGINT', () => {
42
+ clearInterval(interval);
43
+ console.log(chalk.yellow('\nManager View disconnected.'));
44
+ process.exit(0);
45
+ });
46
+ }
47
+
48
+ module.exports = { launchManagerView };
@@ -1,55 +1,49 @@
1
1
  # 🕵️ Hướng Dẫn Về "Hệ Thống Agent" (Digital Employees)
2
2
 
3
- > **Antigravity** vận hành như một công ty phần mềm thu nhỏ, với **42 nhân viên số (AI Agents)** chuyên trách từng mảng.
3
+ > **Antigravity** không chỉ công cụ, mà là một **Hệ điều hành Nhân sự AI**. Mọi Agent đều đã được nâng cấp lên chuẩn **Senior Principal Personnel** với khả năng phối hợp hệ sinh thái và kỷ luật vận hành tuyệt đối.
4
4
 
5
5
  ---
6
6
 
7
7
  ## 1. Biệt Đội Chuyên Gia (The Squad)
8
8
 
9
- Dưới đây là danh sách các nhân viên ảo chủ chốt sẽ phục vụ bạn:
10
-
11
- ### 🏗️ Ban Kiến Trúc & Kế Hoạch
12
- * **`project-planner`**:
13
- * *Vai trò*: PM (Product Manager).
14
- * *Nhiệm vụ*: Lên kế hoạch, chia nhỏ đầu việc, viết PRD.
15
- * *Khi nào gọi*: Khi dùng `/plan`.
16
- * **`orchestrator`**:
17
- * *Vai trò*: Tech Lead / Thư ký.
18
- * *Nhiệm vụ*: Điều phối các agent khác, tổng hợp báo cáo.
19
- * *Khi nào gọi*: Khi dùng `/orchestrate`.
20
-
21
- ### 💻 Ban Kỹ Thuật (Engineer)
22
- * **`frontend-specialist`**:
23
- * *Vai trò*: Senior Frontend Dev.
24
- * *Kỹ năng*: React, Vue, CSS Animation, Responsive.
25
- * **`backend-specialist`**:
26
- * *Vai trò*: Senior Backend Dev.
27
- * *Kỹ năng*: API Design, Database, Auth, Logic.
28
- * **`database-architect`**:
29
- * *Vai trò*: DBA (Database Administrator).
30
- * *Nhiệm vụ*: Thiết kế Schema, tối ưu câu Query.
31
- * **`mobile-developer`**:
32
- * *Vai trò*: Mobile Dev.
33
- * *Task*: Code iOS/Android (React Native/Flutter).
34
-
35
- ### 🛡️ Ban Chất Lượng & Vận Hành
36
- * **`security-auditor`**:
37
- * *Vai trò*: Chuyên gia bảo mật.
38
- * *Nhiệm vụ*: Tìm lỗ hổng, soát key lộ.
39
- * **`test-engineer`**:
40
- * *Vai trò*: QA/QC.
41
- * *Nhiệm vụ*: Viết test case, chạy kiểm thử tự động.
42
- * **`devops-engineer`**:
43
- * *Vai trò*: SysAdmin.
44
- * *Nhiệm vụ*: Cấu hình Server, Docker, Deploy.
45
-
46
- ### 🎨 Ban Sáng Tạo & Growth
47
- * **`ui-ux-designer`**:
48
- * *Vai trò*: Designer.
49
- * *Nhiệm vụ*: Phối màu, chọn font, thiết kế trải nghiệm.
50
- * **`seo-specialist`**:
51
- * *Vai trò*: SEO Marketing.
52
- * *Nhiệm vụ*: Tối ưu từ khóa, đẩy Top Google.
9
+ Dưới đây là danh sách các nhân viên ảo sẽ phục vụ bạn:
10
+
11
+ ### 1. Nhóm Kỹ Thuật Cốt Lõi (Engineering Core)
12
+ * **`backend-specialist`**: Chuyên gia xây dựng API, System Architecture và xử lý Logic Server.
13
+ * **`frontend-specialist`**: Chuyên gia UI/UX, React/Next.js và tối ưu trải nghiệm người dùng.
14
+ * **`database-architect`**: Thiết kế Schema, tối ưu truy vấn SQL/NoSQL và Data Modeling.
15
+ * **`mobile-developer`**: Phát triển ứng dụng iOS/Android đa nền tảng (React Native/Flutter).
16
+ * **`devops-engineer`**: Quản lý Docker, CI/CD Pipeline, Kubernetes và hạ tầng Cloud.
17
+ * **`cloud-architect`**: Thiết kế kiến trúc đám mây (AWS/Azure), Serverless và Scalability.
18
+ * **`performance-optimizer`**: Chuyên gia tối ưu tốc độ tải trang, giảm độ trễ và Memory Leak.
19
+
20
+ ### 2. Nhóm Sản Phẩm & Chiến Lược (Product & Strategy)
21
+ * **`orchestrator`**: Tổng chỉ huy, điều phối các Agent khác phối hợp nhịp nhàng.
22
+ * **`product-manager`**: Quản lý lộ trình sản phẩm (Roadmap), ưu tiên tính năng.
23
+ * **`product-owner`**: Đại diện tiếng nói người dùng, định nghĩa yêu cầu nghiệp vụ (User Stories).
24
+ * **`project-planner`**: Lập kế hoạch thực thi, chia nhỏ task và ước lượng thời gian.
25
+
26
+ ### 3. Nhóm Chất Lượng & Bảo Mật (Quality & Security)
27
+ * **`security-auditor`**: soát nguồn, phát hiện lỗ hổng bảo mật (OWASP) và tuân thủ đạo đức AI (Fabric).
28
+ * **`penetration-tester`**: Tấn công thử nghiệm (Red Team) để tìm điểm yếu hệ thống.
29
+ * **`quality-inspector`**: Kiểm tra tiêu chuẩn code (Linting, Convention) và độ ổn định.
30
+ * **`test-engineer`**: Viết chạy các kịch bản kiểm thử (Unit/Integration Test).
31
+ * **`qa-automation-engineer`**: Tự động viết và chạy kịch bản kiểm thử E2E (Playwright MCP).
32
+
33
+ ### 4. Nhóm Hỗ Trợ & Phân Tích (Support & Analysis)
34
+ * **`browser-subagent`**: Chuyên gia trinh sát mạng (Recon), tự động bật trình duyệt cào dữ liệu, xử lý DOM và chụp ảnh Vision.
35
+ * **`documentation-writer`**: Soạn thảo tài liệu kỹ thuật, API Docs và Hướng dẫn sử dụng.
36
+ * **`seo-specialist`**: Tối ưu hóa công cụ tìm kiếm, Meta tags và cấu trúc nội dung.
37
+ * **`game-developer`**: Chuyên gia phát triển Logic Game, Physics và Đồ họa.
38
+ * **`explorer-agent`**: Thám hiểm các công nghệ mới, tìm kiếm giải pháp sáng tạo.
39
+ * **`code-archaeologist`**: "Nhà khảo cổ" chuyên đọc và giải thích các mã nguồn cũ (Legacy Code).
40
+ * **`debugger`**: Thám tử điều tra lỗi, phân tích Log và tìm nguyên nhân gốc rễ.
41
+
42
+ ### 🤝 Giao thức Phối hợp (Ecosystem Protocol)
43
+ Mỗi Agent hiện nay không làm việc cô lập. Họ tuân thủ:
44
+ - **Handoff**: Chuyển giao ngữ cảnh (API docs, PRD, Test logs) cho Agent tiếp theo.
45
+ - **Socratic Gatekeeping**: Biết dừng lại hỏi ý kiến người dùng hoặc đồng nghiệp khi thấy rủi ro.
46
+ - **DNA Linkage**: Luôn kiểm tra `GEMINI.md` và `MASTER_GUIDE.md` trước khi hành động.
53
47
 
54
48
  ---
55
49
 
@@ -1,6 +1,9 @@
1
1
  # Hướng Dẫn Đóng Góp (Contributing)
2
2
 
3
- Cảm ơn bạn đã quan tâm đến dự án Antigravity IDE! Chúng tôi luôn chào đón mọi sự đóng góp từ cộng đồng.
3
+ Cảm ơn bạn đã quan tâm đến dự án AntiGravity IDE! Chúng tôi luôn chào đón mọi sự đóng góp từ cộng đồng để cùng xây dựng một hệ sinh thái mã nguồn mở vững mạnh.
4
+
5
+ > [!NOTE]
6
+ > Khi đóng góp, vui lòng tôn trọng bản quyền và các nguồn tham khảo (References) chính của dự án.
4
7
 
5
8
  ## 🤝 Quy Tắc Ứng Xử
6
9
  Khi tham gia dự án, vui lòng giữ thái độ tôn trọng, lịch sự và chuyên nghiệp.
@@ -26,12 +29,18 @@ Khi tham gia dự án, vui lòng giữ thái độ tôn trọng, lịch sự và
26
29
  - **Kiểm thử**: Đảm bảo chạy `npm test` thành công.
27
30
  - **Lint Code**: Chạy `npm run lint` để code sạch đẹp.
28
31
 
32
+ ### 4. Quy trình đăng ký Skill/Workflow mới
33
+ Để một Skill hoặc Workflow mới xuất hiện trong Setup Wizard, bạn cần:
34
+ 1. **Skill**: Thêm định dạng vào `cli/logic/skill-definitions.js`.
35
+ 2. **Workflow**: Thêm tên vào `cli/logic/workflow-manager.js`.
36
+ 3. **Lựa chọn (Scale)**: Cấu hình quy mô xuất hiện (Instant/SME/Creative) trong `cli/logic/manifest-manager.js`.
37
+
29
38
  ## 🛠️ Cài Đặt Môi Trường Dev
30
39
 
31
40
  1. Clone fork của bạn:
32
41
  ```bash
33
- git clone https://github.com/your-username/google-antigravity.git
34
- cd google-antigravity
42
+ git clone https://github.com/your-username/antigravity-ide.git
43
+ cd antigravity-ide
35
44
  ```
36
45
  2. Cài đặt thư viện:
37
46
  ```bash
@@ -1,6 +1,6 @@
1
1
  # Using Antigravity IDE with Google Gemini
2
2
 
3
- **All 550+ skills are fully compatible with Google Gemini AI!**
3
+ **All 72 Master Skills (600+ AI Patterns) are fully compatible with Google Gemini AI!**
4
4
 
5
5
  ## Why Antigravity IDE + Gemini?
6
6
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  | Feature | Benefit for Gemini |
10
10
  |---------|-------------------|
11
- | **550+ Skills** | Instant expertise in 8 domains |
11
+ | **72 Master Skills** | Instant expertise in 8 domains (Standard v4.0.8) |
12
12
  | **Universal Format** | No vendor lock-in, works with any Gemini model |
13
13
  | **Large Context** | Gemini 1.5 Pro (2M tokens) loads multiple skills easily |
14
14
  | **Multimodal Support** | Skills cover text, vision, audio - all Gemini capabilities |
@@ -108,7 +108,7 @@ If a workflow/skill is found in Global, use it as the default.
108
108
  ## 📊 Skill Categories Breakdown
109
109
 
110
110
  ```
111
- Total: 550+ skills across 8 categories
111
+ Total: 27 Master Skills (600+ capabilities) across 8 categories
112
112
 
113
113
  Development (180+ skills)
114
114
  ├── Frontend (React, Next.js, Vue, Svelte)
@@ -187,7 +187,7 @@ Tools (10+ skills)
187
187
  **Option 1: Load All (Gemini Pro)**
188
188
  ```javascript
189
189
  // Gemini 1.5 Pro has 2M token context
190
- // Can load ALL 550 skills!
190
+ // Can load multiple Master Skills!
191
191
  const allSkills = loadAllSkills(".agent/skills");
192
192
  ```
193
193
 
@@ -259,7 +259,7 @@ const skills = [
259
259
  ## 📚 Resources
260
260
 
261
261
  - **All Skills**: See [SKILLS.md](./SKILLS.md)
262
- - **Skill Source**: [antigravity-awesome-skills](https://github.com/Dokhacgiakhoa/google-antigravity)
262
+ - **Skill Source**: [antigravity-awesome-skills](https://github.com/Dokhacgiakhoa/antigravity-ide)
263
263
  - **Gemini Docs**: [Google AI Studio](https://ai.google.dev/)
264
264
  - **Examples**: Check `/lab` directory
265
265
 
@@ -291,4 +291,4 @@ console.log(result.response.text());
291
291
 
292
292
  ---
293
293
 
294
- **Ready to build with Gemini + 550 skills? Let's go! 🚀**
294
+ **Ready to build with Gemini + 27 Master Skills? Let's go! 🚀**
@@ -12,21 +12,33 @@ Hãy dùng các từ khóa này để giao tiếp chính xác với AI.
12
12
  | :--- | :--- | :--- |
13
13
  | `/audit` | **Kiểm toán chất lượng** | Trước khi bàn giao, cần rà soát lỗi bảo mật/hiệu năng. |
14
14
  | `/brainstorm` | **Bão não ý tưởng** | Bí ý tưởng, cần AI gợi ý giải pháp/kiến trúc. |
15
- | `/create` | **Khởi tạo dự án** | Bắt đầu một dự án mới từ con số 0. |
16
- | `/debug` | **Gỡ lỗi** | Khi code chạy sai, quăng log lỗi cho AI phân tích. |
17
- | `/deploy` | **Triển khai** | Đóng gói và đẩy ứng dụng lên Server/Cloud. |
15
+ | `/create` | **Khởi tạo tính năng** | Xây dựng module mới (FE + BE + DB). |
16
+ | `/debug` | **Gỡ lỗi** | Phân tích log lỗi tìm nguyên nhân. |
17
+ | `/deploy` | **Triển khai** | Đẩy ứng dụng lên Server/Cloud. |
18
18
  | `/document` | **Viết tài liệu** | Tự động viết README, API Docs từ code. |
19
- | `/enhance` | **Nâng cấp** | Muốn sửa UI đẹp hơn, hoặc tối ưu code cũ. |
20
- | `/monitor` | **Giám sát** | Cài đặt công cụ theo dõi Server/Logs. |
21
- | `/onboard` | **Dẫn nhập** | Tạo tài liệu hướng dẫn cho thành viên mới (Newbie). |
22
- | `/orchestrate` | **Điều phối** | Gọi "Hội đồng chuyên gia" giải quyết bài toán lớn. |
23
- | `/plan` | **Lập kế hoạch** | Phân tích yêu cầu -> Ra file `implementation_plan.md`. |
24
- | `/preview` | **Xem trước** | Chạy thử web/app để xem giao diện. |
25
- | `/security` | **Quét bảo mật** | Kiểm tra lỗ hổng chuyên sâu (Penetration Test). |
26
- | `/seo` | **Tối ưu tìm kiếm** | Giúp web lên Top Google (Meta tags, Sitemap). |
27
- | `/status` | **Trạng thái** | Xem báo cáo tiến độ dự án. |
28
- | `/test` | **Kiểm thử** | Viết và chạy Unit Test/E2E Test. |
29
- | `/ui-ux-pro-max`| **Giao diện Đỉnh cao**| Thiết kế UI đẹp như tranh vẽ (Magic UI/Linear). |
19
+ | `/enhance` | **Nâng cấp** | Thay đổi UI hoặc tối ưu logic nhỏ. |
20
+ | `/monitor` | **Giám sát** | Setup công cụ theo dõi hệ thống. |
21
+ | `/onboard` | **Dẫn nhập** | Hướng dẫn cho thành viên mới gia nhập team. |
22
+ | `/orchestrate` | **Điều phối** | Phối hợp nhiều Agent cho task lớn. |
23
+ | `/plan` | **Lập kế hoạch** | Phân tích yêu cầu thiết kế giải pháp. |
24
+ | `/preview` | **Xem trước** | Chạy thử sản phẩm trong sandbox. |
25
+ | `/security` | **Quét bảo mật** | Kiểm tra lỗ hổng chuyên sâu. |
26
+ | `/seo` | **Tối ưu tìm kiếm** | Đưa web lên Top Search Google/AI. |
27
+ | `/status` | **Trạng thái** | Dashboard tiến độ thực hiện task. |
28
+ | `/test` | **Kiểm thử** | Chạy Unit Test, E2E Test. |
29
+ | `/ui-ux-pro-max`| **Giao diện Đỉnh cao**| Thiết kế UI Premium (Magic UI). |
30
+ | `/update-docs` | **Đồng bộ tài liệu** | Tự động cập nhật /docs sau khi thay đổi code. |
31
+ | `/release-version`| **Phát hành bản mới**| Chốt phiên bản, update stats và chuẩn bị release. |
32
+ | `/api` | **Master API** | Thiết kế chuẩn OpenAPI 3.1. |
33
+ | `/realtime` | **Thời gian thực** | Socket.io, WebRTC, SSE. |
34
+ | `/compliance` | **Pháp lý** | Kiểm tra chuẩn GDPR/HIPAA. |
35
+ | `/mobile` | **Di động** | Phát triển Native App & Optimization. |
36
+ | `/portfolio` | **Trang cá nhân** | Xây dựng Landing Page cá nhân. |
37
+ | `/blog` | **Hệ thống Blog** | Xây dựng module tin tức. |
38
+ | `/visually` | **Trực quan hóa** | Vẽ biểu đồ, sơ đồ luồng. |
39
+ | `/explain` | **Giải thích code** | Tìm hiểu logic sâu của từng module. |
40
+ | `/update` | **Cập nhật Agent** | Tải bộ não mới nhất cho Agent. |
41
+ | `/log-error` | **Nhật ký lỗi** | Tự động ghi lỗi vào ERRORS.md. |
30
42
 
31
43
  ---
32
44
 
@@ -47,23 +59,30 @@ Hãy dùng các từ khóa này để giao tiếp chính xác với AI.
47
59
  ---
48
60
 
49
61
  ## 3. Agents (Những nhân cách AI)
50
- *AI thể tự đóng các vai này trong quá trình làm việc, hoặc bạn yêu cầu.*
51
-
52
- * **Orchestrator**: Nhạc trưởng, tổng chỉ huy.
53
- * **Project Planner**: Người lập kế hoạch, chia việc.
54
- * **Backend Specialist**: Chuyên Back-end.
55
- * **Frontend Specialist**: Chuyên Front-end.
56
- * **Mobile Developer**: Chuyên App (iOS/Android).
57
- * **Game Developer**: Chuyên làm Game.
58
- * **Cloud Architect**: Kiến trúc Cloud (AWS/GCP).
62
+ *Mỗi dự án v4.0 22 vai diễn chuyên gia:*
63
+
64
+ * **Orchestrator**: Nhạc trưởng điều phối đa agent.
65
+ * **Project Planner**: Lập kế hoạch & quản lý Backlog.
66
+ * **Product Manager**: Quản lý sản phẩm & lộ trình.
67
+ * **Product Owner**: Đại diện giá trị nghiệp vụ.
68
+ * **Backend Specialist**: Lập trình viên phía máy chủ.
69
+ * **Frontend Specialist**: Kiến trúc sư giao diện.
70
+ * **Mobile Developer**: Phát triển ứng dụng di động.
71
+ * **Game Developer**: Phát triển Game & Logic đồ họa.
72
+ * **Cloud Architect**: Kiến trúc sư hạ tầng đám mây.
73
+ * **DevOps Engineer**: Kỹ sư vận hành & CI/CD.
74
+ * **Database Architect**: Chuyên gia thiết kế dữ liệu.
75
+ * **Security Auditor**: Chuyên gia kiểm tra bảo mật.
76
+ * **Penetration Tester**: Hacker mũ trắng (Pentest).
77
+ * **Quality Inspector**: Giám sát tiêu chuẩn chất lượng.
78
+ * **QA Automation Engineer**: Kỹ sư kiểm thử tự động.
79
+ * **Test Engineer**: Kỹ sư kiểm tra tính năng.
59
80
  * **Performance Optimizer**: Chuyên gia tối ưu tốc độ.
60
- * **Security Auditor**: Chuyên gia soát bảo mật.
61
- * **SEO Specialist**: Chuyên gia Marketing/SEO.
62
- * **Quality Inspector**: Người kiểm tra chất lượng (QA).
63
- * **Documentation Writer**: Thư viết tài liệu.
64
- * **Test Engineer**: Kỹ kiểm thử.
65
- * **Debugger**: Thám tử săn lỗi.
66
- * **Codebase Expert**: Cuốn từ điển sống của dự án.
81
+ * **SEO Specialist**: Chuyên gia tối ưu tìm kiếm.
82
+ * **Documentation Writer**: Chuyên gia viết tài liệu.
83
+ * **Explorer Agent**: Agent nghiên cứu & thám hiểm code.
84
+ * **Code Archaeologist**: Chuyên gia phân tích code cũ.
85
+ * **Debugger**: Thám tử săn lỗi (Sherlock Holmes).
67
86
 
68
87
  ---
69
88
 
@@ -16,7 +16,7 @@ Khi user bắt đầu một phiên làm việc:
16
16
  * *Luật lệ*: Tôi biết những gì ĐƯỢC làm và CẤM làm (ví dụ: cấm xóa DB).
17
17
  2. **Nạp Kỹ năng (Skill Injection)**:
18
18
  * Dựa vào yêu cầu user (ví dụ: "Code React"), tôi tự động vào kho `.agent/skills` để lôi cổ thằng `nextjs-react-expert` ra dùng.
19
- * Tôi không nạp hết 550 skill (tràn bộ nhớ), chỉ nạp cái cần thiết (Lazy Loading).
19
+ * Tôi không nạp hết 72 Master Skills (tràn bộ nhớ), chỉ nạp cái cần thiết (Lazy Loading).
20
20
 
21
21
  ## 2. Quy Trình Xử Lý Một Yêu Cầu (The Thinking Process)
22
22
 
@@ -4,6 +4,15 @@
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
+
7
16
  ## 🎯 Case Study 1: Sàn Thương mại Điện tử (Web Fullstack) 🛒
8
17
  **Độ khó**: Cao | **Thời gian**: 2 tuần quy đổi | **Trọng tâm**: Database, API, State Management.
9
18
 
@@ -145,3 +154,9 @@
145
154
  * Vòng 2: "Thêm CSS cho đẹp."
146
155
  * Vòng 3: "Tối ưu code cho gọn."
147
156
  * *(Đừ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.*
@@ -3,13 +3,16 @@
3
3
  ## ✅ Published Successfully!
4
4
 
5
5
  **Package:** `antigravity-ide`
6
- **Version:** `4.2.1`
7
- **Published:** 2026-02-16
6
+ **Version:** `4.0.8`
7
+ **Published:** 2026-02-08
8
8
  **Link:** https://www.npmjs.com/package/antigravity-ide
9
9
 
10
10
  ---
11
11
 
12
- ## Pre-publish Checklist
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)
13
16
 
14
17
  All steps completed:
15
18
 
@@ -176,3 +179,28 @@ npm owner add <username> antigravity-ide
176
179
  ---
177
180
 
178
181
  **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,60 +1,96 @@
1
- # 📜 Hướng Dẫn Sử Dụng "Luật Hệ Thống" (Rules System)
1
+ # 📜 Hướng Dẫn Sử Dụng "Luật Hệ Thống" (Rules System) v4.0.8
2
2
 
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.
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.
4
4
 
5
5
  ---
6
6
 
7
- ## 1. Phân Loại Rules
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
8
40
 
9
41
  ### 🤖 Nhóm Tự Động (Auto-Active)
10
42
  *Luôn chạy ngầm, bạn không cần gọi.*
11
43
 
12
- | Rule | Kích hoạt khi | Chức năng |
44
+ | Rule | Chức năng | Ngôn ngữ |
13
45
  | :--- | :--- | :--- |
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. |
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 |
18
57
 
19
58
  ### 🛠️ Nhóm Theo Yêu Cầu (On-Demand / @Tags)
20
59
  *Chỉ chạy khi có ngữ cảnh phù hợp hoặc được bạn gọi đích danh.*
21
60
 
22
61
  | Tag Gọi | Tên Rule | Chức năng |
23
62
  | :--- | :--- | :--- |
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. |
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. |
28
67
 
29
68
  ---
30
69
 
31
- ## 2. Cách Sử Dụng Semantic Tags (@)
70
+ ## 3. Cách Sử Dụng Semantic Tags (@)
32
71
 
33
72
  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ể.
34
73
 
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)*
74
+ **Ví dụ thực tế:**
40
75
 
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)*
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)*
44
79
 
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)*
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)*
48
83
 
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)*
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)*
52
87
 
53
88
  ---
54
89
 
55
- ## 3. Tại sao cần chia ra như vậy?
90
+ ## 4. Tại sao cần chia ra như vậy?
56
91
 
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 đó.
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.
59
95
 
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 đó!
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.