antigravity-ide 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/.shared/{technical/ai-master → ai-master}/README.md +1 -12
- package/.agent/.shared/{technical/api-standards → api-standards}/README.md +1 -12
- package/.agent/.shared/compliance/README.md +19 -0
- package/.agent/.shared/{technical/database-master → database-master}/README.md +2 -12
- package/.agent/.shared/{core/design-philosophy → design-philosophy}/README.md +1 -12
- package/.agent/.shared/design-system/README.md +18 -0
- package/.agent/.shared/domain-blueprints/README.md +18 -0
- package/.agent/.shared/dx-toolkit/README.md +19 -0
- package/.agent/.shared/i18n-master/README.md +18 -0
- package/.agent/.shared/infra-blueprints/README.md +18 -0
- package/.agent/.shared/metrics/README.md +17 -0
- package/.agent/.shared/resilience-patterns/README.md +19 -0
- package/.agent/.shared/security-armor/README.md +25 -0
- package/.agent/.shared/{technical/seo-master → seo-master}/README.md +1 -12
- package/.agent/.shared/testing-master/README.md +20 -0
- package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/README.md +1 -12
- package/.agent/.shared/vitals-templates/README.md +18 -0
- package/.agent/ARCHITECTURE.md +7 -10
- package/.agent/ARCHITECTURE.vi.md +8 -8
- package/.agent/RESOURCES.md +1 -0
- package/.agent/agents/accessibility-expert.md +22 -0
- package/.agent/agents/api-architect.md +22 -0
- package/.agent/agents/backend-specialist.eco.md +19 -0
- package/.agent/agents/backend-specialist.instant.md +19 -0
- package/.agent/agents/backend-specialist.md +19 -154
- package/.agent/agents/cloud-architect.md +189 -108
- package/.agent/agents/codebase-expert.md +23 -0
- package/.agent/agents/compliance-expert.md +22 -0
- package/.agent/agents/data-scientist.md +22 -0
- package/.agent/agents/debugger.eco.md +20 -0
- package/.agent/agents/debugger.instant.md +20 -0
- package/.agent/agents/debugger.md +182 -83
- package/.agent/agents/deep-thinker.ultra.md +23 -0
- package/.agent/agents/devex-optimizer.md +22 -0
- package/.agent/agents/devops-architect.md +22 -0
- package/.agent/agents/documentation-writer.md +72 -125
- package/.agent/agents/frontend-specialist.eco.md +19 -0
- package/.agent/agents/frontend-specialist.instant.md +19 -0
- package/.agent/agents/frontend-specialist.md +7 -40
- package/.agent/agents/game-developer.md +116 -111
- package/.agent/agents/growth-engineer.md +22 -0
- package/.agent/agents/i18n-specialist.md +21 -0
- package/.agent/agents/legacy-modernizer.md +22 -0
- package/.agent/agents/microservices-specialist.md +22 -0
- package/.agent/agents/mobile-developer.md +321 -108
- package/.agent/agents/motion-designer.md +22 -0
- package/.agent/agents/orchestrator.creative.md +28 -0
- package/.agent/agents/orchestrator.eco.md +29 -0
- package/.agent/agents/orchestrator.instant.md +29 -0
- package/.agent/agents/orchestrator.md +366 -106
- package/.agent/agents/orchestrator.ultra.md +28 -0
- package/.agent/agents/performance-benchmarker.md +22 -0
- package/.agent/agents/performance-optimizer.md +136 -105
- package/.agent/agents/project-planner.eco.md +19 -0
- package/.agent/agents/project-planner.instant.md +19 -0
- package/.agent/agents/project-planner.md +39 -132
- package/.agent/agents/quality-inspector.md +32 -136
- package/.agent/agents/security-auditor.md +15 -138
- package/.agent/agents/security-pentester.md +22 -0
- package/.agent/agents/seo-specialist.md +72 -118
- package/.agent/agents/serverless-expert.md +22 -0
- package/.agent/agents/test-engineer.md +11 -142
- package/.agent/fastcode_index.json +1038 -0
- package/.agent/mcp_config.json +24 -0
- package/.agent/rules/GEMINI.eco.md +37 -0
- package/.agent/rules/GEMINI.instant.md +37 -0
- package/.agent/rules/GEMINI.md +31 -62
- package/.agent/rules/api-spec.md +28 -0
- package/.agent/rules/code-quality.md +3 -34
- package/.agent/rules/database.md +24 -0
- package/.agent/rules/devops.md +23 -0
- package/.agent/rules/frontend.md +3 -3
- package/.agent/rules/growth-strategy.md +22 -0
- package/.agent/rules/logging-monitoring.md +22 -0
- package/.agent/rules/quality-assurance.md +22 -0
- package/.agent/rules/strict-protocol.md +3 -44
- package/.agent/rules/system-reasoning.md +20 -0
- package/.agent/rules/system-update.md +3 -56
- package/.agent/rules/ui-design.md +23 -0
- package/.agent/rules/ux-patterns.md +23 -0
- package/.agent/scripts/auto_preview.py +148 -0
- package/.agent/scripts/checklist.py +252 -0
- package/.agent/scripts/session_manager.py +120 -0
- package/.agent/scripts/simulation_install.js +59 -0
- package/.agent/scripts/sync_to_global.py +78 -0
- package/.agent/scripts/translate_workflows.py +53 -0
- package/.agent/scripts/verify_all.py +327 -0
- package/.agent/scripts/verify_shared_modules.js +126 -0
- package/.agent/skills/agent-backend-patterns/SKILL.md +6 -13
- package/.agent/skills/ai-engineer/SKILL.md +16 -29
- 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 +79 -39
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +75 -53
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +119 -56
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +94 -61
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +82 -56
- package/.agent/skills/cloud-architect-master/SKILL.md +4 -9
- package/.agent/skills/cro-expert-kit/SKILL.md +4 -9
- package/.agent/skills/database-migration/SKILL.md +3 -9
- package/.agent/skills/deployment-engineer/SKILL.md +3 -9
- package/.agent/skills/fastcode-search/SKILL.md +46 -0
- package/.agent/skills/fastcode-search/fastcode_config.example.json +17 -0
- package/.agent/skills/frontend-design/ux-psychology.md +585 -10
- package/.agent/skills/frontend-trends-2026/SKILL.md +78 -0
- package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +42 -0
- package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +32 -0
- package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +27 -0
- package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
- package/.agent/skills/game-development/2d-games/SKILL.md +2 -4
- package/.agent/skills/game-development/3d-games/SKILL.md +2 -4
- package/.agent/skills/game-development/SKILL.md +149 -18
- package/.agent/skills/game-development/game-art/SKILL.md +2 -4
- package/.agent/skills/game-development/game-audio/SKILL.md +2 -4
- package/.agent/skills/game-development/game-design/SKILL.md +2 -4
- package/.agent/skills/game-development/mobile-games/SKILL.md +2 -4
- package/.agent/skills/game-development/multiplayer/SKILL.md +2 -4
- package/.agent/skills/game-development/pc-games/SKILL.md +2 -4
- package/.agent/skills/game-development/vr-ar/SKILL.md +2 -4
- package/.agent/skills/game-development/web-games/SKILL.md +2 -4
- package/.agent/skills/geo-fundamentals/SKILL.md +136 -9
- package/.agent/skills/git-collaboration-master/SKILL.md +4 -9
- package/.agent/skills/i18n-localization/SKILL.md +118 -10
- package/.agent/skills/incident-responder/SKILL.md +6 -9
- package/.agent/skills/legacy-modernizer/SKILL.md +4 -9
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +14 -2
- package/.agent/skills/mcp-builder/SKILL.md +164 -21
- package/.agent/skills/mobile-design/SKILL.md +369 -21
- package/.agent/skills/mobile-design/mobile-performance.md +1 -1
- package/.agent/skills/modern-web-architect/SKILL.md +6 -12
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
- package/.agent/skills/penetration-tester-master/SKILL.md +4 -9
- package/.agent/skills/performance-engineer/SKILL.md +5 -4
- package/.agent/skills/production-code-audit/SKILL.md +0 -6
- package/.agent/skills/rust-pro/SKILL.md +177 -0
- package/.agent/skills/security-auditor/SKILL.md +27 -35
- package/.agent/skills/seo-expert-kit/SKILL.md +4 -9
- package/.agent/skills/tdd-master-workflow/SKILL.md +3 -9
- package/.agent/workflows/audit.md +16 -30
- package/.agent/workflows/brainstorm.md +96 -33
- package/.agent/workflows/create.md +45 -37
- package/.agent/workflows/debug.md +84 -45
- package/.agent/workflows/deep-security-audit.md +9 -0
- package/.agent/workflows/deploy.md +158 -33
- package/.agent/workflows/document.md +15 -38
- package/.agent/workflows/enhance.md +48 -33
- package/.agent/workflows/growth-max.md +9 -0
- package/.agent/workflows/monitor.md +14 -35
- package/.agent/workflows/orchestrate.md +218 -31
- package/.agent/workflows/performance-max.md +9 -0
- package/.agent/workflows/plan.md +70 -39
- package/.agent/workflows/security.md +14 -35
- package/.agent/workflows/seo.md +16 -39
- package/.agent/workflows/status.md +72 -33
- package/.agent/workflows/test.md +127 -30
- package/.agent/workflows/ui-ux-pro-max.md +283 -24
- package/.editorconfig +21 -0
- package/.gitattributes +7 -0
- package/CHANGELOG.md +32 -0
- package/ERRORS.md +67 -0
- package/{.agent/GEMINI.md → GEMINI.md} +5 -4
- package/LICENSE +8 -22
- package/README.md +72 -102
- package/README.vi.md +110 -90
- package/action.yml +32 -0
- package/antigravity-ide-logo.png +0 -0
- package/antigravity-ide-logo.svg +24 -0
- package/assets/skills-bundle.json +1 -0
- package/cli/create.js +413 -275
- package/cli/index.js +24 -28
- package/cli/lib/auto-update.js +21 -14
- package/cli/logic/skill-definitions.js +39 -0
- package/cli/manifest.js +524 -0
- package/cli/prompts.js +145 -151
- package/cli/skills/fastcode.js +181 -0
- package/docs/AGENTS_GUIDE.vi.md +45 -38
- package/docs/AGENT_FLOW.md +608 -0
- package/docs/CONTRIBUTING.md +46 -0
- package/docs/CONTRIBUTING.vi.md +3 -12
- package/docs/COPYRIGHT.md +57 -0
- package/docs/DEPLOYMENT.md +77 -0
- package/docs/{GEMINI_USAGE.md → GEMINI_GUIDE.md} +6 -6
- package/docs/GLOSSARY.md +109 -0
- package/docs/GLOSSARY.vi.md +30 -49
- package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
- package/docs/MASTER_GUIDE.md +103 -0
- package/docs/OPERATIONAL_FLOW.md +147 -0
- package/docs/OPERATIONAL_FLOW.vi.md +0 -15
- package/docs/PLAN-upgrade-core-architecture.md +71 -0
- package/docs/{PUBLISHING_GUIDE.md → PUBLISHING.md} +3 -31
- package/docs/RULES_GUIDE.vi.md +31 -67
- package/docs/SHARED_LIBRARY_GUIDE.vi.md +22 -18
- package/docs/SKILLS.md +610 -0
- package/docs/SKILLS_GUIDE.vi.md +32 -118
- package/docs/TROUBLESHOOTING.md +43 -0
- package/docs/TROUBLESHOOTING.vi.md +2 -10
- package/docs/WORKFLOW_GUIDE.vi.md +9 -57
- package/jest.config.js +8 -0
- package/package.json +8 -31
- package/scripts/bump.js +93 -0
- package/scripts/bundle-skills.js +59 -0
- package/scripts/internal/automation/auto-release.js +177 -0
- package/scripts/internal/fractalize-skills.js +89 -0
- package/scripts/internal/generate-skill-definitions.js +134 -0
- package/scripts/internal/internal/update-docs.js +115 -0
- package/scripts/internal/refactor-skill-content.js +127 -0
- package/scripts/internal/rename-skills.js +96 -0
- package/scripts/internal/sync-skills.js +112 -0
- package/scripts/internal/update-frontmatter-names.js +99 -0
- package/scripts/internal/verification/audit-dna.js +56 -0
- package/scripts/internal/verification/audit-skills.js +65 -0
- package/setup.js +114 -147
- package/web/src/app/docs/guide/examples/brainstorm/page.mdx +91 -0
- package/web/src/app/docs/guide/examples/create/page.mdx +84 -0
- package/web/src/app/docs/guide/examples/debugging/page.mdx +83 -0
- package/web/src/app/docs/guide/examples/deployment/page.mdx +93 -0
- package/web/src/app/docs/guide/examples/new-feature/page.mdx +102 -0
- package/web/src/app/docs/guide/examples/orchestration/page.mdx +99 -0
- package/web/src/app/docs/guide/examples/plan/page.mdx +76 -0
- package/web/src/app/docs/guide/examples/preview/page.mdx +77 -0
- package/web/src/app/docs/guide/examples/status/page.mdx +78 -0
- package/web/src/app/docs/guide/examples/test/page.mdx +80 -0
- package/web/src/app/docs/guide/examples/ui-design/page.mdx +90 -0
- package/web/src/components/mdx/Callout.tsx +60 -0
- package/web/src/components/mdx/FeatureGrid.tsx +38 -0
- package/web/src/components/mdx/ProTips.tsx +29 -0
- package/web/src/components/mdx/StepList.tsx +33 -0
- package/web/src/components/mdx/Terminal.tsx +58 -0
- package/web/src/components/mdx/index.ts +5 -0
- package/web/src/mdx-components.tsx +98 -0
- package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +0 -202
- package/.agent/skills/brand-guidelines-anthropic/SKILL.md +0 -26
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +0 -5
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +0 -14
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +0 -6
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +0 -7
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +0 -6
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +0 -6
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +0 -7
- package/.agent/skills/internal-comms-anthropic/LICENSE.txt +0 -202
- package/.agent/skills/internal-comms-anthropic/SKILL.md +0 -33
- package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +0 -47
- package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +0 -65
- package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +0 -30
- package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +0 -16
- package/.agent/skills/last30days/tests/__init__.py +0 -1
- package/.agent/skills/last30days/tests/test_cache.py +0 -59
- package/.agent/skills/last30days/tests/test_dates.py +0 -114
- package/.agent/skills/last30days/tests/test_dedupe.py +0 -111
- package/.agent/skills/last30days/tests/test_models.py +0 -135
- package/.agent/skills/last30days/tests/test_normalize.py +0 -138
- package/.agent/skills/last30days/tests/test_render.py +0 -116
- package/.agent/skills/last30days/tests/test_score.py +0 -168
- package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +0 -57
- package/.agent/skills/loki-mode/.github/workflows/claude.yml +0 -50
- package/.agent/skills/loki-mode/.github/workflows/release.yml +0 -128
- package/.agent/skills/loki-mode/tests/run-all-tests.sh +0 -78
- package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +0 -348
- package/.agent/skills/loki-mode/tests/test-bootstrap.sh +0 -196
- package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +0 -389
- package/.agent/skills/loki-mode/tests/test-state-recovery.sh +0 -393
- package/.agent/skills/loki-mode/tests/test-task-queue.sh +0 -396
- package/.agent/skills/loki-mode/tests/test-wrapper.sh +0 -314
- package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +0 -379
- package/cli/logic/product-skills.js +0 -58
- /package/.agent/.shared/{technical/ai-master → ai-master}/best_patterns.md +0 -0
- /package/.agent/.shared/{technical/ai-master → ai-master}/checklists/prompt_audit.md +0 -0
- /package/.agent/.shared/{technical/ai-master → ai-master}/presets/model_configs.json +0 -0
- /package/.agent/.shared/{technical/api-standards → api-standards}/data +0 -0
- /package/.agent/.shared/{technical/api-standards → api-standards}/endpoints_naming.md +0 -0
- /package/.agent/.shared/{technical/api-standards → api-standards}/error_codes.csv +0 -0
- /package/.agent/.shared/{technical/api-standards → api-standards}/pagination_sorting.md +0 -0
- /package/.agent/.shared/{technical/api-standards → api-standards}/response_format.json +0 -0
- /package/.agent/.shared/{verticals/compliance → compliance}/legal_templates.md +0 -0
- /package/.agent/.shared/{technical/database-master → database-master}/schemas/auth_rbac.sql +0 -0
- /package/.agent/.shared/{technical/database-master → database-master}/schemas/cms.sql +0 -0
- /package/.agent/.shared/{technical/database-master → database-master}/schemas/ecommerce.sql +0 -0
- /package/.agent/.shared/{core/design-philosophy → design-philosophy}/MANIFESTO.md +0 -0
- /package/.agent/.shared/{core/design-philosophy → design-philosophy}/checklists/tactile_audit.md +0 -0
- /package/.agent/.shared/{core/design-philosophy → design-philosophy}/checklists/visual_audit.md +0 -0
- /package/.agent/.shared/{core/design-philosophy → design-philosophy}/presets/linear_glow.json +0 -0
- /package/.agent/.shared/{technical/design-system → design-system}/brand_presets.json +0 -0
- /package/.agent/.shared/{technical/design-system → design-system}/micro_interactions.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/edtech.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/fintech.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/fnb_restaurant.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/freelance_marketplace.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/healthcare.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/hospitality_tourism.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/logistics.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/marketing_automation.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/personal_branding.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/real_estate.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/retail_ecommerce.md +0 -0
- /package/.agent/.shared/{verticals/domain-blueprints → domain-blueprints}/standard-pro-agents.md +0 -0
- /package/.agent/.shared/{core/dx-toolkit → dx-toolkit}/checklists/code_review.md +0 -0
- /package/.agent/.shared/{core/dx-toolkit → dx-toolkit}/presets/vscode_settings.json +0 -0
- /package/.agent/.shared/{technical/i18n-master → i18n-master}/vi_tech_dictionary.csv +0 -0
- /package/.agent/.shared/{technical/i18n-master → i18n-master}/workflows.json +0 -0
- /package/.agent/.shared/{verticals/infra-blueprints → infra-blueprints}/deployment_specs.md +0 -0
- /package/.agent/.shared/{core/metrics → metrics}/benchmarks.json +0 -0
- /package/.agent/.shared/{technical/resilience-patterns → resilience-patterns}/checklists/chaos_engineering.md +0 -0
- /package/.agent/.shared/{technical/resilience-patterns → resilience-patterns}/presets/circuit_breaker.json +0 -0
- /package/.agent/.shared/{technical/security-armor → security-armor}/checklists/vuln_scan.md +0 -0
- /package/.agent/.shared/{technical/security-armor → security-armor}/hardening.md +0 -0
- /package/.agent/.shared/{technical/security-armor → security-armor}/presets/helmet_config.json +0 -0
- /package/.agent/.shared/{technical/seo-master → seo-master}/checklists/technical_seo.md +0 -0
- /package/.agent/.shared/{technical/seo-master → seo-master}/presets/json_ld_schema.json +0 -0
- /package/.agent/.shared/{technical/testing-master → testing-master}/checklists/pre_release.md +0 -0
- /package/.agent/.shared/{technical/testing-master → testing-master}/scenarios.md +0 -0
- /package/.agent/{skills → .shared}/ui-ux-pro-max/data/charts.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/colors.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/icons.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/landing.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/products.csv +0 -0
- /package/.agent/{skills → .shared}/ui-ux-pro-max/data/prompts.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/react-performance.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/react.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/stacks/vue.csv +0 -0
- /package/.agent/{skills → .shared}/ui-ux-pro-max/data/styles.csv +0 -0
- /package/.agent/{skills → .shared}/ui-ux-pro-max/data/typography.csv +0 -0
- /package/.agent/{skills → .shared}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/data/web-interface.csv +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/core.py +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/design_system.py +0 -0
- /package/.agent/.shared/{technical/ui-ux-pro-max → ui-ux-pro-max}/scripts/search.py +0 -0
- /package/.agent/.shared/{core/vitals-templates → vitals-templates}/audit_report.md +0 -0
- /package/.agent/.shared/{core/vitals-templates → vitals-templates}/plan_prd.md +0 -0
- /package/.agent/skills/ai-engineer/{sub-skills → resources}/ai_infra_stack.md +0 -0
- /package/.agent/skills/cloud-architect-master/{sub-skills → resources}/cost_optimization_checklist.md +0 -0
- /package/.agent/skills/cro-expert-kit/{sub-skills → resources}/psychological_triggers.md +0 -0
- /package/.agent/skills/database-migration/{sub-skills → resources}/zero_downtime_strategy.md +0 -0
- /package/.agent/skills/deployment-engineer/{sub-skills → resources}/k8s_best_practices.md +0 -0
- /package/.agent/skills/git-collaboration-master/{sub-skills → resources}/pr_template.md +0 -0
- /package/.agent/skills/incident-responder/{sub-skills → resources}/incident_severity_levels.md +0 -0
- /package/.agent/skills/legacy-modernizer/{sub-skills → resources}/strangler_fig_pattern.md +0 -0
- /package/.agent/skills/penetration-tester-master/{sub-skills → resources}/owasp_top_10_2025.md +0 -0
- /package/.agent/skills/production-code-audit/{sub-skills → resources}/solid_principles_cheat_sheet.md +0 -0
- /package/.agent/skills/seo-expert-kit/{sub-skills → resources}/technical_seo_checklist.md +0 -0
- /package/.agent/skills/tdd-master-workflow/{sub-skills → resources}/unit_test_naming_convention.md +0 -0
package/.agent/workflows/test.md
CHANGED
|
@@ -1,47 +1,144 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Sợ bug khi sửa code? Viết test tự động
|
|
2
|
+
description: Sợ bug khi sửa code? Viết test tự động.
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /test -
|
|
5
|
+
# /test - Test Generation and Execution
|
|
6
6
|
|
|
7
7
|
$ARGUMENTS
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
**Agent**: `test-engineer`
|
|
13
|
-
**Mission**: Map the "Search Space" of potential bugs.
|
|
14
|
-
- **Action**: Identify all public functions, API routes, and logic branches.
|
|
15
|
-
- **Discovery**: Generate a "Gherkin" style list of test scenarios (Given/When/Then).
|
|
11
|
+
## Purpose
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
**Agent**: `test-engineer`
|
|
19
|
-
**Mission**: Build the testing base.
|
|
20
|
-
- **Action**: Configure mocks for DB, External APIs, and system clock.
|
|
21
|
-
- **Artifact**: Write a Test Plan in the `implementation_plan.md`.
|
|
13
|
+
This command generates tests, runs existing tests, or checks test coverage.
|
|
22
14
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Sub-commands
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/test - Run all tests
|
|
21
|
+
/test [file/feature] - Generate tests for specific target
|
|
22
|
+
/test coverage - Show test coverage report
|
|
23
|
+
/test watch - Run tests in watch mode
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Behavior
|
|
29
|
+
|
|
30
|
+
### Generate Tests
|
|
31
|
+
|
|
32
|
+
When asked to test a file or feature:
|
|
33
|
+
|
|
34
|
+
1. **Analyze the code**
|
|
35
|
+
- Identify functions and methods
|
|
36
|
+
- Find edge cases
|
|
37
|
+
- Detect dependencies to mock
|
|
28
38
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
39
|
+
2. **Generate test cases**
|
|
40
|
+
- Happy path tests
|
|
41
|
+
- Error cases
|
|
42
|
+
- Edge cases
|
|
43
|
+
- Integration tests (if needed)
|
|
44
|
+
|
|
45
|
+
3. **Write tests**
|
|
46
|
+
- Use project's test framework (Jest, Vitest, etc.)
|
|
47
|
+
- Follow existing test patterns
|
|
48
|
+
- Mock external dependencies
|
|
34
49
|
|
|
35
50
|
---
|
|
36
51
|
|
|
37
|
-
##
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
## Output Format
|
|
53
|
+
|
|
54
|
+
### For Test Generation
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
## 🧪 Tests: [Target]
|
|
58
|
+
|
|
59
|
+
### Test Plan
|
|
60
|
+
| Test Case | Type | Coverage |
|
|
61
|
+
|-----------|------|----------|
|
|
62
|
+
| Should create user | Unit | Happy path |
|
|
63
|
+
| Should reject invalid email | Unit | Validation |
|
|
64
|
+
| Should handle db error | Unit | Error case |
|
|
65
|
+
|
|
66
|
+
### Generated Tests
|
|
67
|
+
|
|
68
|
+
`tests/[file].test.ts`
|
|
69
|
+
|
|
70
|
+
[Code block with tests]
|
|
41
71
|
|
|
42
72
|
---
|
|
43
73
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
74
|
+
Run with: `npm test`
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### For Test Execution
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
🧪 Running tests...
|
|
81
|
+
|
|
82
|
+
✅ auth.test.ts (5 passed)
|
|
83
|
+
✅ user.test.ts (8 passed)
|
|
84
|
+
❌ order.test.ts (2 passed, 1 failed)
|
|
85
|
+
|
|
86
|
+
Failed:
|
|
87
|
+
✗ should calculate total with discount
|
|
88
|
+
Expected: 90
|
|
89
|
+
Received: 100
|
|
90
|
+
|
|
91
|
+
Total: 15 tests (14 passed, 1 failed)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Examples
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
/test src/services/auth.service.ts
|
|
100
|
+
/test user registration flow
|
|
101
|
+
/test coverage
|
|
102
|
+
/test fix failed tests
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Test Patterns
|
|
108
|
+
|
|
109
|
+
### Unit Test Structure
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
describe('AuthService', () => {
|
|
113
|
+
describe('login', () => {
|
|
114
|
+
it('should return token for valid credentials', async () => {
|
|
115
|
+
// Arrange
|
|
116
|
+
const credentials = { email: 'test@test.com', password: 'pass123' };
|
|
117
|
+
|
|
118
|
+
// Act
|
|
119
|
+
const result = await authService.login(credentials);
|
|
120
|
+
|
|
121
|
+
// Assert
|
|
122
|
+
expect(result.token).toBeDefined();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it('should throw for invalid password', async () => {
|
|
126
|
+
// Arrange
|
|
127
|
+
const credentials = { email: 'test@test.com', password: 'wrong' };
|
|
128
|
+
|
|
129
|
+
// Act & Assert
|
|
130
|
+
await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Key Principles
|
|
139
|
+
|
|
140
|
+
- **Test behavior not implementation**
|
|
141
|
+
- **One assertion per test** (when practical)
|
|
142
|
+
- **Descriptive test names**
|
|
143
|
+
- **Arrange-Act-Assert pattern**
|
|
144
|
+
- **Mock external dependencies**
|
|
@@ -1,34 +1,293 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Muốn giao diện đẹp (Linear/Magic UI)? Bấm vào đây.
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /ui-ux-pro-max - Premium UI Generator
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
> **Yêu cầu BẮT BUỘC**: Clean, Minimalist, High Contrast.
|
|
6
|
+
# ui-ux-pro-max
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations.
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
## Prerequisites
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
- Sử dụng Font phương tây hiện đại (Inter, Roboto, Poppins).
|
|
16
|
-
- Heading đậm, Body thanh thoát.
|
|
17
|
-
2. **Color Palette**:
|
|
18
|
-
- Sử dụng màu Gradient tinh tế.
|
|
19
|
-
- Tránh màu quá chói (Neon) trừ khi là điểm nhấn (Accent).
|
|
20
|
-
3. **Layout**:
|
|
21
|
-
- Sử dụng Grid/Flexbox chuẩn.
|
|
22
|
-
- Whitespace rộng rãi (Breathable design).
|
|
23
|
-
4. **Micro-interactions**:
|
|
24
|
-
- Hover effects mượt mà (transition: 0.3s).
|
|
25
|
-
- Button có active state rõ ràng.
|
|
12
|
+
Check if Python is installed:
|
|
26
13
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
```bash
|
|
15
|
+
python3 --version || python --version
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
If Python is not installed, install it based on user's OS:
|
|
19
|
+
|
|
20
|
+
**macOS:**
|
|
21
|
+
```bash
|
|
22
|
+
brew install python3
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Ubuntu/Debian:**
|
|
26
|
+
```bash
|
|
27
|
+
sudo apt update && sudo apt install python3
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Windows:**
|
|
31
|
+
```powershell
|
|
32
|
+
winget install Python.Python.3.12
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## How to Use This Workflow
|
|
38
|
+
|
|
39
|
+
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
|
|
40
|
+
|
|
41
|
+
### Step 1: Analyze User Requirements
|
|
42
|
+
|
|
43
|
+
Extract key information from user request:
|
|
44
|
+
- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
|
|
45
|
+
- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
|
|
46
|
+
- **Industry**: healthcare, fintech, gaming, education, etc.
|
|
47
|
+
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
|
|
48
|
+
|
|
49
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
50
|
+
|
|
51
|
+
**Always start with `--design-system`** to get comprehensive recommendations with reasoning:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
This command:
|
|
58
|
+
1. Searches 5 domains in parallel (product, style, color, landing, typography)
|
|
59
|
+
2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
|
|
60
|
+
3. Returns complete design system: pattern, style, colors, typography, effects
|
|
61
|
+
4. Includes anti-patterns to avoid
|
|
62
|
+
|
|
63
|
+
**Example:**
|
|
64
|
+
```bash
|
|
65
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Step 2b: Persist Design System (Master + Overrides Pattern)
|
|
69
|
+
|
|
70
|
+
To save the design system for hierarchical retrieval across sessions, add `--persist`:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
This creates:
|
|
77
|
+
- `design-system/MASTER.md` — Global Source of Truth with all design rules
|
|
78
|
+
- `design-system/pages/` — Folder for page-specific overrides
|
|
79
|
+
|
|
80
|
+
**With page-specific override:**
|
|
81
|
+
```bash
|
|
82
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This also creates:
|
|
86
|
+
- `design-system/pages/dashboard.md` — Page-specific deviations from Master
|
|
87
|
+
|
|
88
|
+
**How hierarchical retrieval works:**
|
|
89
|
+
1. When building a specific page (e.g., "Checkout"), first check `design-system/pages/checkout.md`
|
|
90
|
+
2. If the page file exists, its rules **override** the Master file
|
|
91
|
+
3. If not, use `design-system/MASTER.md` exclusively
|
|
92
|
+
|
|
93
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
94
|
+
|
|
95
|
+
After getting the design system, use domain searches to get additional details:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**When to use detailed searches:**
|
|
102
|
+
|
|
103
|
+
| Need | Domain | Example |
|
|
104
|
+
|------|--------|---------|
|
|
105
|
+
| More style options | `style` | `--domain style "glassmorphism dark"` |
|
|
106
|
+
| Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
|
|
107
|
+
| UX best practices | `ux` | `--domain ux "animation accessibility"` |
|
|
108
|
+
| Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
|
|
109
|
+
| Landing structure | `landing` | `--domain landing "hero social-proof"` |
|
|
110
|
+
|
|
111
|
+
### Step 4: Stack Guidelines (Default: html-tailwind)
|
|
112
|
+
|
|
113
|
+
Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`
|
|
120
|
+
, `jetpack-compose`
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Search Reference
|
|
124
|
+
|
|
125
|
+
### Available Domains
|
|
126
|
+
|
|
127
|
+
| Domain | Use For | Example Keywords |
|
|
128
|
+
|--------|---------|------------------|
|
|
129
|
+
| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
|
|
130
|
+
| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
|
|
131
|
+
| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
|
|
132
|
+
| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
|
|
133
|
+
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
|
|
134
|
+
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
|
|
135
|
+
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
|
|
136
|
+
| `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
|
|
137
|
+
| `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
|
|
138
|
+
| `prompt` | AI prompts, CSS keywords | (style name) |
|
|
139
|
+
|
|
140
|
+
### Available Stacks
|
|
141
|
+
|
|
142
|
+
| Stack | Focus |
|
|
143
|
+
|-------|-------|
|
|
144
|
+
| `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
|
|
145
|
+
| `react` | State, hooks, performance, patterns |
|
|
146
|
+
| `nextjs` | SSR, routing, images, API routes |
|
|
147
|
+
| `vue` | Composition API, Pinia, Vue Router |
|
|
148
|
+
| `svelte` | Runes, stores, SvelteKit |
|
|
149
|
+
| `swiftui` | Views, State, Navigation, Animation |
|
|
150
|
+
| `react-native` | Components, Navigation, Lists |
|
|
151
|
+
| `flutter` | Widgets, State, Layout, Theming |
|
|
152
|
+
| `shadcn` | shadcn/ui components, theming, forms, patterns |
|
|
153
|
+
| `jetpack-compose` | Composables, Modifiers, State Hoisting, Recomposition |
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Example Workflow
|
|
158
|
+
|
|
159
|
+
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
|
|
160
|
+
|
|
161
|
+
### Step 1: Analyze Requirements
|
|
162
|
+
- Product type: Beauty/Spa service
|
|
163
|
+
- Style keywords: elegant, professional, soft
|
|
164
|
+
- Industry: Beauty/Wellness
|
|
165
|
+
- Stack: html-tailwind (default)
|
|
166
|
+
|
|
167
|
+
### Step 2: Generate Design System (REQUIRED)
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
|
|
174
|
+
|
|
175
|
+
### Step 3: Supplement with Detailed Searches (as needed)
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Get UX guidelines for animation and accessibility
|
|
179
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
|
|
180
|
+
|
|
181
|
+
# Get alternative typography options if needed
|
|
182
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Step 4: Stack Guidelines
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**Then:** Synthesize design system + detailed searches and implement the design.
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Output Formats
|
|
196
|
+
|
|
197
|
+
The `--design-system` flag supports two output formats:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
# ASCII box (default) - best for terminal display
|
|
201
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
|
|
202
|
+
|
|
203
|
+
# Markdown - best for documentation
|
|
204
|
+
python3 .agent/.shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Tips for Better Results
|
|
210
|
+
|
|
211
|
+
1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
|
|
212
|
+
2. **Search multiple times** - Different keywords reveal different insights
|
|
213
|
+
3. **Combine domains** - Style + Typography + Color = Complete design system
|
|
214
|
+
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
|
|
215
|
+
5. **Use stack flag** - Get implementation-specific best practices
|
|
216
|
+
6. **Iterate** - If first search doesn't match, try different keywords
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Common Rules for Professional UI
|
|
221
|
+
|
|
222
|
+
These are frequently overlooked issues that make UI look unprofessional:
|
|
223
|
+
|
|
224
|
+
### Icons & Visual Elements
|
|
225
|
+
|
|
226
|
+
| Rule | Do | Don't |
|
|
227
|
+
|------|----|----- |
|
|
228
|
+
| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
|
|
229
|
+
| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
|
|
230
|
+
| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
|
|
231
|
+
| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
|
|
232
|
+
|
|
233
|
+
### Interaction & Cursor
|
|
234
|
+
|
|
235
|
+
| Rule | Do | Don't |
|
|
236
|
+
|------|----|----- |
|
|
237
|
+
| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
|
|
238
|
+
| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
|
|
239
|
+
| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
|
|
240
|
+
|
|
241
|
+
### Light/Dark Mode Contrast
|
|
242
|
+
|
|
243
|
+
| Rule | Do | Don't |
|
|
244
|
+
|------|----|----- |
|
|
245
|
+
| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
|
|
246
|
+
| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
|
|
247
|
+
| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
|
|
248
|
+
| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
|
|
249
|
+
|
|
250
|
+
### Layout & Spacing
|
|
251
|
+
|
|
252
|
+
| Rule | Do | Don't |
|
|
253
|
+
|------|----|----- |
|
|
254
|
+
| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
|
|
255
|
+
| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
|
|
256
|
+
| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
|
|
32
257
|
|
|
33
258
|
---
|
|
34
|
-
|
|
259
|
+
|
|
260
|
+
## Pre-Delivery Checklist
|
|
261
|
+
|
|
262
|
+
Before delivering UI code, verify these items:
|
|
263
|
+
|
|
264
|
+
### Visual Quality
|
|
265
|
+
- [ ] No emojis used as icons (use SVG instead)
|
|
266
|
+
- [ ] All icons from consistent icon set (Heroicons/Lucide)
|
|
267
|
+
- [ ] Brand logos are correct (verified from Simple Icons)
|
|
268
|
+
- [ ] Hover states don't cause layout shift
|
|
269
|
+
- [ ] Use theme colors directly (bg-primary) not var() wrapper
|
|
270
|
+
|
|
271
|
+
### Interaction
|
|
272
|
+
- [ ] All clickable elements have `cursor-pointer`
|
|
273
|
+
- [ ] Hover states provide clear visual feedback
|
|
274
|
+
- [ ] Transitions are smooth (150-300ms)
|
|
275
|
+
- [ ] Focus states visible for keyboard navigation
|
|
276
|
+
|
|
277
|
+
### Light/Dark Mode
|
|
278
|
+
- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
|
|
279
|
+
- [ ] Glass/transparent elements visible in light mode
|
|
280
|
+
- [ ] Borders visible in both modes
|
|
281
|
+
- [ ] Test both modes before delivery
|
|
282
|
+
|
|
283
|
+
### Layout
|
|
284
|
+
- [ ] Floating elements have proper spacing from edges
|
|
285
|
+
- [ ] No content hidden behind fixed navbars
|
|
286
|
+
- [ ] Responsive at 375px, 768px, 1024px, 1440px
|
|
287
|
+
- [ ] No horizontal scroll on mobile
|
|
288
|
+
|
|
289
|
+
### Accessibility
|
|
290
|
+
- [ ] All images have alt text
|
|
291
|
+
- [ ] Form inputs have labels
|
|
292
|
+
- [ ] Color is not the only indicator
|
|
293
|
+
- [ ] `prefers-reduced-motion` respected
|
package/.editorconfig
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# EditorConfig helps maintain consistent coding styles
|
|
2
|
+
# https://editorconfig.org
|
|
3
|
+
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
[*]
|
|
7
|
+
indent_style = space
|
|
8
|
+
indent_size = 4
|
|
9
|
+
end_of_line = lf
|
|
10
|
+
charset = utf-8
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
insert_final_newline = true
|
|
13
|
+
|
|
14
|
+
[*.{json,yml,yaml}]
|
|
15
|
+
indent_size = 2
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
trim_trailing_whitespace = false
|
|
19
|
+
|
|
20
|
+
[Makefile]
|
|
21
|
+
indent_style = tab
|
package/.gitattributes
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [4.2.1] - 2026-02-16
|
|
6
|
+
- **Feature**: FastCode Search (Native Node.js) - Instant full-stack code navigation throughout the project without API costs.
|
|
7
|
+
- **Feature**: Frontend Trends 2026 Skill - Ready-to-use UI formulas (Liquid Glass, Bento Grids, Neo-Brutalism).
|
|
8
|
+
- **Cleanup**: Removed legacy Python tools and redundant directories for a cleaner, faster experience.
|
|
9
|
+
- **Docs**: Comprehensive updates to `SKILLS` and `README` to reflect new capabilities.
|
|
10
|
+
|
|
11
|
+
## [3.5.54] - 2026-01-31
|
|
12
|
+
- **Optimization**: Significantly reduced NPM package size (excluded `docs/`, `tests/`).
|
|
13
|
+
- **Automation**: Implemented GitHub Actions for auto-publishing with Provenance.
|
|
14
|
+
- **Fixes**: Sync `package-lock.json` and `.npmignore` for stable CI builds.
|
|
15
|
+
- **Docs**: Updated internal guides and verified asset counts.
|
|
16
|
+
|
|
17
|
+
## [3.5.30] - 2026-01-30
|
|
18
|
+
- **Feature**: Added "Copy-Paste Prompts" for AI Delegation in Setup Wizard.
|
|
19
|
+
- **Feature**: Smart Python detection and installation guidance.
|
|
20
|
+
- **Docs**: Renamed `GEMINI.md` to `GEMINI_GUIDE.md` for clarity.
|
|
21
|
+
|
|
22
|
+
## [3.5.29] - 2026-01-29
|
|
23
|
+
### Added
|
|
24
|
+
- **Workflow**: `/audit` for comprehensive quality checks.
|
|
25
|
+
- **Workflow**: `/onboard` for team integration.
|
|
26
|
+
- **Workflow**: `/document` for automated documentation generation.
|
|
27
|
+
- **Workflow**: `/monitor` for system health tracking.
|
|
28
|
+
- **Workflow**: `/security` and `/seo` for domain-specific tasks.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- **CLI**: Enhanced `prompts.js` with dynamic workflow mapping based on industry.
|
|
32
|
+
- **Setup**: Improved "Engine Mode" selection (Standard vs Advanced) with language support.
|
package/ERRORS.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# 🐛 Error Log - Antigravity IDE Development
|
|
2
|
+
|
|
3
|
+
> Tập hợp tất cả lỗi xảy ra trong quá trình phát triển. File này giúp Agent học hỏi và tránh lặp lại sai lầm.
|
|
4
|
+
|
|
5
|
+
**Cách sử dụng**:
|
|
6
|
+
- Mỗi lỗi mới được append vào cuối file
|
|
7
|
+
- Không xóa lỗi cũ (dùng để học tập)
|
|
8
|
+
- Đánh dấu Status khi đã fix
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Thống kê nhanh
|
|
13
|
+
|
|
14
|
+
- **Tổng lỗi**: 2
|
|
15
|
+
- **Đã sửa**: 2
|
|
16
|
+
- **Đang điều tra**: 0
|
|
17
|
+
- **Tạm hoãn**: 0
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<!-- Errors sẽ được ghi theo format chuẩn dưới đây -->
|
|
22
|
+
|
|
23
|
+
## [2026-02-02 11:25] - Missing Closing Parenthesis in forEach
|
|
24
|
+
|
|
25
|
+
- **Type**: Syntax
|
|
26
|
+
- **Severity**: High
|
|
27
|
+
- **File**: `tests/temp-test-error.js:8`
|
|
28
|
+
- **Agent**: Antigravity (Testing Error Logging System)
|
|
29
|
+
- **Root Cause**: Thiếu dấu ngoặc đóng `)` trong callback function của `forEach`. Dòng 8 có `items.forEach(item => {` nhưng chỉ đóng bằng `}` mà không đóng dấu ngoặc tròn của forEach.
|
|
30
|
+
- **Error Message**:
|
|
31
|
+
```
|
|
32
|
+
SyntaxError: missing ) after argument list
|
|
33
|
+
at wrapSafe (node:internal/modules/cjs/loader:1691:18)
|
|
34
|
+
at Module._compile (node:internal/modules/cjs/loader:1734:20)
|
|
35
|
+
```
|
|
36
|
+
- **Fix Applied**:
|
|
37
|
+
- Thêm dấu `)` đóng cho forEach trước khi có `return total;`
|
|
38
|
+
- Code đúng phải là: `items.forEach(item => { total += item.price; });`
|
|
39
|
+
- **Prevention**:
|
|
40
|
+
- Luôn kiểm tra cặp dấu ngoặc (bracket matching) trước khi chạy code
|
|
41
|
+
- Sử dụng IDE với auto-formatting (Prettier) để tự động phát hiện
|
|
42
|
+
- Thêm ESLint rule để cảnh báo syntax errors ngay khi viết
|
|
43
|
+
- **Status**: Fixed
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## [2026-02-08 14:03] - Regression Test Suite Hanging (Infinite Wait)
|
|
48
|
+
|
|
49
|
+
- **Type**: Integration / Logic
|
|
50
|
+
- **Severity**: Medium
|
|
51
|
+
- **File**: ests/npx-regression-suite.js
|
|
52
|
+
- **Agent**: Antigravity (Cleanup Task)
|
|
53
|
+
- **Root Cause**: Tiến trình test
|
|
54
|
+
px-regression-suite.js bị treo ở case-1 trong hơn 4 giờ. Nguyên nhân do cơ chế bắt tín hiệu prompt trong spawn không hoạt động ổn định trong môi trường CI/Terminal không phải TTY, dẫn đến việc test case chờ dữ liệu đầu vào mãi mãi.
|
|
55
|
+
- **Error Message**:
|
|
56
|
+
`
|
|
57
|
+
[Stuck at "node cli/index.js case-1" since 09:17 AM]
|
|
58
|
+
`
|
|
59
|
+
- **Fix Applied**:
|
|
60
|
+
- Thực hiện askkill cưỡng bức các tiến trình node đang bị treo.
|
|
61
|
+
- Dọn dẹp thủ công các thư mục tạm emp_tests và coverage.
|
|
62
|
+
- **Prevention**:
|
|
63
|
+
- Sử dụng cờ --skip-prompts hoặc --force cho các integration tests để tránh tương tác UI.
|
|
64
|
+
- Thêm cơ chế Timeout cho mỗi test case trong
|
|
65
|
+
- **Status**: Fixed (Cleaned up)
|
|
66
|
+
|
|
67
|
+
---
|
|
@@ -19,8 +19,8 @@ This file controls the behavior of your AI Agent.
|
|
|
19
19
|
|
|
20
20
|
## 🌐 Language Protocol
|
|
21
21
|
|
|
22
|
-
1. **Communication**: Use **
|
|
23
|
-
2. **Artifacts**: Write content in **
|
|
22
|
+
1. **Communication**: Use **VIETNAMESE** (Tiếng Việt).
|
|
23
|
+
2. **Artifacts**: Write content in **VIETNAMESE** (Tiếng Việt).
|
|
24
24
|
3. **Code**: Use **ENGLISH** for all variables, functions, and comments.
|
|
25
25
|
|
|
26
26
|
## Core Capabilities
|
|
@@ -51,8 +51,9 @@ The following **17 Shared Modules** in `.agent/.shared` must be respected:
|
|
|
51
51
|
13. **Vitals Templates**: Performance benchmarks.
|
|
52
52
|
14. **Malware Protection**: Threat intelligence.
|
|
53
53
|
15. **Auto-Update**: Self-maintenance protocols.
|
|
54
|
-
16. **Error Logging**:
|
|
55
|
-
17. **Docs Sync**:
|
|
54
|
+
16. **Error Logging**: Hệ thống tự học từ lỗi.
|
|
55
|
+
17. **Docs Sync**: Đồng bộ tài liệu.
|
|
56
|
+
18. **Strict Protocol**: 🛡️ CẤM TỰ ĐỘNG PUSH & BẮT BUỘC TIẾNG VIỆT (Xem `.agent/rules/strict-protocol.md`).
|
|
56
57
|
|
|
57
58
|
## Custom Instructions
|
|
58
59
|
|