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.
- package/.agent/.shared/{design-philosophy → core/design-philosophy}/README.md +12 -1
- package/.agent/.shared/{ai-master → technical/ai-master}/README.md +12 -1
- package/.agent/.shared/{api-standards → technical/api-standards}/README.md +12 -1
- package/.agent/.shared/{database-master → technical/database-master}/README.md +12 -2
- package/.agent/.shared/{seo-master → technical/seo-master}/README.md +12 -1
- package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/README.md +12 -1
- package/.agent/ARCHITECTURE.md +16 -10
- package/.agent/ARCHITECTURE.vi.md +8 -8
- package/{GEMINI.md → .agent/GEMINI.md} +4 -5
- package/.agent/RESOURCES.md +6 -1
- package/.agent/agents/backend-specialist.md +154 -19
- package/.agent/agents/browser-subagent.md +45 -0
- package/.agent/agents/cloud-architect.md +108 -189
- package/.agent/agents/debugger.md +83 -182
- package/.agent/agents/documentation-writer.md +125 -72
- package/.agent/agents/frontend-specialist.md +40 -7
- package/.agent/agents/game-developer.md +111 -116
- package/.agent/agents/mobile-developer.md +108 -321
- package/.agent/agents/orchestrator.md +106 -366
- package/.agent/agents/performance-optimizer.md +105 -136
- package/.agent/agents/project-planner.md +132 -39
- package/.agent/agents/quality-inspector.md +136 -32
- package/.agent/agents/security-auditor.md +138 -15
- package/.agent/agents/seo-specialist.md +118 -72
- package/.agent/agents/test-engineer.md +142 -11
- package/.agent/brain/task.md +16 -0
- package/.agent/rules/GEMINI.md +63 -31
- package/.agent/rules/code-quality.md +34 -3
- package/.agent/rules/frontend.md +3 -3
- package/.agent/rules/strict-protocol.md +44 -3
- package/.agent/rules/system-update.md +56 -3
- package/.agent/skills/agent-backend-patterns/SKILL.md +16 -3
- package/.agent/skills/ai-engineer/SKILL.md +29 -16
- package/.agent/skills/api-documenter/SKILL.md +4 -4
- package/.agent/skills/app-builder/SKILL.md +1 -1
- package/.agent/skills/app-builder/tech-stack.md +2 -2
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
- package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/brand-guidelines-anthropic/SKILL.md +26 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +5 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +14 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +7 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +7 -0
- package/.agent/skills/cloud-architect-master/SKILL.md +9 -4
- package/.agent/skills/cro-expert-kit/SKILL.md +9 -4
- package/.agent/skills/database-migration/SKILL.md +9 -3
- package/.agent/skills/deployment-engineer/SKILL.md +9 -3
- package/.agent/skills/frontend-design/ux-psychology.md +10 -585
- package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
- package/.agent/skills/game-development/2d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/3d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/SKILL.md +18 -149
- package/.agent/skills/game-development/game-art/SKILL.md +4 -2
- package/.agent/skills/game-development/game-audio/SKILL.md +4 -2
- package/.agent/skills/game-development/game-design/SKILL.md +4 -2
- package/.agent/skills/game-development/mobile-games/SKILL.md +4 -2
- package/.agent/skills/game-development/multiplayer/SKILL.md +4 -2
- package/.agent/skills/game-development/pc-games/SKILL.md +4 -2
- package/.agent/skills/game-development/vr-ar/SKILL.md +4 -2
- package/.agent/skills/game-development/web-games/SKILL.md +4 -2
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -136
- package/.agent/skills/git-collaboration-master/SKILL.md +9 -4
- package/.agent/skills/i18n-localization/SKILL.md +10 -118
- package/.agent/skills/incident-responder/SKILL.md +9 -6
- package/.agent/skills/internal-comms-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/internal-comms-anthropic/SKILL.md +33 -0
- package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +47 -0
- package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +65 -0
- package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +30 -0
- package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +16 -0
- package/.agent/skills/last30days/tests/__init__.py +1 -0
- package/.agent/skills/last30days/tests/test_cache.py +59 -0
- package/.agent/skills/last30days/tests/test_dates.py +114 -0
- package/.agent/skills/last30days/tests/test_dedupe.py +111 -0
- package/.agent/skills/last30days/tests/test_models.py +135 -0
- package/.agent/skills/last30days/tests/test_normalize.py +138 -0
- package/.agent/skills/last30days/tests/test_render.py +116 -0
- package/.agent/skills/last30days/tests/test_score.py +168 -0
- package/.agent/skills/legacy-modernizer/SKILL.md +9 -4
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +2 -14
- package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +57 -0
- package/.agent/skills/loki-mode/.github/workflows/claude.yml +50 -0
- package/.agent/skills/loki-mode/.github/workflows/release.yml +128 -0
- package/.agent/skills/loki-mode/tests/run-all-tests.sh +78 -0
- package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +348 -0
- package/.agent/skills/loki-mode/tests/test-bootstrap.sh +196 -0
- package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +389 -0
- package/.agent/skills/loki-mode/tests/test-state-recovery.sh +393 -0
- package/.agent/skills/loki-mode/tests/test-task-queue.sh +396 -0
- package/.agent/skills/loki-mode/tests/test-wrapper.sh +314 -0
- package/.agent/skills/mcp-builder/SKILL.md +21 -164
- package/.agent/skills/mobile-design/SKILL.md +21 -369
- package/.agent/skills/mobile-design/mobile-performance.md +1 -1
- package/.agent/skills/modern-web-architect/SKILL.md +12 -6
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
- package/.agent/skills/penetration-tester-master/SKILL.md +9 -4
- package/.agent/skills/performance-engineer/SKILL.md +4 -5
- package/.agent/skills/production-code-audit/SKILL.md +6 -0
- package/.agent/skills/rust-pro/SKILL.md +0 -177
- package/.agent/skills/security-auditor/SKILL.md +35 -27
- package/.agent/skills/seo-expert-kit/SKILL.md +9 -4
- package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/.agent/skills/tdd-master-workflow/SKILL.md +9 -3
- package/.agent/workflows/audit.md +30 -16
- package/.agent/workflows/brainstorm.md +33 -96
- package/.agent/workflows/create.md +37 -45
- package/.agent/workflows/debug.md +45 -84
- package/.agent/workflows/deploy.md +33 -158
- package/.agent/workflows/document.md +38 -15
- package/.agent/workflows/enhance.md +33 -48
- package/.agent/workflows/monitor.md +35 -14
- package/.agent/workflows/orchestrate.md +33 -218
- package/.agent/workflows/plan.md +39 -70
- package/.agent/workflows/security.md +35 -14
- package/.agent/workflows/seo.md +39 -16
- package/.agent/workflows/status.md +33 -72
- package/.agent/workflows/test.md +30 -127
- package/.agent/workflows/ui-ux-pro-max.md +24 -283
- package/LICENSE +22 -8
- package/README.md +105 -72
- package/README.vi.md +93 -110
- package/cli/create.js +275 -413
- package/cli/index.js +36 -24
- package/cli/lib/auto-update.js +14 -21
- package/cli/logic/product-skills.js +58 -0
- package/cli/logic/skill-definitions.js +0 -39
- package/cli/prompts.js +151 -145
- package/cli/skills/browser-subagent-core/SKILL.md +22 -0
- package/cli/tools/browser.js +75 -0
- package/cli/ui/dashboard.js +48 -0
- package/docs/AGENTS_GUIDE.vi.md +39 -45
- package/docs/CONTRIBUTING.vi.md +12 -3
- package/docs/{GEMINI_GUIDE.md → GEMINI_USAGE.md} +6 -6
- package/docs/GLOSSARY.vi.md +49 -30
- package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
- package/docs/OPERATIONAL_FLOW.vi.md +15 -0
- package/docs/{PUBLISHING.md → PUBLISHING_GUIDE.md} +31 -3
- package/docs/RULES_GUIDE.vi.md +67 -31
- package/docs/SHARED_LIBRARY_GUIDE.vi.md +18 -22
- package/docs/SKILLS_GUIDE.vi.md +119 -32
- package/docs/TROUBLESHOOTING.vi.md +10 -2
- package/docs/WORKFLOW_GUIDE.vi.md +57 -9
- package/package.json +32 -8
- package/setup.js +147 -114
- package/.agent/.shared/compliance/README.md +0 -19
- package/.agent/.shared/design-system/README.md +0 -18
- package/.agent/.shared/domain-blueprints/README.md +0 -18
- package/.agent/.shared/dx-toolkit/README.md +0 -19
- package/.agent/.shared/i18n-master/README.md +0 -18
- package/.agent/.shared/infra-blueprints/README.md +0 -18
- package/.agent/.shared/metrics/README.md +0 -17
- package/.agent/.shared/resilience-patterns/README.md +0 -19
- package/.agent/.shared/security-armor/README.md +0 -25
- package/.agent/.shared/testing-master/README.md +0 -20
- package/.agent/.shared/vitals-templates/README.md +0 -18
- package/.agent/agents/accessibility-expert.md +0 -22
- package/.agent/agents/api-architect.md +0 -22
- package/.agent/agents/backend-specialist.eco.md +0 -19
- package/.agent/agents/backend-specialist.instant.md +0 -19
- package/.agent/agents/codebase-expert.md +0 -23
- package/.agent/agents/compliance-expert.md +0 -22
- package/.agent/agents/data-scientist.md +0 -22
- package/.agent/agents/debugger.eco.md +0 -20
- package/.agent/agents/debugger.instant.md +0 -20
- package/.agent/agents/deep-thinker.ultra.md +0 -23
- package/.agent/agents/devex-optimizer.md +0 -22
- package/.agent/agents/devops-architect.md +0 -22
- package/.agent/agents/frontend-specialist.eco.md +0 -19
- package/.agent/agents/frontend-specialist.instant.md +0 -19
- package/.agent/agents/growth-engineer.md +0 -22
- package/.agent/agents/i18n-specialist.md +0 -21
- package/.agent/agents/legacy-modernizer.md +0 -22
- package/.agent/agents/microservices-specialist.md +0 -22
- package/.agent/agents/motion-designer.md +0 -22
- package/.agent/agents/orchestrator.creative.md +0 -28
- package/.agent/agents/orchestrator.eco.md +0 -29
- package/.agent/agents/orchestrator.instant.md +0 -29
- package/.agent/agents/orchestrator.ultra.md +0 -28
- package/.agent/agents/performance-benchmarker.md +0 -22
- package/.agent/agents/project-planner.eco.md +0 -19
- package/.agent/agents/project-planner.instant.md +0 -19
- package/.agent/agents/security-pentester.md +0 -22
- package/.agent/agents/serverless-expert.md +0 -22
- package/.agent/fastcode_index.json +0 -1038
- package/.agent/mcp_config.json +0 -24
- package/.agent/rules/GEMINI.eco.md +0 -37
- package/.agent/rules/GEMINI.instant.md +0 -37
- package/.agent/rules/api-spec.md +0 -28
- package/.agent/rules/database.md +0 -24
- package/.agent/rules/devops.md +0 -23
- package/.agent/rules/growth-strategy.md +0 -22
- package/.agent/rules/logging-monitoring.md +0 -22
- package/.agent/rules/quality-assurance.md +0 -22
- package/.agent/rules/system-reasoning.md +0 -20
- package/.agent/rules/ui-design.md +0 -23
- package/.agent/rules/ux-patterns.md +0 -23
- package/.agent/scripts/auto_preview.py +0 -148
- package/.agent/scripts/checklist.py +0 -252
- package/.agent/scripts/session_manager.py +0 -120
- package/.agent/scripts/simulation_install.js +0 -59
- package/.agent/scripts/sync_to_global.py +0 -78
- package/.agent/scripts/translate_workflows.py +0 -53
- package/.agent/scripts/verify_all.py +0 -327
- package/.agent/scripts/verify_shared_modules.js +0 -126
- package/.agent/skills/fastcode-search/SKILL.md +0 -46
- package/.agent/skills/fastcode-search/fastcode_config.example.json +0 -17
- package/.agent/skills/frontend-trends-2026/SKILL.md +0 -78
- package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +0 -42
- package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +0 -32
- package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +0 -27
- package/.agent/workflows/deep-security-audit.md +0 -9
- package/.agent/workflows/growth-max.md +0 -9
- package/.agent/workflows/performance-max.md +0 -9
- package/.editorconfig +0 -21
- package/.gitattributes +0 -7
- package/CHANGELOG.md +0 -32
- package/ERRORS.md +0 -67
- package/action.yml +0 -32
- package/antigravity-ide-logo.png +0 -0
- package/antigravity-ide-logo.svg +0 -24
- package/assets/skills-bundle.json +0 -1
- package/cli/manifest.js +0 -524
- package/cli/skills/fastcode.js +0 -181
- package/docs/AGENT_FLOW.md +0 -608
- package/docs/CONTRIBUTING.md +0 -46
- package/docs/COPYRIGHT.md +0 -57
- package/docs/DEPLOYMENT.md +0 -77
- package/docs/GLOSSARY.md +0 -109
- package/docs/MASTER_GUIDE.md +0 -103
- package/docs/OPERATIONAL_FLOW.md +0 -147
- package/docs/PLAN-upgrade-core-architecture.md +0 -71
- package/docs/SKILLS.md +0 -610
- package/docs/TROUBLESHOOTING.md +0 -43
- package/jest.config.js +0 -8
- package/scripts/bump.js +0 -93
- package/scripts/bundle-skills.js +0 -59
- package/scripts/internal/automation/auto-release.js +0 -177
- package/scripts/internal/fractalize-skills.js +0 -89
- package/scripts/internal/generate-skill-definitions.js +0 -134
- package/scripts/internal/internal/update-docs.js +0 -115
- package/scripts/internal/refactor-skill-content.js +0 -127
- package/scripts/internal/rename-skills.js +0 -96
- package/scripts/internal/sync-skills.js +0 -112
- package/scripts/internal/update-frontmatter-names.js +0 -99
- package/scripts/internal/verification/audit-dna.js +0 -56
- package/scripts/internal/verification/audit-skills.js +0 -65
- package/web/src/app/docs/guide/examples/brainstorm/page.mdx +0 -91
- package/web/src/app/docs/guide/examples/create/page.mdx +0 -84
- package/web/src/app/docs/guide/examples/debugging/page.mdx +0 -83
- package/web/src/app/docs/guide/examples/deployment/page.mdx +0 -93
- package/web/src/app/docs/guide/examples/new-feature/page.mdx +0 -102
- package/web/src/app/docs/guide/examples/orchestration/page.mdx +0 -99
- package/web/src/app/docs/guide/examples/plan/page.mdx +0 -76
- package/web/src/app/docs/guide/examples/preview/page.mdx +0 -77
- package/web/src/app/docs/guide/examples/status/page.mdx +0 -78
- package/web/src/app/docs/guide/examples/test/page.mdx +0 -80
- package/web/src/app/docs/guide/examples/ui-design/page.mdx +0 -90
- package/web/src/components/mdx/Callout.tsx +0 -60
- package/web/src/components/mdx/FeatureGrid.tsx +0 -38
- package/web/src/components/mdx/ProTips.tsx +0 -29
- package/web/src/components/mdx/StepList.tsx +0 -33
- package/web/src/components/mdx/Terminal.tsx +0 -58
- package/web/src/components/mdx/index.ts +0 -5
- package/web/src/mdx-components.tsx +0 -98
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/MANIFESTO.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/tactile_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/visual_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/presets/linear_glow.json +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/checklists/code_review.md +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/presets/vscode_settings.json +0 -0
- /package/.agent/.shared/{metrics → core/metrics}/benchmarks.json +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/audit_report.md +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/plan_prd.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/best_patterns.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/checklists/prompt_audit.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/presets/model_configs.json +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/data +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/endpoints_naming.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/error_codes.csv +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/pagination_sorting.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/response_format.json +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/auth_rbac.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/cms.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/ecommerce.sql +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/brand_presets.json +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/micro_interactions.md +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/vi_tech_dictionary.csv +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/workflows.json +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/checklists/chaos_engineering.md +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/presets/circuit_breaker.json +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/checklists/vuln_scan.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/hardening.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/presets/helmet_config.json +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/checklists/technical_seo.md +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/presets/json_ld_schema.json +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/checklists/pre_release.md +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/scenarios.md +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/colors.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/icons.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/landing.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/products.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/react-performance.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/vue.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/web-interface.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/core.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/design_system.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/search.py +0 -0
- /package/.agent/.shared/{compliance → verticals/compliance}/legal_templates.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/edtech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fintech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fnb_restaurant.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/freelance_marketplace.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/healthcare.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/hospitality_tourism.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/logistics.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/marketing_automation.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/personal_branding.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/real_estate.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/retail_ecommerce.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/standard-pro-agents.md +0 -0
- /package/.agent/.shared/{infra-blueprints → verticals/infra-blueprints}/deployment_specs.md +0 -0
- /package/.agent/skills/ai-engineer/{resources → sub-skills}/ai_infra_stack.md +0 -0
- /package/.agent/skills/cloud-architect-master/{resources → sub-skills}/cost_optimization_checklist.md +0 -0
- /package/.agent/skills/cro-expert-kit/{resources → sub-skills}/psychological_triggers.md +0 -0
- /package/.agent/skills/database-migration/{resources → sub-skills}/zero_downtime_strategy.md +0 -0
- /package/.agent/skills/deployment-engineer/{resources → sub-skills}/k8s_best_practices.md +0 -0
- /package/.agent/skills/git-collaboration-master/{resources → sub-skills}/pr_template.md +0 -0
- /package/.agent/skills/incident-responder/{resources → sub-skills}/incident_severity_levels.md +0 -0
- /package/.agent/skills/legacy-modernizer/{resources → sub-skills}/strangler_fig_pattern.md +0 -0
- /package/.agent/skills/penetration-tester-master/{resources → sub-skills}/owasp_top_10_2025.md +0 -0
- /package/.agent/skills/production-code-audit/{resources → sub-skills}/solid_principles_cheat_sheet.md +0 -0
- /package/.agent/skills/seo-expert-kit/{resources → sub-skills}/technical_seo_checklist.md +0 -0
- /package/.agent/skills/tdd-master-workflow/{resources → sub-skills}/unit_test_naming_convention.md +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/charts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/prompts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/styles.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/typography.csv +0 -0
- /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 };
|
package/docs/AGENTS_GUIDE.vi.md
CHANGED
|
@@ -1,55 +1,49 @@
|
|
|
1
1
|
# 🕵️ Hướng Dẫn Về "Hệ Thống Agent" (Digital Employees)
|
|
2
2
|
|
|
3
|
-
> **Antigravity**
|
|
3
|
+
> **Antigravity** không chỉ là 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
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
* **`
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* **`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* **`
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* **`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* **`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* **`
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* **`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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`**: Rà soát mã 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 và 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
|
|
package/docs/CONTRIBUTING.vi.md
CHANGED
|
@@ -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
|
|
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/
|
|
34
|
-
cd
|
|
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
|
|
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
|
-
| **
|
|
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:
|
|
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
|
|
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/
|
|
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 +
|
|
294
|
+
**Ready to build with Gemini + 27 Master Skills? Let's go! 🚀**
|
package/docs/GLOSSARY.vi.md
CHANGED
|
@@ -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
|
|
16
|
-
| `/debug` | **Gỡ lỗi** |
|
|
17
|
-
| `/deploy` | **Triển khai** |
|
|
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 và 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** |
|
|
20
|
-
| `/monitor` | **Giám sát** |
|
|
21
|
-
| `/onboard` | **Dẫn nhập** |
|
|
22
|
-
| `/orchestrate` | **Điều phối** |
|
|
23
|
-
| `/plan` | **Lập kế hoạch** | Phân tích yêu cầu
|
|
24
|
-
| `/preview` | **Xem trước** | Chạy thử
|
|
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** |
|
|
27
|
-
| `/status` | **Trạng thái** |
|
|
28
|
-
| `/test` | **Kiểm thử** |
|
|
29
|
-
| `/ui-ux-pro-max`| **Giao diện Đỉnh cao**| Thiết kế UI
|
|
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 và 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
|
-
*
|
|
51
|
-
|
|
52
|
-
* **Orchestrator**: Nhạc trưởng
|
|
53
|
-
* **Project Planner**:
|
|
54
|
-
* **
|
|
55
|
-
* **
|
|
56
|
-
* **
|
|
57
|
-
* **
|
|
58
|
-
* **
|
|
62
|
+
*Mỗi dự án v4.0 có 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
|
-
* **
|
|
61
|
-
* **
|
|
62
|
-
* **
|
|
63
|
-
* **
|
|
64
|
-
* **
|
|
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
|
|
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.
|
|
7
|
-
**Published:** 2026-02-
|
|
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
|
-
|
|
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
|
+
```
|
package/docs/RULES_GUIDE.vi.md
CHANGED
|
@@ -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
|
|
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 và sự tiện lợi cho đội ngũ phát triển.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 0. Triết lý "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 |
|
|
44
|
+
| Rule | Chức năng | Ngôn ngữ |
|
|
13
45
|
| :--- | :--- | :--- |
|
|
14
|
-
| **`
|
|
15
|
-
| **`
|
|
16
|
-
| **`
|
|
17
|
-
| **`
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
**
|
|
42
|
-
> "
|
|
43
|
-
*(Agent sẽ
|
|
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 có 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
|
-
**
|
|
46
|
-
> "
|
|
47
|
-
*(Agent
|
|
80
|
+
2. **Khi Audit Bảo Mật Dữ Liệu:**
|
|
81
|
+
> "Code này `@legal` có 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
|
-
**
|
|
50
|
-
> "
|
|
51
|
-
*(Agent
|
|
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
|
-
##
|
|
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
|
|
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
|
|
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
|
-
> **
|
|
96
|
+
> **Lời khuyên**: Hãy coi `rules/` là 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.
|