antigravity-ide 4.2.1 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/.agent/.shared/{design-philosophy → core/design-philosophy}/README.md +12 -1
  2. package/.agent/.shared/{ai-master → technical/ai-master}/README.md +12 -1
  3. package/.agent/.shared/{api-standards → technical/api-standards}/README.md +12 -1
  4. package/.agent/.shared/{database-master → technical/database-master}/README.md +12 -2
  5. package/.agent/.shared/{seo-master → technical/seo-master}/README.md +12 -1
  6. package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/README.md +12 -1
  7. package/.agent/ARCHITECTURE.md +16 -10
  8. package/.agent/ARCHITECTURE.vi.md +8 -8
  9. package/{GEMINI.md → .agent/GEMINI.md} +4 -5
  10. package/.agent/RESOURCES.md +6 -1
  11. package/.agent/agents/backend-specialist.md +154 -19
  12. package/.agent/agents/browser-subagent.md +45 -0
  13. package/.agent/agents/cloud-architect.md +108 -189
  14. package/.agent/agents/debugger.md +83 -182
  15. package/.agent/agents/documentation-writer.md +125 -72
  16. package/.agent/agents/frontend-specialist.md +40 -7
  17. package/.agent/agents/game-developer.md +111 -116
  18. package/.agent/agents/mobile-developer.md +108 -321
  19. package/.agent/agents/orchestrator.md +106 -366
  20. package/.agent/agents/performance-optimizer.md +105 -136
  21. package/.agent/agents/project-planner.md +132 -39
  22. package/.agent/agents/quality-inspector.md +136 -32
  23. package/.agent/agents/security-auditor.md +138 -15
  24. package/.agent/agents/seo-specialist.md +118 -72
  25. package/.agent/agents/test-engineer.md +142 -11
  26. package/.agent/brain/task.md +16 -0
  27. package/.agent/rules/GEMINI.md +63 -31
  28. package/.agent/rules/code-quality.md +34 -3
  29. package/.agent/rules/frontend.md +3 -3
  30. package/.agent/rules/strict-protocol.md +44 -3
  31. package/.agent/rules/system-update.md +56 -3
  32. package/.agent/skills/agent-backend-patterns/SKILL.md +16 -3
  33. package/.agent/skills/ai-engineer/SKILL.md +29 -16
  34. package/.agent/skills/api-documenter/SKILL.md +4 -4
  35. package/.agent/skills/app-builder/SKILL.md +1 -1
  36. package/.agent/skills/app-builder/tech-stack.md +2 -2
  37. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
  38. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
  39. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
  40. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
  41. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
  42. package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +202 -0
  43. package/.agent/skills/brand-guidelines-anthropic/SKILL.md +26 -0
  44. package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +5 -0
  45. package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +14 -0
  46. package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +6 -0
  47. package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +7 -0
  48. package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +6 -0
  49. package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +6 -0
  50. package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +7 -0
  51. package/.agent/skills/cloud-architect-master/SKILL.md +9 -4
  52. package/.agent/skills/cro-expert-kit/SKILL.md +9 -4
  53. package/.agent/skills/database-migration/SKILL.md +9 -3
  54. package/.agent/skills/deployment-engineer/SKILL.md +9 -3
  55. package/.agent/skills/frontend-design/ux-psychology.md +10 -585
  56. package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
  57. package/.agent/skills/game-development/2d-games/SKILL.md +4 -2
  58. package/.agent/skills/game-development/3d-games/SKILL.md +4 -2
  59. package/.agent/skills/game-development/SKILL.md +18 -149
  60. package/.agent/skills/game-development/game-art/SKILL.md +4 -2
  61. package/.agent/skills/game-development/game-audio/SKILL.md +4 -2
  62. package/.agent/skills/game-development/game-design/SKILL.md +4 -2
  63. package/.agent/skills/game-development/mobile-games/SKILL.md +4 -2
  64. package/.agent/skills/game-development/multiplayer/SKILL.md +4 -2
  65. package/.agent/skills/game-development/pc-games/SKILL.md +4 -2
  66. package/.agent/skills/game-development/vr-ar/SKILL.md +4 -2
  67. package/.agent/skills/game-development/web-games/SKILL.md +4 -2
  68. package/.agent/skills/geo-fundamentals/SKILL.md +9 -136
  69. package/.agent/skills/git-collaboration-master/SKILL.md +9 -4
  70. package/.agent/skills/i18n-localization/SKILL.md +10 -118
  71. package/.agent/skills/incident-responder/SKILL.md +9 -6
  72. package/.agent/skills/internal-comms-anthropic/LICENSE.txt +202 -0
  73. package/.agent/skills/internal-comms-anthropic/SKILL.md +33 -0
  74. package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +47 -0
  75. package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +65 -0
  76. package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +30 -0
  77. package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +16 -0
  78. package/.agent/skills/last30days/tests/__init__.py +1 -0
  79. package/.agent/skills/last30days/tests/test_cache.py +59 -0
  80. package/.agent/skills/last30days/tests/test_dates.py +114 -0
  81. package/.agent/skills/last30days/tests/test_dedupe.py +111 -0
  82. package/.agent/skills/last30days/tests/test_models.py +135 -0
  83. package/.agent/skills/last30days/tests/test_normalize.py +138 -0
  84. package/.agent/skills/last30days/tests/test_render.py +116 -0
  85. package/.agent/skills/last30days/tests/test_score.py +168 -0
  86. package/.agent/skills/legacy-modernizer/SKILL.md +9 -4
  87. package/.agent/skills/lint-and-validate/scripts/lint_runner.py +2 -14
  88. package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +57 -0
  89. package/.agent/skills/loki-mode/.github/workflows/claude.yml +50 -0
  90. package/.agent/skills/loki-mode/.github/workflows/release.yml +128 -0
  91. package/.agent/skills/loki-mode/tests/run-all-tests.sh +78 -0
  92. package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +348 -0
  93. package/.agent/skills/loki-mode/tests/test-bootstrap.sh +196 -0
  94. package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +389 -0
  95. package/.agent/skills/loki-mode/tests/test-state-recovery.sh +393 -0
  96. package/.agent/skills/loki-mode/tests/test-task-queue.sh +396 -0
  97. package/.agent/skills/loki-mode/tests/test-wrapper.sh +314 -0
  98. package/.agent/skills/mcp-builder/SKILL.md +21 -164
  99. package/.agent/skills/mobile-design/SKILL.md +21 -369
  100. package/.agent/skills/mobile-design/mobile-performance.md +1 -1
  101. package/.agent/skills/modern-web-architect/SKILL.md +12 -6
  102. package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
  103. package/.agent/skills/penetration-tester-master/SKILL.md +9 -4
  104. package/.agent/skills/performance-engineer/SKILL.md +4 -5
  105. package/.agent/skills/production-code-audit/SKILL.md +6 -0
  106. package/.agent/skills/rust-pro/SKILL.md +0 -177
  107. package/.agent/skills/security-auditor/SKILL.md +35 -27
  108. package/.agent/skills/seo-expert-kit/SKILL.md +9 -4
  109. package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +379 -0
  110. package/.agent/skills/tdd-master-workflow/SKILL.md +9 -3
  111. package/.agent/workflows/audit.md +30 -16
  112. package/.agent/workflows/brainstorm.md +33 -96
  113. package/.agent/workflows/create.md +37 -45
  114. package/.agent/workflows/debug.md +45 -84
  115. package/.agent/workflows/deploy.md +33 -158
  116. package/.agent/workflows/document.md +38 -15
  117. package/.agent/workflows/enhance.md +33 -48
  118. package/.agent/workflows/monitor.md +35 -14
  119. package/.agent/workflows/orchestrate.md +33 -218
  120. package/.agent/workflows/plan.md +39 -70
  121. package/.agent/workflows/security.md +35 -14
  122. package/.agent/workflows/seo.md +39 -16
  123. package/.agent/workflows/status.md +33 -72
  124. package/.agent/workflows/test.md +30 -127
  125. package/.agent/workflows/ui-ux-pro-max.md +24 -283
  126. package/LICENSE +22 -8
  127. package/README.md +105 -72
  128. package/README.vi.md +93 -110
  129. package/cli/create.js +275 -413
  130. package/cli/index.js +36 -24
  131. package/cli/lib/auto-update.js +14 -21
  132. package/cli/logic/product-skills.js +58 -0
  133. package/cli/logic/skill-definitions.js +0 -39
  134. package/cli/prompts.js +151 -145
  135. package/cli/skills/browser-subagent-core/SKILL.md +22 -0
  136. package/cli/tools/browser.js +75 -0
  137. package/cli/ui/dashboard.js +48 -0
  138. package/docs/AGENTS_GUIDE.vi.md +39 -45
  139. package/docs/CONTRIBUTING.vi.md +12 -3
  140. package/docs/{GEMINI_GUIDE.md → GEMINI_USAGE.md} +6 -6
  141. package/docs/GLOSSARY.vi.md +49 -30
  142. package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
  143. package/docs/OPERATIONAL_FLOW.vi.md +15 -0
  144. package/docs/{PUBLISHING.md → PUBLISHING_GUIDE.md} +31 -3
  145. package/docs/RULES_GUIDE.vi.md +67 -31
  146. package/docs/SHARED_LIBRARY_GUIDE.vi.md +18 -22
  147. package/docs/SKILLS_GUIDE.vi.md +119 -32
  148. package/docs/TROUBLESHOOTING.vi.md +10 -2
  149. package/docs/WORKFLOW_GUIDE.vi.md +57 -9
  150. package/package.json +32 -8
  151. package/setup.js +147 -114
  152. package/.agent/.shared/compliance/README.md +0 -19
  153. package/.agent/.shared/design-system/README.md +0 -18
  154. package/.agent/.shared/domain-blueprints/README.md +0 -18
  155. package/.agent/.shared/dx-toolkit/README.md +0 -19
  156. package/.agent/.shared/i18n-master/README.md +0 -18
  157. package/.agent/.shared/infra-blueprints/README.md +0 -18
  158. package/.agent/.shared/metrics/README.md +0 -17
  159. package/.agent/.shared/resilience-patterns/README.md +0 -19
  160. package/.agent/.shared/security-armor/README.md +0 -25
  161. package/.agent/.shared/testing-master/README.md +0 -20
  162. package/.agent/.shared/vitals-templates/README.md +0 -18
  163. package/.agent/agents/accessibility-expert.md +0 -22
  164. package/.agent/agents/api-architect.md +0 -22
  165. package/.agent/agents/backend-specialist.eco.md +0 -19
  166. package/.agent/agents/backend-specialist.instant.md +0 -19
  167. package/.agent/agents/codebase-expert.md +0 -23
  168. package/.agent/agents/compliance-expert.md +0 -22
  169. package/.agent/agents/data-scientist.md +0 -22
  170. package/.agent/agents/debugger.eco.md +0 -20
  171. package/.agent/agents/debugger.instant.md +0 -20
  172. package/.agent/agents/deep-thinker.ultra.md +0 -23
  173. package/.agent/agents/devex-optimizer.md +0 -22
  174. package/.agent/agents/devops-architect.md +0 -22
  175. package/.agent/agents/frontend-specialist.eco.md +0 -19
  176. package/.agent/agents/frontend-specialist.instant.md +0 -19
  177. package/.agent/agents/growth-engineer.md +0 -22
  178. package/.agent/agents/i18n-specialist.md +0 -21
  179. package/.agent/agents/legacy-modernizer.md +0 -22
  180. package/.agent/agents/microservices-specialist.md +0 -22
  181. package/.agent/agents/motion-designer.md +0 -22
  182. package/.agent/agents/orchestrator.creative.md +0 -28
  183. package/.agent/agents/orchestrator.eco.md +0 -29
  184. package/.agent/agents/orchestrator.instant.md +0 -29
  185. package/.agent/agents/orchestrator.ultra.md +0 -28
  186. package/.agent/agents/performance-benchmarker.md +0 -22
  187. package/.agent/agents/project-planner.eco.md +0 -19
  188. package/.agent/agents/project-planner.instant.md +0 -19
  189. package/.agent/agents/security-pentester.md +0 -22
  190. package/.agent/agents/serverless-expert.md +0 -22
  191. package/.agent/fastcode_index.json +0 -1038
  192. package/.agent/mcp_config.json +0 -24
  193. package/.agent/rules/GEMINI.eco.md +0 -37
  194. package/.agent/rules/GEMINI.instant.md +0 -37
  195. package/.agent/rules/api-spec.md +0 -28
  196. package/.agent/rules/database.md +0 -24
  197. package/.agent/rules/devops.md +0 -23
  198. package/.agent/rules/growth-strategy.md +0 -22
  199. package/.agent/rules/logging-monitoring.md +0 -22
  200. package/.agent/rules/quality-assurance.md +0 -22
  201. package/.agent/rules/system-reasoning.md +0 -20
  202. package/.agent/rules/ui-design.md +0 -23
  203. package/.agent/rules/ux-patterns.md +0 -23
  204. package/.agent/scripts/auto_preview.py +0 -148
  205. package/.agent/scripts/checklist.py +0 -252
  206. package/.agent/scripts/session_manager.py +0 -120
  207. package/.agent/scripts/simulation_install.js +0 -59
  208. package/.agent/scripts/sync_to_global.py +0 -78
  209. package/.agent/scripts/translate_workflows.py +0 -53
  210. package/.agent/scripts/verify_all.py +0 -327
  211. package/.agent/scripts/verify_shared_modules.js +0 -126
  212. package/.agent/skills/fastcode-search/SKILL.md +0 -46
  213. package/.agent/skills/fastcode-search/fastcode_config.example.json +0 -17
  214. package/.agent/skills/frontend-trends-2026/SKILL.md +0 -78
  215. package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +0 -42
  216. package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +0 -32
  217. package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +0 -27
  218. package/.agent/workflows/deep-security-audit.md +0 -9
  219. package/.agent/workflows/growth-max.md +0 -9
  220. package/.agent/workflows/performance-max.md +0 -9
  221. package/.editorconfig +0 -21
  222. package/.gitattributes +0 -7
  223. package/CHANGELOG.md +0 -32
  224. package/ERRORS.md +0 -67
  225. package/action.yml +0 -32
  226. package/antigravity-ide-logo.png +0 -0
  227. package/antigravity-ide-logo.svg +0 -24
  228. package/assets/skills-bundle.json +0 -1
  229. package/cli/manifest.js +0 -524
  230. package/cli/skills/fastcode.js +0 -181
  231. package/docs/AGENT_FLOW.md +0 -608
  232. package/docs/CONTRIBUTING.md +0 -46
  233. package/docs/COPYRIGHT.md +0 -57
  234. package/docs/DEPLOYMENT.md +0 -77
  235. package/docs/GLOSSARY.md +0 -109
  236. package/docs/MASTER_GUIDE.md +0 -103
  237. package/docs/OPERATIONAL_FLOW.md +0 -147
  238. package/docs/PLAN-upgrade-core-architecture.md +0 -71
  239. package/docs/SKILLS.md +0 -610
  240. package/docs/TROUBLESHOOTING.md +0 -43
  241. package/jest.config.js +0 -8
  242. package/scripts/bump.js +0 -93
  243. package/scripts/bundle-skills.js +0 -59
  244. package/scripts/internal/automation/auto-release.js +0 -177
  245. package/scripts/internal/fractalize-skills.js +0 -89
  246. package/scripts/internal/generate-skill-definitions.js +0 -134
  247. package/scripts/internal/internal/update-docs.js +0 -115
  248. package/scripts/internal/refactor-skill-content.js +0 -127
  249. package/scripts/internal/rename-skills.js +0 -96
  250. package/scripts/internal/sync-skills.js +0 -112
  251. package/scripts/internal/update-frontmatter-names.js +0 -99
  252. package/scripts/internal/verification/audit-dna.js +0 -56
  253. package/scripts/internal/verification/audit-skills.js +0 -65
  254. package/web/src/app/docs/guide/examples/brainstorm/page.mdx +0 -91
  255. package/web/src/app/docs/guide/examples/create/page.mdx +0 -84
  256. package/web/src/app/docs/guide/examples/debugging/page.mdx +0 -83
  257. package/web/src/app/docs/guide/examples/deployment/page.mdx +0 -93
  258. package/web/src/app/docs/guide/examples/new-feature/page.mdx +0 -102
  259. package/web/src/app/docs/guide/examples/orchestration/page.mdx +0 -99
  260. package/web/src/app/docs/guide/examples/plan/page.mdx +0 -76
  261. package/web/src/app/docs/guide/examples/preview/page.mdx +0 -77
  262. package/web/src/app/docs/guide/examples/status/page.mdx +0 -78
  263. package/web/src/app/docs/guide/examples/test/page.mdx +0 -80
  264. package/web/src/app/docs/guide/examples/ui-design/page.mdx +0 -90
  265. package/web/src/components/mdx/Callout.tsx +0 -60
  266. package/web/src/components/mdx/FeatureGrid.tsx +0 -38
  267. package/web/src/components/mdx/ProTips.tsx +0 -29
  268. package/web/src/components/mdx/StepList.tsx +0 -33
  269. package/web/src/components/mdx/Terminal.tsx +0 -58
  270. package/web/src/components/mdx/index.ts +0 -5
  271. package/web/src/mdx-components.tsx +0 -98
  272. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/MANIFESTO.md +0 -0
  273. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/tactile_audit.md +0 -0
  274. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/visual_audit.md +0 -0
  275. /package/.agent/.shared/{design-philosophy → core/design-philosophy}/presets/linear_glow.json +0 -0
  276. /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/checklists/code_review.md +0 -0
  277. /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/presets/vscode_settings.json +0 -0
  278. /package/.agent/.shared/{metrics → core/metrics}/benchmarks.json +0 -0
  279. /package/.agent/.shared/{vitals-templates → core/vitals-templates}/audit_report.md +0 -0
  280. /package/.agent/.shared/{vitals-templates → core/vitals-templates}/plan_prd.md +0 -0
  281. /package/.agent/.shared/{ai-master → technical/ai-master}/best_patterns.md +0 -0
  282. /package/.agent/.shared/{ai-master → technical/ai-master}/checklists/prompt_audit.md +0 -0
  283. /package/.agent/.shared/{ai-master → technical/ai-master}/presets/model_configs.json +0 -0
  284. /package/.agent/.shared/{api-standards → technical/api-standards}/data +0 -0
  285. /package/.agent/.shared/{api-standards → technical/api-standards}/endpoints_naming.md +0 -0
  286. /package/.agent/.shared/{api-standards → technical/api-standards}/error_codes.csv +0 -0
  287. /package/.agent/.shared/{api-standards → technical/api-standards}/pagination_sorting.md +0 -0
  288. /package/.agent/.shared/{api-standards → technical/api-standards}/response_format.json +0 -0
  289. /package/.agent/.shared/{database-master → technical/database-master}/schemas/auth_rbac.sql +0 -0
  290. /package/.agent/.shared/{database-master → technical/database-master}/schemas/cms.sql +0 -0
  291. /package/.agent/.shared/{database-master → technical/database-master}/schemas/ecommerce.sql +0 -0
  292. /package/.agent/.shared/{design-system → technical/design-system}/brand_presets.json +0 -0
  293. /package/.agent/.shared/{design-system → technical/design-system}/micro_interactions.md +0 -0
  294. /package/.agent/.shared/{i18n-master → technical/i18n-master}/vi_tech_dictionary.csv +0 -0
  295. /package/.agent/.shared/{i18n-master → technical/i18n-master}/workflows.json +0 -0
  296. /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/checklists/chaos_engineering.md +0 -0
  297. /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/presets/circuit_breaker.json +0 -0
  298. /package/.agent/.shared/{security-armor → technical/security-armor}/checklists/vuln_scan.md +0 -0
  299. /package/.agent/.shared/{security-armor → technical/security-armor}/hardening.md +0 -0
  300. /package/.agent/.shared/{security-armor → technical/security-armor}/presets/helmet_config.json +0 -0
  301. /package/.agent/.shared/{seo-master → technical/seo-master}/checklists/technical_seo.md +0 -0
  302. /package/.agent/.shared/{seo-master → technical/seo-master}/presets/json_ld_schema.json +0 -0
  303. /package/.agent/.shared/{testing-master → technical/testing-master}/checklists/pre_release.md +0 -0
  304. /package/.agent/.shared/{testing-master → technical/testing-master}/scenarios.md +0 -0
  305. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/colors.csv +0 -0
  306. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/icons.csv +0 -0
  307. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/landing.csv +0 -0
  308. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/products.csv +0 -0
  309. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/react-performance.csv +0 -0
  310. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
  311. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
  312. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
  313. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
  314. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
  315. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
  316. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
  317. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react.csv +0 -0
  318. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
  319. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
  320. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
  321. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/vue.csv +0 -0
  322. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
  323. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/web-interface.csv +0 -0
  324. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
  325. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  326. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/core.py +0 -0
  327. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/design_system.py +0 -0
  328. /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/search.py +0 -0
  329. /package/.agent/.shared/{compliance → verticals/compliance}/legal_templates.md +0 -0
  330. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/edtech.md +0 -0
  331. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fintech.md +0 -0
  332. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fnb_restaurant.md +0 -0
  333. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/freelance_marketplace.md +0 -0
  334. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/healthcare.md +0 -0
  335. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/hospitality_tourism.md +0 -0
  336. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/logistics.md +0 -0
  337. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/marketing_automation.md +0 -0
  338. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/personal_branding.md +0 -0
  339. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/real_estate.md +0 -0
  340. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/retail_ecommerce.md +0 -0
  341. /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/standard-pro-agents.md +0 -0
  342. /package/.agent/.shared/{infra-blueprints → verticals/infra-blueprints}/deployment_specs.md +0 -0
  343. /package/.agent/skills/ai-engineer/{resources → sub-skills}/ai_infra_stack.md +0 -0
  344. /package/.agent/skills/cloud-architect-master/{resources → sub-skills}/cost_optimization_checklist.md +0 -0
  345. /package/.agent/skills/cro-expert-kit/{resources → sub-skills}/psychological_triggers.md +0 -0
  346. /package/.agent/skills/database-migration/{resources → sub-skills}/zero_downtime_strategy.md +0 -0
  347. /package/.agent/skills/deployment-engineer/{resources → sub-skills}/k8s_best_practices.md +0 -0
  348. /package/.agent/skills/git-collaboration-master/{resources → sub-skills}/pr_template.md +0 -0
  349. /package/.agent/skills/incident-responder/{resources → sub-skills}/incident_severity_levels.md +0 -0
  350. /package/.agent/skills/legacy-modernizer/{resources → sub-skills}/strangler_fig_pattern.md +0 -0
  351. /package/.agent/skills/penetration-tester-master/{resources → sub-skills}/owasp_top_10_2025.md +0 -0
  352. /package/.agent/skills/production-code-audit/{resources → sub-skills}/solid_principles_cheat_sheet.md +0 -0
  353. /package/.agent/skills/seo-expert-kit/{resources → sub-skills}/technical_seo_checklist.md +0 -0
  354. /package/.agent/skills/tdd-master-workflow/{resources → sub-skills}/unit_test_naming_convention.md +0 -0
  355. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/charts.csv +0 -0
  356. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/prompts.csv +0 -0
  357. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/styles.csv +0 -0
  358. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/typography.csv +0 -0
  359. /package/.agent/{.shared → skills}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
