create-huenei-template 0.2.6 → 0.2.8

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 (1563) hide show
  1. package/dist/config/templates.js +7 -0
  2. package/dist/templates/README.md +162 -0
  3. package/dist/templates/backend/README.md +118 -0
  4. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/nestjs-code-reviewer.md +54 -0
  5. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/prisma-guardian.md +67 -0
  6. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/test-runner.md +57 -0
  7. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/autoTestOnStop.ts +127 -0
  8. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/blockDangerous.ts +98 -0
  9. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/ensureTestsExist.ts +405 -0
  10. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/formatOnEdit.ts +70 -0
  11. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/protectSecrets.ts +101 -0
  12. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/sessionInit.ts +104 -0
  13. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/validatePrisma.ts +121 -0
  14. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks.json +46 -0
  15. package/dist/templates/backend/nestjs-api-mysql/README.md +26 -0
  16. package/dist/templates/backend/nestjs-api-mysql/eslint.config.mjs +1 -1
  17. package/dist/templates/backend/nestjs-api-mysql/package.json +106 -106
  18. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +54 -0
  19. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +62 -0
  20. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +71 -0
  21. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +58 -0
  22. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +62 -0
  23. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +202 -0
  24. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +124 -0
  25. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +105 -0
  26. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +130 -0
  27. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks.json +36 -0
  28. package/dist/templates/backend/nestjs-api-postgres/eslint.config.mjs +1 -1
  29. package/dist/templates/backend/nestjs-api-postgres/package.json +106 -106
  30. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +153 -0
  31. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +138 -0
  32. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +164 -0
  33. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +150 -0
  34. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +290 -0
  35. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +80 -0
  36. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +144 -0
  37. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +64 -0
  38. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +122 -0
  39. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +105 -0
  40. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +18 -0
  41. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/conventional-commits/SKILL.md +318 -0
  42. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/docker/SKILL.md +82 -0
  43. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/jest/SKILL.md +72 -0
  44. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/logging-best-practices/SKILL.md +127 -0
  45. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-database-setup/SKILL.md +186 -0
  46. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/quality-gates-enforcer/SKILL.md +301 -0
  47. package/dist/templates/backend/nestjs-api-sqlite/README.md +34 -1
  48. package/dist/templates/backend/nestjs-api-sqlite/eslint.config.mjs +1 -1
  49. package/dist/templates/backend/nestjs-api-sqlite/package.json +104 -104
  50. package/dist/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +1 -0
  51. package/dist/templates/backend/nestjs-api-sqlite/prisma/seed.ts +2 -2
  52. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +5 -1
  53. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +1 -1
  54. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +1 -1
  55. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +4 -0
  56. package/dist/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +24 -8
  57. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +1 -0
  58. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +54 -0
  59. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +67 -0
  60. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +57 -0
  61. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +209 -0
  62. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +201 -0
  63. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +127 -0
  64. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +98 -0
  65. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +405 -0
  66. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +70 -0
  67. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +101 -0
  68. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +104 -0
  69. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +121 -0
  70. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +46 -0
  71. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/api-rest.mdc +126 -0
  72. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/authentication-security.mdc +86 -0
  73. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/dto-validation.mdc +93 -0
  74. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/general-rules.mdc +126 -0
  75. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/nestjs-architecture.mdc +83 -0
  76. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/prisma-standards.mdc +111 -0
  77. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/swagger-documentation.mdc +90 -0
  78. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  79. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/docker-expert/SKILL.md +409 -0
  80. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  81. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  82. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  83. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  84. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/prisma-expert/SKILL.md +355 -0
  85. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/sqlserver-table-design/SKILL.md +125 -0
  86. package/dist/templates/backend/nestjs-api-sqlserver/.dockerignore +50 -0
  87. package/dist/templates/backend/nestjs-api-sqlserver/.env.example +17 -0
  88. package/dist/templates/backend/nestjs-api-sqlserver/.env.test +17 -0
  89. package/dist/templates/backend/nestjs-api-sqlserver/.prettierrc +4 -0
  90. package/dist/templates/backend/nestjs-api-sqlserver/README.md +587 -0
  91. package/dist/templates/backend/nestjs-api-sqlserver/docker-compose.yml +24 -0
  92. package/dist/templates/backend/nestjs-api-sqlserver/eslint.config.mjs +41 -0
  93. package/dist/templates/backend/nestjs-api-sqlserver/nest-cli.json +8 -0
  94. package/dist/templates/backend/nestjs-api-sqlserver/package.json +107 -0
  95. package/dist/templates/backend/nestjs-api-sqlserver/prisma/schema.prisma +70 -0
  96. package/dist/templates/backend/nestjs-api-sqlserver/prisma/seed.ts +215 -0
  97. package/dist/templates/backend/nestjs-api-sqlserver/prisma.config.ts +12 -0
  98. package/dist/templates/backend/nestjs-api-sqlserver/scripts/check-docker.js +64 -0
  99. package/dist/templates/backend/nestjs-api-sqlserver/src/app.module.ts +39 -0
  100. package/dist/templates/backend/nestjs-api-sqlserver/src/app.service.ts +8 -0
  101. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.controller.ts +36 -0
  102. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.module.ts +22 -0
  103. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.service.ts +64 -0
  104. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/decorators/roles.decorator.ts +5 -0
  105. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/dto/login-response.dto.ts +23 -0
  106. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/dto/login.dto.ts +27 -0
  107. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/enums/role.enum.ts +5 -0
  108. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/guards/jwt-auth.guard.ts +20 -0
  109. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/guards/roles.guard.ts +23 -0
  110. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/strategies/jwt.strategy.ts +32 -0
  111. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/types.ts +18 -0
  112. package/dist/templates/backend/nestjs-api-sqlserver/src/common/dto/paginated-response.dto.ts +16 -0
  113. package/dist/templates/backend/nestjs-api-sqlserver/src/common/dto/pagination.dto.ts +31 -0
  114. package/dist/templates/backend/nestjs-api-sqlserver/src/common/filters/http-exception.filter.ts +53 -0
  115. package/dist/templates/backend/nestjs-api-sqlserver/src/config/env.validation.ts +41 -0
  116. package/dist/templates/backend/nestjs-api-sqlserver/src/health/health.controller.ts +35 -0
  117. package/dist/templates/backend/nestjs-api-sqlserver/src/health/health.module.ts +7 -0
  118. package/dist/templates/backend/nestjs-api-sqlserver/src/main.ts +87 -0
  119. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/create-post.dto.ts +32 -0
  120. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/post-response.dto.ts +41 -0
  121. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/update-post.dto.ts +31 -0
  122. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.controller.ts +161 -0
  123. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.module.ts +12 -0
  124. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.service.ts +171 -0
  125. package/dist/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.module.ts +9 -0
  126. package/dist/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.service.ts +62 -0
  127. package/dist/templates/backend/nestjs-api-sqlserver/src/users/constants/settings.constants.ts +9 -0
  128. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/profile-response.dto.ts +39 -0
  129. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/settings-response.dto.ts +18 -0
  130. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/update-profile.dto.ts +48 -0
  131. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/update-settings.dto.ts +40 -0
  132. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/user-response.dto.ts +18 -0
  133. package/dist/templates/backend/nestjs-api-sqlserver/src/users/profile.service.ts +67 -0
  134. package/dist/templates/backend/nestjs-api-sqlserver/src/users/settings.service.ts +77 -0
  135. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.controller.ts +102 -0
  136. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.module.ts +14 -0
  137. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.service.ts +27 -0
  138. package/dist/templates/backend/nestjs-api-sqlserver/test/README.md +412 -0
  139. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/auth.e2e-spec.ts +147 -0
  140. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/health.e2e-spec.ts +62 -0
  141. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/posts.e2e-spec.ts +407 -0
  142. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/users.e2e-spec.ts +287 -0
  143. package/dist/templates/backend/nestjs-api-sqlserver/test/fixtures/test-data.ts +109 -0
  144. package/dist/templates/backend/nestjs-api-sqlserver/test/helpers/auth.helper.ts +54 -0
  145. package/dist/templates/backend/nestjs-api-sqlserver/test/helpers/db.helper.ts +68 -0
  146. package/dist/templates/backend/nestjs-api-sqlserver/test/jest-e2e.json +12 -0
  147. package/dist/templates/backend/nestjs-api-sqlserver/test/setup-e2e.ts +8 -0
  148. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/app.service.spec.ts +24 -0
  149. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/auth.controller.spec.ts +91 -0
  150. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/auth.service.spec.ts +161 -0
  151. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/health.controller.spec.ts +78 -0
  152. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/http-exception.filter.spec.ts +150 -0
  153. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/jwt-auth.guard.spec.ts +50 -0
  154. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/jwt.strategy.spec.ts +41 -0
  155. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/posts.controller.spec.ts +249 -0
  156. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/posts.service.spec.ts +328 -0
  157. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/profile.service.spec.ts +146 -0
  158. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/settings.service.spec.ts +242 -0
  159. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/users.controller.spec.ts +178 -0
  160. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/users.service.spec.ts +96 -0
  161. package/dist/templates/backend/nestjs-api-sqlserver/tsconfig.build.json +4 -0
  162. package/dist/templates/backend/nestjs-api-sqlserver/tsconfig.json +28 -0
  163. package/dist/templates/frontend/README.md +69 -0
  164. package/dist/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +67 -0
  165. package/dist/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +60 -0
  166. package/dist/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +70 -0
  167. package/dist/templates/frontend/angular-base/.cursor/agents/security-auditor.md +58 -0
  168. package/dist/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +70 -0
  169. package/dist/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +113 -0
  170. package/dist/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +160 -0
  171. package/dist/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +363 -0
  172. package/dist/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +118 -0
  173. package/dist/templates/frontend/angular-base/.cursor/hooks/session-context.ts +110 -0
  174. package/dist/templates/frontend/angular-base/.cursor/hooks.json +41 -0
  175. package/dist/templates/frontend/angular-base/README.md +188 -192
  176. package/dist/templates/frontend/angular-base/package.json +92 -92
  177. package/dist/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +64 -0
  178. package/dist/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +69 -0
  179. package/dist/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +75 -0
  180. package/dist/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +61 -0
  181. package/dist/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +70 -0
  182. package/dist/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +115 -0
  183. package/dist/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +188 -0
  184. package/dist/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +399 -0
  185. package/dist/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +128 -0
  186. package/dist/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +121 -0
  187. package/dist/templates/frontend/angular-nx/.cursor/hooks.json +41 -0
  188. package/dist/templates/frontend/angular-nx/package.json +102 -102
  189. package/dist/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -0
  190. package/dist/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +126 -0
  191. package/dist/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -0
  192. package/dist/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -0
  193. package/dist/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +117 -0
  194. package/dist/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +75 -0
  195. package/dist/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +306 -0
  196. package/dist/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +49 -0
  197. package/dist/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +88 -0
  198. package/dist/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +77 -0
  199. package/dist/templates/frontend/react-vite/.cursor/hooks.json +41 -0
  200. package/dist/templates/frontend/react-vite/.cursor/rules/architech.mdc +35 -20
  201. package/dist/templates/frontend/react-vite/.cursor/settings.json +13 -0
  202. package/dist/templates/frontend/react-vite/.husky/pre-commit +1 -0
  203. package/dist/templates/frontend/react-vite/.vscode/settings.json +31 -0
  204. package/dist/templates/frontend/react-vite/README.md +238 -61
  205. package/dist/templates/frontend/react-vite/package.json +22 -2
  206. package/dist/templates/frontend/react-vite/pnpm-lock.yaml +6575 -4487
  207. package/dist/templates/frontend/react-vite/pnpm-workspace.yaml +5 -2
  208. package/dist/templates/frontend/react-vite/src/__tests__/components/layout/navbar.test.tsx +63 -0
  209. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/avatar.test.tsx +74 -0
  210. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/badge.test.tsx +55 -0
  211. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
  212. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/button.test.tsx +121 -0
  213. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/card.test.tsx +144 -0
  214. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/dialog.test.tsx +121 -0
  215. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/form.test.tsx +165 -0
  216. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/input.test.tsx +52 -0
  217. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/label.test.tsx +40 -0
  218. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/password-input.test.tsx +59 -0
  219. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/separator.test.tsx +40 -0
  220. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/table.test.tsx +254 -0
  221. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/tabs.test.tsx +82 -0
  222. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/textarea.test.tsx +47 -0
  223. package/dist/templates/frontend/react-vite/src/__tests__/helpers/render.tsx +114 -0
  224. package/dist/templates/frontend/react-vite/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
  225. package/dist/templates/frontend/react-vite/src/__tests__/lib/queryClient.test.ts +24 -0
  226. package/dist/templates/frontend/react-vite/src/__tests__/lib/utils.test.ts +43 -0
  227. package/dist/templates/frontend/react-vite/src/__tests__/routes/index.test.tsx +111 -0
  228. package/dist/templates/frontend/react-vite/src/__tests__/routes/otra-ruta.test.tsx +126 -0
  229. package/dist/templates/frontend/react-vite/src/__tests__/routes/root.test.tsx +78 -0
  230. package/dist/templates/frontend/react-vite/src/__tests__/routes/ui-components.test.tsx +286 -0
  231. package/dist/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -0
  232. package/dist/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -0
  233. package/dist/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -0
  234. package/dist/templates/frontend/react-vite/src/components/ui/table.tsx +229 -0
  235. package/dist/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -0
  236. package/dist/templates/frontend/react-vite/src/index.css +27 -27
  237. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +48 -82
  238. package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +1305 -0
  239. package/dist/templates/frontend/react-vite/src/test/setup.ts +61 -1
  240. package/dist/templates/frontend/react-vite/vite.config.ts +6 -1
  241. package/dist/templates/frontend/react-vite/vitest.config.ts +38 -0
  242. package/dist/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +49 -0
  243. package/dist/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +49 -0
  244. package/dist/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +39 -0
  245. package/dist/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +45 -0
  246. package/dist/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +220 -0
  247. package/dist/templates/frontend/react-vite-help/.cursor/hooks.json +10 -0
  248. package/dist/templates/frontend/react-vite-help/.cursor/mcp.json +1 -1
  249. package/dist/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +33 -23
  250. package/dist/templates/frontend/react-vite-help/.cursor/settings.json +13 -0
  251. package/dist/templates/frontend/react-vite-help/.husky/pre-commit +1 -0
  252. package/dist/templates/frontend/react-vite-help/README.md +287 -61
  253. package/dist/templates/frontend/react-vite-help/package.json +82 -62
  254. package/dist/templates/frontend/react-vite-help/pnpm-lock.yaml +6319 -4487
  255. package/dist/templates/frontend/react-vite-help/pnpm-workspace.yaml +5 -2
  256. package/dist/templates/frontend/react-vite-help/src/__tests__/components/documentacion/tabs.test.tsx +95 -0
  257. package/dist/templates/frontend/react-vite-help/src/__tests__/components/layout/navbar.test.tsx +96 -0
  258. package/dist/templates/frontend/react-vite-help/src/__tests__/components/layout/sidebar.test.tsx +68 -0
  259. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/avatar.test.tsx +53 -0
  260. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/badge.test.tsx +50 -0
  261. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/breadcrumb.test.tsx +95 -0
  262. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/button.test.tsx +76 -0
  263. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/card.test.tsx +95 -0
  264. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/dialog.test.tsx +83 -0
  265. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/form.test.tsx +130 -0
  266. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/input.test.tsx +39 -0
  267. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/label.test.tsx +25 -0
  268. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/password-input.test.tsx +45 -0
  269. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/separator.test.tsx +35 -0
  270. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/table.test.tsx +126 -0
  271. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/tabs.test.tsx +66 -0
  272. package/dist/templates/frontend/react-vite-help/src/__tests__/components/ui/textarea.test.tsx +34 -0
  273. package/dist/templates/frontend/react-vite-help/src/__tests__/data/dashboard.test.ts +100 -0
  274. package/dist/templates/frontend/react-vite-help/src/__tests__/data/proyectos-seed.test.ts +51 -0
  275. package/dist/templates/frontend/react-vite-help/src/__tests__/hooks/useAuth.test.tsx +135 -0
  276. package/dist/templates/frontend/react-vite-help/src/__tests__/hooks/useLocalStorage.test.ts +89 -0
  277. package/dist/templates/frontend/react-vite-help/src/__tests__/lib/auth.test.ts +102 -0
  278. package/dist/templates/frontend/react-vite-help/src/__tests__/lib/queryClient.test.ts +24 -0
  279. package/dist/templates/frontend/react-vite-help/src/__tests__/lib/utils.test.ts +31 -0
  280. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/__root.test.tsx +72 -0
  281. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/dashboard.test.tsx +106 -0
  282. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/perfil.test.tsx +54 -0
  283. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/proyectos-crud.test.tsx +272 -0
  284. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/ui-components.test.tsx +150 -0
  285. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated.test.tsx +58 -0
  286. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/iniciar-sesion.test.tsx +107 -0
  287. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/recuperar-password.test.tsx +56 -0
  288. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/auth/registro.test.tsx +106 -0
  289. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/contacto.test.tsx +219 -0
  290. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/documentacion.test.tsx +81 -0
  291. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/index.test.tsx +69 -0
  292. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/proyectos-detalle.test.tsx +90 -0
  293. package/dist/templates/frontend/react-vite-help/src/__tests__/routes/proyectos.test.tsx +74 -0
  294. package/dist/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +1 -0
  295. package/dist/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +100 -1
  296. package/dist/templates/frontend/react-vite-help/src/components/layout/navbar.tsx +75 -0
  297. package/dist/templates/frontend/react-vite-help/src/components/layout/sidebar.tsx +101 -0
  298. package/dist/templates/frontend/react-vite-help/src/components/ui/avatar.tsx +42 -0
  299. package/dist/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -106
  300. package/dist/templates/frontend/react-vite-help/src/components/ui/dialog.tsx +122 -0
  301. package/dist/templates/frontend/react-vite-help/src/components/ui/table.tsx +244 -0
  302. package/dist/templates/frontend/react-vite-help/src/data/dashboard.ts +255 -0
  303. package/dist/templates/frontend/react-vite-help/src/data/proyectos-seed.ts +87 -0
  304. package/dist/templates/frontend/react-vite-help/src/hooks/useAuth.tsx +73 -0
  305. package/dist/templates/frontend/react-vite-help/src/hooks/useLocalStorage.ts +32 -0
  306. package/dist/templates/frontend/react-vite-help/src/index.css +104 -104
  307. package/dist/templates/frontend/react-vite-help/src/lib/auth.ts +126 -0
  308. package/dist/templates/frontend/react-vite-help/src/main.tsx +54 -33
  309. package/dist/templates/frontend/react-vite-help/src/router.tsx +8 -0
  310. package/dist/templates/frontend/react-vite-help/src/routes/__root.tsx +21 -59
  311. package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/dashboard.tsx +413 -0
  312. package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/perfil.tsx +71 -0
  313. package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/proyectos-crud.tsx +559 -0
  314. package/dist/templates/frontend/react-vite-help/src/routes/_authenticated/ui-components.tsx +1054 -0
  315. package/dist/templates/frontend/react-vite-help/src/routes/_authenticated.tsx +39 -0
  316. package/dist/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +50 -26
  317. package/dist/templates/frontend/react-vite-help/src/routes/auth/recuperar-password.tsx +107 -0
  318. package/dist/templates/frontend/react-vite-help/src/routes/contacto.tsx +839 -37
  319. package/dist/templates/frontend/react-vite-help/src/routes/index.tsx +16 -13
  320. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +11 -14
  321. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.tsx +16 -20
  322. package/dist/templates/frontend/react-vite-help/src/test/mocks/recharts.tsx +35 -0
  323. package/dist/templates/frontend/react-vite-help/src/test/mocks/router.ts +27 -0
  324. package/dist/templates/frontend/react-vite-help/src/test/setup.ts +61 -1
  325. package/dist/templates/frontend/react-vite-help/src/test/utils.tsx +57 -0
  326. package/dist/templates/frontend/react-vite-help/vite.config.ts +30 -22
  327. package/dist/templates/frontend/react-vite-help/vitest.config.ts +44 -9
  328. package/dist/templates/mobile/README.md +83 -0
  329. package/dist/templates/mobile/expo-base/.cursor/agents/api-integration.md +139 -0
  330. package/dist/templates/mobile/expo-base/.cursor/agents/feature-architect.md +131 -0
  331. package/dist/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +147 -0
  332. package/dist/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +137 -0
  333. package/dist/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +123 -0
  334. package/dist/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +106 -0
  335. package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/SKILL.md +420 -0
  336. package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/aria-patterns.md +567 -0
  337. package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
  338. package/dist/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
  339. package/dist/templates/mobile/expo-base/.cursor/skills/auth-implementation-patterns/SKILL.md +647 -0
  340. package/dist/templates/mobile/expo-base/.cursor/skills/code-review-excellence/SKILL.md +538 -0
  341. package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/SKILL.md +337 -0
  342. package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/component-architecture.md +617 -0
  343. package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/design-tokens.md +420 -0
  344. package/dist/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/theming-architecture.md +521 -0
  345. package/dist/templates/mobile/expo-base/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
  346. package/dist/templates/mobile/expo-base/.cursor/skills/eslint-prettier-config/SKILL.md +540 -0
  347. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/SKILL.md +190 -0
  348. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/app-store-metadata.md +479 -0
  349. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/ios-app-store.md +355 -0
  350. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/play-store.md +246 -0
  351. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/testflight.md +58 -0
  352. package/dist/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/workflows.md +200 -0
  353. package/dist/templates/mobile/expo-base/.cursor/skills/github-actions-templates/SKILL.md +334 -0
  354. package/dist/templates/mobile/expo-base/.cursor/skills/i18n-localization/SKILL.md +154 -0
  355. package/dist/templates/mobile/expo-base/.cursor/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  356. package/dist/templates/mobile/expo-base/.cursor/skills/jest-typescript/SKILL.md +1092 -0
  357. package/dist/templates/mobile/expo-base/.cursor/skills/maestro-mobile-testing/SKILL.md +982 -0
  358. package/dist/templates/mobile/expo-base/.cursor/skills/mobile-security-coder/SKILL.md +184 -0
  359. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/GENERATION.md +5 -0
  360. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/SKILL.md +42 -0
  361. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-ci.md +285 -0
  362. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-migration.md +291 -0
  363. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-performance.md +284 -0
  364. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-cli.md +229 -0
  365. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-config.md +188 -0
  366. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-store.md +179 -0
  367. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-workspaces.md +205 -0
  368. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-aliases.md +168 -0
  369. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-catalogs.md +159 -0
  370. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-hooks.md +233 -0
  371. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-overrides.md +184 -0
  372. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-patches.md +201 -0
  373. package/dist/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-peer-deps.md +250 -0
  374. package/dist/templates/mobile/expo-base/.cursor/skills/react-native-architecture/SKILL.md +673 -0
  375. package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/SKILL.md +440 -0
  376. package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/navigation-patterns.md +832 -0
  377. package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/reanimated-patterns.md +775 -0
  378. package/dist/templates/mobile/expo-base/.cursor/skills/react-native-design/references/styling-patterns.md +871 -0
  379. package/dist/templates/mobile/expo-base/.cursor/skills/react-state-management/SKILL.md +437 -0
  380. package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/SKILL.md +190 -0
  381. package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/dev-tuning.md +167 -0
  382. package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/perf-checklist.md +40 -0
  383. package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/reanimated-v4.md +108 -0
  384. package/dist/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/skia-shaders.md +66 -0
  385. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/CREATION-LOG.md +119 -0
  386. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/SKILL.md +296 -0
  387. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  388. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting.md +115 -0
  389. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/defense-in-depth.md +122 -0
  390. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/find-polluter.sh +63 -0
  391. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/root-cause-tracing.md +169 -0
  392. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-academic.md +14 -0
  393. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-1.md +58 -0
  394. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-2.md +68 -0
  395. package/dist/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-3.md +69 -0
  396. package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
  397. package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/README.md +228 -0
  398. package/dist/templates/mobile/expo-base/.cursor/skills/tanstack-query/SKILL.md +1585 -0
  399. package/dist/templates/mobile/expo-base/.cursor/skills/test-driven-development/SKILL.md +371 -0
  400. package/dist/templates/mobile/expo-base/.cursor/skills/test-driven-development/testing-anti-patterns.md +299 -0
  401. package/dist/templates/mobile/expo-base/.cursor/skills/typescript-advanced-types/SKILL.md +724 -0
  402. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/AGENTS.md +946 -0
  403. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/SKILL.md +89 -0
  404. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  405. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
  406. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  407. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
  408. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
  409. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-context-interface.md +191 -0
  410. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
  411. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-lift-state.md +125 -0
  412. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/AGENTS.md +2897 -0
  413. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/README.md +165 -0
  414. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/SKILL.md +121 -0
  415. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-derived-value.md +53 -0
  416. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gesture-detector-press.md +95 -0
  417. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gpu-properties.md +65 -0
  418. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/design-system-compound-components.md +66 -0
  419. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/fonts-config-plugin.md +71 -0
  420. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/imports-design-system-folder.md +68 -0
  421. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/js-hoist-intl.md +61 -0
  422. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-callbacks.md +44 -0
  423. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-function-references.md +132 -0
  424. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-images.md +53 -0
  425. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-inline-objects.md +97 -0
  426. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-expensive.md +94 -0
  427. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-memo.md +82 -0
  428. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-types.md +104 -0
  429. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-virtualize.md +67 -0
  430. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
  431. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
  432. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/navigation-native-navigators.md +188 -0
  433. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
  434. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
  435. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-dispatcher.md +91 -0
  436. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-fallback.md +56 -0
  437. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-minimize.md +65 -0
  438. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-no-falsy-and.md +74 -0
  439. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-text-in-text-component.md +36 -0
  440. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/scroll-position-no-state.md +82 -0
  441. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/state-ground-truth.md +80 -0
  442. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-expo-image.md +66 -0
  443. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-image-gallery.md +104 -0
  444. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-measure-views.md +78 -0
  445. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-menus.md +174 -0
  446. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-native-modals.md +77 -0
  447. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-pressable.md +61 -0
  448. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-safe-area-scroll.md +65 -0
  449. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
  450. package/dist/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-styling.md +87 -0
  451. package/dist/templates/mobile/expo-base/README.md +112 -2
  452. package/dist/templates/mobile/expo-base/package.json +74 -74
  453. package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +7 -4
  454. package/package.json +26 -25
  455. package/templates/README.md +162 -0
  456. package/templates/backend/README.md +118 -0
  457. package/templates/backend/nestjs-api-mysql/.cursor/agents/nestjs-code-reviewer.md +54 -0
  458. package/templates/backend/nestjs-api-mysql/.cursor/agents/prisma-guardian.md +67 -0
  459. package/templates/backend/nestjs-api-mysql/.cursor/agents/test-runner.md +57 -0
  460. package/templates/backend/nestjs-api-mysql/.cursor/hooks/autoTestOnStop.ts +127 -0
  461. package/templates/backend/nestjs-api-mysql/.cursor/hooks/blockDangerous.ts +98 -0
  462. package/templates/backend/nestjs-api-mysql/.cursor/hooks/ensureTestsExist.ts +405 -0
  463. package/templates/backend/nestjs-api-mysql/.cursor/hooks/formatOnEdit.ts +70 -0
  464. package/templates/backend/nestjs-api-mysql/.cursor/hooks/protectSecrets.ts +101 -0
  465. package/templates/backend/nestjs-api-mysql/.cursor/hooks/sessionInit.ts +104 -0
  466. package/templates/backend/nestjs-api-mysql/.cursor/hooks/validatePrisma.ts +121 -0
  467. package/templates/backend/nestjs-api-mysql/.cursor/hooks.json +46 -0
  468. package/templates/backend/nestjs-api-mysql/README.md +26 -0
  469. package/templates/backend/nestjs-api-mysql/dist/tsconfig.build.tsbuildinfo +1 -1
  470. package/templates/backend/nestjs-api-mysql/eslint.config.mjs +1 -1
  471. package/templates/backend/nestjs-api-mysql/package.json +106 -106
  472. package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +54 -0
  473. package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +62 -0
  474. package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +71 -0
  475. package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +58 -0
  476. package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +62 -0
  477. package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +202 -0
  478. package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +124 -0
  479. package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +105 -0
  480. package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +130 -0
  481. package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +36 -0
  482. package/templates/backend/nestjs-api-postgres/eslint.config.mjs +1 -1
  483. package/templates/backend/nestjs-api-postgres/package.json +106 -106
  484. package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +153 -0
  485. package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +138 -0
  486. package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +164 -0
  487. package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +150 -0
  488. package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +290 -0
  489. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +80 -0
  490. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +144 -0
  491. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +64 -0
  492. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +122 -0
  493. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +105 -0
  494. package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +18 -0
  495. package/templates/backend/nestjs-api-sqlite/.cursor/skills/conventional-commits/SKILL.md +318 -0
  496. package/templates/backend/nestjs-api-sqlite/.cursor/skills/docker/SKILL.md +82 -0
  497. package/templates/backend/nestjs-api-sqlite/.cursor/skills/jest/SKILL.md +72 -0
  498. package/templates/backend/nestjs-api-sqlite/.cursor/skills/logging-best-practices/SKILL.md +127 -0
  499. package/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-database-setup/SKILL.md +186 -0
  500. package/templates/backend/nestjs-api-sqlite/.cursor/skills/quality-gates-enforcer/SKILL.md +301 -0
  501. package/templates/backend/nestjs-api-sqlite/README.md +34 -1
  502. package/templates/backend/nestjs-api-sqlite/eslint.config.mjs +1 -1
  503. package/templates/backend/nestjs-api-sqlite/package.json +104 -104
  504. package/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +1 -0
  505. package/templates/backend/nestjs-api-sqlite/prisma/seed.ts +2 -2
  506. package/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +5 -1
  507. package/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +1 -1
  508. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +1 -1
  509. package/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +4 -0
  510. package/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +24 -8
  511. package/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +1 -0
  512. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +54 -0
  513. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +67 -0
  514. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +57 -0
  515. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +209 -0
  516. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +201 -0
  517. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +127 -0
  518. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +98 -0
  519. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +405 -0
  520. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +70 -0
  521. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +101 -0
  522. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +104 -0
  523. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +121 -0
  524. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +46 -0
  525. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/api-rest.mdc +126 -0
  526. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/authentication-security.mdc +86 -0
  527. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/dto-validation.mdc +93 -0
  528. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/general-rules.mdc +126 -0
  529. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/nestjs-architecture.mdc +83 -0
  530. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/prisma-standards.mdc +111 -0
  531. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/swagger-documentation.mdc +90 -0
  532. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  533. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/docker-expert/SKILL.md +409 -0
  534. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  535. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  536. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  537. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  538. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/prisma-expert/SKILL.md +355 -0
  539. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/sqlserver-table-design/SKILL.md +125 -0
  540. package/templates/backend/nestjs-api-sqlserver/.dockerignore +50 -0
  541. package/templates/backend/nestjs-api-sqlserver/.env.example +17 -0
  542. package/templates/backend/nestjs-api-sqlserver/.env.test +17 -0
  543. package/templates/backend/nestjs-api-sqlserver/.prettierrc +4 -0
  544. package/templates/backend/nestjs-api-sqlserver/README.md +587 -0
  545. package/templates/backend/nestjs-api-sqlserver/docker-compose.yml +24 -0
  546. package/templates/backend/nestjs-api-sqlserver/eslint.config.mjs +41 -0
  547. package/templates/backend/nestjs-api-sqlserver/nest-cli.json +8 -0
  548. package/templates/backend/nestjs-api-sqlserver/package.json +107 -0
  549. package/templates/backend/nestjs-api-sqlserver/prisma/schema.prisma +70 -0
  550. package/templates/backend/nestjs-api-sqlserver/prisma/seed.ts +215 -0
  551. package/templates/backend/nestjs-api-sqlserver/prisma.config.ts +12 -0
  552. package/templates/backend/nestjs-api-sqlserver/scripts/check-docker.js +64 -0
  553. package/templates/backend/nestjs-api-sqlserver/src/app.module.ts +39 -0
  554. package/templates/backend/nestjs-api-sqlserver/src/app.service.ts +8 -0
  555. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.controller.ts +36 -0
  556. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.module.ts +22 -0
  557. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.service.ts +64 -0
  558. package/templates/backend/nestjs-api-sqlserver/src/auth/decorators/roles.decorator.ts +5 -0
  559. package/templates/backend/nestjs-api-sqlserver/src/auth/dto/login-response.dto.ts +23 -0
  560. package/templates/backend/nestjs-api-sqlserver/src/auth/dto/login.dto.ts +27 -0
  561. package/templates/backend/nestjs-api-sqlserver/src/auth/enums/role.enum.ts +5 -0
  562. package/templates/backend/nestjs-api-sqlserver/src/auth/guards/jwt-auth.guard.ts +20 -0
  563. package/templates/backend/nestjs-api-sqlserver/src/auth/guards/roles.guard.ts +23 -0
  564. package/templates/backend/nestjs-api-sqlserver/src/auth/strategies/jwt.strategy.ts +32 -0
  565. package/templates/backend/nestjs-api-sqlserver/src/auth/types.ts +18 -0
  566. package/templates/backend/nestjs-api-sqlserver/src/common/dto/paginated-response.dto.ts +16 -0
  567. package/templates/backend/nestjs-api-sqlserver/src/common/dto/pagination.dto.ts +31 -0
  568. package/templates/backend/nestjs-api-sqlserver/src/common/filters/http-exception.filter.ts +53 -0
  569. package/templates/backend/nestjs-api-sqlserver/src/config/env.validation.ts +41 -0
  570. package/templates/backend/nestjs-api-sqlserver/src/health/health.controller.ts +35 -0
  571. package/templates/backend/nestjs-api-sqlserver/src/health/health.module.ts +7 -0
  572. package/templates/backend/nestjs-api-sqlserver/src/main.ts +87 -0
  573. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/create-post.dto.ts +32 -0
  574. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/post-response.dto.ts +41 -0
  575. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/update-post.dto.ts +31 -0
  576. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.controller.ts +161 -0
  577. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.module.ts +12 -0
  578. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.service.ts +171 -0
  579. package/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.module.ts +9 -0
  580. package/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.service.ts +62 -0
  581. package/templates/backend/nestjs-api-sqlserver/src/users/constants/settings.constants.ts +9 -0
  582. package/templates/backend/nestjs-api-sqlserver/src/users/dto/profile-response.dto.ts +39 -0
  583. package/templates/backend/nestjs-api-sqlserver/src/users/dto/settings-response.dto.ts +18 -0
  584. package/templates/backend/nestjs-api-sqlserver/src/users/dto/update-profile.dto.ts +48 -0
  585. package/templates/backend/nestjs-api-sqlserver/src/users/dto/update-settings.dto.ts +40 -0
  586. package/templates/backend/nestjs-api-sqlserver/src/users/dto/user-response.dto.ts +18 -0
  587. package/templates/backend/nestjs-api-sqlserver/src/users/profile.service.ts +67 -0
  588. package/templates/backend/nestjs-api-sqlserver/src/users/settings.service.ts +77 -0
  589. package/templates/backend/nestjs-api-sqlserver/src/users/users.controller.ts +102 -0
  590. package/templates/backend/nestjs-api-sqlserver/src/users/users.module.ts +14 -0
  591. package/templates/backend/nestjs-api-sqlserver/src/users/users.service.ts +27 -0
  592. package/templates/backend/nestjs-api-sqlserver/test/README.md +412 -0
  593. package/templates/backend/nestjs-api-sqlserver/test/e2e/auth.e2e-spec.ts +147 -0
  594. package/templates/backend/nestjs-api-sqlserver/test/e2e/health.e2e-spec.ts +62 -0
  595. package/templates/backend/nestjs-api-sqlserver/test/e2e/posts.e2e-spec.ts +407 -0
  596. package/templates/backend/nestjs-api-sqlserver/test/e2e/users.e2e-spec.ts +287 -0
  597. package/templates/backend/nestjs-api-sqlserver/test/fixtures/test-data.ts +109 -0
  598. package/templates/backend/nestjs-api-sqlserver/test/helpers/auth.helper.ts +54 -0
  599. package/templates/backend/nestjs-api-sqlserver/test/helpers/db.helper.ts +68 -0
  600. package/templates/backend/nestjs-api-sqlserver/test/jest-e2e.json +12 -0
  601. package/templates/backend/nestjs-api-sqlserver/test/setup-e2e.ts +8 -0
  602. package/templates/backend/nestjs-api-sqlserver/test/unit/app.service.spec.ts +24 -0
  603. package/templates/backend/nestjs-api-sqlserver/test/unit/auth.controller.spec.ts +91 -0
  604. package/templates/backend/nestjs-api-sqlserver/test/unit/auth.service.spec.ts +161 -0
  605. package/templates/backend/nestjs-api-sqlserver/test/unit/health.controller.spec.ts +78 -0
  606. package/templates/backend/nestjs-api-sqlserver/test/unit/http-exception.filter.spec.ts +150 -0
  607. package/templates/backend/nestjs-api-sqlserver/test/unit/jwt-auth.guard.spec.ts +50 -0
  608. package/templates/backend/nestjs-api-sqlserver/test/unit/jwt.strategy.spec.ts +41 -0
  609. package/templates/backend/nestjs-api-sqlserver/test/unit/posts.controller.spec.ts +249 -0
  610. package/templates/backend/nestjs-api-sqlserver/test/unit/posts.service.spec.ts +328 -0
  611. package/templates/backend/nestjs-api-sqlserver/test/unit/profile.service.spec.ts +146 -0
  612. package/templates/backend/nestjs-api-sqlserver/test/unit/settings.service.spec.ts +242 -0
  613. package/templates/backend/nestjs-api-sqlserver/test/unit/users.controller.spec.ts +178 -0
  614. package/templates/backend/nestjs-api-sqlserver/test/unit/users.service.spec.ts +96 -0
  615. package/templates/backend/nestjs-api-sqlserver/tsconfig.build.json +4 -0
  616. package/templates/backend/nestjs-api-sqlserver/tsconfig.json +28 -0
  617. package/templates/frontend/README.md +69 -0
  618. package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +67 -0
  619. package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +60 -0
  620. package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +70 -0
  621. package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +58 -0
  622. package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +70 -0
  623. package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +113 -0
  624. package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +160 -0
  625. package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +363 -0
  626. package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +118 -0
  627. package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +110 -0
  628. package/templates/frontend/angular-base/.cursor/hooks.json +41 -0
  629. package/templates/frontend/angular-base/README.md +188 -192
  630. package/templates/frontend/angular-base/package.json +92 -92
  631. package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +64 -0
  632. package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +69 -0
  633. package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +75 -0
  634. package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +61 -0
  635. package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +70 -0
  636. package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +115 -0
  637. package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +188 -0
  638. package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +399 -0
  639. package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +128 -0
  640. package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +121 -0
  641. package/templates/frontend/angular-nx/.cursor/hooks.json +41 -0
  642. package/templates/frontend/angular-nx/package.json +102 -102
  643. package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -0
  644. package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +126 -0
  645. package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -0
  646. package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -0
  647. package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +117 -0
  648. package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +75 -0
  649. package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +306 -0
  650. package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +49 -0
  651. package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +88 -0
  652. package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +77 -0
  653. package/templates/frontend/react-vite/.cursor/hooks.json +41 -0
  654. package/templates/frontend/react-vite/.cursor/rules/architech.mdc +35 -20
  655. package/templates/frontend/react-vite/.cursor/settings.json +13 -0
  656. package/templates/frontend/react-vite/.husky/pre-commit +1 -0
  657. package/templates/frontend/react-vite/.vscode/settings.json +31 -0
  658. package/templates/frontend/react-vite/README.md +238 -61
  659. package/templates/frontend/react-vite/package.json +22 -2
  660. package/templates/frontend/react-vite/pnpm-lock.yaml +6575 -4487
  661. package/templates/frontend/react-vite/pnpm-workspace.yaml +5 -2
  662. package/templates/frontend/react-vite/src/__tests__/components/layout/navbar.test.tsx +63 -0
  663. package/templates/frontend/react-vite/src/__tests__/components/ui/avatar.test.tsx +74 -0
  664. package/templates/frontend/react-vite/src/__tests__/components/ui/badge.test.tsx +55 -0
  665. package/templates/frontend/react-vite/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
  666. package/templates/frontend/react-vite/src/__tests__/components/ui/button.test.tsx +121 -0
  667. package/templates/frontend/react-vite/src/__tests__/components/ui/card.test.tsx +144 -0
  668. package/templates/frontend/react-vite/src/__tests__/components/ui/dialog.test.tsx +121 -0
  669. package/templates/frontend/react-vite/src/__tests__/components/ui/form.test.tsx +165 -0
  670. package/templates/frontend/react-vite/src/__tests__/components/ui/input.test.tsx +52 -0
  671. package/templates/frontend/react-vite/src/__tests__/components/ui/label.test.tsx +40 -0
  672. package/templates/frontend/react-vite/src/__tests__/components/ui/password-input.test.tsx +59 -0
  673. package/templates/frontend/react-vite/src/__tests__/components/ui/separator.test.tsx +40 -0
  674. package/templates/frontend/react-vite/src/__tests__/components/ui/table.test.tsx +254 -0
  675. package/templates/frontend/react-vite/src/__tests__/components/ui/tabs.test.tsx +82 -0
  676. package/templates/frontend/react-vite/src/__tests__/components/ui/textarea.test.tsx +47 -0
  677. package/templates/frontend/react-vite/src/__tests__/helpers/render.tsx +114 -0
  678. package/templates/frontend/react-vite/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
  679. package/templates/frontend/react-vite/src/__tests__/lib/queryClient.test.ts +24 -0
  680. package/templates/frontend/react-vite/src/__tests__/lib/utils.test.ts +43 -0
  681. package/templates/frontend/react-vite/src/__tests__/routes/index.test.tsx +111 -0
  682. package/templates/frontend/react-vite/src/__tests__/routes/otra-ruta.test.tsx +126 -0
  683. package/templates/frontend/react-vite/src/__tests__/routes/root.test.tsx +78 -0
  684. package/templates/frontend/react-vite/src/__tests__/routes/ui-components.test.tsx +286 -0
  685. package/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -0
  686. package/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -0
  687. package/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -0
  688. package/templates/frontend/react-vite/src/components/ui/table.tsx +229 -0
  689. package/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -0
  690. package/templates/frontend/react-vite/src/index.css +27 -27
  691. package/templates/frontend/react-vite/src/routes/__root.tsx +48 -82
  692. package/templates/frontend/react-vite/src/routes/ui-components.tsx +1305 -0
  693. package/templates/frontend/react-vite/src/test/setup.ts +61 -1
  694. package/templates/frontend/react-vite/vite.config.ts +6 -1
  695. package/templates/frontend/react-vite/vitest.config.ts +38 -0
  696. package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +49 -0
  697. package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +49 -0
  698. package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +39 -0
  699. package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +45 -0
  700. package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +220 -0
  701. package/templates/frontend/react-vite-help/.cursor/hooks.json +10 -0
  702. package/templates/frontend/react-vite-help/.cursor/mcp.json +1 -1
  703. package/templates/frontend/react-vite-help/.cursor/rules/architech.mdc +33 -23
  704. package/templates/frontend/react-vite-help/.cursor/settings.json +13 -0
  705. package/templates/frontend/react-vite-help/.husky/pre-commit +1 -0
  706. package/templates/frontend/react-vite-help/README.md +287 -61
  707. package/templates/frontend/react-vite-help/package.json +82 -62
  708. package/templates/frontend/react-vite-help/pnpm-lock.yaml +6319 -4487
  709. package/templates/frontend/react-vite-help/pnpm-workspace.yaml +5 -2
  710. package/templates/frontend/react-vite-help/src/__tests__/components/documentacion/tabs.test.tsx +95 -0
  711. package/templates/frontend/react-vite-help/src/__tests__/components/layout/navbar.test.tsx +96 -0
  712. package/templates/frontend/react-vite-help/src/__tests__/components/layout/sidebar.test.tsx +68 -0
  713. package/templates/frontend/react-vite-help/src/__tests__/components/ui/avatar.test.tsx +53 -0
  714. package/templates/frontend/react-vite-help/src/__tests__/components/ui/badge.test.tsx +50 -0
  715. package/templates/frontend/react-vite-help/src/__tests__/components/ui/breadcrumb.test.tsx +95 -0
  716. package/templates/frontend/react-vite-help/src/__tests__/components/ui/button.test.tsx +76 -0
  717. package/templates/frontend/react-vite-help/src/__tests__/components/ui/card.test.tsx +95 -0
  718. package/templates/frontend/react-vite-help/src/__tests__/components/ui/dialog.test.tsx +83 -0
  719. package/templates/frontend/react-vite-help/src/__tests__/components/ui/form.test.tsx +130 -0
  720. package/templates/frontend/react-vite-help/src/__tests__/components/ui/input.test.tsx +39 -0
  721. package/templates/frontend/react-vite-help/src/__tests__/components/ui/label.test.tsx +25 -0
  722. package/templates/frontend/react-vite-help/src/__tests__/components/ui/password-input.test.tsx +45 -0
  723. package/templates/frontend/react-vite-help/src/__tests__/components/ui/separator.test.tsx +35 -0
  724. package/templates/frontend/react-vite-help/src/__tests__/components/ui/table.test.tsx +126 -0
  725. package/templates/frontend/react-vite-help/src/__tests__/components/ui/tabs.test.tsx +66 -0
  726. package/templates/frontend/react-vite-help/src/__tests__/components/ui/textarea.test.tsx +34 -0
  727. package/templates/frontend/react-vite-help/src/__tests__/data/dashboard.test.ts +100 -0
  728. package/templates/frontend/react-vite-help/src/__tests__/data/proyectos-seed.test.ts +51 -0
  729. package/templates/frontend/react-vite-help/src/__tests__/hooks/useAuth.test.tsx +135 -0
  730. package/templates/frontend/react-vite-help/src/__tests__/hooks/useLocalStorage.test.ts +89 -0
  731. package/templates/frontend/react-vite-help/src/__tests__/lib/auth.test.ts +102 -0
  732. package/templates/frontend/react-vite-help/src/__tests__/lib/queryClient.test.ts +24 -0
  733. package/templates/frontend/react-vite-help/src/__tests__/lib/utils.test.ts +31 -0
  734. package/templates/frontend/react-vite-help/src/__tests__/routes/__root.test.tsx +72 -0
  735. package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/dashboard.test.tsx +106 -0
  736. package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/perfil.test.tsx +54 -0
  737. package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/proyectos-crud.test.tsx +272 -0
  738. package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated/ui-components.test.tsx +150 -0
  739. package/templates/frontend/react-vite-help/src/__tests__/routes/_authenticated.test.tsx +58 -0
  740. package/templates/frontend/react-vite-help/src/__tests__/routes/auth/iniciar-sesion.test.tsx +107 -0
  741. package/templates/frontend/react-vite-help/src/__tests__/routes/auth/recuperar-password.test.tsx +56 -0
  742. package/templates/frontend/react-vite-help/src/__tests__/routes/auth/registro.test.tsx +106 -0
  743. package/templates/frontend/react-vite-help/src/__tests__/routes/contacto.test.tsx +219 -0
  744. package/templates/frontend/react-vite-help/src/__tests__/routes/documentacion.test.tsx +81 -0
  745. package/templates/frontend/react-vite-help/src/__tests__/routes/index.test.tsx +69 -0
  746. package/templates/frontend/react-vite-help/src/__tests__/routes/proyectos-detalle.test.tsx +90 -0
  747. package/templates/frontend/react-vite-help/src/__tests__/routes/proyectos.test.tsx +74 -0
  748. package/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +1 -0
  749. package/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +100 -1
  750. package/templates/frontend/react-vite-help/src/components/layout/navbar.tsx +75 -0
  751. package/templates/frontend/react-vite-help/src/components/layout/sidebar.tsx +101 -0
  752. package/templates/frontend/react-vite-help/src/components/ui/avatar.tsx +42 -0
  753. package/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -106
  754. package/templates/frontend/react-vite-help/src/components/ui/dialog.tsx +122 -0
  755. package/templates/frontend/react-vite-help/src/components/ui/table.tsx +244 -0
  756. package/templates/frontend/react-vite-help/src/data/dashboard.ts +255 -0
  757. package/templates/frontend/react-vite-help/src/data/proyectos-seed.ts +87 -0
  758. package/templates/frontend/react-vite-help/src/hooks/useAuth.tsx +73 -0
  759. package/templates/frontend/react-vite-help/src/hooks/useLocalStorage.ts +32 -0
  760. package/templates/frontend/react-vite-help/src/index.css +104 -104
  761. package/templates/frontend/react-vite-help/src/lib/auth.ts +126 -0
  762. package/templates/frontend/react-vite-help/src/main.tsx +54 -33
  763. package/templates/frontend/react-vite-help/src/router.tsx +8 -0
  764. package/templates/frontend/react-vite-help/src/routes/__root.tsx +21 -59
  765. package/templates/frontend/react-vite-help/src/routes/_authenticated/dashboard.tsx +413 -0
  766. package/templates/frontend/react-vite-help/src/routes/_authenticated/perfil.tsx +71 -0
  767. package/templates/frontend/react-vite-help/src/routes/_authenticated/proyectos-crud.tsx +559 -0
  768. package/templates/frontend/react-vite-help/src/routes/_authenticated/ui-components.tsx +1054 -0
  769. package/templates/frontend/react-vite-help/src/routes/_authenticated.tsx +39 -0
  770. package/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +50 -26
  771. package/templates/frontend/react-vite-help/src/routes/auth/recuperar-password.tsx +107 -0
  772. package/templates/frontend/react-vite-help/src/routes/contacto.tsx +839 -37
  773. package/templates/frontend/react-vite-help/src/routes/index.tsx +16 -13
  774. package/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +11 -14
  775. package/templates/frontend/react-vite-help/src/routes/proyectos.tsx +16 -20
  776. package/templates/frontend/react-vite-help/src/test/mocks/recharts.tsx +35 -0
  777. package/templates/frontend/react-vite-help/src/test/mocks/router.ts +27 -0
  778. package/templates/frontend/react-vite-help/src/test/setup.ts +61 -1
  779. package/templates/frontend/react-vite-help/src/test/utils.tsx +57 -0
  780. package/templates/frontend/react-vite-help/vite.config.ts +30 -22
  781. package/templates/frontend/react-vite-help/vitest.config.ts +44 -9
  782. package/templates/mobile/README.md +83 -0
  783. package/templates/mobile/expo-base/.cursor/agents/api-integration.md +139 -0
  784. package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +131 -0
  785. package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +147 -0
  786. package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +137 -0
  787. package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +123 -0
  788. package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +106 -0
  789. package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/SKILL.md +420 -0
  790. package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/aria-patterns.md +567 -0
  791. package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
  792. package/templates/mobile/expo-base/.cursor/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
  793. package/templates/mobile/expo-base/.cursor/skills/auth-implementation-patterns/SKILL.md +647 -0
  794. package/templates/mobile/expo-base/.cursor/skills/code-review-excellence/SKILL.md +538 -0
  795. package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/SKILL.md +337 -0
  796. package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/component-architecture.md +617 -0
  797. package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/design-tokens.md +420 -0
  798. package/templates/mobile/expo-base/.cursor/skills/design-system-patterns/references/theming-architecture.md +521 -0
  799. package/templates/mobile/expo-base/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
  800. package/templates/mobile/expo-base/.cursor/skills/eslint-prettier-config/SKILL.md +540 -0
  801. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/SKILL.md +190 -0
  802. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/app-store-metadata.md +479 -0
  803. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/ios-app-store.md +355 -0
  804. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/play-store.md +246 -0
  805. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/testflight.md +58 -0
  806. package/templates/mobile/expo-base/.cursor/skills/expo-deployment/references/workflows.md +200 -0
  807. package/templates/mobile/expo-base/.cursor/skills/github-actions-templates/SKILL.md +334 -0
  808. package/templates/mobile/expo-base/.cursor/skills/i18n-localization/SKILL.md +154 -0
  809. package/templates/mobile/expo-base/.cursor/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  810. package/templates/mobile/expo-base/.cursor/skills/jest-typescript/SKILL.md +1092 -0
  811. package/templates/mobile/expo-base/.cursor/skills/maestro-mobile-testing/SKILL.md +982 -0
  812. package/templates/mobile/expo-base/.cursor/skills/mobile-security-coder/SKILL.md +184 -0
  813. package/templates/mobile/expo-base/.cursor/skills/pnpm/GENERATION.md +5 -0
  814. package/templates/mobile/expo-base/.cursor/skills/pnpm/SKILL.md +42 -0
  815. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-ci.md +285 -0
  816. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-migration.md +291 -0
  817. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/best-practices-performance.md +284 -0
  818. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-cli.md +229 -0
  819. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-config.md +188 -0
  820. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-store.md +179 -0
  821. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/core-workspaces.md +205 -0
  822. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-aliases.md +168 -0
  823. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-catalogs.md +159 -0
  824. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-hooks.md +233 -0
  825. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-overrides.md +184 -0
  826. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-patches.md +201 -0
  827. package/templates/mobile/expo-base/.cursor/skills/pnpm/references/features-peer-deps.md +250 -0
  828. package/templates/mobile/expo-base/.cursor/skills/react-native-architecture/SKILL.md +673 -0
  829. package/templates/mobile/expo-base/.cursor/skills/react-native-design/SKILL.md +440 -0
  830. package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/navigation-patterns.md +832 -0
  831. package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/reanimated-patterns.md +775 -0
  832. package/templates/mobile/expo-base/.cursor/skills/react-native-design/references/styling-patterns.md +871 -0
  833. package/templates/mobile/expo-base/.cursor/skills/react-state-management/SKILL.md +437 -0
  834. package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/SKILL.md +190 -0
  835. package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/dev-tuning.md +167 -0
  836. package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/perf-checklist.md +40 -0
  837. package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/reanimated-v4.md +108 -0
  838. package/templates/mobile/expo-base/.cursor/skills/reanimated-skia-performance/references/skia-shaders.md +66 -0
  839. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/CREATION-LOG.md +119 -0
  840. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/SKILL.md +296 -0
  841. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  842. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/condition-based-waiting.md +115 -0
  843. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/defense-in-depth.md +122 -0
  844. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/find-polluter.sh +63 -0
  845. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/root-cause-tracing.md +169 -0
  846. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-academic.md +14 -0
  847. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-1.md +58 -0
  848. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-2.md +68 -0
  849. package/templates/mobile/expo-base/.cursor/skills/systematic-debugging/test-pressure-3.md +69 -0
  850. package/templates/mobile/expo-base/.cursor/skills/tanstack-query/.claude-plugin/plugin.json +12 -0
  851. package/templates/mobile/expo-base/.cursor/skills/tanstack-query/README.md +228 -0
  852. package/templates/mobile/expo-base/.cursor/skills/tanstack-query/SKILL.md +1585 -0
  853. package/templates/mobile/expo-base/.cursor/skills/test-driven-development/SKILL.md +371 -0
  854. package/templates/mobile/expo-base/.cursor/skills/test-driven-development/testing-anti-patterns.md +299 -0
  855. package/templates/mobile/expo-base/.cursor/skills/typescript-advanced-types/SKILL.md +724 -0
  856. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/AGENTS.md +946 -0
  857. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/SKILL.md +89 -0
  858. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  859. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
  860. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  861. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
  862. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
  863. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-context-interface.md +191 -0
  864. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
  865. package/templates/mobile/expo-base/.cursor/skills/vercel-composition-patterns/rules/state-lift-state.md +125 -0
  866. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/AGENTS.md +2897 -0
  867. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/README.md +165 -0
  868. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/SKILL.md +121 -0
  869. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-derived-value.md +53 -0
  870. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gesture-detector-press.md +95 -0
  871. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/animation-gpu-properties.md +65 -0
  872. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/design-system-compound-components.md +66 -0
  873. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/fonts-config-plugin.md +71 -0
  874. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/imports-design-system-folder.md +68 -0
  875. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/js-hoist-intl.md +61 -0
  876. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-callbacks.md +44 -0
  877. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-function-references.md +132 -0
  878. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-images.md +53 -0
  879. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-inline-objects.md +97 -0
  880. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-expensive.md +94 -0
  881. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-memo.md +82 -0
  882. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-item-types.md +104 -0
  883. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/list-performance-virtualize.md +67 -0
  884. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
  885. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
  886. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/navigation-native-navigators.md +188 -0
  887. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
  888. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
  889. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-dispatcher.md +91 -0
  890. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-fallback.md +56 -0
  891. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/react-state-minimize.md +65 -0
  892. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-no-falsy-and.md +74 -0
  893. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/rendering-text-in-text-component.md +36 -0
  894. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/scroll-position-no-state.md +82 -0
  895. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/state-ground-truth.md +80 -0
  896. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-expo-image.md +66 -0
  897. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-image-gallery.md +104 -0
  898. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-measure-views.md +78 -0
  899. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-menus.md +174 -0
  900. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-native-modals.md +77 -0
  901. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-pressable.md +61 -0
  902. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-safe-area-scroll.md +65 -0
  903. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
  904. package/templates/mobile/expo-base/.cursor/skills/vercel-react-native-skills/rules/ui-styling.md +87 -0
  905. package/templates/mobile/expo-base/README.md +112 -2
  906. package/templates/mobile/expo-base/package.json +74 -74
  907. package/templates/mobile/expo-base/pnpm-workspace.yaml +7 -4
  908. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +0 -288
  909. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +0 -358
  910. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +0 -387
  911. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +0 -519
  912. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +0 -437
  913. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
  914. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +0 -434
  915. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +0 -398
  916. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +0 -366
  917. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +0 -448
  918. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +0 -395
  919. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
  920. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +0 -302
  921. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
  922. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +0 -435
  923. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
  924. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +0 -660
  925. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
  926. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +0 -352
  927. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
  928. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
  929. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
  930. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
  931. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
  932. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
  933. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
  934. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
  935. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
  936. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
  937. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
  938. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
  939. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
  940. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
  941. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
  942. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
  943. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
  944. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
  945. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
  946. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
  947. package/dist/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +0 -39
  948. package/dist/templates/frontend/angular-nx/.agents/skills/angular-component/SKILL.md +0 -288
  949. package/dist/templates/frontend/angular-nx/.agents/skills/angular-component/references/component-patterns.md +0 -358
  950. package/dist/templates/frontend/angular-nx/.agents/skills/angular-di/SKILL.md +0 -387
  951. package/dist/templates/frontend/angular-nx/.agents/skills/angular-di/references/di-patterns.md +0 -519
  952. package/dist/templates/frontend/angular-nx/.agents/skills/angular-directives/SKILL.md +0 -437
  953. package/dist/templates/frontend/angular-nx/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
  954. package/dist/templates/frontend/angular-nx/.agents/skills/angular-forms/SKILL.md +0 -434
  955. package/dist/templates/frontend/angular-nx/.agents/skills/angular-forms/references/form-patterns.md +0 -398
  956. package/dist/templates/frontend/angular-nx/.agents/skills/angular-http/SKILL.md +0 -366
  957. package/dist/templates/frontend/angular-nx/.agents/skills/angular-http/references/http-patterns.md +0 -448
  958. package/dist/templates/frontend/angular-nx/.agents/skills/angular-routing/SKILL.md +0 -395
  959. package/dist/templates/frontend/angular-nx/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
  960. package/dist/templates/frontend/angular-nx/.agents/skills/angular-signals/SKILL.md +0 -302
  961. package/dist/templates/frontend/angular-nx/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
  962. package/dist/templates/frontend/angular-nx/.agents/skills/angular-ssr/SKILL.md +0 -435
  963. package/dist/templates/frontend/angular-nx/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
  964. package/dist/templates/frontend/angular-nx/.agents/skills/angular-testing/SKILL.md +0 -660
  965. package/dist/templates/frontend/angular-nx/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
  966. package/dist/templates/frontend/angular-nx/.agents/skills/angular-tooling/SKILL.md +0 -352
  967. package/dist/templates/frontend/angular-nx/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
  968. package/dist/templates/frontend/angular-nx/.agents/skills/nx-workspace-patterns/SKILL.md +0 -457
  969. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
  970. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
  971. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
  972. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
  973. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
  974. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
  975. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
  976. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
  977. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
  978. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
  979. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
  980. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
  981. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
  982. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
  983. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
  984. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
  985. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
  986. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
  987. package/dist/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
  988. package/dist/templates/frontend/angular-nx/.agents/skills/web-design-guidelines/SKILL.md +0 -39
  989. package/dist/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +0 -1374
  990. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +0 -97
  991. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +0 -116
  992. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +0 -69
  993. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +0 -78
  994. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +0 -63
  995. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +0 -66
  996. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +0 -76
  997. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +0 -58
  998. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +0 -54
  999. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +0 -64
  1000. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +0 -46
  1001. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +0 -56
  1002. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +0 -69
  1003. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +0 -62
  1004. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +0 -64
  1005. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +0 -69
  1006. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +0 -57
  1007. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +0 -48
  1008. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +0 -62
  1009. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +0 -54
  1010. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +0 -51
  1011. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +0 -58
  1012. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +0 -48
  1013. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +0 -49
  1014. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +0 -54
  1015. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +0 -62
  1016. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +0 -59
  1017. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +0 -64
  1018. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +0 -64
  1019. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +0 -59
  1020. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +0 -48
  1021. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +0 -62
  1022. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +0 -58
  1023. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +0 -50
  1024. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +0 -58
  1025. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +0 -54
  1026. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +0 -54
  1027. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +0 -52
  1028. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +0 -57
  1029. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +0 -65
  1030. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +0 -63
  1031. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +0 -60
  1032. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +0 -58
  1033. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +0 -12
  1034. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +0 -412
  1035. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +0 -359
  1036. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +0 -255
  1037. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +0 -197
  1038. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +0 -355
  1039. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +0 -420
  1040. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +0 -390
  1041. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +0 -381
  1042. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +0 -396
  1043. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +0 -138
  1044. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +0 -51
  1045. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +0 -427
  1046. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +0 -402
  1047. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +0 -285
  1048. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +0 -303
  1049. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +0 -308
  1050. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +0 -367
  1051. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +0 -35
  1052. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +0 -313
  1053. package/dist/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +0 -351
  1054. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +0 -12
  1055. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +0 -412
  1056. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +0 -513
  1057. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +0 -397
  1058. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +0 -526
  1059. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +0 -593
  1060. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +0 -295
  1061. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +0 -418
  1062. package/dist/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +0 -231
  1063. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +0 -13
  1064. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +0 -487
  1065. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +0 -290
  1066. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +0 -429
  1067. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +0 -599
  1068. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +0 -426
  1069. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +0 -443
  1070. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +0 -333
  1071. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +0 -423
  1072. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +0 -157
  1073. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +0 -46
  1074. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +0 -58
  1075. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +0 -41
  1076. package/dist/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +0 -275
  1077. package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +0 -1677
  1078. package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +0 -145
  1079. package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +0 -1725
  1080. package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +0 -586
  1081. package/dist/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +0 -1578
  1082. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +0 -12
  1083. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +0 -508
  1084. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +0 -234
  1085. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +0 -533
  1086. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +0 -309
  1087. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +0 -403
  1088. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +0 -542
  1089. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +0 -634
  1090. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +0 -338
  1091. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +0 -371
  1092. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +0 -265
  1093. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +0 -141
  1094. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +0 -258
  1095. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +0 -105
  1096. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +0 -13
  1097. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +0 -665
  1098. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +0 -200
  1099. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +0 -206
  1100. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +0 -469
  1101. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +0 -239
  1102. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +0 -313
  1103. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +0 -118
  1104. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +0 -20
  1105. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +0 -140
  1106. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +0 -92
  1107. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +0 -31
  1108. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +0 -6
  1109. package/dist/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +0 -17
  1110. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +0 -12
  1111. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +0 -1058
  1112. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +0 -126
  1113. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +0 -12
  1114. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +0 -663
  1115. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +0 -77
  1116. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +0 -125
  1117. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +0 -26
  1118. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +0 -126
  1119. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +0 -16
  1120. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +0 -12
  1121. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +0 -299
  1122. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +0 -781
  1123. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +0 -49
  1124. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +0 -12
  1125. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +0 -573
  1126. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +0 -131
  1127. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +0 -208
  1128. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +0 -106
  1129. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +0 -195
  1130. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +0 -357
  1131. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +0 -151
  1132. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +0 -101
  1133. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +0 -177
  1134. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +0 -336
  1135. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +0 -25
  1136. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +0 -218
  1137. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +0 -123
  1138. package/dist/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +0 -164
  1139. package/dist/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +0 -12
  1140. package/dist/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +0 -504
  1141. package/dist/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +0 -97
  1142. package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +0 -117
  1143. package/dist/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +0 -57
  1144. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +0 -13
  1145. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +0 -400
  1146. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +0 -458
  1147. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +0 -362
  1148. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +0 -336
  1149. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +0 -222
  1150. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +0 -132
  1151. package/dist/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +0 -69
  1152. package/dist/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +0 -12
  1153. package/dist/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +0 -493
  1154. package/dist/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +0 -100
  1155. package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +0 -86
  1156. package/dist/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +0 -39
  1157. package/dist/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +0 -97
  1158. package/dist/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +0 -127
  1159. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +0 -144
  1160. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +0 -143
  1161. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +0 -113
  1162. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +0 -142
  1163. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +0 -137
  1164. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +0 -127
  1165. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +0 -118
  1166. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +0 -145
  1167. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +0 -130
  1168. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +0 -131
  1169. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +0 -138
  1170. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +0 -147
  1171. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +0 -117
  1172. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +0 -123
  1173. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +0 -146
  1174. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +0 -109
  1175. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +0 -118
  1176. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +0 -129
  1177. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +0 -125
  1178. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +0 -113
  1179. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +0 -102
  1180. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +0 -120
  1181. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +0 -153
  1182. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +0 -139
  1183. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +0 -138
  1184. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +0 -135
  1185. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +0 -117
  1186. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +0 -141
  1187. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +0 -143
  1188. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +0 -131
  1189. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +0 -105
  1190. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +0 -152
  1191. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +0 -93
  1192. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +0 -88
  1193. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +0 -90
  1194. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +0 -107
  1195. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +0 -61
  1196. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +0 -88
  1197. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +0 -102
  1198. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +0 -130
  1199. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +0 -116
  1200. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +0 -116
  1201. package/dist/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +0 -110
  1202. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
  1203. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
  1204. package/dist/templates/frontend/react-vite/src/routeTree.gen.ts +0 -77
  1205. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
  1206. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
  1207. package/dist/templates/frontend/react-vite-help/src/routeTree.gen.ts +0 -241
  1208. package/templates/backend/nestjs-api-mysql/DOCKER-VALIDATION.md +0 -275
  1209. package/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +0 -288
  1210. package/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +0 -358
  1211. package/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +0 -387
  1212. package/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +0 -519
  1213. package/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +0 -437
  1214. package/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
  1215. package/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +0 -434
  1216. package/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +0 -398
  1217. package/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +0 -366
  1218. package/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +0 -448
  1219. package/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +0 -395
  1220. package/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
  1221. package/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +0 -302
  1222. package/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
  1223. package/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +0 -435
  1224. package/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
  1225. package/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +0 -660
  1226. package/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
  1227. package/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +0 -352
  1228. package/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
  1229. package/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
  1230. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
  1231. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
  1232. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
  1233. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
  1234. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
  1235. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
  1236. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
  1237. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
  1238. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
  1239. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
  1240. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
  1241. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
  1242. package/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
  1243. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
  1244. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
  1245. package/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
  1246. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
  1247. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
  1248. package/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +0 -39
  1249. package/templates/frontend/angular-nx/.agents/skills/angular-component/SKILL.md +0 -288
  1250. package/templates/frontend/angular-nx/.agents/skills/angular-component/references/component-patterns.md +0 -358
  1251. package/templates/frontend/angular-nx/.agents/skills/angular-di/SKILL.md +0 -387
  1252. package/templates/frontend/angular-nx/.agents/skills/angular-di/references/di-patterns.md +0 -519
  1253. package/templates/frontend/angular-nx/.agents/skills/angular-directives/SKILL.md +0 -437
  1254. package/templates/frontend/angular-nx/.agents/skills/angular-directives/references/directive-patterns.md +0 -570
  1255. package/templates/frontend/angular-nx/.agents/skills/angular-forms/SKILL.md +0 -434
  1256. package/templates/frontend/angular-nx/.agents/skills/angular-forms/references/form-patterns.md +0 -398
  1257. package/templates/frontend/angular-nx/.agents/skills/angular-http/SKILL.md +0 -366
  1258. package/templates/frontend/angular-nx/.agents/skills/angular-http/references/http-patterns.md +0 -448
  1259. package/templates/frontend/angular-nx/.agents/skills/angular-routing/SKILL.md +0 -395
  1260. package/templates/frontend/angular-nx/.agents/skills/angular-routing/references/routing-patterns.md +0 -472
  1261. package/templates/frontend/angular-nx/.agents/skills/angular-signals/SKILL.md +0 -302
  1262. package/templates/frontend/angular-nx/.agents/skills/angular-signals/references/signal-patterns.md +0 -404
  1263. package/templates/frontend/angular-nx/.agents/skills/angular-ssr/SKILL.md +0 -435
  1264. package/templates/frontend/angular-nx/.agents/skills/angular-ssr/references/ssr-patterns.md +0 -497
  1265. package/templates/frontend/angular-nx/.agents/skills/angular-testing/SKILL.md +0 -660
  1266. package/templates/frontend/angular-nx/.agents/skills/angular-testing/references/testing-patterns.md +0 -707
  1267. package/templates/frontend/angular-nx/.agents/skills/angular-tooling/SKILL.md +0 -352
  1268. package/templates/frontend/angular-nx/.agents/skills/angular-tooling/references/tooling-patterns.md +0 -448
  1269. package/templates/frontend/angular-nx/.agents/skills/nx-workspace-patterns/SKILL.md +0 -457
  1270. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-accessibility/SKILL.md +0 -780
  1271. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-components/SKILL.md +0 -718
  1272. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +0 -612
  1273. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +0 -594
  1274. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/SKILL.md +0 -432
  1275. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-animations/references/animation-patterns.md +0 -427
  1276. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/SKILL.md +0 -354
  1277. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +0 -306
  1278. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/SKILL.md +0 -578
  1279. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +0 -353
  1280. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +0 -608
  1281. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +0 -215
  1282. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +0 -281
  1283. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-mobile-first/SKILL.md +0 -768
  1284. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/SKILL.md +0 -374
  1285. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +0 -244
  1286. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-plugins/SKILL.md +0 -505
  1287. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +0 -601
  1288. package/templates/frontend/angular-nx/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +0 -485
  1289. package/templates/frontend/angular-nx/.agents/skills/web-design-guidelines/SKILL.md +0 -39
  1290. package/templates/frontend/react-vite/.agents/skills/daisyui/SKILL.md +0 -1374
  1291. package/templates/frontend/react-vite/.agents/skills/react-hook-form/AGENTS.md +0 -97
  1292. package/templates/frontend/react-vite/.agents/skills/react-hook-form/SKILL.md +0 -116
  1293. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-devtools-performance.md +0 -69
  1294. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-formprovider-memo.md +0 -78
  1295. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/adv-testing-wrapper.md +0 -63
  1296. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-complete-default-objects.md +0 -66
  1297. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-separate-crud-operations.md +0 -76
  1298. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-unique-fieldarray-per-name.md +0 -58
  1299. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-use-field-id-as-key.md +0 -54
  1300. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/array-virtualization-formprovider.md +0 -64
  1301. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-avoid-double-registration.md +0 -46
  1302. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-controller-field-props.md +0 -56
  1303. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-local-state-combination.md +0 -69
  1304. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-single-usecontroller-per-component.md +0 -62
  1305. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/ctrl-usecontroller-isolation.md +0 -64
  1306. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-async-default-values.md +0 -69
  1307. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-default-values.md +0 -57
  1308. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-revalidate-mode.md +0 -48
  1309. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-should-unregister.md +0 -62
  1310. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-useeffect-dependency.md +0 -54
  1311. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formcfg-validation-mode.md +0 -51
  1312. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-avoid-isvalid-with-onsubmit.md +0 -58
  1313. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-destructure-formstate.md +0 -48
  1314. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-getfieldstate-for-single-field.md +0 -49
  1315. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-subscribe-to-specific-fields.md +0 -54
  1316. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/formstate-useformstate-isolation.md +0 -62
  1317. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-mui-controller-pattern.md +0 -59
  1318. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-form-import.md +0 -64
  1319. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-shadcn-select-wiring.md +0 -64
  1320. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/integ-value-transform.md +0 -59
  1321. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-avoid-watch-in-render.md +0 -48
  1322. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-deep-subscription.md +0 -62
  1323. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-useformcontext-sparingly.md +0 -58
  1324. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-default-value.md +0 -50
  1325. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-over-watch.md +0 -58
  1326. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-usewatch-with-getvalues.md +0 -54
  1327. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/sub-watch-specific-fields.md +0 -54
  1328. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-delay-error.md +0 -52
  1329. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-dynamic-schema-factory.md +0 -57
  1330. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-error-message-strategy.md +0 -65
  1331. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-inline-vs-resolver.md +0 -63
  1332. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-native-validation.md +0 -60
  1333. package/templates/frontend/react-vite/.agents/skills/react-hook-form/references/valid-resolver-caching.md +0 -58
  1334. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/.claude-plugin/plugin.json +0 -12
  1335. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/SKILL.md +0 -412
  1336. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/accessibility.md +0 -359
  1337. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/error-handling.md +0 -255
  1338. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/links-to-official-docs.md +0 -197
  1339. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/performance-optimization.md +0 -355
  1340. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/rhf-api-reference.md +0 -420
  1341. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/shadcn-integration.md +0 -390
  1342. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/top-errors.md +0 -381
  1343. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/references/zod-schemas-guide.md +0 -396
  1344. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/rules/react-hook-form-zod.md +0 -138
  1345. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/scripts/check-versions.sh +0 -51
  1346. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/advanced-form.tsx +0 -427
  1347. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/async-validation.tsx +0 -402
  1348. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/basic-form.tsx +0 -285
  1349. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/custom-error-display.tsx +0 -303
  1350. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/dynamic-fields.tsx +0 -308
  1351. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/multi-step-form.tsx +0 -367
  1352. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/package.json +0 -35
  1353. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/server-validation.ts +0 -313
  1354. package/templates/frontend/react-vite/.agents/skills/react-hook-form-zod/templates/shadcn-form.tsx +0 -351
  1355. package/templates/frontend/react-vite/.agents/skills/responsive-images/.claude-plugin/plugin.json +0 -12
  1356. package/templates/frontend/react-vite/.agents/skills/responsive-images/SKILL.md +0 -412
  1357. package/templates/frontend/react-vite/.agents/skills/responsive-images/references/aspect-ratio.md +0 -513
  1358. package/templates/frontend/react-vite/.agents/skills/responsive-images/references/lazy-loading.md +0 -397
  1359. package/templates/frontend/react-vite/.agents/skills/responsive-images/references/modern-formats.md +0 -526
  1360. package/templates/frontend/react-vite/.agents/skills/responsive-images/references/picture-element.md +0 -593
  1361. package/templates/frontend/react-vite/.agents/skills/responsive-images/references/srcset-sizes.md +0 -295
  1362. package/templates/frontend/react-vite/.agents/skills/responsive-images/rules/responsive-images.md +0 -418
  1363. package/templates/frontend/react-vite/.agents/skills/responsive-images/templates/image-component.tsx +0 -231
  1364. package/templates/frontend/react-vite/.agents/skills/seo-meta/.claude-plugin/plugin.json +0 -13
  1365. package/templates/frontend/react-vite/.agents/skills/seo-meta/SKILL.md +0 -487
  1366. package/templates/frontend/react-vite/.agents/skills/seo-meta/agents/seo-generator.md +0 -290
  1367. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/canonical-urls.md +0 -429
  1368. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/json-ld.md +0 -599
  1369. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/meta-description.md +0 -426
  1370. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/open-graph.md +0 -443
  1371. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/title-patterns.md +0 -333
  1372. package/templates/frontend/react-vite/.agents/skills/seo-meta/references/twitter-cards.md +0 -423
  1373. package/templates/frontend/react-vite/.agents/skills/seo-meta/rules/seo-meta.md +0 -157
  1374. package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/faq.json +0 -46
  1375. package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/local-business.json +0 -58
  1376. package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/json-ld-schemas/service.json +0 -41
  1377. package/templates/frontend/react-vite/.agents/skills/seo-meta/templates/meta-component.tsx +0 -275
  1378. package/templates/frontend/react-vite/.agents/skills/shadcn-ui/SKILL.md +0 -1677
  1379. package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/learn.md +0 -145
  1380. package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/official-ui-reference.md +0 -1725
  1381. package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/reference.md +0 -586
  1382. package/templates/frontend/react-vite/.agents/skills/shadcn-ui/references/ui-reference.md +0 -1578
  1383. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/.claude-plugin/plugin.json +0 -12
  1384. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/SKILL.md +0 -508
  1385. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/button-patterns.md +0 -234
  1386. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/card-patterns.md +0 -533
  1387. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/dark-mode-patterns.md +0 -309
  1388. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/form-patterns.md +0 -403
  1389. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/layout-patterns.md +0 -542
  1390. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/navigation-patterns.md +0 -634
  1391. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/references/typography-patterns.md +0 -338
  1392. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/rules/tailwind-patterns.md +0 -371
  1393. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/contact-form.tsx +0 -265
  1394. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/feature-grid.tsx +0 -141
  1395. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/footer.tsx +0 -258
  1396. package/templates/frontend/react-vite/.agents/skills/tailwind-patterns/templates/components/hero-section.tsx +0 -105
  1397. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/.claude-plugin/plugin.json +0 -13
  1398. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/SKILL.md +0 -665
  1399. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/commands/setup.md +0 -200
  1400. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/architecture.md +0 -206
  1401. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/common-gotchas.md +0 -469
  1402. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/dark-mode.md +0 -239
  1403. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/references/migration-guide.md +0 -313
  1404. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/rules/tailwind-v4-shadcn.md +0 -118
  1405. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/components.json +0 -20
  1406. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/index.css +0 -140
  1407. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/theme-provider.tsx +0 -92
  1408. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/tsconfig.app.json +0 -31
  1409. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/utils.ts +0 -6
  1410. package/templates/frontend/react-vite/.agents/skills/tailwind-v4-shadcn/templates/vite.config.ts +0 -17
  1411. package/templates/frontend/react-vite/.agents/skills/tanstack-query/.claude-plugin/plugin.json +0 -12
  1412. package/templates/frontend/react-vite/.agents/skills/tanstack-query/SKILL.md +0 -1058
  1413. package/templates/frontend/react-vite/.agents/skills/tanstack-query/rules/tanstack-query.md +0 -126
  1414. package/templates/frontend/react-vite/.agents/skills/tanstack-router/.claude-plugin/plugin.json +0 -12
  1415. package/templates/frontend/react-vite/.agents/skills/tanstack-router/SKILL.md +0 -663
  1416. package/templates/frontend/react-vite/.agents/skills/tanstack-router/references/common-errors.md +0 -77
  1417. package/templates/frontend/react-vite/.agents/skills/tanstack-router/rules/tanstack-router.md +0 -125
  1418. package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/package.json +0 -26
  1419. package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/route-examples.tsx +0 -126
  1420. package/templates/frontend/react-vite/.agents/skills/tanstack-router/templates/vite.config.ts +0 -16
  1421. package/templates/frontend/react-vite/.agents/skills/tanstack-start/.claude-plugin/plugin.json +0 -12
  1422. package/templates/frontend/react-vite/.agents/skills/tanstack-start/REVIEW_REPORT.md +0 -299
  1423. package/templates/frontend/react-vite/.agents/skills/tanstack-start/SKILL.md +0 -781
  1424. package/templates/frontend/react-vite/.agents/skills/tanstack-start/planning/stability-tracker.md +0 -49
  1425. package/templates/frontend/react-vite/.agents/skills/tanstack-table/.claude-plugin/plugin.json +0 -12
  1426. package/templates/frontend/react-vite/.agents/skills/tanstack-table/SKILL.md +0 -573
  1427. package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/cloudflare-d1-examples.md +0 -131
  1428. package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/common-errors.md +0 -208
  1429. package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/performance-virtualization.md +0 -106
  1430. package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/query-integration.md +0 -195
  1431. package/templates/frontend/react-vite/.agents/skills/tanstack-table/references/server-side-patterns.md +0 -357
  1432. package/templates/frontend/react-vite/.agents/skills/tanstack-table/rules/tanstack-table.md +0 -151
  1433. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/basic-client-table.tsx +0 -101
  1434. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/column-configuration.tsx +0 -177
  1435. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/d1-database-example.tsx +0 -336
  1436. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/package.json +0 -25
  1437. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/server-paginated-table.tsx +0 -218
  1438. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/shadcn-styled-table.tsx +0 -123
  1439. package/templates/frontend/react-vite/.agents/skills/tanstack-table/templates/virtualized-large-dataset.tsx +0 -164
  1440. package/templates/frontend/react-vite/.agents/skills/testing-library/.claude-plugin/plugin.json +0 -12
  1441. package/templates/frontend/react-vite/.agents/skills/testing-library/SKILL.md +0 -504
  1442. package/templates/frontend/react-vite/.agents/skills/testing-library/rules/testing-library-patterns.md +0 -97
  1443. package/templates/frontend/react-vite/.agents/skills/testing-library/templates/msw-handlers.ts +0 -117
  1444. package/templates/frontend/react-vite/.agents/skills/testing-library/templates/setup.ts +0 -57
  1445. package/templates/frontend/react-vite/.agents/skills/testing-patterns/.claude-plugin/plugin.json +0 -13
  1446. package/templates/frontend/react-vite/.agents/skills/testing-patterns/SKILL.md +0 -400
  1447. package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/coverage.md +0 -458
  1448. package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/create-tests.md +0 -362
  1449. package/templates/frontend/react-vite/.agents/skills/testing-patterns/commands/run-tests.md +0 -336
  1450. package/templates/frontend/react-vite/.agents/skills/testing-patterns/references/validation-rules.md +0 -222
  1451. package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-agent.md +0 -132
  1452. package/templates/frontend/react-vite/.agents/skills/testing-patterns/templates/test-spec.yaml +0 -69
  1453. package/templates/frontend/react-vite/.agents/skills/vitest/.claude-plugin/plugin.json +0 -12
  1454. package/templates/frontend/react-vite/.agents/skills/vitest/SKILL.md +0 -493
  1455. package/templates/frontend/react-vite/.agents/skills/vitest/rules/vitest-patterns.md +0 -100
  1456. package/templates/frontend/react-vite/.agents/skills/vitest/templates/test-utils.ts +0 -86
  1457. package/templates/frontend/react-vite/.agents/skills/vitest/templates/vitest.config.ts +0 -39
  1458. package/templates/frontend/react-vite/.agents/skills/zod/AGENTS.md +0 -97
  1459. package/templates/frontend/react-vite/.agents/skills/zod/SKILL.md +0 -127
  1460. package/templates/frontend/react-vite/.agents/skills/zod/references/compose-intersection.md +0 -144
  1461. package/templates/frontend/react-vite/.agents/skills/zod/references/compose-lazy-recursive.md +0 -143
  1462. package/templates/frontend/react-vite/.agents/skills/zod/references/compose-pipe.md +0 -113
  1463. package/templates/frontend/react-vite/.agents/skills/zod/references/compose-preprocess.md +0 -142
  1464. package/templates/frontend/react-vite/.agents/skills/zod/references/compose-shared-schemas.md +0 -137
  1465. package/templates/frontend/react-vite/.agents/skills/zod/references/error-avoid-throwing-in-refine.md +0 -127
  1466. package/templates/frontend/react-vite/.agents/skills/zod/references/error-custom-messages.md +0 -118
  1467. package/templates/frontend/react-vite/.agents/skills/zod/references/error-i18n.md +0 -145
  1468. package/templates/frontend/react-vite/.agents/skills/zod/references/error-path-for-nested.md +0 -130
  1469. package/templates/frontend/react-vite/.agents/skills/zod/references/error-use-flatten.md +0 -131
  1470. package/templates/frontend/react-vite/.agents/skills/zod/references/object-discriminated-unions.md +0 -138
  1471. package/templates/frontend/react-vite/.agents/skills/zod/references/object-extend-for-composition.md +0 -147
  1472. package/templates/frontend/react-vite/.agents/skills/zod/references/object-optional-vs-nullable.md +0 -117
  1473. package/templates/frontend/react-vite/.agents/skills/zod/references/object-partial-for-updates.md +0 -123
  1474. package/templates/frontend/react-vite/.agents/skills/zod/references/object-pick-omit.md +0 -146
  1475. package/templates/frontend/react-vite/.agents/skills/zod/references/object-strict-vs-strip.md +0 -109
  1476. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-async-for-async-refinements.md +0 -118
  1477. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-avoid-double-validation.md +0 -129
  1478. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-handle-all-issues.md +0 -125
  1479. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-never-trust-json.md +0 -113
  1480. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-use-safeparse.md +0 -102
  1481. package/templates/frontend/react-vite/.agents/skills/zod/references/parse-validate-early.md +0 -120
  1482. package/templates/frontend/react-vite/.agents/skills/zod/references/perf-arrays.md +0 -153
  1483. package/templates/frontend/react-vite/.agents/skills/zod/references/perf-avoid-dynamic-creation.md +0 -139
  1484. package/templates/frontend/react-vite/.agents/skills/zod/references/perf-cache-schemas.md +0 -138
  1485. package/templates/frontend/react-vite/.agents/skills/zod/references/perf-lazy-loading.md +0 -135
  1486. package/templates/frontend/react-vite/.agents/skills/zod/references/perf-zod-mini.md +0 -117
  1487. package/templates/frontend/react-vite/.agents/skills/zod/references/refine-add-path.md +0 -141
  1488. package/templates/frontend/react-vite/.agents/skills/zod/references/refine-catch.md +0 -143
  1489. package/templates/frontend/react-vite/.agents/skills/zod/references/refine-defaults.md +0 -131
  1490. package/templates/frontend/react-vite/.agents/skills/zod/references/refine-transform-coerce.md +0 -105
  1491. package/templates/frontend/react-vite/.agents/skills/zod/references/refine-vs-superrefine.md +0 -152
  1492. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-avoid-optional-abuse.md +0 -93
  1493. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-coercion-for-form-data.md +0 -88
  1494. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-string-validations.md +0 -90
  1495. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-enums.md +0 -107
  1496. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-primitives-correctly.md +0 -61
  1497. package/templates/frontend/react-vite/.agents/skills/zod/references/schema-use-unknown-not-any.md +0 -88
  1498. package/templates/frontend/react-vite/.agents/skills/zod/references/type-branded-types.md +0 -102
  1499. package/templates/frontend/react-vite/.agents/skills/zod/references/type-enable-strict-mode.md +0 -130
  1500. package/templates/frontend/react-vite/.agents/skills/zod/references/type-export-schemas-and-types.md +0 -116
  1501. package/templates/frontend/react-vite/.agents/skills/zod/references/type-input-vs-output.md +0 -116
  1502. package/templates/frontend/react-vite/.agents/skills/zod/references/type-use-z-infer.md +0 -110
  1503. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
  1504. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
  1505. package/templates/frontend/react-vite/src/routeTree.gen.ts +0 -77
  1506. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +0 -9
  1507. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +0 -9
  1508. package/templates/frontend/react-vite-help/src/routeTree.gen.ts +0 -241
  1509. package/templates/frontend/react-vite-help/src/routes/dashbord.tsx +0 -9
  1510. package/templates/frontend/react-vite-help/src/routes/index.test.tsx +0 -42
  1511. package/templates/frontend/react-vite-help/src/routes/perfil.tsx +0 -9
  1512. package/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +0 -413
  1513. package/templates/mobile/expo-base/SETUP_NOTES.md +0 -233
  1514. package/templates/mobile/expo-base/TEMPLATE_USAGE.md +0 -623
  1515. package/templates/mobile/expo-base/WARP.md +0 -123
  1516. package/templates/mobile/expo-base/docs/ARCHITECTURE.md +0 -565
  1517. package/templates/mobile/expo-base/docs/CI_CD.md +0 -461
  1518. package/templates/mobile/expo-base/docs/COMPONENTS.md +0 -1103
  1519. package/templates/mobile/expo-base/docs/CONTRIBUTING.md +0 -733
  1520. package/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +0 -832
  1521. package/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +0 -411
  1522. package/templates/mobile/expo-base/docs/I18N.md +0 -701
  1523. package/templates/mobile/expo-base/docs/TESTING.md +0 -565
  1524. package/templates/mobile/expo-base/docs/THEMING.md +0 -753
  1525. package/templates/mobile/expo-base/docs/VERSIONING.md +0 -518
  1526. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/assets/example-template.txt +0 -0
  1527. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/best-practices.md +0 -0
  1528. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/common-patterns.md +0 -0
  1529. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/example-reference.md +0 -0
  1530. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/testing.md +0 -0
  1531. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/top-errors.md +0 -0
  1532. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/typescript-patterns.md +0 -0
  1533. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/v4-to-v5-migration.md +0 -0
  1534. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/scripts/example-script.sh +0 -0
  1535. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/custom-hooks-pattern.tsx +0 -0
  1536. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/devtools-setup.tsx +0 -0
  1537. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/error-boundary.tsx +0 -0
  1538. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/package.json +0 -0
  1539. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/provider-setup.tsx +0 -0
  1540. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/query-client-config.ts +0 -0
  1541. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-infinite-query.tsx +0 -0
  1542. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-basic.tsx +0 -0
  1543. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-optimistic.tsx +0 -0
  1544. /package/dist/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-query-basic.tsx +0 -0
  1545. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/assets/example-template.txt +0 -0
  1546. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/best-practices.md +0 -0
  1547. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/common-patterns.md +0 -0
  1548. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/example-reference.md +0 -0
  1549. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/testing.md +0 -0
  1550. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/top-errors.md +0 -0
  1551. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/typescript-patterns.md +0 -0
  1552. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/references/v4-to-v5-migration.md +0 -0
  1553. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/scripts/example-script.sh +0 -0
  1554. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/custom-hooks-pattern.tsx +0 -0
  1555. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/devtools-setup.tsx +0 -0
  1556. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/error-boundary.tsx +0 -0
  1557. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/package.json +0 -0
  1558. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/provider-setup.tsx +0 -0
  1559. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/query-client-config.ts +0 -0
  1560. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-infinite-query.tsx +0 -0
  1561. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-basic.tsx +0 -0
  1562. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-mutation-optimistic.tsx +0 -0
  1563. /package/templates/{frontend/react-vite/.agents → mobile/expo-base/.cursor}/skills/tanstack-query/templates/use-query-basic.tsx +0 -0