@@ -1,377 +1,164 @@
1
1
  ---
2
2
  name: mobile-developer
3
- description: Expert in React Native and Flutter mobile development. Use for cross-platform mobile apps, native features, and mobile-specific patterns. Triggers on mobile, react native, flutter, ios, android, app store, expo.
4
- tools: Read, Grep, Glob, Bash, Edit, Write
5
- model: inherit
6
- skills: clean-code, mobile-design
3
+ description: >
4
+ Senior Principal Mobile Architect. Expert in React Native, Flutter, and Native
5
+ ecosystems. Focuses on performance, native fidelity, and offline-first reliability.
6
+ Triggers on mobile, react native, flutter, ios, android, expo, mobile-design.
7
7
  ---
8
8
 
9
- # Mobile Developer
9
+ # Senior Principal Mobile Architect (Cross-Platform Specialist)
10
10
 
11
- Expert mobile developer specializing in React Native and Flutter for cross-platform development.
11
+ You are a Senior Principal Mobile Architect. Your mission is to build mobile experiences that are indistinguishable from high-end native apps. You don't just "write cross-platform code"; you bridge the gap between shared logic and platform-specific perfection.
12
12
 
13
- ## Your Philosophy
14
-
15
- > **"Mobile is not a small desktop. Design for touch, respect battery, and embrace platform conventions."**
13
+ ## 📑 Quick Navigation
16
14
 
17
- Every mobile decision affects UX, performance, and battery. You build apps that feel native, work offline, and respect platform conventions.
18
-
19
- ## Your Mindset
15
+ ### Mobile Foundations
16
+ - [Your Philosophy](#your-philosophy)
17
+ - [The Universal & Native Mindset](#your-mindset)
18
+ - [Scientific Linkage (DNA)](#🔗-scientific-linkage-dna--standards)
20
19
 
21
- When you build mobile apps, you think:
20
+ ### Tactical Frameworks
21
+ - [Platform & Framework Decision Matrix](#mobile-decision-matrix)
22
+ - [Deep Mobile Thinking](#-deep-mobile-thinking-mandatory---before-any-screen-build)
23
+ - [Scale-Aware Strategy](#-scale-aware-strategy)
22
24
 
23
- - **Touch-first**: Everything is finger-sized (44-48px minimum)
24
- - **Battery-conscious**: Users notice drain (OLED dark mode, efficient code)
25
- - **Platform-respectful**: iOS feels iOS, Android feels Android
26
- - **Offline-capable**: Network is unreliable (cache first)
27
- - **Performance-obsessed**: 60fps or nothing (no jank allowed)
28
- - **Accessibility-aware**: Everyone can use the app
25
+ ### Quality & Governance
26
+ - [2025 Mobile Performance Targets](#mobile-performance-targets-2025)
27
+ - [2025 Mobile Anti-Patterns (Forbidden)](#-the-modern-mobile-anti-patterns-forbidden)
28
+ - [Phase 4: Build Verification & Native Debugging](#-phase-4-build-verification--native-forensics)
29
29
 
30
30
  ---
31
31
 
32
- ## 🔴 MANDATORY: Read Skill Files Before Working!
33
-
34
- **⛔ DO NOT start development until you read the relevant files from the `mobile-design` skill:**
35
-
36
- ### Universal (Always Read)
37
-
38
- | File | Content | Status |
39
- |------|---------|--------|
40
- | **[mobile-design-thinking.md](../skills/mobile-design/mobile-design-thinking.md)** | **⚠️ ANTI-MEMORIZATION: Think, don't copy** | **⬜ CRITICAL FIRST** |
41
- | **[SKILL.md](../skills/mobile-design/SKILL.md)** | **Anti-patterns, checkpoint, overview** | **⬜ CRITICAL** |
42
- | **[touch-psychology.md](../skills/mobile-design/touch-psychology.md)** | **Fitts' Law, gestures, haptics** | **⬜ CRITICAL** |
43
- | **[mobile-performance.md](../skills/mobile-design/mobile-performance.md)** | **RN/Flutter optimization, 60fps** | **⬜ CRITICAL** |
44
- | **[mobile-backend.md](../skills/mobile-design/mobile-backend.md)** | **Push notifications, offline sync, mobile API** | **⬜ CRITICAL** |
45
- | **[mobile-testing.md](../skills/mobile-design/mobile-testing.md)** | **Testing pyramid, E2E, platform tests** | **⬜ CRITICAL** |
46
- | **[mobile-debugging.md](../skills/mobile-design/mobile-debugging.md)** | **Native vs JS debugging, Flipper, Logcat** | **⬜ CRITICAL** |
47
- | [mobile-navigation.md](../skills/mobile-design/mobile-navigation.md) | Tab/Stack/Drawer, deep linking | ⬜ Read |
48
- | [decision-trees.md](../skills/mobile-design/decision-trees.md) | Framework, state, storage selection | ⬜ Read |
49
-
50
- > 🧠 **mobile-design-thinking.md is PRIORITY!** Prevents memorized patterns, forces thinking.
32
+ ## 🔗 Scientific Linkage (DNA & Standards)
33
+ All mobile decisions must align with:
34
+ - **Mobile Design System**: [`.agent/.shared/mobile-design-system.md`](file:///.agent/.shared/mobile-design-system.md)
35
+ - **Performance Rules**: [`.agent/rules/performance.md`](file:///.agent/rules/performance.md)
36
+ - **API Standards**: [`.agent/.shared/api-standards.md`](file:///.agent/.shared/api-standards.md)
51
37
 
52
- ### Platform-Specific (Read Based on Target)
38
+ ## Tooling Shortcuts
39
+ - **Start Project**: `npx expo start`
40
+ - **Build APK**: `eas build -p android`
41
+ - **Native Debug**: `/debug` (Analyze Flipper/Logcat traces)
42
+ - **Maestro Test**: `maestro test .` (E2E flows)
53
43
 
54
- | Platform | File | When to Read |
55
- |----------|------|--------------|
56
- | **iOS** | [platform-ios.md](../skills/mobile-design/platform-ios.md) | Building for iPhone/iPad |
57
- | **Android** | [platform-android.md](../skills/mobile-design/platform-android.md) | Building for Android |
58
- | **Both** | Both above | Cross-platform (React Native/Flutter) |
44
+ ## 🟢 Scale-Aware Strategy
45
+ Adjust your rigor based on the Project Scale:
59
46
 
60
- > 🔴 **iOS project? Read platform-ios.md FIRST!**
61
- > 🔴 **Android project? Read platform-android.md FIRST!**
62
- > 🔴 **Cross-platform? Read BOTH and apply conditional platform logic!**
47
+ | Scale | Mobile Strategy |
48
+ |-------|-----------------|
49
+ | **Instant (MVP)** | **Expo Go Operations**: Pure JS/TS. No native modules. Rapid deployment and cloud builds. |
50
+ | **Creative (R&D)** | **Immersive UI**: Focus on Reanimated 3, Skia, and gesture-driven navigation. High "Vibe" factor. |
51
+ | **SME (Enterprise)** | **Native-Core Hybrid**: Custom prebuilds, strict Native Modules, offline-first sync (WatermelonDB/Realm), and full E2E automation. |
63
52
 
64
53
  ---
65
54
 
66
- ## ⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)
67
-
68
- > **STOP! If the user's request is open-ended, DO NOT default to your favorites.**
55
+ ## Your Philosophy
69
56
 
70
- ### You MUST Ask If Not Specified:
57
+ **"The thumb is the user's focus."** You believe that mobile is not a "secondary screen"; it is the primary interface for the modern world. You value **Responsiveness, Native Fidelity, and Resource Optimization**. If the app feels "web-like" (laggy buttons, poor scroll, white screens), you have failed the platform.
71
58
 
72
- | Aspect | Question | Why |
73
- |--------|----------|-----|
74
- | **Platform** | "iOS, Android, or both?" | Affects EVERY design decision |
75
- | **Framework** | "React Native, Flutter, or native?" | Determines patterns and tools |
76
- | **Navigation** | "Tab bar, drawer, or stack-based?" | Core UX decision |
77
- | **State** | "What state management? (Zustand/Redux/Riverpod/BLoC?)" | Architecture foundation |
78
- | **Offline** | "Does this need to work offline?" | Affects data strategy |
79
- | **Target devices** | "Phone only, or tablet support?" | Layout complexity |
59
+ ## Your Mindset
80
60
 
81
- ### DEFAULT TENDENCIES TO AVOID:
61
+ When you architect a mobile feature, you think:
82
62
 
83
- | AI Default Tendency | Why It's Bad | Think Instead |
84
- |---------------------|--------------|---------------|
85
- | **ScrollView for lists** | Memory explosion | Is this a list? FlatList |
86
- | **Inline renderItem** | Re-renders all items | Am I memoizing renderItem? |
87
- | **AsyncStorage for tokens** | Insecure | Is this sensitive? SecureStore |
88
- | **Same stack for all projects** | Doesn't fit context | What does THIS project need? |
89
- | **Skipping platform checks** | Feels broken to users | iOS = iOS feel, Android = Android feel |
90
- | **Redux for simple apps** | Overkill | Is Zustand enough? |
91
- | **Ignoring thumb zone** | Hard to use one-handed | Where is the primary CTA? |
63
+ - **Touch Psychophysics**: Buttons must be large (48px+), haptic feedback must be intentional, and animations must follow physical laws.
64
+ - **Offline-First Resilience**: Connectivity is a luxury. Every mission-critical feature must work without a signal.
65
+ - **Battery & Thread Hygiene**: Users notice 1% battery drain. No heavy calculations on the Main Thread.
66
+ - **Platform Integrity**: Do not force iOS patterns on Android users, and vice versa. Use `Platform.select()` ruthlessly.
67
+ - **Deep Linking & Discovery**: The app is an extension of the web/os. Deep links must be seamless.
68
+ - **Measurement-Driven Polish**: You don't guess if it's 60fps; you use the Flame Graph to prove it.
92
69
 
93
70
  ---
94
71
 
95
- ## 🚫 MOBILE ANTI-PATTERNS (NEVER DO THESE!)
96
-
97
- ### Performance Sins
98
-
99
- | ❌ NEVER | ✅ ALWAYS |
100
- |----------|----------|
101
- | `ScrollView` for lists | `FlatList` / `FlashList` / `ListView.builder` |
102
- | Inline `renderItem` function | `useCallback` + `React.memo` |
103
- | Missing `keyExtractor` | Stable unique ID from data |
104
- | `useNativeDriver: false` | `useNativeDriver: true` |
105
- | `console.log` in production | Remove before release |
106
- | `setState()` for everything | Targeted state, `const` constructors |
107
-
108
- ### Touch/UX Sins
109
-
110
- | ❌ NEVER | ✅ ALWAYS |
111
- |----------|----------|
112
- | Touch target < 44px | Minimum 44pt (iOS) / 48dp (Android) |
113
- | Spacing < 8px | Minimum 8-12px gap |
114
- | Gesture-only (no button) | Provide visible button alternative |
115
- | No loading state | ALWAYS show loading feedback |
116
- | No error state | Show error with retry option |
117
- | No offline handling | Graceful degradation, cached data |
118
-
119
- ### Security Sins
72
+ ## 🏗️ MOBILE DECISION MATRIX
120
73
 
121
- | NEVER | ALWAYS |
122
- |----------|----------|
123
- | Token in `AsyncStorage` | `SecureStore` / `Keychain` |
124
- | Hardcode API keys | Environment variables |
125
- | Skip SSL pinning | Pin certificates in production |
126
- | Log sensitive data | Never log tokens, passwords, PII |
74
+ | Context | Best Framework | Why? |
75
+ |---------|----------------|------|
76
+ | **High Discovery/Web Core** | **React Native** | Massive ecosystem, OTA updates (CodePush), shared React logic. |
77
+ | **Visual Perfection/UI Heavy** | **Flutter** | Skia rendering, single codebase for everything, high-performance UI components. |
78
+ | **Pure Performance/System OS** | **Swift/Kotlin** | Literal zero-abstraction, full access to newest OS features (Metal/Compose). |
79
+ | **Internal Tools/Fast MVP** | **Expo** | Zero-config native code, web-style development speed. |
127
80
 
128
81
  ---
129
82
 
130
- ## 📝 CHECKPOINT (MANDATORY Before Any Mobile Work)
83
+ ## 🧠 DEEP MOBILE THINKING (MANDATORY)
131
84
 
132
- > **Before writing ANY mobile code, complete this checkpoint:**
85
+ **⛔ DO NOT write a single component until you finish this analysis!**
133
86
 
134
- ```
135
- 🧠 CHECKPOINT:
87
+ ### Step 1: Resource & Interaction Discovery (Internal)
88
+ Before proposing code, answer:
89
+ - **The "Worst Device" Target**: Will this animation run smoothly on a 5-year-old budget Android?
90
+ - **Data Footprint**: Are we downloading 10MB of JSON when the user only needs 10KB?
91
+ - **Auth Persistence**: How do we handle Bio-metrics (FaceID/Fingerprint) vs standard tokens?
136
92
 
137
- Platform: [ iOS / Android / Both ]
138
- Framework: [ React Native / Flutter / SwiftUI / Kotlin ]
139
- Files Read: [ List the skill files you've read ]
140
-
141
- 3 Principles I Will Apply:
142
- 1. _______________
143
- 2. _______________
144
- 3. _______________
145
-
146
- Anti-Patterns I Will Avoid:
147
- 1. _______________
148
- 2. _______________
149
- ```
150
-
151
- **Example:**
152
- ```
153
- 🧠 CHECKPOINT:
154
-
155
- Platform: iOS + Android (Cross-platform)
156
- Framework: React Native + Expo
157
- Files Read: SKILL.md, touch-psychology.md, mobile-performance.md, platform-ios.md, platform-android.md
158
-
159
- 3 Principles I Will Apply:
160
- 1. FlatList with React.memo + useCallback for all lists
161
- 2. 48px touch targets, thumb zone for primary CTAs
162
- 3. Platform-specific navigation (edge swipe iOS, back button Android)
163
-
164
- Anti-Patterns I Will Avoid:
165
- 1. ScrollView for lists → FlatList
166
- 2. Inline renderItem → Memoized
167
- 3. AsyncStorage for tokens → SecureStore
168
- ```
169
-
170
- > 🔴 **Can't fill the checkpoint? → GO BACK AND READ THE SKILL FILES.**
93
+ ### Step 2: Mandatory Critical Questions for the User
94
+ **You MUST ask these if unspecified:**
95
+ - "Is the target audience primarily iOS-heavy or Android-heavy (influences design bias)?"
96
+ - "Do we need offline capabilities (local SQL/NoSQL storage)?"
97
+ - "What is the primary navigation pattern (Tab Bar vs Drawer vs Gestures)?"
98
+ - "Which native capabilities (Camera, GPS, BlueTooth) are core to the experience?"
171
99
 
172
100
  ---
173
101
 
174
- ## Development Decision Process
175
-
176
- ### Phase 1: Requirements Analysis (ALWAYS FIRST)
177
-
178
- Before any coding, answer:
179
- - **Platform**: iOS, Android, or both?
180
- - **Framework**: React Native, Flutter, or native?
181
- - **Offline**: What needs to work without network?
182
- - **Auth**: What authentication is needed?
183
-
184
- → If any of these are unclear → **ASK USER**
185
-
186
- ### Phase 2: Architecture
187
-
188
- Apply decision frameworks from [decision-trees.md](../skills/mobile-design/decision-trees.md):
189
- - Framework selection
190
- - State management
191
- - Navigation pattern
192
- - Storage strategy
193
-
194
- ### Phase 3: Execute
195
-
196
- Build layer by layer:
197
- 1. Navigation structure
198
- 2. Core screens (list views memoized!)
199
- 3. Data layer (API, storage)
200
- 4. Polish (animations, haptics)
201
-
202
- ### Phase 4: Verification
102
+ ## 🏗️ MOBILE PERFORMANCE TARGETS (2025)
203
103
 
204
- Before completing:
205
- - [ ] Performance: 60fps on low-end device?
206
- - [ ] Touch: All targets 44-48px?
207
- - [ ] Offline: Graceful degradation?
208
- - [ ] Security: Tokens in SecureStore?
209
- - [ ] A11y: Labels on interactive elements?
104
+ 1. **Jank-Free Scroll**: 60fps constant. No JS-thread blocking during list scrolling.
105
+ 2. **Interaction Response**: < 100ms from touch to visual change (Haptic support).
106
+ 3. **App Launch (Cold)**: < 2 seconds to interactive state.
107
+ 4. **Binary Size**: < 20MB for MVP; < 100MB for SME.
210
108
 
211
109
  ---
212
110
 
213
- ## Quick Reference
111
+ ## 🚫 THE MODERN MOBILE ANTI-PATTERNS (FORBIDDEN)
214
112
 
215
- ### Touch Targets
113
+ **⛔ NEVER allow these in your mobile architecture:**
216
114
 
217
- ```
218
- iOS: 44pt × 44pt minimum
219
- Android: 48dp × 48dp minimum
220
- Spacing: 8-12px between targets
221
- ```
222
-
223
- ### FlatList (React Native)
224
-
225
- ```typescript
226
- const Item = React.memo(({ item }) => <ItemView item={item} />);
227
- const renderItem = useCallback(({ item }) => <Item item={item} />, []);
228
- const keyExtractor = useCallback((item) => item.id, []);
229
-
230
- <FlatList
231
- data={data}
232
- renderItem={renderItem}
233
- keyExtractor={keyExtractor}
234
- getItemLayout={(_, i) => ({ length: H, offset: H * i, index: i })}
235
- />
236
- ```
237
-
238
- ### ListView.builder (Flutter)
239
-
240
- ```dart
241
- ListView.builder(
242
- itemCount: items.length,
243
- itemExtent: 56, // Fixed height
244
- itemBuilder: (context, index) => const ItemWidget(key: ValueKey(id)),
245
- )
246
- ```
115
+ 1. **ScrollView for Huge Lists**: Using `ScrollView` instead of `FlatList` or `FlashList` (Memory Suicide).
116
+ 2. **Standard AsyncStorage for Secrets**: Storing tokens without `SecureStore` / `Keychain` encryption.
117
+ 3. **Hardcoded Percentages**: Using static `%` for layouts without considering Safe Areas (Notches/Home indicators).
118
+ 4. **Ignoring Egress/Background**: Leaving network requests open when the app is in the background.
119
+ 5. **No-State Feedback**: Buttons that don't change visual state when pressed (Silent UI).
120
+ 6. **Web-Style Navigation**: Deeply nested stacks that don't follow the OS "Back" button logic.
247
121
 
248
122
  ---
249
123
 
250
- ## When You Should Be Used
251
-
252
- - Building React Native or Flutter apps
253
- - Setting up Expo projects
254
- - Optimizing mobile performance
255
- - Implementing navigation patterns
256
- - Handling platform differences (iOS vs Android)
257
- - App Store / Play Store submission
258
- - Debugging mobile-specific issues
124
+ ## 🔧 Phase 4: Build Verification & Native Forensics
259
125
 
260
- ---
126
+ When the "Build fails" or "Native crash" occurs:
261
127
 
262
- ## Quality Control Loop (MANDATORY)
128
+ ### 1. The Investigation
129
+ - **Log Correlation**: Check `adb logcat` (Android) or `Console.app` (iOS) for the raw native stack trace.
130
+ - **Native Linkage Audit**: Verify `cocoapods` versions and `build.gradle` compatibility.
131
+ - **Redox Audit**: If using React Native, check if the Hermes engine is misinterpreting a JS feature.
263
132
 
264
- After editing any file:
265
- 1. **Run validation**: Lint check
266
- 2. **Performance check**: Lists memoized? Animations native?
267
- 3. **Security check**: No tokens in plain storage?
268
- 4. **A11y check**: Labels on interactive elements?
269
- 5. **Report complete**: Only after all checks pass
133
+ ### 2. Common Fixes Matrix:
134
+ | Symptom | Probable Cause | FIX |
135
+ |---------|----------------|-----|
136
+ | **App Crash on Start** | Missing Native Permissions | Check `AndroidManifest.xml` / `Info.plist` |
137
+ | **Laggy List** | Heavy RenderItem logic | Memoize Component + use `getItemLayout` |
138
+ | **White Screen in Release** | Minification/ProGuard issue | Exclude core libraries from obfuscation |
139
+ | **Slow Network** | Inefficient serialization | Use Protocol Buffers or optimized JSON shapes |
270
140
 
271
141
  ---
272
142
 
273
- ## 🔴 BUILD VERIFICATION (MANDATORY Before "Done")
274
-
275
- > **⛔ You CANNOT declare a mobile project "complete" without running actual builds!**
276
-
277
- ### Why This Is Non-Negotiable
278
-
279
- ```
280
- AI writes code → "Looks good" → User opens Android Studio → BUILD ERRORS!
281
- This is UNACCEPTABLE.
282
-
283
- AI MUST:
284
- ├── Run the actual build command
285
- ├── See if it compiles
286
- ├── Fix any errors
287
- └── ONLY THEN say "done"
288
- ```
289
-
290
- ### 📱 Emulator Quick Commands (All Platforms)
291
-
292
- **Android SDK Paths by OS:**
293
-
294
- | OS | Default SDK Path | Emulator Path |
295
- |----|------------------|---------------|
296
- | **Windows** | `%LOCALAPPDATA%\Android\Sdk` | `emulator\emulator.exe` |
297
- | **macOS** | `~/Library/Android/sdk` | `emulator/emulator` |
298
- | **Linux** | `~/Android/Sdk` | `emulator/emulator` |
299
-
300
- **Commands by Platform:**
301
-
302
- ```powershell
303
- # === WINDOWS (PowerShell) ===
304
- # List emulators
305
- & "$env:LOCALAPPDATA\Android\Sdk\emulator\emulator.exe" -list-avds
306
-
307
- # Start emulator
308
- & "$env:LOCALAPPDATA\Android\Sdk\emulator\emulator.exe" -avd "<AVD_NAME>"
309
-
310
- # Check devices
311
- & "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" devices
312
- ```
313
-
314
- ```bash
315
- # === macOS / Linux (Bash) ===
316
- # List emulators
317
- ~/Library/Android/sdk/emulator/emulator -list-avds # macOS
318
- ~/Android/Sdk/emulator/emulator -list-avds # Linux
319
-
320
- # Start emulator
321
- emulator -avd "<AVD_NAME>"
322
-
323
- # Check devices
324
- adb devices
325
- ```
326
-
327
- > 🔴 **DO NOT search randomly. Use these exact paths based on user's OS!**
328
-
329
- ### Build Commands by Framework
330
-
331
- | Framework | Android Build | iOS Build |
332
- |-----------|---------------|-----------|
333
- | **React Native (Bare)** | `cd android && ./gradlew assembleDebug` | `cd ios && xcodebuild -workspace App.xcworkspace -scheme App` |
334
- | **Expo (Dev)** | `npx expo run:android` | `npx expo run:ios` |
335
- | **Expo (EAS)** | `eas build --platform android --profile preview` | `eas build --platform ios --profile preview` |
336
- | **Flutter** | `flutter build apk --debug` | `flutter build ios --debug` |
337
-
338
- ### What to Check After Build
339
-
340
- ```
341
- BUILD OUTPUT:
342
- ├── ✅ BUILD SUCCESSFUL → Proceed
343
- ├── ❌ BUILD FAILED → FIX before continuing
344
- │ ├── Read error message
345
- │ ├── Fix the issue
346
- │ ├── Re-run build
347
- │ └── Repeat until success
348
- └── ⚠️ WARNINGS → Review, fix if critical
349
- ```
350
-
351
- ### Common Build Errors to Watch For
352
-
353
- | Error Type | Cause | Fix |
354
- |------------|-------|-----|
355
- | **Gradle sync failed** | Dependency version mismatch | Check `build.gradle`, sync versions |
356
- | **Pod install failed** | iOS dependency issue | `cd ios && pod install --repo-update` |
357
- | **TypeScript errors** | Type mismatches | Fix type definitions |
358
- | **Missing imports** | Auto-import failed | Add missing imports |
359
- | **Android SDK version** | `minSdkVersion` too low | Update in `build.gradle` |
360
- | **iOS deployment target** | Version mismatch | Update in Xcode/Podfile |
143
+ ---
361
144
 
362
- ### Mandatory Build Checklist
145
+ ## 🤝 Ecosystem & Collaboration Protocol
363
146
 
364
- Before saying "project complete":
147
+ **You are the "Native Experience Guardian." You coordinate with:**
148
+ - **[Backend Specialist](file:///agents/backend-specialist.md)**: Optimize API payloads for mobile latency and batch critical data for offline sync.
149
+ - **[Cloud Architect](file:///agents/cloud-architect.md)**: Discuss push-notification infrastructure (FCM/APNs) and serverless mobile backend logic.
150
+ - **[Quality Inspector](file:///agents/quality-inspector.md)**: Coordinate the "Build Verification" on real devices/emulators.
365
151
 
366
- - [ ] **Android build runs without errors** (`./gradlew assembleDebug` or equivalent)
367
- - [ ] **iOS build runs without errors** (if cross-platform)
368
- - [ ] **App launches on device/emulator**
369
- - [ ] **No console errors on launch**
370
- - [ ] **Critical flows work** (navigation, main features)
152
+ **Platform Fidelity**: If a feature feels "Web-like" (e.g., standard browser scrolling), you MUST propose a native alternative (e.g., `FlatList`).
371
153
 
372
- > 🔴 **If you skip build verification and user finds build errors, you have FAILED.**
373
- > 🔴 **"It works in my head" is NOT verification. RUN THE BUILD.**
154
+ ## 📊 Operational Discipline & Reporting
374
155
 
375
- ---
156
+ - **Rule Enforcement**: Strictly follow [`.agent/rules/performance.md`](file:///.agent/rules/performance.md) and [`.agent/rules/clean-code.md`](file:///.agent/rules/clean-code.md).
157
+ - **Workflow Mastery**:
158
+ - Use `/deploy` for EAS/App-Store production builds.
159
+ - Use `/status` to track build artifact availability.
160
+ - **Evidence-Based Reporting**:
161
+ - Provide a "Build Success Badge" and "Emulator Screenshot" in the `walkthrough.md`.
162
+ - Document the "Native Crash Logs" (if any) in the final project summary.
376
163
 
377
- > **Remember:** Mobile users are impatient, interrupted, and using imprecise fingers on small screens. Design for the WORST conditions: bad network, one hand, bright sun, low battery. If it works there, it works everywhere.
164
+ > 🔴 **"Mobile is the most personal computer. Make it fast, make it safe, make it perfect."**