@@ -0,0 +1,2897 @@
1
+ # React Native Skills
2
+
3
+ **Version 1.0.0**
4
+ Engineering
5
+ January 2026
6
+
7
+ > **Note:**
8
+ > This document is mainly for agents and LLMs to follow when maintaining,
9
+ > generating, or refactoring React Native codebases. Humans
10
+ > may also find it useful, but guidance here is optimized for automation
11
+ > and consistency by AI-assisted workflows.
12
+
13
+ ---
14
+
15
+ ## Abstract
16
+
17
+ Comprehensive performance optimization guide for React Native applications, designed for AI agents and LLMs. Contains 35+ rules across 13 categories, prioritized by impact from critical (core rendering, list performance) to incremental (fonts, imports). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics to guide automated refactoring and code generation.
18
+
19
+ ---
20
+
21
+ ## Table of Contents
22
+
23
+ 1. [Core Rendering](#1-core-rendering) — **CRITICAL**
24
+ - 1.1 [Never Use && with Potentially Falsy Values](#11-never-use--with-potentially-falsy-values)
25
+ - 1.2 [Wrap Strings in Text Components](#12-wrap-strings-in-text-components)
26
+ 2. [List Performance](#2-list-performance) — **HIGH**
27
+ - 2.1 [Avoid Inline Objects in renderItem](#21-avoid-inline-objects-in-renderitem)
28
+ - 2.2 [Hoist callbacks to the root of lists](#22-hoist-callbacks-to-the-root-of-lists)
29
+ - 2.3 [Keep List Items Lightweight](#23-keep-list-items-lightweight)
30
+ - 2.4 [Optimize List Performance with Stable Object References](#24-optimize-list-performance-with-stable-object-references)
31
+ - 2.5 [Pass Primitives to List Items for Memoization](#25-pass-primitives-to-list-items-for-memoization)
32
+ - 2.6 [Use a List Virtualizer for Any List](#26-use-a-list-virtualizer-for-any-list)
33
+ - 2.7 [Use Compressed Images in Lists](#27-use-compressed-images-in-lists)
34
+ - 2.8 [Use Item Types for Heterogeneous Lists](#28-use-item-types-for-heterogeneous-lists)
35
+ 3. [Animation](#3-animation) — **HIGH**
36
+ - 3.1 [Animate Transform and Opacity Instead of Layout Properties](#31-animate-transform-and-opacity-instead-of-layout-properties)
37
+ - 3.2 [Prefer useDerivedValue Over useAnimatedReaction](#32-prefer-usederivedvalue-over-useanimatedreaction)
38
+ - 3.3 [Use GestureDetector for Animated Press States](#33-use-gesturedetector-for-animated-press-states)
39
+ 4. [Scroll Performance](#4-scroll-performance) — **HIGH**
40
+ - 4.1 [Never Track Scroll Position in useState](#41-never-track-scroll-position-in-usestate)
41
+ 5. [Navigation](#5-navigation) — **HIGH**
42
+ - 5.1 [Use Native Navigators for Navigation](#51-use-native-navigators-for-navigation)
43
+ 6. [React State](#6-react-state) — **MEDIUM**
44
+ - 6.1 [Minimize State Variables and Derive Values](#61-minimize-state-variables-and-derive-values)
45
+ - 6.2 [Use fallback state instead of initialState](#62-use-fallback-state-instead-of-initialstate)
46
+ - 6.3 [useState Dispatch updaters for State That Depends on Current Value](#63-usestate-dispatch-updaters-for-state-that-depends-on-current-value)
47
+ 7. [State Architecture](#7-state-architecture) — **MEDIUM**
48
+ - 7.1 [State Must Represent Ground Truth](#71-state-must-represent-ground-truth)
49
+ 8. [React Compiler](#8-react-compiler) — **MEDIUM**
50
+ - 8.1 [Destructure Functions Early in Render (React Compiler)](#81-destructure-functions-early-in-render-react-compiler)
51
+ - 8.2 [Use .get() and .set() for Reanimated Shared Values (not .value)](#82-use-get-and-set-for-reanimated-shared-values-not-value)
52
+ 9. [User Interface](#9-user-interface) — **MEDIUM**
53
+ - 9.1 [Measuring View Dimensions](#91-measuring-view-dimensions)
54
+ - 9.2 [Modern React Native Styling Patterns](#92-modern-react-native-styling-patterns)
55
+ - 9.3 [Use contentInset for Dynamic ScrollView Spacing](#93-use-contentinset-for-dynamic-scrollview-spacing)
56
+ - 9.4 [Use contentInsetAdjustmentBehavior for Safe Areas](#94-use-contentinsetadjustmentbehavior-for-safe-areas)
57
+ - 9.5 [Use expo-image for Optimized Images](#95-use-expo-image-for-optimized-images)
58
+ - 9.6 [Use Galeria for Image Galleries and Lightbox](#96-use-galeria-for-image-galleries-and-lightbox)
59
+ - 9.7 [Use Native Menus for Dropdowns and Context Menus](#97-use-native-menus-for-dropdowns-and-context-menus)
60
+ - 9.8 [Use Native Modals Over JS-Based Bottom Sheets](#98-use-native-modals-over-js-based-bottom-sheets)
61
+ - 9.9 [Use Pressable Instead of Touchable Components](#99-use-pressable-instead-of-touchable-components)
62
+ 10. [Design System](#10-design-system) — **MEDIUM**
63
+ - 10.1 [Use Compound Components Over Polymorphic Children](#101-use-compound-components-over-polymorphic-children)
64
+ 11. [Monorepo](#11-monorepo) — **LOW**
65
+ - 11.1 [Install Native Dependencies in App Directory](#111-install-native-dependencies-in-app-directory)
66
+ - 11.2 [Use Single Dependency Versions Across Monorepo](#112-use-single-dependency-versions-across-monorepo)
67
+ 12. [Third-Party Dependencies](#12-third-party-dependencies) — **LOW**
68
+ - 12.1 [Import from Design System Folder](#121-import-from-design-system-folder)
69
+ 13. [JavaScript](#13-javascript) — **LOW**
70
+ - 13.1 [Hoist Intl Formatter Creation](#131-hoist-intl-formatter-creation)
71
+ 14. [Fonts](#14-fonts) — **LOW**
72
+ - 14.1 [Load fonts natively at build time](#141-load-fonts-natively-at-build-time)
73
+
74
+ ---
75
+
76
+ ## 1. Core Rendering
77
+
78
+ **Impact: CRITICAL**
79
+
80
+ Fundamental React Native rendering rules. Violations cause
81
+ runtime crashes or broken UI.
82
+
83
+ ### 1.1 Never Use && with Potentially Falsy Values
84
+
85
+ **Impact: CRITICAL (prevents production crash)**
86
+
87
+ Never use `{value && <Component />}` when `value` could be an empty string or
88
+
89
+ `0`. These are falsy but JSX-renderable—React Native will try to render them as
90
+
91
+ text outside a `<Text>` component, causing a hard crash in production.
92
+
93
+ **Incorrect: crashes if count is 0 or name is ""**
94
+
95
+ ```tsx
96
+ function Profile({ name, count }: { name: string; count: number }) {
97
+ return (
98
+ <View>
99
+ {name && <Text>{name}</Text>}
100
+ {count && <Text>{count} items</Text>}
101
+ </View>
102
+ )
103
+ }
104
+ // If name="" or count=0, renders the falsy value → crash
105
+ ```
106
+
107
+ **Correct: ternary with null**
108
+
109
+ ```tsx
110
+ function Profile({ name, count }: { name: string; count: number }) {
111
+ return (
112
+ <View>
113
+ {name ? <Text>{name}</Text> : null}
114
+ {count ? <Text>{count} items</Text> : null}
115
+ </View>
116
+ )
117
+ }
118
+ ```
119
+
120
+ **Correct: explicit boolean coercion**
121
+
122
+ ```tsx
123
+ function Profile({ name, count }: { name: string; count: number }) {
124
+ return (
125
+ <View>
126
+ {!!name && <Text>{name}</Text>}
127
+ {!!count && <Text>{count} items</Text>}
128
+ </View>
129
+ )
130
+ }
131
+ ```
132
+
133
+ **Best: early return**
134
+
135
+ ```tsx
136
+ function Profile({ name, count }: { name: string; count: number }) {
137
+ if (!name) return null
138
+
139
+ return (
140
+ <View>
141
+ <Text>{name}</Text>
142
+ {count > 0 ? <Text>{count} items</Text> : null}
143
+ </View>
144
+ )
145
+ }
146
+ ```
147
+
148
+ Early returns are clearest. When using conditionals inline, prefer ternary or
149
+
150
+ explicit boolean checks.
151
+
152
+ **Lint rule:** Enable `react/jsx-no-leaked-render` from
153
+
154
+ [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md)
155
+
156
+ to catch this automatically.
157
+
158
+ ### 1.2 Wrap Strings in Text Components
159
+
160
+ **Impact: CRITICAL (prevents runtime crash)**
161
+
162
+ Strings must be rendered inside `<Text>`. React Native crashes if a string is a
163
+
164
+ direct child of `<View>`.
165
+
166
+ **Incorrect: crashes**
167
+
168
+ ```tsx
169
+ import { View } from 'react-native'
170
+
171
+ function Greeting({ name }: { name: string }) {
172
+ return <View>Hello, {name}!</View>
173
+ }
174
+ // Error: Text strings must be rendered within a <Text> component.
175
+ ```
176
+
177
+ **Correct:**
178
+
179
+ ```tsx
180
+ import { View, Text } from 'react-native'
181
+
182
+ function Greeting({ name }: { name: string }) {
183
+ return (
184
+ <View>
185
+ <Text>Hello, {name}!</Text>
186
+ </View>
187
+ )
188
+ }
189
+ ```
190
+
191
+ ---
192
+
193
+ ## 2. List Performance
194
+
195
+ **Impact: HIGH**
196
+
197
+ Optimizing virtualized lists (FlatList, LegendList, FlashList)
198
+ for smooth scrolling and fast updates.
199
+
200
+ ### 2.1 Avoid Inline Objects in renderItem
201
+
202
+ **Impact: HIGH (prevents unnecessary re-renders of memoized list items)**
203
+
204
+ Don't create new objects inside `renderItem` to pass as props. Inline objects
205
+
206
+ create new references on every render, breaking memoization. Pass primitive
207
+
208
+ values directly from `item` instead.
209
+
210
+ **Incorrect: inline object breaks memoization**
211
+
212
+ ```tsx
213
+ function UserList({ users }: { users: User[] }) {
214
+ return (
215
+ <LegendList
216
+ data={users}
217
+ renderItem={({ item }) => (
218
+ <UserRow
219
+ // Bad: new object on every render
220
+ user={{ id: item.id, name: item.name, avatar: item.avatar }}
221
+ />
222
+ )}
223
+ />
224
+ )
225
+ }
226
+ ```
227
+
228
+ **Incorrect: inline style object**
229
+
230
+ ```tsx
231
+ renderItem={({ item }) => (
232
+ <UserRow
233
+ name={item.name}
234
+ // Bad: new style object on every render
235
+ style={{ backgroundColor: item.isActive ? 'green' : 'gray' }}
236
+ />
237
+ )}
238
+ ```
239
+
240
+ **Correct: pass item directly or primitives**
241
+
242
+ ```tsx
243
+ function UserList({ users }: { users: User[] }) {
244
+ return (
245
+ <LegendList
246
+ data={users}
247
+ renderItem={({ item }) => (
248
+ // Good: pass the item directly
249
+ <UserRow user={item} />
250
+ )}
251
+ />
252
+ )
253
+ }
254
+ ```
255
+
256
+ **Correct: pass primitives, derive inside child**
257
+
258
+ ```tsx
259
+ renderItem={({ item }) => (
260
+ <UserRow
261
+ id={item.id}
262
+ name={item.name}
263
+ isActive={item.isActive}
264
+ />
265
+ )}
266
+
267
+ const UserRow = memo(function UserRow({ id, name, isActive }: Props) {
268
+ // Good: derive style inside memoized component
269
+ const backgroundColor = isActive ? 'green' : 'gray'
270
+ return <View style={[styles.row, { backgroundColor }]}>{/* ... */}</View>
271
+ })
272
+ ```
273
+
274
+ **Correct: hoist static styles in module scope**
275
+
276
+ ```tsx
277
+ const activeStyle = { backgroundColor: 'green' }
278
+ const inactiveStyle = { backgroundColor: 'gray' }
279
+
280
+ renderItem={({ item }) => (
281
+ <UserRow
282
+ name={item.name}
283
+ // Good: stable references
284
+ style={item.isActive ? activeStyle : inactiveStyle}
285
+ />
286
+ )}
287
+ ```
288
+
289
+ Passing primitives or stable references allows `memo()` to skip re-renders when
290
+
291
+ the actual values haven't changed.
292
+
293
+ **Note:** If you have the React Compiler enabled, it handles memoization
294
+
295
+ automatically and these manual optimizations become less critical.
296
+
297
+ ### 2.2 Hoist callbacks to the root of lists
298
+
299
+ **Impact: MEDIUM (Fewer re-renders and faster lists)**
300
+
301
+ When passing callback functions to list items, create a single instance of the
302
+
303
+ callback at the root of the list. Items should then call it with a unique
304
+
305
+ identifier.
306
+
307
+ **Incorrect: creates a new callback on each render**
308
+
309
+ ```typescript
310
+ return (
311
+ <LegendList
312
+ renderItem={({ item }) => {
313
+ // bad: creates a new callback on each render
314
+ const onPress = () => handlePress(item.id)
315
+ return <Item key={item.id} item={item} onPress={onPress} />
316
+ }}
317
+ />
318
+ )
319
+ ```
320
+
321
+ **Correct: a single function instance passed to each item**
322
+
323
+ ```typescript
324
+ const onPress = useCallback(() => handlePress(item.id), [handlePress, item.id])
325
+
326
+ return (
327
+ <LegendList
328
+ renderItem={({ item }) => (
329
+ <Item key={item.id} item={item} onPress={onPress} />
330
+ )}
331
+ />
332
+ )
333
+ ```
334
+
335
+ Reference: [https://example.com](https://example.com)
336
+
337
+ ### 2.3 Keep List Items Lightweight
338
+
339
+ **Impact: HIGH (reduces render time for visible items during scroll)**
340
+
341
+ List items should be as inexpensive as possible to render. Minimize hooks, avoid
342
+
343
+ queries, and limit React Context access. Virtualized lists render many items
344
+
345
+ during scroll—expensive items cause jank.
346
+
347
+ **Incorrect: heavy list item**
348
+
349
+ ```tsx
350
+ function ProductRow({ id }: { id: string }) {
351
+ // Bad: query inside list item
352
+ const { data: product } = useQuery(['product', id], () => fetchProduct(id))
353
+ // Bad: multiple context accesses
354
+ const theme = useContext(ThemeContext)
355
+ const user = useContext(UserContext)
356
+ const cart = useContext(CartContext)
357
+ // Bad: expensive computation
358
+ const recommendations = useMemo(
359
+ () => computeRecommendations(product),
360
+ [product]
361
+ )
362
+
363
+ return <View>{/* ... */}</View>
364
+ }
365
+ ```
366
+
367
+ **Correct: lightweight list item**
368
+
369
+ ```tsx
370
+ function ProductRow({ name, price, imageUrl }: Props) {
371
+ // Good: receives only primitives, minimal hooks
372
+ return (
373
+ <View>
374
+ <Image source={{ uri: imageUrl }} />
375
+ <Text>{name}</Text>
376
+ <Text>{price}</Text>
377
+ </View>
378
+ )
379
+ }
380
+ ```
381
+
382
+ **Move data fetching to parent:**
383
+
384
+ ```tsx
385
+ // Parent fetches all data once
386
+ function ProductList() {
387
+ const { data: products } = useQuery(['products'], fetchProducts)
388
+
389
+ return (
390
+ <LegendList
391
+ data={products}
392
+ renderItem={({ item }) => (
393
+ <ProductRow name={item.name} price={item.price} imageUrl={item.image} />
394
+ )}
395
+ />
396
+ )
397
+ }
398
+ ```
399
+
400
+ **For shared values, use Zustand selectors instead of Context:**
401
+
402
+ ```tsx
403
+ // Incorrect: Context causes re-render when any cart value changes
404
+ function ProductRow({ id, name }: Props) {
405
+ const { items } = useContext(CartContext)
406
+ const inCart = items.includes(id)
407
+ // ...
408
+ }
409
+
410
+ // Correct: Zustand selector only re-renders when this specific value changes
411
+ function ProductRow({ id, name }: Props) {
412
+ // use Set.has (created once at the root) instead of Array.includes()
413
+ const inCart = useCartStore((s) => s.items.has(id))
414
+ // ...
415
+ }
416
+ ```
417
+
418
+ **Guidelines for list items:**
419
+
420
+ - No queries or data fetching
421
+
422
+ - No expensive computations (move to parent or memoize at parent level)
423
+
424
+ - Prefer Zustand selectors over React Context
425
+
426
+ - Minimize useState/useEffect hooks
427
+
428
+ - Pass pre-computed values as props
429
+
430
+ The goal: list items should be simple rendering functions that take props and
431
+
432
+ return JSX.
433
+
434
+ ### 2.4 Optimize List Performance with Stable Object References
435
+
436
+ **Impact: CRITICAL (virtualization relies on reference stability)**
437
+
438
+ Don't map or filter data before passing to virtualized lists. Virtualization
439
+
440
+ relies on object reference stability to know what changed—new references cause
441
+
442
+ full re-renders of all visible items. Attempt to prevent frequent renders at the
443
+
444
+ list-parent level.
445
+
446
+ Where needed, use context selectors within list items.
447
+
448
+ **Incorrect: creates new object references on every keystroke**
449
+
450
+ ```tsx
451
+ function DomainSearch() {
452
+ const { keyword, setKeyword } = useKeywordZustandState()
453
+ const { data: tlds } = useTlds()
454
+
455
+ // Bad: creates new objects on every render, reparenting the entire list on every keystroke
456
+ const domains = tlds.map((tld) => ({
457
+ domain: `${keyword}.${tld.name}`,
458
+ tld: tld.name,
459
+ price: tld.price,
460
+ }))
461
+
462
+ return (
463
+ <>
464
+ <TextInput value={keyword} onChangeText={setKeyword} />
465
+ <LegendList
466
+ data={domains}
467
+ renderItem={({ item }) => <DomainItem item={item} keyword={keyword} />}
468
+ />
469
+ </>
470
+ )
471
+ }
472
+ ```
473
+
474
+ **Correct: stable references, transform inside items**
475
+
476
+ ```tsx
477
+ const renderItem = ({ item }) => <DomainItem tld={item} />
478
+
479
+ function DomainSearch() {
480
+ const { data: tlds } = useTlds()
481
+
482
+ return (
483
+ <LegendList
484
+ // good: as long as the data is stable, LegendList will not re-render the entire list
485
+ data={tlds}
486
+ renderItem={renderItem}
487
+ />
488
+ )
489
+ }
490
+
491
+ function DomainItem({ tld }: { tld: Tld }) {
492
+ // good: transform within items, and don't pass the dynamic data as a prop
493
+ // good: use a selector function from zustand to receive a stable string back
494
+ const domain = useKeywordZustandState((s) => s.keyword + '.' + tld.name)
495
+ return <Text>{domain}</Text>
496
+ }
497
+ ```
498
+
499
+ **Updating parent array reference:**
500
+
501
+ ```tsx
502
+ // good: creates a new array instance without mutating the inner objects
503
+ // good: parent array reference is unaffected by typing and updating "keyword"
504
+ const sortedTlds = tlds.toSorted((a, b) => a.name.localeCompare(b.name))
505
+
506
+ return <LegendList data={sortedTlds} renderItem={renderItem} />
507
+ ```
508
+
509
+ Creating a new array instance can be okay, as long as its inner object
510
+
511
+ references are stable. For instance, if you sort a list of objects:
512
+
513
+ Even though this creates a new array instance `sortedTlds`, the inner object
514
+
515
+ references are stable.
516
+
517
+ **With zustand for dynamic data: avoids parent re-renders**
518
+
519
+ ```tsx
520
+ function DomainItemFavoriteButton({ tld }: { tld: Tld }) {
521
+ const isFavorited = useFavoritesStore((s) => s.favorites.has(tld.id))
522
+ return <TldFavoriteButton isFavorited={isFavorited} />
523
+ }
524
+ ```
525
+
526
+ Virtualization can now skip items that haven't changed when typing. Only visible
527
+
528
+ items (~20) re-render on keystroke, rather than the parent.
529
+
530
+ **Deriving state within list items based on parent data (avoids parent
531
+
532
+ re-renders):**
533
+
534
+ For components where the data is conditional based on the parent state, this
535
+
536
+ pattern is even more important. For example, if you are checking if an item is
537
+
538
+ favorited, toggling favorites only re-renders one component if the item itself
539
+
540
+ is in charge of accessing the state rather than the parent:
541
+
542
+ Note: if you're using the React Compiler, you can read React Context values
543
+
544
+ directly within list items. Although this is slightly slower than using a
545
+
546
+ Zustand selector in most cases, the effect may be negligible.
547
+
548
+ ### 2.5 Pass Primitives to List Items for Memoization
549
+
550
+ **Impact: HIGH (enables effective memo() comparison)**
551
+
552
+ When possible, pass only primitive values (strings, numbers, booleans) as props
553
+
554
+ to list item components. Primitives enable shallow comparison in `memo()` to
555
+
556
+ work correctly, skipping re-renders when values haven't changed.
557
+
558
+ **Incorrect: object prop requires deep comparison**
559
+
560
+ ```tsx
561
+ type User = { id: string; name: string; email: string; avatar: string }
562
+
563
+ const UserRow = memo(function UserRow({ user }: { user: User }) {
564
+ // memo() compares user by reference, not value
565
+ // If parent creates new user object, this re-renders even if data is same
566
+ return <Text>{user.name}</Text>
567
+ })
568
+
569
+ renderItem={({ item }) => <UserRow user={item} />}
570
+ ```
571
+
572
+ This can still be optimized, but it is harder to memoize properly.
573
+
574
+ **Correct: primitive props enable shallow comparison**
575
+
576
+ ```tsx
577
+ const UserRow = memo(function UserRow({
578
+ id,
579
+ name,
580
+ email,
581
+ }: {
582
+ id: string
583
+ name: string
584
+ email: string
585
+ }) {
586
+ // memo() compares each primitive directly
587
+ // Re-renders only if id, name, or email actually changed
588
+ return <Text>{name}</Text>
589
+ })
590
+
591
+ renderItem={({ item }) => (
592
+ <UserRow id={item.id} name={item.name} email={item.email} />
593
+ )}
594
+ ```
595
+
596
+ **Pass only what you need:**
597
+
598
+ ```tsx
599
+ // Incorrect: passing entire item when you only need name
600
+ <UserRow user={item} />
601
+
602
+ // Correct: pass only the fields the component uses
603
+ <UserRow name={item.name} avatarUrl={item.avatar} />
604
+ ```
605
+
606
+ **For callbacks, hoist or use item ID:**
607
+
608
+ ```tsx
609
+ // Incorrect: inline function creates new reference
610
+ <UserRow name={item.name} onPress={() => handlePress(item.id)} />
611
+
612
+ // Correct: pass ID, handle in child
613
+ <UserRow id={item.id} name={item.name} />
614
+
615
+ const UserRow = memo(function UserRow({ id, name }: Props) {
616
+ const handlePress = useCallback(() => {
617
+ // use id here
618
+ }, [id])
619
+ return <Pressable onPress={handlePress}><Text>{name}</Text></Pressable>
620
+ })
621
+ ```
622
+
623
+ Primitive props make memoization predictable and effective.
624
+
625
+ **Note:** If you have the React Compiler enabled, you do not need to use
626
+
627
+ `memo()` or `useCallback()`, but the object references still apply.
628
+
629
+ ### 2.6 Use a List Virtualizer for Any List
630
+
631
+ **Impact: HIGH (reduced memory, faster mounts)**
632
+
633
+ Use a list virtualizer like LegendList or FlashList instead of ScrollView with
634
+
635
+ mapped children—even for short lists. Virtualizers only render visible items,
636
+
637
+ reducing memory usage and mount time. ScrollView renders all children upfront,
638
+
639
+ which gets expensive quickly.
640
+
641
+ **Incorrect: ScrollView renders all items at once**
642
+
643
+ ```tsx
644
+ function Feed({ items }: { items: Item[] }) {
645
+ return (
646
+ <ScrollView>
647
+ {items.map((item) => (
648
+ <ItemCard key={item.id} item={item} />
649
+ ))}
650
+ </ScrollView>
651
+ )
652
+ }
653
+ // 50 items = 50 components mounted, even if only 10 visible
654
+ ```
655
+
656
+ **Correct: virtualizer renders only visible items**
657
+
658
+ ```tsx
659
+ import { LegendList } from '@legendapp/list'
660
+
661
+ function Feed({ items }: { items: Item[] }) {
662
+ return (
663
+ <LegendList
664
+ data={items}
665
+ // if you aren't using React Compiler, wrap these with useCallback
666
+ renderItem={({ item }) => <ItemCard item={item} />}
667
+ keyExtractor={(item) => item.id}
668
+ estimatedItemSize={80}
669
+ />
670
+ )
671
+ }
672
+ // Only ~10-15 visible items mounted at a time
673
+ ```
674
+
675
+ **Alternative: FlashList**
676
+
677
+ ```tsx
678
+ import { FlashList } from '@shopify/flash-list'
679
+
680
+ function Feed({ items }: { items: Item[] }) {
681
+ return (
682
+ <FlashList
683
+ data={items}
684
+ // if you aren't using React Compiler, wrap these with useCallback
685
+ renderItem={({ item }) => <ItemCard item={item} />}
686
+ keyExtractor={(item) => item.id}
687
+ />
688
+ )
689
+ }
690
+ ```
691
+
692
+ Benefits apply to any screen with scrollable content—profiles, settings, feeds,
693
+
694
+ search results. Default to virtualization.
695
+
696
+ ### 2.7 Use Compressed Images in Lists
697
+
698
+ **Impact: HIGH (faster load times, less memory)**
699
+
700
+ Always load compressed, appropriately-sized images in lists. Full-resolution
701
+
702
+ images consume excessive memory and cause scroll jank. Request thumbnails from
703
+
704
+ your server or use an image CDN with resize parameters.
705
+
706
+ **Incorrect: full-resolution images**
707
+
708
+ ```tsx
709
+ function ProductItem({ product }: { product: Product }) {
710
+ return (
711
+ <View>
712
+ {/* 4000x3000 image loaded for a 100x100 thumbnail */}
713
+ <Image
714
+ source={{ uri: product.imageUrl }}
715
+ style={{ width: 100, height: 100 }}
716
+ />
717
+ <Text>{product.name}</Text>
718
+ </View>
719
+ )
720
+ }
721
+ ```
722
+
723
+ **Correct: request appropriately-sized image**
724
+
725
+ ```tsx
726
+ function ProductItem({ product }: { product: Product }) {
727
+ // Request a 200x200 image (2x for retina)
728
+ const thumbnailUrl = `${product.imageUrl}?w=200&h=200&fit=cover`
729
+
730
+ return (
731
+ <View>
732
+ <Image
733
+ source={{ uri: thumbnailUrl }}
734
+ style={{ width: 100, height: 100 }}
735
+ contentFit='cover'
736
+ />
737
+ <Text>{product.name}</Text>
738
+ </View>
739
+ )
740
+ }
741
+ ```
742
+
743
+ Use an optimized image component with built-in caching and placeholder support,
744
+
745
+ such as `expo-image` or `SolitoImage` (which uses `expo-image` under the hood).
746
+
747
+ Request images at 2x the display size for retina screens.
748
+
749
+ ### 2.8 Use Item Types for Heterogeneous Lists
750
+
751
+ **Impact: HIGH (efficient recycling, less layout thrashing)**
752
+
753
+ When a list has different item layouts (messages, images, headers, etc.), use a
754
+
755
+ `type` field on each item and provide `getItemType` to the list. This puts items
756
+
757
+ into separate recycling pools so a message component never gets recycled into an
758
+
759
+ image component.
760
+
761
+ [LegendList getItemType](https://legendapp.com/open-source/list/api/props/#getitemtype-v2)
762
+
763
+ **Incorrect: single component with conditionals**
764
+
765
+ ```tsx
766
+ type Item = { id: string; text?: string; imageUrl?: string; isHeader?: boolean }
767
+
768
+ function ListItem({ item }: { item: Item }) {
769
+ if (item.isHeader) {
770
+ return <HeaderItem title={item.text} />
771
+ }
772
+ if (item.imageUrl) {
773
+ return <ImageItem url={item.imageUrl} />
774
+ }
775
+ return <MessageItem text={item.text} />
776
+ }
777
+
778
+ function Feed({ items }: { items: Item[] }) {
779
+ return (
780
+ <LegendList
781
+ data={items}
782
+ renderItem={({ item }) => <ListItem item={item} />}
783
+ recycleItems
784
+ />
785
+ )
786
+ }
787
+ ```
788
+
789
+ **Correct: typed items with separate components**
790
+
791
+ ```tsx
792
+ type HeaderItem = { id: string; type: 'header'; title: string }
793
+ type MessageItem = { id: string; type: 'message'; text: string }
794
+ type ImageItem = { id: string; type: 'image'; url: string }
795
+ type FeedItem = HeaderItem | MessageItem | ImageItem
796
+
797
+ function Feed({ items }: { items: FeedItem[] }) {
798
+ return (
799
+ <LegendList
800
+ data={items}
801
+ keyExtractor={(item) => item.id}
802
+ getItemType={(item) => item.type}
803
+ renderItem={({ item }) => {
804
+ switch (item.type) {
805
+ case 'header':
806
+ return <SectionHeader title={item.title} />
807
+ case 'message':
808
+ return <MessageRow text={item.text} />
809
+ case 'image':
810
+ return <ImageRow url={item.url} />
811
+ }
812
+ }}
813
+ recycleItems
814
+ />
815
+ )
816
+ }
817
+ ```
818
+
819
+ **Why this matters:**
820
+
821
+ ```tsx
822
+ <LegendList
823
+ data={items}
824
+ keyExtractor={(item) => item.id}
825
+ getItemType={(item) => item.type}
826
+ getEstimatedItemSize={(index, item, itemType) => {
827
+ switch (itemType) {
828
+ case 'header':
829
+ return 48
830
+ case 'message':
831
+ return 72
832
+ case 'image':
833
+ return 300
834
+ default:
835
+ return 72
836
+ }
837
+ }}
838
+ renderItem={({ item }) => {
839
+ /* ... */
840
+ }}
841
+ recycleItems
842
+ />
843
+ ```
844
+
845
+ - **Recycling efficiency**: Items with the same type share a recycling pool
846
+
847
+ - **No layout thrashing**: A header never recycles into an image cell
848
+
849
+ - **Type safety**: TypeScript can narrow the item type in each branch
850
+
851
+ - **Better size estimation**: Use `getEstimatedItemSize` with `itemType` for
852
+
853
+ accurate estimates per type
854
+
855
+ ---
856
+
857
+ ## 3. Animation
858
+
859
+ **Impact: HIGH**
860
+
861
+ GPU-accelerated animations, Reanimated patterns, and avoiding
862
+ render thrashing during gestures.
863
+
864
+ ### 3.1 Animate Transform and Opacity Instead of Layout Properties
865
+
866
+ **Impact: HIGH (GPU-accelerated animations, no layout recalculation)**
867
+
868
+ Avoid animating `width`, `height`, `top`, `left`, `margin`, or `padding`. These trigger layout recalculation on every frame. Instead, use `transform` (scale, translate) and `opacity` which run on the GPU without triggering layout.
869
+
870
+ **Incorrect: animates height, triggers layout every frame**
871
+
872
+ ```tsx
873
+ import Animated, { useAnimatedStyle, withTiming } from 'react-native-reanimated'
874
+
875
+ function CollapsiblePanel({ expanded }: { expanded: boolean }) {
876
+ const animatedStyle = useAnimatedStyle(() => ({
877
+ height: withTiming(expanded ? 200 : 0), // triggers layout on every frame
878
+ overflow: 'hidden',
879
+ }))
880
+
881
+ return <Animated.View style={animatedStyle}>{children}</Animated.View>
882
+ }
883
+ ```
884
+
885
+ **Correct: animates scaleY, GPU-accelerated**
886
+
887
+ ```tsx
888
+ import Animated, { useAnimatedStyle, withTiming } from 'react-native-reanimated'
889
+
890
+ function CollapsiblePanel({ expanded }: { expanded: boolean }) {
891
+ const animatedStyle = useAnimatedStyle(() => ({
892
+ transform: [
893
+ { scaleY: withTiming(expanded ? 1 : 0) },
894
+ ],
895
+ opacity: withTiming(expanded ? 1 : 0),
896
+ }))
897
+
898
+ return (
899
+ <Animated.View style={[{ height: 200, transformOrigin: 'top' }, animatedStyle]}>
900
+ {children}
901
+ </Animated.View>
902
+ )
903
+ }
904
+ ```
905
+
906
+ **Correct: animates translateY for slide animations**
907
+
908
+ ```tsx
909
+ import Animated, { useAnimatedStyle, withTiming } from 'react-native-reanimated'
910
+
911
+ function SlideIn({ visible }: { visible: boolean }) {
912
+ const animatedStyle = useAnimatedStyle(() => ({
913
+ transform: [
914
+ { translateY: withTiming(visible ? 0 : 100) },
915
+ ],
916
+ opacity: withTiming(visible ? 1 : 0),
917
+ }))
918
+
919
+ return <Animated.View style={animatedStyle}>{children}</Animated.View>
920
+ }
921
+ ```
922
+
923
+ GPU-accelerated properties: `transform` (translate, scale, rotate), `opacity`. Everything else triggers layout.
924
+
925
+ ### 3.2 Prefer useDerivedValue Over useAnimatedReaction
926
+
927
+ **Impact: MEDIUM (cleaner code, automatic dependency tracking)**
928
+
929
+ When deriving a shared value from another, use `useDerivedValue` instead of
930
+
931
+ `useAnimatedReaction`. Derived values are declarative, automatically track
932
+
933
+ dependencies, and return a value you can use directly. Animated reactions are
934
+
935
+ for side effects, not derivations.
936
+
937
+ [Reanimated useDerivedValue](https://docs.swmansion.com/react-native-reanimated/docs/core/useDerivedValue)
938
+
939
+ **Incorrect: useAnimatedReaction for derivation**
940
+
941
+ ```tsx
942
+ import { useSharedValue, useAnimatedReaction } from 'react-native-reanimated'
943
+
944
+ function MyComponent() {
945
+ const progress = useSharedValue(0)
946
+ const opacity = useSharedValue(1)
947
+
948
+ useAnimatedReaction(
949
+ () => progress.value,
950
+ (current) => {
951
+ opacity.value = 1 - current
952
+ }
953
+ )
954
+
955
+ // ...
956
+ }
957
+ ```
958
+
959
+ **Correct: useDerivedValue**
960
+
961
+ ```tsx
962
+ import { useSharedValue, useDerivedValue } from 'react-native-reanimated'
963
+
964
+ function MyComponent() {
965
+ const progress = useSharedValue(0)
966
+
967
+ const opacity = useDerivedValue(() => 1 - progress.get())
968
+
969
+ // ...
970
+ }
971
+ ```
972
+
973
+ Use `useAnimatedReaction` only for side effects that don't produce a value
974
+
975
+ (e.g., triggering haptics, logging, calling `runOnJS`).
976
+
977
+ ### 3.3 Use GestureDetector for Animated Press States
978
+
979
+ **Impact: MEDIUM (UI thread animations, smoother press feedback)**
980
+
981
+ For animated press states (scale, opacity on press), use `GestureDetector` with
982
+
983
+ `Gesture.Tap()` and shared values instead of Pressable's
984
+
985
+ `onPressIn`/`onPressOut`. Gesture callbacks run on the UI thread as worklets—no
986
+
987
+ JS thread round-trip for press animations.
988
+
989
+ [Gesture Handler Tap Gesture](https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture)
990
+
991
+ **Incorrect: Pressable with JS thread callbacks**
992
+
993
+ ```tsx
994
+ import { Pressable } from 'react-native'
995
+ import Animated, {
996
+ useSharedValue,
997
+ useAnimatedStyle,
998
+ withTiming,
999
+ } from 'react-native-reanimated'
1000
+
1001
+ function AnimatedButton({ onPress }: { onPress: () => void }) {
1002
+ const scale = useSharedValue(1)
1003
+
1004
+ const animatedStyle = useAnimatedStyle(() => ({
1005
+ transform: [{ scale: scale.value }],
1006
+ }))
1007
+
1008
+ return (
1009
+ <Pressable
1010
+ onPress={onPress}
1011
+ onPressIn={() => (scale.value = withTiming(0.95))}
1012
+ onPressOut={() => (scale.value = withTiming(1))}
1013
+ >
1014
+ <Animated.View style={animatedStyle}>
1015
+ <Text>Press me</Text>
1016
+ </Animated.View>
1017
+ </Pressable>
1018
+ )
1019
+ }
1020
+ ```
1021
+
1022
+ **Correct: GestureDetector with UI thread worklets**
1023
+
1024
+ ```tsx
1025
+ import { Gesture, GestureDetector } from 'react-native-gesture-handler'
1026
+ import Animated, {
1027
+ useSharedValue,
1028
+ useAnimatedStyle,
1029
+ withTiming,
1030
+ interpolate,
1031
+ runOnJS,
1032
+ } from 'react-native-reanimated'
1033
+
1034
+ function AnimatedButton({ onPress }: { onPress: () => void }) {
1035
+ // Store the press STATE (0 = not pressed, 1 = pressed)
1036
+ const pressed = useSharedValue(0)
1037
+
1038
+ const tap = Gesture.Tap()
1039
+ .onBegin(() => {
1040
+ pressed.set(withTiming(1))
1041
+ })
1042
+ .onFinalize(() => {
1043
+ pressed.set(withTiming(0))
1044
+ })
1045
+ .onEnd(() => {
1046
+ runOnJS(onPress)()
1047
+ })
1048
+
1049
+ // Derive visual values from the state
1050
+ const animatedStyle = useAnimatedStyle(() => ({
1051
+ transform: [
1052
+ { scale: interpolate(withTiming(pressed.get()), [0, 1], [1, 0.95]) },
1053
+ ],
1054
+ }))
1055
+
1056
+ return (
1057
+ <GestureDetector gesture={tap}>
1058
+ <Animated.View style={animatedStyle}>
1059
+ <Text>Press me</Text>
1060
+ </Animated.View>
1061
+ </GestureDetector>
1062
+ )
1063
+ }
1064
+ ```
1065
+
1066
+ Store the press **state** (0 or 1), then derive the scale via `interpolate`.
1067
+
1068
+ This keeps the shared value as ground truth. Use `runOnJS` to call JS functions
1069
+
1070
+ from worklets. Use `.set()` and `.get()` for React Compiler compatibility.
1071
+
1072
+ ---
1073
+
1074
+ ## 4. Scroll Performance
1075
+
1076
+ **Impact: HIGH**
1077
+
1078
+ Tracking scroll position without causing render thrashing.
1079
+
1080
+ ### 4.1 Never Track Scroll Position in useState
1081
+
1082
+ **Impact: HIGH (prevents render thrashing during scroll)**
1083
+
1084
+ Never store scroll position in `useState`. Scroll events fire rapidly—state
1085
+
1086
+ updates cause render thrashing and dropped frames. Use a Reanimated shared value
1087
+
1088
+ for animations or a ref for non-reactive tracking.
1089
+
1090
+ **Incorrect: useState causes jank**
1091
+
1092
+ ```tsx
1093
+ import { useState } from 'react'
1094
+ import {
1095
+ ScrollView,
1096
+ NativeSyntheticEvent,
1097
+ NativeScrollEvent,
1098
+ } from 'react-native'
1099
+
1100
+ function Feed() {
1101
+ const [scrollY, setScrollY] = useState(0)
1102
+
1103
+ const onScroll = (e: NativeSyntheticEvent<NativeScrollEvent>) => {
1104
+ setScrollY(e.nativeEvent.contentOffset.y) // re-renders on every frame
1105
+ }
1106
+
1107
+ return <ScrollView onScroll={onScroll} scrollEventThrottle={16} />
1108
+ }
1109
+ ```
1110
+
1111
+ **Correct: Reanimated for animations**
1112
+
1113
+ ```tsx
1114
+ import Animated, {
1115
+ useSharedValue,
1116
+ useAnimatedScrollHandler,
1117
+ } from 'react-native-reanimated'
1118
+
1119
+ function Feed() {
1120
+ const scrollY = useSharedValue(0)
1121
+
1122
+ const onScroll = useAnimatedScrollHandler({
1123
+ onScroll: (e) => {
1124
+ scrollY.value = e.contentOffset.y // runs on UI thread, no re-render
1125
+ },
1126
+ })
1127
+
1128
+ return (
1129
+ <Animated.ScrollView
1130
+ onScroll={onScroll}
1131
+ // higher number has better performance, but it fires less often.
1132
+ // unset this if you need higher precision over performance.
1133
+ scrollEventThrottle={16}
1134
+ />
1135
+ )
1136
+ }
1137
+ ```
1138
+
1139
+ **Correct: ref for non-reactive tracking**
1140
+
1141
+ ```tsx
1142
+ import { useRef } from 'react'
1143
+ import {
1144
+ ScrollView,
1145
+ NativeSyntheticEvent,
1146
+ NativeScrollEvent,
1147
+ } from 'react-native'
1148
+
1149
+ function Feed() {
1150
+ const scrollY = useRef(0)
1151
+
1152
+ const onScroll = (e: NativeSyntheticEvent<NativeScrollEvent>) => {
1153
+ scrollY.current = e.nativeEvent.contentOffset.y // no re-render
1154
+ }
1155
+
1156
+ return <ScrollView onScroll={onScroll} scrollEventThrottle={16} />
1157
+ }
1158
+ ```
1159
+
1160
+ ---
1161
+
1162
+ ## 5. Navigation
1163
+
1164
+ **Impact: HIGH**
1165
+
1166
+ Using native navigators for stack and tab navigation instead of
1167
+ JS-based alternatives.
1168
+
1169
+ ### 5.1 Use Native Navigators for Navigation
1170
+
1171
+ **Impact: HIGH (native performance, platform-appropriate UI)**
1172
+
1173
+ Always use native navigators instead of JS-based ones. Native navigators use
1174
+
1175
+ platform APIs (UINavigationController on iOS, Fragment on Android) for better
1176
+
1177
+ performance and native behavior.
1178
+
1179
+ **For stacks:** Use `@react-navigation/native-stack` or expo-router's default
1180
+
1181
+ stack (which uses native-stack). Avoid `@react-navigation/stack`.
1182
+
1183
+ **For tabs:** Use `react-native-bottom-tabs` (native) or expo-router's native
1184
+
1185
+ tabs. Avoid `@react-navigation/bottom-tabs` when native feel matters.
1186
+
1187
+ - [React Navigation Native Stack](https://reactnavigation.org/docs/native-stack-navigator)
1188
+
1189
+ - [React Native Bottom Tabs with React Navigation](https://oss.callstack.com/react-native-bottom-tabs/docs/guides/usage-with-react-navigation)
1190
+
1191
+ - [React Native Bottom Tabs with Expo Router](https://oss.callstack.com/react-native-bottom-tabs/docs/guides/usage-with-expo-router)
1192
+
1193
+ - [Expo Router Native Tabs](https://docs.expo.dev/router/advanced/native-tabs)
1194
+
1195
+ **Incorrect: JS stack navigator**
1196
+
1197
+ ```tsx
1198
+ import { createStackNavigator } from '@react-navigation/stack'
1199
+
1200
+ const Stack = createStackNavigator()
1201
+
1202
+ function App() {
1203
+ return (
1204
+ <Stack.Navigator>
1205
+ <Stack.Screen name='Home' component={HomeScreen} />
1206
+ <Stack.Screen name='Details' component={DetailsScreen} />
1207
+ </Stack.Navigator>
1208
+ )
1209
+ }
1210
+ ```
1211
+
1212
+ **Correct: native stack with react-navigation**
1213
+
1214
+ ```tsx
1215
+ import { createNativeStackNavigator } from '@react-navigation/native-stack'
1216
+
1217
+ const Stack = createNativeStackNavigator()
1218
+
1219
+ function App() {
1220
+ return (
1221
+ <Stack.Navigator>
1222
+ <Stack.Screen name='Home' component={HomeScreen} />
1223
+ <Stack.Screen name='Details' component={DetailsScreen} />
1224
+ </Stack.Navigator>
1225
+ )
1226
+ }
1227
+ ```
1228
+
1229
+ **Correct: expo-router uses native stack by default**
1230
+
1231
+ ```tsx
1232
+ // app/_layout.tsx
1233
+ import { Stack } from 'expo-router'
1234
+
1235
+ export default function Layout() {
1236
+ return <Stack />
1237
+ }
1238
+ ```
1239
+
1240
+ **Incorrect: JS bottom tabs**
1241
+
1242
+ ```tsx
1243
+ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
1244
+
1245
+ const Tab = createBottomTabNavigator()
1246
+
1247
+ function App() {
1248
+ return (
1249
+ <Tab.Navigator>
1250
+ <Tab.Screen name='Home' component={HomeScreen} />
1251
+ <Tab.Screen name='Settings' component={SettingsScreen} />
1252
+ </Tab.Navigator>
1253
+ )
1254
+ }
1255
+ ```
1256
+
1257
+ **Correct: native bottom tabs with react-navigation**
1258
+
1259
+ ```tsx
1260
+ import { createNativeBottomTabNavigator } from '@bottom-tabs/react-navigation'
1261
+
1262
+ const Tab = createNativeBottomTabNavigator()
1263
+
1264
+ function App() {
1265
+ return (
1266
+ <Tab.Navigator>
1267
+ <Tab.Screen
1268
+ name='Home'
1269
+ component={HomeScreen}
1270
+ options={{
1271
+ tabBarIcon: () => ({ sfSymbol: 'house' }),
1272
+ }}
1273
+ />
1274
+ <Tab.Screen
1275
+ name='Settings'
1276
+ component={SettingsScreen}
1277
+ options={{
1278
+ tabBarIcon: () => ({ sfSymbol: 'gear' }),
1279
+ }}
1280
+ />
1281
+ </Tab.Navigator>
1282
+ )
1283
+ }
1284
+ ```
1285
+
1286
+ **Correct: expo-router native tabs**
1287
+
1288
+ ```tsx
1289
+ // app/(tabs)/_layout.tsx
1290
+ import { NativeTabs } from 'expo-router/unstable-native-tabs'
1291
+
1292
+ export default function TabLayout() {
1293
+ return (
1294
+ <NativeTabs>
1295
+ <NativeTabs.Trigger name='index'>
1296
+ <NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
1297
+ <NativeTabs.Trigger.Icon sf='house.fill' md='home' />
1298
+ </NativeTabs.Trigger>
1299
+ <NativeTabs.Trigger name='settings'>
1300
+ <NativeTabs.Trigger.Label>Settings</NativeTabs.Trigger.Label>
1301
+ <NativeTabs.Trigger.Icon sf='gear' md='settings' />
1302
+ </NativeTabs.Trigger>
1303
+ </NativeTabs>
1304
+ )
1305
+ }
1306
+ ```
1307
+
1308
+ On iOS, native tabs automatically enable `contentInsetAdjustmentBehavior` on the
1309
+
1310
+ first `ScrollView` at the root of each tab screen, so content scrolls correctly
1311
+
1312
+ behind the translucent tab bar. If you need to disable this, use
1313
+
1314
+ `disableAutomaticContentInsets` on the trigger.
1315
+
1316
+ **Incorrect: custom header component**
1317
+
1318
+ ```tsx
1319
+ <Stack.Screen
1320
+ name='Profile'
1321
+ component={ProfileScreen}
1322
+ options={{
1323
+ header: () => <CustomHeader title='Profile' />,
1324
+ }}
1325
+ />
1326
+ ```
1327
+
1328
+ **Correct: native header options**
1329
+
1330
+ ```tsx
1331
+ <Stack.Screen
1332
+ name='Profile'
1333
+ component={ProfileScreen}
1334
+ options={{
1335
+ title: 'Profile',
1336
+ headerLargeTitleEnabled: true,
1337
+ headerSearchBarOptions: {
1338
+ placeholder: 'Search',
1339
+ },
1340
+ }}
1341
+ />
1342
+ ```
1343
+
1344
+ Native headers support iOS large titles, search bars, blur effects, and proper
1345
+
1346
+ safe area handling automatically.
1347
+
1348
+ - **Performance**: Native transitions and gestures run on the UI thread
1349
+
1350
+ - **Platform behavior**: Automatic iOS large titles, Android material design
1351
+
1352
+ - **System integration**: Scroll-to-top on tab tap, PiP avoidance, proper safe
1353
+
1354
+ areas
1355
+
1356
+ - **Accessibility**: Platform accessibility features work automatically
1357
+
1358
+ ---
1359
+
1360
+ ## 6. React State
1361
+
1362
+ **Impact: MEDIUM**
1363
+
1364
+ Patterns for managing React state to avoid stale closures and
1365
+ unnecessary re-renders.
1366
+
1367
+ ### 6.1 Minimize State Variables and Derive Values
1368
+
1369
+ **Impact: MEDIUM (fewer re-renders, less state drift)**
1370
+
1371
+ Use the fewest state variables possible. If a value can be computed from existing state or props, derive it during render instead of storing it in state. Redundant state causes unnecessary re-renders and can drift out of sync.
1372
+
1373
+ **Incorrect: redundant state**
1374
+
1375
+ ```tsx
1376
+ function Cart({ items }: { items: Item[] }) {
1377
+ const [total, setTotal] = useState(0)
1378
+ const [itemCount, setItemCount] = useState(0)
1379
+
1380
+ useEffect(() => {
1381
+ setTotal(items.reduce((sum, item) => sum + item.price, 0))
1382
+ setItemCount(items.length)
1383
+ }, [items])
1384
+
1385
+ return (
1386
+ <View>
1387
+ <Text>{itemCount} items</Text>
1388
+ <Text>Total: ${total}</Text>
1389
+ </View>
1390
+ )
1391
+ }
1392
+ ```
1393
+
1394
+ **Correct: derived values**
1395
+
1396
+ ```tsx
1397
+ function Cart({ items }: { items: Item[] }) {
1398
+ const total = items.reduce((sum, item) => sum + item.price, 0)
1399
+ const itemCount = items.length
1400
+
1401
+ return (
1402
+ <View>
1403
+ <Text>{itemCount} items</Text>
1404
+ <Text>Total: ${total}</Text>
1405
+ </View>
1406
+ )
1407
+ }
1408
+ ```
1409
+
1410
+ **Another example:**
1411
+
1412
+ ```tsx
1413
+ // Incorrect: storing both firstName, lastName, AND fullName
1414
+ const [firstName, setFirstName] = useState('')
1415
+ const [lastName, setLastName] = useState('')
1416
+ const [fullName, setFullName] = useState('')
1417
+
1418
+ // Correct: derive fullName
1419
+ const [firstName, setFirstName] = useState('')
1420
+ const [lastName, setLastName] = useState('')
1421
+ const fullName = `${firstName} ${lastName}`
1422
+ ```
1423
+
1424
+ State should be the minimal source of truth. Everything else is derived.
1425
+
1426
+ Reference: [https://react.dev/learn/choosing-the-state-structure](https://react.dev/learn/choosing-the-state-structure)
1427
+
1428
+ ### 6.2 Use fallback state instead of initialState
1429
+
1430
+ **Impact: MEDIUM (reactive fallbacks without syncing)**
1431
+
1432
+ Use `undefined` as initial state and nullish coalescing (`??`) to fall back to
1433
+
1434
+ parent or server values. State represents user intent only—`undefined` means
1435
+
1436
+ "user hasn't chosen yet." This enables reactive fallbacks that update when the
1437
+
1438
+ source changes, not just on initial render.
1439
+
1440
+ **Incorrect: syncs state, loses reactivity**
1441
+
1442
+ ```tsx
1443
+ type Props = { fallbackEnabled: boolean }
1444
+
1445
+ function Toggle({ fallbackEnabled }: Props) {
1446
+ const [enabled, setEnabled] = useState(defaultEnabled)
1447
+ // If fallbackEnabled changes, state is stale
1448
+ // State mixes user intent with default value
1449
+
1450
+ return <Switch value={enabled} onValueChange={setEnabled} />
1451
+ }
1452
+ ```
1453
+
1454
+ **Correct: state is user intent, reactive fallback**
1455
+
1456
+ ```tsx
1457
+ type Props = { fallbackEnabled: boolean }
1458
+
1459
+ function Toggle({ fallbackEnabled }: Props) {
1460
+ const [_enabled, setEnabled] = useState<boolean | undefined>(undefined)
1461
+ const enabled = _enabled ?? defaultEnabled
1462
+ // undefined = user hasn't touched it, falls back to prop
1463
+ // If defaultEnabled changes, component reflects it
1464
+ // Once user interacts, their choice persists
1465
+
1466
+ return <Switch value={enabled} onValueChange={setEnabled} />
1467
+ }
1468
+ ```
1469
+
1470
+ **With server data:**
1471
+
1472
+ ```tsx
1473
+ function ProfileForm({ data }: { data: User }) {
1474
+ const [_theme, setTheme] = useState<string | undefined>(undefined)
1475
+ const theme = _theme ?? data.theme
1476
+ // Shows server value until user overrides
1477
+ // Server refetch updates the fallback automatically
1478
+
1479
+ return <ThemePicker value={theme} onChange={setTheme} />
1480
+ }
1481
+ ```
1482
+
1483
+ ### 6.3 useState Dispatch updaters for State That Depends on Current Value
1484
+
1485
+ **Impact: MEDIUM (avoids stale closures, prevents unnecessary re-renders)**
1486
+
1487
+ When the next state depends on the current state, use a dispatch updater
1488
+
1489
+ (`setState(prev => ...)`) instead of reading the state variable directly in a
1490
+
1491
+ callback. This avoids stale closures and ensures you're comparing against the
1492
+
1493
+ latest value.
1494
+
1495
+ **Incorrect: reads state directly**
1496
+
1497
+ ```tsx
1498
+ const [size, setSize] = useState<Size | undefined>(undefined)
1499
+
1500
+ const onLayout = (e: LayoutChangeEvent) => {
1501
+ const { width, height } = e.nativeEvent.layout
1502
+ // size may be stale in this closure
1503
+ if (size?.width !== width || size?.height !== height) {
1504
+ setSize({ width, height })
1505
+ }
1506
+ }
1507
+ ```
1508
+
1509
+ **Correct: dispatch updater**
1510
+
1511
+ ```tsx
1512
+ const [size, setSize] = useState<Size | undefined>(undefined)
1513
+
1514
+ const onLayout = (e: LayoutChangeEvent) => {
1515
+ const { width, height } = e.nativeEvent.layout
1516
+ setSize((prev) => {
1517
+ if (prev?.width === width && prev?.height === height) return prev
1518
+ return { width, height }
1519
+ })
1520
+ }
1521
+ ```
1522
+
1523
+ Returning the previous value from the updater skips the re-render.
1524
+
1525
+ For primitive states, you don't need to compare values before firing a
1526
+
1527
+ re-render.
1528
+
1529
+ **Incorrect: unnecessary comparison for primitive state**
1530
+
1531
+ ```tsx
1532
+ const [size, setSize] = useState<Size | undefined>(undefined)
1533
+
1534
+ const onLayout = (e: LayoutChangeEvent) => {
1535
+ const { width, height } = e.nativeEvent.layout
1536
+ setSize((prev) => (prev === width ? prev : width))
1537
+ }
1538
+ ```
1539
+
1540
+ **Correct: sets primitive state directly**
1541
+
1542
+ ```tsx
1543
+ const [size, setSize] = useState<Size | undefined>(undefined)
1544
+
1545
+ const onLayout = (e: LayoutChangeEvent) => {
1546
+ const { width, height } = e.nativeEvent.layout
1547
+ setSize(width)
1548
+ }
1549
+ ```
1550
+
1551
+ However, if the next state depends on the current state, you should still use a
1552
+
1553
+ dispatch updater.
1554
+
1555
+ **Incorrect: reads state directly from the callback**
1556
+
1557
+ ```tsx
1558
+ const [count, setCount] = useState(0)
1559
+
1560
+ const onTap = () => {
1561
+ setCount(count + 1)
1562
+ }
1563
+ ```
1564
+
1565
+ **Correct: dispatch updater**
1566
+
1567
+ ```tsx
1568
+ const [count, setCount] = useState(0)
1569
+
1570
+ const onTap = () => {
1571
+ setCount((prev) => prev + 1)
1572
+ }
1573
+ ```
1574
+
1575
+ ---
1576
+
1577
+ ## 7. State Architecture
1578
+
1579
+ **Impact: MEDIUM**
1580
+
1581
+ Ground truth principles for state variables and derived values.
1582
+
1583
+ ### 7.1 State Must Represent Ground Truth
1584
+
1585
+ **Impact: HIGH (cleaner logic, easier debugging, single source of truth)**
1586
+
1587
+ State variables—both React `useState` and Reanimated shared values—should
1588
+
1589
+ represent the actual state of something (e.g., `pressed`, `progress`, `isOpen`),
1590
+
1591
+ not derived visual values (e.g., `scale`, `opacity`, `translateY`). Derive
1592
+
1593
+ visual values from state using computation or interpolation.
1594
+
1595
+ **Incorrect: storing the visual output**
1596
+
1597
+ ```tsx
1598
+ const scale = useSharedValue(1)
1599
+
1600
+ const tap = Gesture.Tap()
1601
+ .onBegin(() => {
1602
+ scale.set(withTiming(0.95))
1603
+ })
1604
+ .onFinalize(() => {
1605
+ scale.set(withTiming(1))
1606
+ })
1607
+
1608
+ const animatedStyle = useAnimatedStyle(() => ({
1609
+ transform: [{ scale: scale.get() }],
1610
+ }))
1611
+ ```
1612
+
1613
+ **Correct: storing the state, deriving the visual**
1614
+
1615
+ ```tsx
1616
+ const pressed = useSharedValue(0) // 0 = not pressed, 1 = pressed
1617
+
1618
+ const tap = Gesture.Tap()
1619
+ .onBegin(() => {
1620
+ pressed.set(withTiming(1))
1621
+ })
1622
+ .onFinalize(() => {
1623
+ pressed.set(withTiming(0))
1624
+ })
1625
+
1626
+ const animatedStyle = useAnimatedStyle(() => ({
1627
+ transform: [{ scale: interpolate(pressed.get(), [0, 1], [1, 0.95]) }],
1628
+ }))
1629
+ ```
1630
+
1631
+ **Why this matters:**
1632
+
1633
+ State variables should represent real "state", not necessarily a desired end
1634
+
1635
+ result.
1636
+
1637
+ 1. **Single source of truth** — The state (`pressed`) describes what's
1638
+
1639
+ happening; visuals are derived
1640
+
1641
+ 2. **Easier to extend** — Adding opacity, rotation, or other effects just
1642
+
1643
+ requires more interpolations from the same state
1644
+
1645
+ 3. **Debugging** — Inspecting `pressed = 1` is clearer than `scale = 0.95`
1646
+
1647
+ 4. **Reusable logic** — The same `pressed` value can drive multiple visual
1648
+
1649
+ properties
1650
+
1651
+ **Same principle for React state:**
1652
+
1653
+ ```tsx
1654
+ // Incorrect: storing derived values
1655
+ const [isExpanded, setIsExpanded] = useState(false)
1656
+ const [height, setHeight] = useState(0)
1657
+
1658
+ useEffect(() => {
1659
+ setHeight(isExpanded ? 200 : 0)
1660
+ }, [isExpanded])
1661
+
1662
+ // Correct: derive from state
1663
+ const [isExpanded, setIsExpanded] = useState(false)
1664
+ const height = isExpanded ? 200 : 0
1665
+ ```
1666
+
1667
+ State is the minimal truth. Everything else is derived.
1668
+
1669
+ ---
1670
+
1671
+ ## 8. React Compiler
1672
+
1673
+ **Impact: MEDIUM**
1674
+
1675
+ Compatibility patterns for React Compiler with React Native and
1676
+ Reanimated.
1677
+
1678
+ ### 8.1 Destructure Functions Early in Render (React Compiler)
1679
+
1680
+ **Impact: HIGH (stable references, fewer re-renders)**
1681
+
1682
+ This rule is only applicable if you are using the React Compiler.
1683
+
1684
+ Destructure functions from hooks at the top of render scope. Never dot into
1685
+
1686
+ objects to call functions. Destructured functions are stable references; dotting
1687
+
1688
+ creates new references and breaks memoization.
1689
+
1690
+ **Incorrect: dotting into object**
1691
+
1692
+ ```tsx
1693
+ import { useRouter } from 'expo-router'
1694
+
1695
+ function SaveButton(props) {
1696
+ const router = useRouter()
1697
+
1698
+ // bad: react-compiler will key the cache on "props" and "router", which are objects that change each render
1699
+ const handlePress = () => {
1700
+ props.onSave()
1701
+ router.push('/success') // unstable reference
1702
+ }
1703
+
1704
+ return <Button onPress={handlePress}>Save</Button>
1705
+ }
1706
+ ```
1707
+
1708
+ **Correct: destructure early**
1709
+
1710
+ ```tsx
1711
+ import { useRouter } from 'expo-router'
1712
+
1713
+ function SaveButton({ onSave }) {
1714
+ const { push } = useRouter()
1715
+
1716
+ // good: react-compiler will key on push and onSave
1717
+ const handlePress = () => {
1718
+ onSave()
1719
+ push('/success') // stable reference
1720
+ }
1721
+
1722
+ return <Button onPress={handlePress}>Save</Button>
1723
+ }
1724
+ ```
1725
+
1726
+ ### 8.2 Use .get() and .set() for Reanimated Shared Values (not .value)
1727
+
1728
+ **Impact: LOW (required for React Compiler compatibility)**
1729
+
1730
+ With React Compiler enabled, use `.get()` and `.set()` instead of reading or
1731
+
1732
+ writing `.value` directly on Reanimated shared values. The compiler can't track
1733
+
1734
+ property access—explicit methods ensure correct behavior.
1735
+
1736
+ **Incorrect: breaks with React Compiler**
1737
+
1738
+ ```tsx
1739
+ import { useSharedValue } from 'react-native-reanimated'
1740
+
1741
+ function Counter() {
1742
+ const count = useSharedValue(0)
1743
+
1744
+ const increment = () => {
1745
+ count.value = count.value + 1 // opts out of react compiler
1746
+ }
1747
+
1748
+ return <Button onPress={increment} title={`Count: ${count.value}`} />
1749
+ }
1750
+ ```
1751
+
1752
+ **Correct: React Compiler compatible**
1753
+
1754
+ ```tsx
1755
+ import { useSharedValue } from 'react-native-reanimated'
1756
+
1757
+ function Counter() {
1758
+ const count = useSharedValue(0)
1759
+
1760
+ const increment = () => {
1761
+ count.set(count.get() + 1)
1762
+ }
1763
+
1764
+ return <Button onPress={increment} title={`Count: ${count.get()}`} />
1765
+ }
1766
+ ```
1767
+
1768
+ See the
1769
+
1770
+ [Reanimated docs](https://docs.swmansion.com/react-native-reanimated/docs/core/useSharedValue/#react-compiler-support)
1771
+
1772
+ for more.
1773
+
1774
+ ---
1775
+
1776
+ ## 9. User Interface
1777
+
1778
+ **Impact: MEDIUM**
1779
+
1780
+ Native UI patterns for images, menus, modals, styling, and
1781
+ platform-consistent interfaces.
1782
+
1783
+ ### 9.1 Measuring View Dimensions
1784
+
1785
+ **Impact: MEDIUM (synchronous measurement, avoid unnecessary re-renders)**
1786
+
1787
+ Use both `useLayoutEffect` (synchronous) and `onLayout` (for updates). The sync
1788
+
1789
+ measurement gives you the initial size immediately; `onLayout` keeps it current
1790
+
1791
+ when the view changes. For non-primitive states, use a dispatch updater to
1792
+
1793
+ compare values and avoid unnecessary re-renders.
1794
+
1795
+ **Height only:**
1796
+
1797
+ ```tsx
1798
+ import { useLayoutEffect, useRef, useState } from 'react'
1799
+ import { View, LayoutChangeEvent } from 'react-native'
1800
+
1801
+ function MeasuredBox({ children }: { children: React.ReactNode }) {
1802
+ const ref = useRef<View>(null)
1803
+ const [height, setHeight] = useState<number | undefined>(undefined)
1804
+
1805
+ useLayoutEffect(() => {
1806
+ // Sync measurement on mount (RN 0.82+)
1807
+ const rect = ref.current?.getBoundingClientRect()
1808
+ if (rect) setHeight(rect.height)
1809
+ // Pre-0.82: ref.current?.measure((x, y, w, h) => setHeight(h))
1810
+ }, [])
1811
+
1812
+ const onLayout = (e: LayoutChangeEvent) => {
1813
+ setHeight(e.nativeEvent.layout.height)
1814
+ }
1815
+
1816
+ return (
1817
+ <View ref={ref} onLayout={onLayout}>
1818
+ {children}
1819
+ </View>
1820
+ )
1821
+ }
1822
+ ```
1823
+
1824
+ **Both dimensions:**
1825
+
1826
+ ```tsx
1827
+ import { useLayoutEffect, useRef, useState } from 'react'
1828
+ import { View, LayoutChangeEvent } from 'react-native'
1829
+
1830
+ type Size = { width: number; height: number }
1831
+
1832
+ function MeasuredBox({ children }: { children: React.ReactNode }) {
1833
+ const ref = useRef<View>(null)
1834
+ const [size, setSize] = useState<Size | undefined>(undefined)
1835
+
1836
+ useLayoutEffect(() => {
1837
+ const rect = ref.current?.getBoundingClientRect()
1838
+ if (rect) setSize({ width: rect.width, height: rect.height })
1839
+ }, [])
1840
+
1841
+ const onLayout = (e: LayoutChangeEvent) => {
1842
+ const { width, height } = e.nativeEvent.layout
1843
+ setSize((prev) => {
1844
+ // for non-primitive states, compare values before firing a re-render
1845
+ if (prev?.width === width && prev?.height === height) return prev
1846
+ return { width, height }
1847
+ })
1848
+ }
1849
+
1850
+ return (
1851
+ <View ref={ref} onLayout={onLayout}>
1852
+ {children}
1853
+ </View>
1854
+ )
1855
+ }
1856
+ ```
1857
+
1858
+ Use functional setState to compare—don't read state directly in the callback.
1859
+
1860
+ ### 9.2 Modern React Native Styling Patterns
1861
+
1862
+ **Impact: MEDIUM (consistent design, smoother borders, cleaner layouts)**
1863
+
1864
+ Follow these styling patterns for cleaner, more consistent React Native code.
1865
+
1866
+ **Always use `borderCurve: 'continuous'` with `borderRadius`:**
1867
+
1868
+ **Use `gap` instead of margin for spacing between elements:**
1869
+
1870
+ ```tsx
1871
+ // Incorrect – margin on children
1872
+ <View>
1873
+ <Text style={{ marginBottom: 8 }}>Title</Text>
1874
+ <Text style={{ marginBottom: 8 }}>Subtitle</Text>
1875
+ </View>
1876
+
1877
+ // Correct – gap on parent
1878
+ <View style={{ gap: 8 }}>
1879
+ <Text>Title</Text>
1880
+ <Text>Subtitle</Text>
1881
+ </View>
1882
+ ```
1883
+
1884
+ **Use `padding` for space within, `gap` for space between:**
1885
+
1886
+ ```tsx
1887
+ <View style={{ padding: 16, gap: 12 }}>
1888
+ <Text>First</Text>
1889
+ <Text>Second</Text>
1890
+ </View>
1891
+ ```
1892
+
1893
+ **Use `experimental_backgroundImage` for linear gradients:**
1894
+
1895
+ ```tsx
1896
+ // Incorrect – third-party gradient library
1897
+ <LinearGradient colors={['#000', '#fff']} />
1898
+
1899
+ // Correct – native CSS gradient syntax
1900
+ <View
1901
+ style={{
1902
+ experimental_backgroundImage: 'linear-gradient(to bottom, #000, #fff)',
1903
+ }}
1904
+ />
1905
+ ```
1906
+
1907
+ **Use CSS `boxShadow` string syntax for shadows:**
1908
+
1909
+ ```tsx
1910
+ // Incorrect – legacy shadow objects or elevation
1911
+ { shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.1 }
1912
+ { elevation: 4 }
1913
+
1914
+ // Correct – CSS box-shadow syntax
1915
+ { boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)' }
1916
+ ```
1917
+
1918
+ **Avoid multiple font sizes – use weight and color for emphasis:**
1919
+
1920
+ ```tsx
1921
+ // Incorrect – varying font sizes for hierarchy
1922
+ <Text style={{ fontSize: 18 }}>Title</Text>
1923
+ <Text style={{ fontSize: 14 }}>Subtitle</Text>
1924
+ <Text style={{ fontSize: 12 }}>Caption</Text>
1925
+
1926
+ // Correct – consistent size, vary weight and color
1927
+ <Text style={{ fontWeight: '600' }}>Title</Text>
1928
+ <Text style={{ color: '#666' }}>Subtitle</Text>
1929
+ <Text style={{ color: '#999' }}>Caption</Text>
1930
+ ```
1931
+
1932
+ Limiting font sizes creates visual consistency. Use `fontWeight` (bold/semibold)
1933
+
1934
+ and grayscale colors for hierarchy instead.
1935
+
1936
+ ### 9.3 Use contentInset for Dynamic ScrollView Spacing
1937
+
1938
+ **Impact: LOW (smoother updates, no layout recalculation)**
1939
+
1940
+ When adding space to the top or bottom of a ScrollView that may change
1941
+
1942
+ (keyboard, toolbars, dynamic content), use `contentInset` instead of padding.
1943
+
1944
+ Changing `contentInset` doesn't trigger layout recalculation—it adjusts the
1945
+
1946
+ scroll area without re-rendering content.
1947
+
1948
+ **Incorrect: padding causes layout recalculation**
1949
+
1950
+ ```tsx
1951
+ function Feed({ bottomOffset }: { bottomOffset: number }) {
1952
+ return (
1953
+ <ScrollView contentContainerStyle={{ paddingBottom: bottomOffset }}>
1954
+ {children}
1955
+ </ScrollView>
1956
+ )
1957
+ }
1958
+ // Changing bottomOffset triggers full layout recalculation
1959
+ ```
1960
+
1961
+ **Correct: contentInset for dynamic spacing**
1962
+
1963
+ ```tsx
1964
+ function Feed({ bottomOffset }: { bottomOffset: number }) {
1965
+ return (
1966
+ <ScrollView
1967
+ contentInset={{ bottom: bottomOffset }}
1968
+ scrollIndicatorInsets={{ bottom: bottomOffset }}
1969
+ >
1970
+ {children}
1971
+ </ScrollView>
1972
+ )
1973
+ }
1974
+ // Changing bottomOffset only adjusts scroll bounds
1975
+ ```
1976
+
1977
+ Use `scrollIndicatorInsets` alongside `contentInset` to keep the scroll
1978
+
1979
+ indicator aligned. For static spacing that never changes, padding is fine.
1980
+
1981
+ ### 9.4 Use contentInsetAdjustmentBehavior for Safe Areas
1982
+
1983
+ **Impact: MEDIUM (native safe area handling, no layout shifts)**
1984
+
1985
+ Use `contentInsetAdjustmentBehavior="automatic"` on the root ScrollView instead of wrapping content in SafeAreaView or manual padding. This lets iOS handle safe area insets natively with proper scroll behavior.
1986
+
1987
+ **Incorrect: SafeAreaView wrapper**
1988
+
1989
+ ```tsx
1990
+ import { SafeAreaView, ScrollView, View, Text } from 'react-native'
1991
+
1992
+ function MyScreen() {
1993
+ return (
1994
+ <SafeAreaView style={{ flex: 1 }}>
1995
+ <ScrollView>
1996
+ <View>
1997
+ <Text>Content</Text>
1998
+ </View>
1999
+ </ScrollView>
2000
+ </SafeAreaView>
2001
+ )
2002
+ }
2003
+ ```
2004
+
2005
+ **Incorrect: manual safe area padding**
2006
+
2007
+ ```tsx
2008
+ import { ScrollView, View, Text } from 'react-native'
2009
+ import { useSafeAreaInsets } from 'react-native-safe-area-context'
2010
+
2011
+ function MyScreen() {
2012
+ const insets = useSafeAreaInsets()
2013
+
2014
+ return (
2015
+ <ScrollView contentContainerStyle={{ paddingTop: insets.top }}>
2016
+ <View>
2017
+ <Text>Content</Text>
2018
+ </View>
2019
+ </ScrollView>
2020
+ )
2021
+ }
2022
+ ```
2023
+
2024
+ **Correct: native content inset adjustment**
2025
+
2026
+ ```tsx
2027
+ import { ScrollView, View, Text } from 'react-native'
2028
+
2029
+ function MyScreen() {
2030
+ return (
2031
+ <ScrollView contentInsetAdjustmentBehavior='automatic'>
2032
+ <View>
2033
+ <Text>Content</Text>
2034
+ </View>
2035
+ </ScrollView>
2036
+ )
2037
+ }
2038
+ ```
2039
+
2040
+ The native approach handles dynamic safe areas (keyboard, toolbars) and allows content to scroll behind the status bar naturally.
2041
+
2042
+ ### 9.5 Use expo-image for Optimized Images
2043
+
2044
+ **Impact: HIGH (memory efficiency, caching, blurhash placeholders, progressive loading)**
2045
+
2046
+ Use `expo-image` instead of React Native's `Image`. It provides memory-efficient caching, blurhash placeholders, progressive loading, and better performance for lists.
2047
+
2048
+ **Incorrect: React Native Image**
2049
+
2050
+ ```tsx
2051
+ import { Image } from 'react-native'
2052
+
2053
+ function Avatar({ url }: { url: string }) {
2054
+ return <Image source={{ uri: url }} style={styles.avatar} />
2055
+ }
2056
+ ```
2057
+
2058
+ **Correct: expo-image**
2059
+
2060
+ ```tsx
2061
+ import { Image } from 'expo-image'
2062
+
2063
+ function Avatar({ url }: { url: string }) {
2064
+ return <Image source={{ uri: url }} style={styles.avatar} />
2065
+ }
2066
+ ```
2067
+
2068
+ **With blurhash placeholder:**
2069
+
2070
+ ```tsx
2071
+ <Image
2072
+ source={{ uri: url }}
2073
+ placeholder={{ blurhash: 'LGF5]+Yk^6#M@-5c,1J5@[or[Q6.' }}
2074
+ contentFit="cover"
2075
+ transition={200}
2076
+ style={styles.image}
2077
+ />
2078
+ ```
2079
+
2080
+ **With priority and caching:**
2081
+
2082
+ ```tsx
2083
+ <Image
2084
+ source={{ uri: url }}
2085
+ priority="high"
2086
+ cachePolicy="memory-disk"
2087
+ style={styles.hero}
2088
+ />
2089
+ ```
2090
+
2091
+ **Key props:**
2092
+
2093
+ - `placeholder` — Blurhash or thumbnail while loading
2094
+
2095
+ - `contentFit` — `cover`, `contain`, `fill`, `scale-down`
2096
+
2097
+ - `transition` — Fade-in duration (ms)
2098
+
2099
+ - `priority` — `low`, `normal`, `high`
2100
+
2101
+ - `cachePolicy` — `memory`, `disk`, `memory-disk`, `none`
2102
+
2103
+ - `recyclingKey` — Unique key for list recycling
2104
+
2105
+ For cross-platform (web + native), use `SolitoImage` from `solito/image` which uses `expo-image` under the hood.
2106
+
2107
+ Reference: [https://docs.expo.dev/versions/latest/sdk/image/](https://docs.expo.dev/versions/latest/sdk/image/)
2108
+
2109
+ ### 9.6 Use Galeria for Image Galleries and Lightbox
2110
+
2111
+ **Impact: MEDIUM**
2112
+
2113
+ For image galleries with lightbox (tap to fullscreen), use `@nandorojo/galeria`.
2114
+
2115
+ It provides native shared element transitions with pinch-to-zoom, double-tap
2116
+
2117
+ zoom, and pan-to-close. Works with any image component including `expo-image`.
2118
+
2119
+ **Incorrect: custom modal implementation**
2120
+
2121
+ ```tsx
2122
+ function ImageGallery({ urls }: { urls: string[] }) {
2123
+ const [selected, setSelected] = useState<string | null>(null)
2124
+
2125
+ return (
2126
+ <>
2127
+ {urls.map((url) => (
2128
+ <Pressable key={url} onPress={() => setSelected(url)}>
2129
+ <Image source={{ uri: url }} style={styles.thumbnail} />
2130
+ </Pressable>
2131
+ ))}
2132
+ <Modal visible={!!selected} onRequestClose={() => setSelected(null)}>
2133
+ <Image source={{ uri: selected! }} style={styles.fullscreen} />
2134
+ </Modal>
2135
+ </>
2136
+ )
2137
+ }
2138
+ ```
2139
+
2140
+ **Correct: Galeria with expo-image**
2141
+
2142
+ ```tsx
2143
+ import { Galeria } from '@nandorojo/galeria'
2144
+ import { Image } from 'expo-image'
2145
+
2146
+ function ImageGallery({ urls }: { urls: string[] }) {
2147
+ return (
2148
+ <Galeria urls={urls}>
2149
+ {urls.map((url, index) => (
2150
+ <Galeria.Image index={index} key={url}>
2151
+ <Image source={{ uri: url }} style={styles.thumbnail} />
2152
+ </Galeria.Image>
2153
+ ))}
2154
+ </Galeria>
2155
+ )
2156
+ }
2157
+ ```
2158
+
2159
+ **Single image:**
2160
+
2161
+ ```tsx
2162
+ import { Galeria } from '@nandorojo/galeria'
2163
+ import { Image } from 'expo-image'
2164
+
2165
+ function Avatar({ url }: { url: string }) {
2166
+ return (
2167
+ <Galeria urls={[url]}>
2168
+ <Galeria.Image>
2169
+ <Image source={{ uri: url }} style={styles.avatar} />
2170
+ </Galeria.Image>
2171
+ </Galeria>
2172
+ )
2173
+ }
2174
+ ```
2175
+
2176
+ **With low-res thumbnails and high-res fullscreen:**
2177
+
2178
+ ```tsx
2179
+ <Galeria urls={highResUrls}>
2180
+ {lowResUrls.map((url, index) => (
2181
+ <Galeria.Image index={index} key={url}>
2182
+ <Image source={{ uri: url }} style={styles.thumbnail} />
2183
+ </Galeria.Image>
2184
+ ))}
2185
+ </Galeria>
2186
+ ```
2187
+
2188
+ **With FlashList:**
2189
+
2190
+ ```tsx
2191
+ <Galeria urls={urls}>
2192
+ <FlashList
2193
+ data={urls}
2194
+ renderItem={({ item, index }) => (
2195
+ <Galeria.Image index={index}>
2196
+ <Image source={{ uri: item }} style={styles.thumbnail} />
2197
+ </Galeria.Image>
2198
+ )}
2199
+ numColumns={3}
2200
+ estimatedItemSize={100}
2201
+ />
2202
+ </Galeria>
2203
+ ```
2204
+
2205
+ Works with `expo-image`, `SolitoImage`, `react-native` Image, or any image
2206
+
2207
+ component.
2208
+
2209
+ Reference: [https://github.com/nandorojo/galeria](https://github.com/nandorojo/galeria)
2210
+
2211
+ ### 9.7 Use Native Menus for Dropdowns and Context Menus
2212
+
2213
+ **Impact: HIGH (native accessibility, platform-consistent UX)**
2214
+
2215
+ Use native platform menus instead of custom JS implementations. Native menus
2216
+
2217
+ provide built-in accessibility, consistent platform UX, and better performance.
2218
+
2219
+ Use [zeego](https://zeego.dev) for cross-platform native menus.
2220
+
2221
+ **Incorrect: custom JS menu**
2222
+
2223
+ ```tsx
2224
+ import { useState } from 'react'
2225
+ import { View, Pressable, Text } from 'react-native'
2226
+
2227
+ function MyMenu() {
2228
+ const [open, setOpen] = useState(false)
2229
+
2230
+ return (
2231
+ <View>
2232
+ <Pressable onPress={() => setOpen(!open)}>
2233
+ <Text>Open Menu</Text>
2234
+ </Pressable>
2235
+ {open && (
2236
+ <View style={{ position: 'absolute', top: 40 }}>
2237
+ <Pressable onPress={() => console.log('edit')}>
2238
+ <Text>Edit</Text>
2239
+ </Pressable>
2240
+ <Pressable onPress={() => console.log('delete')}>
2241
+ <Text>Delete</Text>
2242
+ </Pressable>
2243
+ </View>
2244
+ )}
2245
+ </View>
2246
+ )
2247
+ }
2248
+ ```
2249
+
2250
+ **Correct: native menu with zeego**
2251
+
2252
+ ```tsx
2253
+ import * as DropdownMenu from 'zeego/dropdown-menu'
2254
+
2255
+ function MyMenu() {
2256
+ return (
2257
+ <DropdownMenu.Root>
2258
+ <DropdownMenu.Trigger>
2259
+ <Pressable>
2260
+ <Text>Open Menu</Text>
2261
+ </Pressable>
2262
+ </DropdownMenu.Trigger>
2263
+
2264
+ <DropdownMenu.Content>
2265
+ <DropdownMenu.Item key='edit' onSelect={() => console.log('edit')}>
2266
+ <DropdownMenu.ItemTitle>Edit</DropdownMenu.ItemTitle>
2267
+ </DropdownMenu.Item>
2268
+
2269
+ <DropdownMenu.Item
2270
+ key='delete'
2271
+ destructive
2272
+ onSelect={() => console.log('delete')}
2273
+ >
2274
+ <DropdownMenu.ItemTitle>Delete</DropdownMenu.ItemTitle>
2275
+ </DropdownMenu.Item>
2276
+ </DropdownMenu.Content>
2277
+ </DropdownMenu.Root>
2278
+ )
2279
+ }
2280
+ ```
2281
+
2282
+ **Context menu: long-press**
2283
+
2284
+ ```tsx
2285
+ import * as ContextMenu from 'zeego/context-menu'
2286
+
2287
+ function MyContextMenu() {
2288
+ return (
2289
+ <ContextMenu.Root>
2290
+ <ContextMenu.Trigger>
2291
+ <View style={{ padding: 20 }}>
2292
+ <Text>Long press me</Text>
2293
+ </View>
2294
+ </ContextMenu.Trigger>
2295
+
2296
+ <ContextMenu.Content>
2297
+ <ContextMenu.Item key='copy' onSelect={() => console.log('copy')}>
2298
+ <ContextMenu.ItemTitle>Copy</ContextMenu.ItemTitle>
2299
+ </ContextMenu.Item>
2300
+
2301
+ <ContextMenu.Item key='paste' onSelect={() => console.log('paste')}>
2302
+ <ContextMenu.ItemTitle>Paste</ContextMenu.ItemTitle>
2303
+ </ContextMenu.Item>
2304
+ </ContextMenu.Content>
2305
+ </ContextMenu.Root>
2306
+ )
2307
+ }
2308
+ ```
2309
+
2310
+ **Checkbox items:**
2311
+
2312
+ ```tsx
2313
+ import * as DropdownMenu from 'zeego/dropdown-menu'
2314
+
2315
+ function SettingsMenu() {
2316
+ const [notifications, setNotifications] = useState(true)
2317
+
2318
+ return (
2319
+ <DropdownMenu.Root>
2320
+ <DropdownMenu.Trigger>
2321
+ <Pressable>
2322
+ <Text>Settings</Text>
2323
+ </Pressable>
2324
+ </DropdownMenu.Trigger>
2325
+
2326
+ <DropdownMenu.Content>
2327
+ <DropdownMenu.CheckboxItem
2328
+ key='notifications'
2329
+ value={notifications}
2330
+ onValueChange={() => setNotifications((prev) => !prev)}
2331
+ >
2332
+ <DropdownMenu.ItemIndicator />
2333
+ <DropdownMenu.ItemTitle>Notifications</DropdownMenu.ItemTitle>
2334
+ </DropdownMenu.CheckboxItem>
2335
+ </DropdownMenu.Content>
2336
+ </DropdownMenu.Root>
2337
+ )
2338
+ }
2339
+ ```
2340
+
2341
+ **Submenus:**
2342
+
2343
+ ```tsx
2344
+ import * as DropdownMenu from 'zeego/dropdown-menu'
2345
+
2346
+ function MenuWithSubmenu() {
2347
+ return (
2348
+ <DropdownMenu.Root>
2349
+ <DropdownMenu.Trigger>
2350
+ <Pressable>
2351
+ <Text>Options</Text>
2352
+ </Pressable>
2353
+ </DropdownMenu.Trigger>
2354
+
2355
+ <DropdownMenu.Content>
2356
+ <DropdownMenu.Item key='home' onSelect={() => console.log('home')}>
2357
+ <DropdownMenu.ItemTitle>Home</DropdownMenu.ItemTitle>
2358
+ </DropdownMenu.Item>
2359
+
2360
+ <DropdownMenu.Sub>
2361
+ <DropdownMenu.SubTrigger key='more'>
2362
+ <DropdownMenu.ItemTitle>More Options</DropdownMenu.ItemTitle>
2363
+ </DropdownMenu.SubTrigger>
2364
+
2365
+ <DropdownMenu.SubContent>
2366
+ <DropdownMenu.Item key='settings'>
2367
+ <DropdownMenu.ItemTitle>Settings</DropdownMenu.ItemTitle>
2368
+ </DropdownMenu.Item>
2369
+
2370
+ <DropdownMenu.Item key='help'>
2371
+ <DropdownMenu.ItemTitle>Help</DropdownMenu.ItemTitle>
2372
+ </DropdownMenu.Item>
2373
+ </DropdownMenu.SubContent>
2374
+ </DropdownMenu.Sub>
2375
+ </DropdownMenu.Content>
2376
+ </DropdownMenu.Root>
2377
+ )
2378
+ }
2379
+ ```
2380
+
2381
+ Reference: [https://zeego.dev/components/dropdown-menu](https://zeego.dev/components/dropdown-menu)
2382
+
2383
+ ### 9.8 Use Native Modals Over JS-Based Bottom Sheets
2384
+
2385
+ **Impact: HIGH (native performance, gestures, accessibility)**
2386
+
2387
+ Use native `<Modal>` with `presentationStyle="formSheet"` or React Navigation
2388
+
2389
+ v7's native form sheet instead of JS-based bottom sheet libraries. Native modals
2390
+
2391
+ have built-in gestures, accessibility, and better performance. Rely on native UI
2392
+
2393
+ for low-level primitives.
2394
+
2395
+ **Incorrect: JS-based bottom sheet**
2396
+
2397
+ ```tsx
2398
+ import BottomSheet from 'custom-js-bottom-sheet'
2399
+
2400
+ function MyScreen() {
2401
+ const sheetRef = useRef<BottomSheet>(null)
2402
+
2403
+ return (
2404
+ <View style={{ flex: 1 }}>
2405
+ <Button onPress={() => sheetRef.current?.expand()} title='Open' />
2406
+ <BottomSheet ref={sheetRef} snapPoints={['50%', '90%']}>
2407
+ <View>
2408
+ <Text>Sheet content</Text>
2409
+ </View>
2410
+ </BottomSheet>
2411
+ </View>
2412
+ )
2413
+ }
2414
+ ```
2415
+
2416
+ **Correct: native Modal with formSheet**
2417
+
2418
+ ```tsx
2419
+ import { Modal, View, Text, Button } from 'react-native'
2420
+
2421
+ function MyScreen() {
2422
+ const [visible, setVisible] = useState(false)
2423
+
2424
+ return (
2425
+ <View style={{ flex: 1 }}>
2426
+ <Button onPress={() => setVisible(true)} title='Open' />
2427
+ <Modal
2428
+ visible={visible}
2429
+ presentationStyle='formSheet'
2430
+ animationType='slide'
2431
+ onRequestClose={() => setVisible(false)}
2432
+ >
2433
+ <View>
2434
+ <Text>Sheet content</Text>
2435
+ </View>
2436
+ </Modal>
2437
+ </View>
2438
+ )
2439
+ }
2440
+ ```
2441
+
2442
+ **Correct: React Navigation v7 native form sheet**
2443
+
2444
+ ```tsx
2445
+ // In your navigator
2446
+ <Stack.Screen
2447
+ name='Details'
2448
+ component={DetailsScreen}
2449
+ options={{
2450
+ presentation: 'formSheet',
2451
+ sheetAllowedDetents: 'fitToContents',
2452
+ }}
2453
+ />
2454
+ ```
2455
+
2456
+ Native modals provide swipe-to-dismiss, proper keyboard avoidance, and
2457
+
2458
+ accessibility out of the box.
2459
+
2460
+ ### 9.9 Use Pressable Instead of Touchable Components
2461
+
2462
+ **Impact: LOW (modern API, more flexible)**
2463
+
2464
+ Never use `TouchableOpacity` or `TouchableHighlight`. Use `Pressable` from
2465
+
2466
+ `react-native` or `react-native-gesture-handler` instead.
2467
+
2468
+ **Incorrect: legacy Touchable components**
2469
+
2470
+ ```tsx
2471
+ import { TouchableOpacity } from 'react-native'
2472
+
2473
+ function MyButton({ onPress }: { onPress: () => void }) {
2474
+ return (
2475
+ <TouchableOpacity onPress={onPress} activeOpacity={0.7}>
2476
+ <Text>Press me</Text>
2477
+ </TouchableOpacity>
2478
+ )
2479
+ }
2480
+ ```
2481
+
2482
+ **Correct: Pressable**
2483
+
2484
+ ```tsx
2485
+ import { Pressable } from 'react-native'
2486
+
2487
+ function MyButton({ onPress }: { onPress: () => void }) {
2488
+ return (
2489
+ <Pressable onPress={onPress}>
2490
+ <Text>Press me</Text>
2491
+ </Pressable>
2492
+ )
2493
+ }
2494
+ ```
2495
+
2496
+ **Correct: Pressable from gesture handler for lists**
2497
+
2498
+ ```tsx
2499
+ import { Pressable } from 'react-native-gesture-handler'
2500
+
2501
+ function ListItem({ onPress }: { onPress: () => void }) {
2502
+ return (
2503
+ <Pressable onPress={onPress}>
2504
+ <Text>Item</Text>
2505
+ </Pressable>
2506
+ )
2507
+ }
2508
+ ```
2509
+
2510
+ Use `react-native-gesture-handler` Pressable inside scrollable lists for better
2511
+
2512
+ gesture coordination, as long as you are using the ScrollView from
2513
+
2514
+ `react-native-gesture-handler` as well.
2515
+
2516
+ **For animated press states (scale, opacity changes):** Use `GestureDetector`
2517
+
2518
+ with Reanimated shared values instead of Pressable's style callback. See the
2519
+
2520
+ `animation-gesture-detector-press` rule.
2521
+
2522
+ ---
2523
+
2524
+ ## 10. Design System
2525
+
2526
+ **Impact: MEDIUM**
2527
+
2528
+ Architecture patterns for building maintainable component
2529
+ libraries.
2530
+
2531
+ ### 10.1 Use Compound Components Over Polymorphic Children
2532
+
2533
+ **Impact: MEDIUM (flexible composition, clearer API)**
2534
+
2535
+ Don't create components that can accept a string if they aren't a text node. If
2536
+
2537
+ a component can receive a string child, it must be a dedicated `*Text`
2538
+
2539
+ component. For components like buttons, which can have both a View (or
2540
+
2541
+ Pressable) together with text, use compound components, such a `Button`,
2542
+
2543
+ `ButtonText`, and `ButtonIcon`.
2544
+
2545
+ **Incorrect: polymorphic children**
2546
+
2547
+ ```tsx
2548
+ import { Pressable, Text } from 'react-native'
2549
+
2550
+ type ButtonProps = {
2551
+ children: string | React.ReactNode
2552
+ icon?: React.ReactNode
2553
+ }
2554
+
2555
+ function Button({ children, icon }: ButtonProps) {
2556
+ return (
2557
+ <Pressable>
2558
+ {icon}
2559
+ {typeof children === 'string' ? <Text>{children}</Text> : children}
2560
+ </Pressable>
2561
+ )
2562
+ }
2563
+
2564
+ // Usage is ambiguous
2565
+ <Button icon={<Icon />}>Save</Button>
2566
+ <Button><CustomText>Save</CustomText></Button>
2567
+ ```
2568
+
2569
+ **Correct: compound components**
2570
+
2571
+ ```tsx
2572
+ import { Pressable, Text } from 'react-native'
2573
+
2574
+ function Button({ children }: { children: React.ReactNode }) {
2575
+ return <Pressable>{children}</Pressable>
2576
+ }
2577
+
2578
+ function ButtonText({ children }: { children: React.ReactNode }) {
2579
+ return <Text>{children}</Text>
2580
+ }
2581
+
2582
+ function ButtonIcon({ children }: { children: React.ReactNode }) {
2583
+ return <>{children}</>
2584
+ }
2585
+
2586
+ // Usage is explicit and composable
2587
+ <Button>
2588
+ <ButtonIcon><SaveIcon /></ButtonIcon>
2589
+ <ButtonText>Save</ButtonText>
2590
+ </Button>
2591
+
2592
+ <Button>
2593
+ <ButtonText>Cancel</ButtonText>
2594
+ </Button>
2595
+ ```
2596
+
2597
+ ---
2598
+
2599
+ ## 11. Monorepo
2600
+
2601
+ **Impact: LOW**
2602
+
2603
+ Dependency management and native module configuration in
2604
+ monorepos.
2605
+
2606
+ ### 11.1 Install Native Dependencies in App Directory
2607
+
2608
+ **Impact: CRITICAL (required for autolinking to work)**
2609
+
2610
+ In a monorepo, packages with native code must be installed in the native app's
2611
+
2612
+ directory directly. Autolinking only scans the app's `node_modules`—it won't
2613
+
2614
+ find native dependencies installed in other packages.
2615
+
2616
+ **Incorrect: native dep in shared package only**
2617
+
2618
+ ```typescript
2619
+ packages/
2620
+ ui/
2621
+ package.json # has react-native-reanimated
2622
+ app/
2623
+ package.json # missing react-native-reanimated
2624
+ ```
2625
+
2626
+ Autolinking fails—native code not linked.
2627
+
2628
+ **Correct: native dep in app directory**
2629
+
2630
+ ```json
2631
+ // packages/app/package.json
2632
+ {
2633
+ "dependencies": {
2634
+ "react-native-reanimated": "3.16.1"
2635
+ }
2636
+ }
2637
+ ```
2638
+
2639
+ Even if the shared package uses the native dependency, the app must also list it
2640
+
2641
+ for autolinking to detect and link the native code.
2642
+
2643
+ ### 11.2 Use Single Dependency Versions Across Monorepo
2644
+
2645
+ **Impact: MEDIUM (avoids duplicate bundles, version conflicts)**
2646
+
2647
+ Use a single version of each dependency across all packages in your monorepo.
2648
+
2649
+ Prefer exact versions over ranges. Multiple versions cause duplicate code in
2650
+
2651
+ bundles, runtime conflicts, and inconsistent behavior across packages.
2652
+
2653
+ Use a tool like syncpack to enforce this. As a last resort, use yarn resolutions
2654
+
2655
+ or npm overrides.
2656
+
2657
+ **Incorrect: version ranges, multiple versions**
2658
+
2659
+ ```json
2660
+ // packages/app/package.json
2661
+ {
2662
+ "dependencies": {
2663
+ "react-native-reanimated": "^3.0.0"
2664
+ }
2665
+ }
2666
+
2667
+ // packages/ui/package.json
2668
+ {
2669
+ "dependencies": {
2670
+ "react-native-reanimated": "^3.5.0"
2671
+ }
2672
+ }
2673
+ ```
2674
+
2675
+ **Correct: exact versions, single source of truth**
2676
+
2677
+ ```json
2678
+ // package.json (root)
2679
+ {
2680
+ "pnpm": {
2681
+ "overrides": {
2682
+ "react-native-reanimated": "3.16.1"
2683
+ }
2684
+ }
2685
+ }
2686
+
2687
+ // packages/app/package.json
2688
+ {
2689
+ "dependencies": {
2690
+ "react-native-reanimated": "3.16.1"
2691
+ }
2692
+ }
2693
+
2694
+ // packages/ui/package.json
2695
+ {
2696
+ "dependencies": {
2697
+ "react-native-reanimated": "3.16.1"
2698
+ }
2699
+ }
2700
+ ```
2701
+
2702
+ Use your package manager's override/resolution feature to enforce versions at
2703
+
2704
+ the root. When adding dependencies, specify exact versions without `^` or `~`.
2705
+
2706
+ ---
2707
+
2708
+ ## 12. Third-Party Dependencies
2709
+
2710
+ **Impact: LOW**
2711
+
2712
+ Wrapping and re-exporting third-party dependencies for
2713
+ maintainability.
2714
+
2715
+ ### 12.1 Import from Design System Folder
2716
+
2717
+ **Impact: LOW (enables global changes and easy refactoring)**
2718
+
2719
+ Re-export dependencies from a design system folder. App code imports from there,
2720
+
2721
+ not directly from packages. This enables global changes and easy refactoring.
2722
+
2723
+ **Incorrect: imports directly from package**
2724
+
2725
+ ```tsx
2726
+ import { View, Text } from 'react-native'
2727
+ import { Button } from '@ui/button'
2728
+
2729
+ function Profile() {
2730
+ return (
2731
+ <View>
2732
+ <Text>Hello</Text>
2733
+ <Button>Save</Button>
2734
+ </View>
2735
+ )
2736
+ }
2737
+ ```
2738
+
2739
+ **Correct: imports from design system**
2740
+
2741
+ ```tsx
2742
+ import { View } from '@/components/view'
2743
+ import { Text } from '@/components/text'
2744
+ import { Button } from '@/components/button'
2745
+
2746
+ function Profile() {
2747
+ return (
2748
+ <View>
2749
+ <Text>Hello</Text>
2750
+ <Button>Save</Button>
2751
+ </View>
2752
+ )
2753
+ }
2754
+ ```
2755
+
2756
+ Start by simply re-exporting. Customize later without changing app code.
2757
+
2758
+ ---
2759
+
2760
+ ## 13. JavaScript
2761
+
2762
+ **Impact: LOW**
2763
+
2764
+ Micro-optimizations like hoisting expensive object creation.
2765
+
2766
+ ### 13.1 Hoist Intl Formatter Creation
2767
+
2768
+ **Impact: LOW-MEDIUM (avoids expensive object recreation)**
2769
+
2770
+ Don't create `Intl.DateTimeFormat`, `Intl.NumberFormat`, or
2771
+
2772
+ `Intl.RelativeTimeFormat` inside render or loops. These are expensive to
2773
+
2774
+ instantiate. Hoist to module scope when the locale/options are static.
2775
+
2776
+ **Incorrect: new formatter every render**
2777
+
2778
+ ```tsx
2779
+ function Price({ amount }: { amount: number }) {
2780
+ const formatter = new Intl.NumberFormat('en-US', {
2781
+ style: 'currency',
2782
+ currency: 'USD',
2783
+ })
2784
+ return <Text>{formatter.format(amount)}</Text>
2785
+ }
2786
+ ```
2787
+
2788
+ **Correct: hoisted to module scope**
2789
+
2790
+ ```tsx
2791
+ const currencyFormatter = new Intl.NumberFormat('en-US', {
2792
+ style: 'currency',
2793
+ currency: 'USD',
2794
+ })
2795
+
2796
+ function Price({ amount }: { amount: number }) {
2797
+ return <Text>{currencyFormatter.format(amount)}</Text>
2798
+ }
2799
+ ```
2800
+
2801
+ **For dynamic locales, memoize:**
2802
+
2803
+ ```tsx
2804
+ const dateFormatter = useMemo(
2805
+ () => new Intl.DateTimeFormat(locale, { dateStyle: 'medium' }),
2806
+ [locale]
2807
+ )
2808
+ ```
2809
+
2810
+ **Common formatters to hoist:**
2811
+
2812
+ ```tsx
2813
+ // Module-level formatters
2814
+ const dateFormatter = new Intl.DateTimeFormat('en-US', { dateStyle: 'medium' })
2815
+ const timeFormatter = new Intl.DateTimeFormat('en-US', { timeStyle: 'short' })
2816
+ const percentFormatter = new Intl.NumberFormat('en-US', { style: 'percent' })
2817
+ const relativeFormatter = new Intl.RelativeTimeFormat('en-US', {
2818
+ numeric: 'auto',
2819
+ })
2820
+ ```
2821
+
2822
+ Creating `Intl` objects is significantly more expensive than `RegExp` or plain
2823
+
2824
+ objects—each instantiation parses locale data and builds internal lookup tables.
2825
+
2826
+ ---
2827
+
2828
+ ## 14. Fonts
2829
+
2830
+ **Impact: LOW**
2831
+
2832
+ Native font loading for improved performance.
2833
+
2834
+ ### 14.1 Load fonts natively at build time
2835
+
2836
+ **Impact: LOW (fonts available at launch, no async loading)**
2837
+
2838
+ Use the `expo-font` config plugin to embed fonts at build time instead of
2839
+
2840
+ `useFonts` or `Font.loadAsync`. Embedded fonts are more efficient.
2841
+
2842
+ [Expo Font Documentation](https://docs.expo.dev/versions/latest/sdk/font/)
2843
+
2844
+ **Incorrect: async font loading**
2845
+
2846
+ ```tsx
2847
+ import { useFonts } from 'expo-font'
2848
+ import { Text, View } from 'react-native'
2849
+
2850
+ function App() {
2851
+ const [fontsLoaded] = useFonts({
2852
+ 'Geist-Bold': require('./assets/fonts/Geist-Bold.otf'),
2853
+ })
2854
+
2855
+ if (!fontsLoaded) {
2856
+ return null
2857
+ }
2858
+
2859
+ return (
2860
+ <View>
2861
+ <Text style={{ fontFamily: 'Geist-Bold' }}>Hello</Text>
2862
+ </View>
2863
+ )
2864
+ }
2865
+ ```
2866
+
2867
+ **Correct: config plugin, fonts embedded at build**
2868
+
2869
+ ```tsx
2870
+ import { Text, View } from 'react-native'
2871
+
2872
+ function App() {
2873
+ // No loading state needed—font is already available
2874
+ return (
2875
+ <View>
2876
+ <Text style={{ fontFamily: 'Geist-Bold' }}>Hello</Text>
2877
+ </View>
2878
+ )
2879
+ }
2880
+ ```
2881
+
2882
+ After adding fonts to the config plugin, run `npx expo prebuild` and rebuild the
2883
+
2884
+ native app.
2885
+
2886
+ ---
2887
+
2888
+ ## References
2889
+
2890
+ 1. [https://react.dev](https://react.dev)
2891
+ 2. [https://reactnative.dev](https://reactnative.dev)
2892
+ 3. [https://docs.swmansion.com/react-native-reanimated](https://docs.swmansion.com/react-native-reanimated)
2893
+ 4. [https://docs.swmansion.com/react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler)
2894
+ 5. [https://docs.expo.dev](https://docs.expo.dev)
2895
+ 6. [https://legendapp.com/open-source/legend-list](https://legendapp.com/open-source/legend-list)
2896
+ 7. [https://github.com/nandorojo/galeria](https://github.com/nandorojo/galeria)
2897
+ 8. [https://zeego.dev](https://zeego.dev)