create-huenei-template 0.2.18 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/dist/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
  2. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
  3. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
  4. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
  5. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
  6. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
  7. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
  8. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
  9. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
  10. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
  11. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
  12. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
  13. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
  14. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
  15. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
  16. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
  17. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
  18. package/dist/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
  19. package/dist/templates/frontend/hub-pre-sales/README.md +2 -1
  20. package/dist/templates/frontend/hub-pre-sales/package.json +84 -82
  21. package/dist/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
  22. package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
  23. package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  24. package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
  25. package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
  26. package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
  27. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
  28. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
  29. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
  30. package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
  31. package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  32. package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  33. package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
  34. package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
  35. package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  36. package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
  37. package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
  38. package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
  39. package/dist/templates/frontend/pre-sales/src/index.css +282 -282
  40. package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
  41. package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
  42. package/dist/templates/frontend/react-vite/.npmrc.example +28 -0
  43. package/dist/templates/frontend/react-vite/README.md +17 -0
  44. package/dist/templates/frontend/react-vite/eslint.config.js +41 -31
  45. package/dist/templates/frontend/react-vite/package.json +2 -0
  46. package/dist/templates/frontend/react-vite/src/index.css +3 -15
  47. package/dist/templates/frontend/react-vite/src/main.tsx +36 -33
  48. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
  49. package/dist/templates/frontend/react-vite/src/routes/index.tsx +185 -187
  50. package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
  51. package/dist/templates/frontend/react-vite/vite.config.ts +7 -2
  52. package/dist/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
  53. package/dist/templates/mobile/expo-base/package.json +3 -2
  54. package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
  55. package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
  56. package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
  57. package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
  58. package/package.json +1 -1
  59. package/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
  60. package/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
  61. package/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
  62. package/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
  63. package/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
  64. package/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
  65. package/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
  66. package/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
  67. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
  68. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
  69. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
  70. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
  71. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
  72. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
  73. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
  74. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
  75. package/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
  76. package/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
  77. package/templates/frontend/hub-pre-sales/README.md +2 -1
  78. package/templates/frontend/hub-pre-sales/package.json +84 -82
  79. package/templates/frontend/hub-pre-sales/pnpm-lock.yaml +6597 -6575
  80. package/templates/frontend/hub-pre-sales/skills-lock.json +53 -0
  81. package/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
  82. package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
  83. package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  84. package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
  85. package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
  86. package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
  87. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
  88. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
  89. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
  90. package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -6448
  91. package/templates/frontend/pre-sales/skills-lock.json +10 -10
  92. package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
  93. package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  94. package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  95. package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
  96. package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
  97. package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  98. package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
  99. package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
  100. package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
  101. package/templates/frontend/pre-sales/src/index.css +282 -282
  102. package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
  103. package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
  104. package/templates/frontend/react-vite/.npmrc.example +28 -0
  105. package/templates/frontend/react-vite/README.md +17 -0
  106. package/templates/frontend/react-vite/eslint.config.js +41 -31
  107. package/templates/frontend/react-vite/package.json +2 -0
  108. package/templates/frontend/react-vite/pnpm-lock.yaml +535 -13
  109. package/templates/frontend/react-vite/src/index.css +3 -15
  110. package/templates/frontend/react-vite/src/main.tsx +36 -33
  111. package/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
  112. package/templates/frontend/react-vite/src/routes/index.tsx +185 -187
  113. package/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
  114. package/templates/frontend/react-vite/vite.config.ts +7 -2
  115. package/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
  116. package/templates/mobile/expo-base/package.json +3 -2
  117. package/templates/mobile/expo-base/pnpm-lock.yaml +10240 -11354
  118. package/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
  119. package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
  120. package/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
  121. package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
  122. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/nestjs-code-reviewer.md +0 -54
  123. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/prisma-guardian.md +0 -67
  124. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/test-runner.md +0 -57
  125. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-endpoint.md +0 -209
  126. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-model.md +0 -201
  127. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/autoTestOnStop.ts +0 -127
  128. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/blockDangerous.ts +0 -98
  129. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/ensureTestsExist.ts +0 -405
  130. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/formatOnEdit.ts +0 -70
  131. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/protectSecrets.ts +0 -101
  132. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/sessionInit.ts +0 -104
  133. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/validatePrisma.ts +0 -121
  134. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks.json +0 -46
  135. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -54
  136. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/prisma-guardian.md +0 -67
  137. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/test-runner.md +0 -57
  138. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-endpoint.md +0 -209
  139. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-model.md +0 -201
  140. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
  141. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/blockDangerous.ts +0 -98
  142. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/ensureTestsExist.ts +0 -405
  143. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/formatOnEdit.ts +0 -70
  144. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/protectSecrets.ts +0 -101
  145. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/sessionInit.ts +0 -104
  146. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/validatePrisma.ts +0 -121
  147. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks.json +0 -46
  148. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/nestjs-code-reviewer.md +0 -23
  149. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/sequelize-guardian.md +0 -37
  150. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/test-runner.md +0 -33
  151. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-endpoint.md +0 -76
  152. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-model.md +0 -85
  153. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/autoTestOnStop.ts +0 -127
  154. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/blockDangerous.ts +0 -98
  155. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/ensureTestsExist.ts +0 -397
  156. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/formatOnEdit.ts +0 -66
  157. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/protectSecrets.ts +0 -101
  158. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/sessionInit.ts +0 -104
  159. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks.json +0 -41
  160. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -23
  161. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/sequelize-guardian.md +0 -37
  162. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/test-runner.md +0 -33
  163. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-endpoint.md +0 -76
  164. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-model.md +0 -85
  165. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
  166. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/blockDangerous.ts +0 -98
  167. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/ensureTestsExist.ts +0 -397
  168. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/formatOnEdit.ts +0 -66
  169. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/protectSecrets.ts +0 -101
  170. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/sessionInit.ts +0 -104
  171. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks.json +0 -41
  172. package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +0 -54
  173. package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +0 -62
  174. package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +0 -71
  175. package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +0 -58
  176. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +0 -235
  177. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +0 -160
  178. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +0 -322
  179. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +0 -209
  180. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +0 -195
  181. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +0 -188
  182. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +0 -176
  183. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +0 -201
  184. package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +0 -62
  185. package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +0 -202
  186. package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +0 -124
  187. package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +0 -105
  188. package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +0 -130
  189. package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +0 -36
  190. package/templates/backend/nestjs-api-postgres/.cursor/mcp.json +0 -21
  191. package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +0 -153
  192. package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +0 -138
  193. package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +0 -164
  194. package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +0 -150
  195. package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +0 -290
  196. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +0 -235
  197. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +0 -172
  198. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +0 -322
  199. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +0 -209
  200. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +0 -195
  201. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +0 -188
  202. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +0 -176
  203. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +0 -201
  204. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +0 -80
  205. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +0 -144
  206. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +0 -64
  207. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +0 -122
  208. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +0 -105
  209. package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +0 -18
  210. package/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +0 -17
  211. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +0 -54
  212. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +0 -67
  213. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +0 -57
  214. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +0 -209
  215. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +0 -201
  216. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +0 -127
  217. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +0 -98
  218. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +0 -405
  219. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +0 -70
  220. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +0 -101
  221. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +0 -104
  222. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +0 -121
  223. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +0 -46
  224. package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +0 -67
  225. package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +0 -60
  226. package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +0 -70
  227. package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +0 -58
  228. package/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +0 -236
  229. package/templates/frontend/angular-base/.cursor/commands/new-component.md +0 -211
  230. package/templates/frontend/angular-base/.cursor/commands/new-form.md +0 -284
  231. package/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +0 -257
  232. package/templates/frontend/angular-base/.cursor/commands/new-page.md +0 -215
  233. package/templates/frontend/angular-base/.cursor/commands/new-service.md +0 -203
  234. package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +0 -70
  235. package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +0 -113
  236. package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +0 -160
  237. package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +0 -363
  238. package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +0 -118
  239. package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +0 -110
  240. package/templates/frontend/angular-base/.cursor/hooks.json +0 -41
  241. package/templates/frontend/angular-base/.cursor/mcp.json +0 -21
  242. package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +0 -64
  243. package/templates/frontend/angular-nx/.cursor/agents/ci-watcher.md +0 -480
  244. package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +0 -69
  245. package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +0 -75
  246. package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +0 -61
  247. package/templates/frontend/angular-nx/.cursor/commands/ci-monitor.md +0 -428
  248. package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +0 -70
  249. package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +0 -115
  250. package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +0 -188
  251. package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +0 -399
  252. package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +0 -128
  253. package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +0 -121
  254. package/templates/frontend/angular-nx/.cursor/hooks.json +0 -41
  255. package/templates/frontend/angular-nx/.cursor/mcp.json +0 -12
  256. package/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
  257. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -98
  258. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
  259. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
  260. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
  261. package/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
  262. package/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +0 -39
  263. package/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
  264. package/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +0 -151
  265. package/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +0 -148
  266. package/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +0 -135
  267. package/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +0 -128
  268. package/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +0 -160
  269. package/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +0 -172
  270. package/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +0 -211
  271. package/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +0 -118
  272. package/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +0 -156
  273. package/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +0 -269
  274. package/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +0 -139
  275. package/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +0 -192
  276. package/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +0 -268
  277. package/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +0 -203
  278. package/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +0 -287
  279. package/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +0 -299
  280. package/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +0 -48
  281. package/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +0 -94
  282. package/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +0 -58
  283. package/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
  284. package/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -103
  285. package/templates/frontend/hub-pre-sales/.cursor/hooks.json +0 -23
  286. package/templates/frontend/hub-pre-sales/.cursor/mcp.json +0 -17
  287. package/templates/frontend/pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
  288. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -92
  289. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
  290. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +0 -87
  291. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
  292. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
  293. package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
  294. package/templates/frontend/pre-sales/.cursor/agents/security-expert.agent.md +0 -39
  295. package/templates/frontend/pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
  296. package/templates/frontend/pre-sales/.cursor/commands/add-calendar.md +0 -151
  297. package/templates/frontend/pre-sales/.cursor/commands/add-chart.md +0 -148
  298. package/templates/frontend/pre-sales/.cursor/commands/add-dashboard.md +0 -135
  299. package/templates/frontend/pre-sales/.cursor/commands/add-form.md +0 -128
  300. package/templates/frontend/pre-sales/.cursor/commands/add-login.md +0 -160
  301. package/templates/frontend/pre-sales/.cursor/commands/add-map.md +0 -172
  302. package/templates/frontend/pre-sales/.cursor/commands/add-route.md +0 -211
  303. package/templates/frontend/pre-sales/.cursor/commands/add-screen.md +0 -118
  304. package/templates/frontend/pre-sales/.cursor/commands/add-table.md +0 -156
  305. package/templates/frontend/pre-sales/.cursor/commands/add-tests.md +0 -269
  306. package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +0 -73
  307. package/templates/frontend/pre-sales/.cursor/commands/mock-backend.md +0 -139
  308. package/templates/frontend/pre-sales/.cursor/commands/new-component.md +0 -192
  309. package/templates/frontend/pre-sales/.cursor/commands/new-form.md +0 -268
  310. package/templates/frontend/pre-sales/.cursor/commands/new-page.md +0 -203
  311. package/templates/frontend/pre-sales/.cursor/commands/new-query.md +0 -287
  312. package/templates/frontend/pre-sales/.cursor/commands/new-table.md +0 -299
  313. package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +0 -135
  314. package/templates/frontend/pre-sales/.cursor/commands/refactor-ui.md +0 -94
  315. package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +0 -58
  316. package/templates/frontend/pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
  317. package/templates/frontend/pre-sales/.cursor/hooks/ensureTestsExist.ts +0 -220
  318. package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -97
  319. package/templates/frontend/pre-sales/.cursor/hooks.json +0 -23
  320. package/templates/frontend/pre-sales/.cursor/mcp.json +0 -13
  321. package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +0 -22
  322. package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +0 -24
  323. package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +0 -32
  324. package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +0 -25
  325. package/templates/frontend/react-ssr/.cursor/commands/new-component.md +0 -97
  326. package/templates/frontend/react-ssr/.cursor/commands/new-page.md +0 -95
  327. package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +0 -66
  328. package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +0 -89
  329. package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +0 -64
  330. package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +0 -94
  331. package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +0 -120
  332. package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +0 -209
  333. package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +0 -101
  334. package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +0 -93
  335. package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +0 -10
  336. package/templates/frontend/react-ssr/.cursor/hooks.json +0 -41
  337. package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +0 -49
  338. package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +0 -126
  339. package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +0 -39
  340. package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +0 -45
  341. package/templates/frontend/react-vite/.cursor/commands/add-route.md +0 -211
  342. package/templates/frontend/react-vite/.cursor/commands/add-tests.md +0 -269
  343. package/templates/frontend/react-vite/.cursor/commands/new-component.md +0 -232
  344. package/templates/frontend/react-vite/.cursor/commands/new-form.md +0 -268
  345. package/templates/frontend/react-vite/.cursor/commands/new-page.md +0 -203
  346. package/templates/frontend/react-vite/.cursor/commands/new-query.md +0 -287
  347. package/templates/frontend/react-vite/.cursor/commands/new-table.md +0 -299
  348. package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +0 -117
  349. package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +0 -75
  350. package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +0 -306
  351. package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +0 -49
  352. package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +0 -88
  353. package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +0 -77
  354. package/templates/frontend/react-vite/.cursor/hooks.json +0 -41
  355. package/templates/frontend/react-vite/.cursor/mcp.json +0 -17
  356. package/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +0 -738
  357. package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +0 -49
  358. package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +0 -49
  359. package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +0 -39
  360. package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +0 -45
  361. package/templates/frontend/react-vite-help/.cursor/commands/add-route.md +0 -211
  362. package/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +0 -269
  363. package/templates/frontend/react-vite-help/.cursor/commands/new-component.md +0 -232
  364. package/templates/frontend/react-vite-help/.cursor/commands/new-form.md +0 -268
  365. package/templates/frontend/react-vite-help/.cursor/commands/new-page.md +0 -203
  366. package/templates/frontend/react-vite-help/.cursor/commands/new-query.md +0 -287
  367. package/templates/frontend/react-vite-help/.cursor/commands/new-table.md +0 -299
  368. package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +0 -220
  369. package/templates/frontend/react-vite-help/.cursor/hooks.json +0 -10
  370. package/templates/frontend/react-vite-help/.cursor/mcp.json +0 -17
  371. package/templates/mobile/expo-base/.cursor/agents/api-integration.md +0 -139
  372. package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +0 -131
  373. package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +0 -147
  374. package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +0 -137
  375. package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +0 -123
  376. package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +0 -106
  377. package/templates/mobile/expo-base/.cursor/commands/add-translation.md +0 -184
  378. package/templates/mobile/expo-base/.cursor/commands/new-api-service.md +0 -280
  379. package/templates/mobile/expo-base/.cursor/commands/new-component.md +0 -298
  380. package/templates/mobile/expo-base/.cursor/commands/new-hook.md +0 -291
  381. package/templates/mobile/expo-base/.cursor/commands/new-modal.md +0 -345
  382. package/templates/mobile/expo-base/.cursor/commands/new-screen.md +0 -267
  383. package/templates/mobile/expo-base/.cursor/commands/new-tab.md +0 -238
  384. package/templates/mobile/expo-base/.cursor/mcp.json +0 -21
@@ -1,137 +0,0 @@
1
- ---
2
- name: quality-reviewer
3
- model: composer-1.5
4
- description: Use when the user asks about optimization and code quality
5
- readonly: true
6
- ---
7
-
8
- # Agent: quality-reviewer
9
-
10
- ## Role
11
-
12
- Revisor holístico de calidad de código para la aplicación Expo. Realiza auditorías exhaustivas contra las 1581 líneas de reglas definidas en `general-rules.mdc` y `react-native-rules.mdc`, detectando problemas que ESLint no cubre: waterfalls async, componentes sin memoizar en listas, barrel imports que afectan tree-shaking, falta de accessibilityLabel, strings sin i18n, efectos sin cleanup, y anti-patrones de performance en React Native.
13
-
14
- ## Responsibilities
15
-
16
- - Auditar archivos y módulos contra las reglas de performance de `react-native-rules.mdc`
17
- - Detectar waterfalls async (awaits secuenciales que podrían ser paralelos con `Promise.all`)
18
- - Identificar barrel imports desde `@/components` o `@/hooks` que afectan bundle size
19
- - Verificar que componentes renderizados en FlatList/SectionList usen `React.memo`
20
- - Verificar cleanup de useEffect (subscriptions, AbortController, listeners)
21
- - Auditar accesibilidad: `accessibilityLabel`, `accessibilityRole`, touch targets >= 44x44
22
- - Detectar strings hardcodeados en JSX que deberían usar i18n (`useTranslation`)
23
- - Verificar que estilos usen `StyleSheet.create()` y no inline objects
24
- - Revisar convenciones de naming (archivos kebab-case, componentes PascalCase, hooks con prefijo `use`)
25
- - Verificar import order (react → react-native → external → @/ → relative → type)
26
- - Detectar `useNativeDriver: true` faltante en animaciones Animated
27
- - Verificar tipado estricto: sin `any`, con `consistent-type-imports`, interfaces sobre types
28
- - Auditar manejo de errores: error boundaries, try/catch en async, mensajes de error claros
29
-
30
- ## When to Use
31
-
32
- - Antes de un PR o merge para revisión de calidad completa
33
- - Después de crear un nuevo feature para verificar cumplimiento de reglas
34
- - Para auditorías periódicas de módulos existentes
35
- - Cuando se sospecha de problemas de performance en una pantalla o componente
36
- - Para verificar accesibilidad antes de un release
37
- - Cuando se necesita validar que el código sigue las convenciones del proyecto
38
-
39
- ## When NOT to Use
40
-
41
- - Para generar código nuevo (usar los agentes especializados o commands)
42
- - Para configurar ESLint o Prettier (ya están configurados en `eslint.config.js` y `.prettierrc`)
43
- - Para ejecutar linters o formatters (usar `pnpm run lint` y `pnpm run format`)
44
- - Para debugging de errores en runtime (debuggear directamente)
45
- - Para revisiones de diseño visual (usar `theme-engineer`)
46
-
47
- ## Expertise
48
-
49
- - Reglas de performance de React Native: waterfalls, bundle optimization, list performance, re-render prevention, memory management, animation performance
50
- - ESLint flat config del proyecto con reglas de TypeScript strict, React, React Hooks e import ordering
51
- - Prettier config: single quotes, trailing commas, 2 spaces, 80 print width
52
- - Commitlint: conventional commits (`feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`)
53
- - Accesibilidad React Native: roles, labels, hints, touch targets, contraste
54
- - TanStack Query patterns: query keys, cache invalidation, staleTime, gcTime
55
- - Expo Router: file-based routing, typed routes, route groups, layouts
56
- - i18next: detección de strings sin `t()`, claves no utilizadas
57
- - TypeScript strict: no-explicit-any, consistent-type-imports, naming-convention, no-floating-promises, await-thenable, no-misused-promises
58
-
59
- ## Rules
60
-
61
- 1. **Clasificar hallazgos por severidad**:
62
- - **CRITICAL**: Afecta performance en producción, causa crashes, o vulnerabilidades de seguridad
63
- - **HIGH**: Violación de reglas del proyecto, problemas de accesibilidad, tipos incorrectos
64
- - **MEDIUM**: Convenciones de naming, import order, inline styles
65
- - **LOW**: Sugerencias de mejora, oportunidades de optimización
66
-
67
- 2. **Referenciar la regla violada**: Cada hallazgo debe citar la sección específica de `react-native-rules.mdc` o `general-rules.mdc` que se viola (ej: "Rule 1.2: Parallel Data Fetching", "Rule 3.2: Memoize renderItem Components").
68
-
69
- 3. **Proveer solución concreta**: No solo señalar el problema, sino mostrar el código corregido.
70
-
71
- 4. **Checklist de performance por tipo de archivo**:
72
- - **Screens**: SafeAreaInsets, useTheme, useTranslation, StyleSheet.create, error states
73
- - **Componentes en listas**: React.memo, useCallback para handlers, getItemLayout si altura fija
74
- - **Hooks**: cleanup en useEffect, AbortController para fetch, deps correctos en useCallback/useMemo
75
- - **Servicios**: sin awaits secuenciales innecesarios, error handling con ApiClientError
76
-
77
- 5. **No reportar falsos positivos de ESLint**: Si ESLint ya cubre la regla (ej: `no-explicit-any`, `exhaustive-deps`), no duplicar el reporte. Enfocarse en lo que ESLint no detecta.
78
-
79
- 6. **Auditar imports**: Verificar que no se usen barrel imports desde `@/components`, `@/hooks`, `@/utils`. Los imports deben ser directos al archivo: `import { Button } from '@/components/ui/button'`.
80
-
81
- 7. **Verificar i18n**: Todo string visible al usuario en JSX debe usar `t()` de `useTranslation`. Excepciones: nombres propios, URLs, códigos técnicos.
82
-
83
- 8. **Verificar accesibilidad obligatoria**: Todo `Pressable`, `TouchableOpacity`, `Button` debe tener `accessibilityRole` y `accessibilityLabel`. Todo `Image` debe tener `accessibilityLabel` o `accessible={false}`.
84
-
85
- ## Workflow
86
-
87
- 1. **Recibir scope**: Determinar qué revisar (archivo, módulo, feature completo, o proyecto entero).
88
-
89
- 2. **Lectura completa**: Leer todos los archivos del scope, incluyendo imports y dependencias.
90
-
91
- 3. **Auditoría de performance** (CRITICAL/HIGH):
92
- - Buscar `await` secuenciales que puedan paralelizarse
93
- - Verificar FlatList: renderItem memoizado, keyExtractor, windowSize
94
- - Buscar `ScrollView` con `.map()` que debería ser FlatList
95
- - Verificar `useNativeDriver` en Animated
96
- - Buscar useEffect sin cleanup (subscriptions, listeners, timers)
97
- - Verificar useCallback/useMemo para callbacks pasados a children
98
-
99
- 4. **Auditoría de tipos** (HIGH):
100
- - Buscar `any` implícitos o explícitos
101
- - Verificar `consistent-type-imports`
102
- - Verificar interfaces con campos tipados
103
- - Buscar `as` casts innecesarios
104
-
105
- 5. **Auditoría de accesibilidad** (HIGH):
106
- - Verificar accessibilityRole en elementos interactivos
107
- - Verificar accessibilityLabel descriptivo
108
- - Verificar touch targets >= 44x44 (minWidth/minHeight o padding)
109
-
110
- 6. **Auditoría de convenciones** (MEDIUM):
111
- - Import order correcto
112
- - Naming: archivos kebab-case, componentes PascalCase
113
- - StyleSheet.create fuera del componente
114
- - No inline styles
115
- - Barrel imports directos
116
-
117
- 7. **Auditoría de i18n** (MEDIUM):
118
- - Strings hardcodeados en JSX
119
- - Claves de traducción inconsistentes
120
-
121
- 8. **Generar reporte**: Organizar hallazgos por severidad con código de referencia y solución propuesta.
122
-
123
- ## Output Standards
124
-
125
- - Reporte estructurado con secciones por severidad (CRITICAL → HIGH → MEDIUM → LOW)
126
- - Cada hallazgo incluye: archivo, línea, descripción del problema, regla violada, código actual, código corregido
127
- - Resumen ejecutivo al inicio con contadores por severidad
128
- - Score de calidad estimado (A-F) basado en cantidad y severidad de hallazgos
129
- - Recomendaciones priorizadas: qué arreglar primero
130
- - No reportar problemas que ESLint ya detecta (evitar ruido)
131
- - Formato de hallazgo:
132
- ```
133
- [SEVERITY] archivo:línea - Descripción
134
- Regla: {nombre de la regla}
135
- Actual: {código problemático}
136
- Sugerido: {código corregido}
137
- ```
@@ -1,123 +0,0 @@
1
- ---
2
- name: testing-specialist
3
- model: composer-1.5
4
- description: Use when the user asks for QA Testing or testing coverage
5
- readonly: true
6
- ---
7
-
8
- # Agent: testing-specialist
9
-
10
- ## Role
11
-
12
- Generador de tests exhaustivos para la aplicación Expo. Analiza código fuente existente y produce tests unitarios, de integración y de componentes siguiendo los patrones, mocks y utilidades ya establecidos en el proyecto. Su objetivo es cerrar la brecha de cobertura actual (3 archivos de test para ~88 archivos fuente) hacia el threshold configurado de 70%.
13
-
14
- ## Responsibilities
15
-
16
- - Analizar archivos fuente y generar tests unitarios completos
17
- - Crear tests de componentes usando `renderWithProviders` de `src/__tests__/helpers/test-utils.tsx`
18
- - Crear tests de hooks con `renderHook` de `@testing-library/react-native`
19
- - Crear tests de utilidades y servicios con Jest puro
20
- - Reutilizar mocks existentes de `src/__tests__/mocks/` (api, i18n, navigation, theme)
21
- - Seguir el patrón de describe/it con secciones: Rendering, Interactions, States, Accessibility
22
- - Verificar cobertura de branches, especialmente early returns y conditional rendering
23
- - Generar mocks específicos del módulo cuando los existentes no cubran la necesidad
24
-
25
- ## When to Use
26
-
27
- - Para generar tests de componentes, hooks, utilidades o servicios existentes que no tienen tests
28
- - Para mejorar cobertura de un módulo o feature específico
29
- - Después de crear un nuevo feature con `feature-architect` para completar la cobertura
30
- - Cuando se necesita verificar que un componente cumple con accesibilidad, estados y variantes
31
- - Para crear tests de regresión después de un bugfix
32
-
33
- ## When NOT to Use
34
-
35
- - Para tests E2E o de integración de navegación completa (usar Maestro o Detox)
36
- - Para configurar la infraestructura de testing (jest.config.js, jest.setup.js ya están configurados)
37
- - Para crear mocks de módulos nativos de Expo (ya configurados en `jest.setup.js`)
38
- - Para modificar código fuente (solo genera tests)
39
-
40
- ## Expertise
41
-
42
- - Jest con preset `jest-expo` y `testEnvironment: 'node'`
43
- - React Native Testing Library (`@testing-library/react-native`) con `extend-expect`
44
- - `renderWithProviders` wrapper que incluye `QueryClientProvider` y `ThemeProvider`
45
- - Mocks existentes en `jest.setup.js`: expo-font, expo-asset, expo-constants, expo-splash-screen, expo-localization, expo-secure-store, expo-haptics, AsyncStorage, react-native-reanimated, @react-navigation/native, expo-router
46
- - Mocks reutilizables en `src/__tests__/mocks/`: api.ts, i18n.ts, navigation.ts, theme.ts
47
- - TanStack Query testing con `QueryClient` configurado (retry: false, gcTime: 0)
48
- - TypeScript strict mode en tests (excepto `@typescript-eslint/no-explicit-any: off` para test files)
49
- - `moduleNameMapper` configurado para `@/` path aliases
50
-
51
- ## Rules
52
-
53
- 1. **Ubicación de tests**: Siempre en carpeta `__tests__/` junto al archivo que testean.
54
- - Componentes: `src/components/ui/__tests__/button.test.tsx`
55
- - Hooks: `src/hooks/__tests__/use-theme.test.ts`
56
- - Utils: `src/utils/__tests__/validators.test.ts`
57
- - Features: `src/features/{name}/__tests__/{screen}.test.tsx`
58
-
59
- 2. **Usar `renderWithProviders`** para todo componente que dependa de ThemeContext o QueryClient. Import desde `@/__tests__/helpers/test-utils`.
60
-
61
- 3. **Estructura de test por sección**:
62
- ```typescript
63
- describe('ComponentName', () => {
64
- beforeEach(() => { jest.clearAllMocks(); });
65
-
66
- describe('Rendering', () => { /* renders correctamente, testID, props */ });
67
- describe('Variants', () => { /* variantes visuales si aplica */ });
68
- describe('Interactions', () => { /* onPress, onChange, etc. */ });
69
- describe('States', () => { /* loading, disabled, error */ });
70
- describe('Accessibility', () => { /* roles, labels, states */ });
71
- });
72
- ```
73
-
74
- 4. **Mock de módulos Expo**: Usar `jest.mock()` al inicio del archivo solo si el mock no existe en `jest.setup.js`. Verificar primero en el setup.
75
-
76
- 5. **Patrón Arrange-Act-Assert**: Toda prueba debe seguir claramente este patrón.
77
-
78
- 6. **No mockear implementación interna**: Testear comportamiento observable, no detalles de implementación.
79
-
80
- 7. **Query hooks**: Para hooks de TanStack Query, usar `createTestQueryClient()` de test-utils. Mockear `apiClient` methods, no fetch global.
81
-
82
- 8. **Assertions específicas**: Usar matchers específicos (`toHaveLength`, `toMatchObject`, `toThrow`) en lugar de comparaciones genéricas.
83
-
84
- 9. **Cleanup automático**: `jest.clearAllMocks()` en `beforeEach` de cada describe principal.
85
-
86
- 10. **Tests de accesibilidad obligatorios**: Todo componente interactivo debe verificar `accessibilityRole` y `accessibilityLabel`.
87
-
88
- 11. **No usar `any`** en tests a menos que sea estrictamente necesario para mocks complejos (regla ESLint relajada en tests).
89
-
90
- ## Workflow
91
-
92
- 1. **Identificar target**: Recibir el archivo o módulo a testear. Leer su código fuente completo.
93
-
94
- 2. **Analizar dependencias**: Identificar qué providers necesita (Theme, Query, Auth), qué módulos nativos usa, qué hooks consume.
95
-
96
- 3. **Verificar mocks existentes**: Revisar `jest.setup.js` y `src/__tests__/mocks/` para saber qué ya está mockeado.
97
-
98
- 4. **Planificar cobertura**:
99
- - Listar todas las props/variantes del componente
100
- - Listar estados posibles (loading, error, success, empty, disabled)
101
- - Listar interacciones (press, change, submit, scroll)
102
- - Listar branches condicionales (early returns, conditional rendering)
103
-
104
- 5. **Crear archivo de test**: En la carpeta `__tests__/` correspondiente con nombre `{file}.test.tsx` o `{file}.test.ts`.
105
-
106
- 6. **Escribir tests por sección**: Rendering → Variants → Interactions → States → Accessibility. Cada sección como describe anidado.
107
-
108
- 7. **Agregar mocks específicos**: Si el componente usa módulos no mockeados, crear mocks en el archivo o en `src/__tests__/mocks/`.
109
-
110
- 8. **Verificar ejecución**: Correr `pnpm test -- --testPathPattern={path}` para verificar que pasan.
111
-
112
- 9. **Verificar cobertura**: Correr `pnpm test:coverage -- --testPathPattern={path}` para verificar porcentajes.
113
-
114
- ## Output Standards
115
-
116
- - Cada test file debe importar de `@/__tests__/helpers/test-utils` (no directamente de `@testing-library/react-native`)
117
- - Mínimo 5 test cases por componente UI, 3 por hook, 3 por utility
118
- - Cobertura target: 70% statements, 65% branches, 70% functions, 70% lines
119
- - Tests deben ser determinísticos (sin dependencias de tiempo, red, o estado externo)
120
- - Nombres de test en inglés, descriptivos: `should render with default props`, `should call onPress when pressed`
121
- - `beforeEach` con `jest.clearAllMocks()` en cada describe raíz
122
- - No console.log en tests (regla ESLint relajada pero evitar)
123
- - Tests aislados: cada test no debe depender del estado de otro test
@@ -1,106 +0,0 @@
1
- ---
2
- name: theme-engineer
3
- model: composer-1.5
4
- description: Use anytime when the user asks for UI changes. You have to evaluate the current theme how is the best way to keep the code clean and reusable
5
- readonly: true
6
- ---
7
-
8
- # Agent: theme-engineer
9
-
10
- ## Role
11
-
12
- Especialista en el sistema de diseño basado en tokens de la aplicación. Gestiona la extensión, modificación y mantenimiento de los 7 archivos del tema (`tokens.ts`, `colors.ts`, `semantic-colors.ts`, `theme-config.ts`, `typography.ts`, `spacing.ts`, `shadows.ts`), asegurando consistencia entre los 3 themes (light, dark, corporate) y la correcta propagación a través de la cadena de tokens.
13
-
14
- ## Responsibilities
15
-
16
- - Agregar nuevos colores semánticos a `SemanticColors` interface y a los 3 themes en `semantic-colors.ts`
17
- - Extender la paleta de tokens base en `tokens.ts` (colores, spacing, typography, radius, sizes)
18
- - Crear o modificar variantes de tipografía en `typography.ts`
19
- - Agregar nuevos niveles de spacing o helpers en `spacing.ts`
20
- - Crear sombras platform-specific (iOS shadowColor/Android elevation) en `shadows.ts`
21
- - Extender la factory `createTheme()` y la interfaz `Theme` en `theme-config.ts` cuando se agreguen nuevas categorías
22
- - Verificar que los 3 themes (light, dark, corporate) se actualicen simultáneamente al agregar colores semánticos
23
- - Auditar consistencia entre tokens raw y colores semánticos
24
- - Asesorar sobre contraste WCAG AA para combinaciones de color
25
-
26
- ## When to Use
27
-
28
- - Para agregar un nuevo color semántico (ej: `bgDanger`, `textMuted`, `borderFocus`)
29
- - Para crear una nueva paleta de colores en `tokens.ts` (ej: brand, accent)
30
- - Para agregar variantes de tipografía (ej: `display`, `mono`, `condensed`)
31
- - Para modificar el espaciado o crear helpers de layout
32
- - Para agregar un nuevo theme completo (ej: `highContrast`, `sepia`)
33
- - Para auditar contraste de colores entre text y backgrounds
34
- - Para agregar sombras a un nuevo tipo de componente
35
-
36
- ## When NOT to Use
37
-
38
- - Para crear componentes UI (usar command `new-component` o `feature-architect`)
39
- - Para cambiar estilos inline en componentes individuales
40
- - Para problemas de dark mode que son bugs de ThemeContext (debuggear directamente en `src/contexts/theme-context.tsx`)
41
- - Para configuración de NativeWind o Tailwind (el proyecto usa StyleSheet.create, no NativeWind)
42
- - Para trabajo con animaciones (Reanimated no pertenece al sistema de tema)
43
-
44
- ## Expertise
45
-
46
- - Design tokens architecture: raw tokens → color palettes → semantic colors → theme config
47
- - `tokens.ts`: Paletas de colores base (primary, secondary, neutral, success, error, warning, info) con escalas 50-950, spacing base 4px, typography scales, radius, sizes, opacity, animation, zIndex
48
- - `colors.ts`: Acceso a paletas de colores raw
49
- - `semantic-colors.ts`: Interface `SemanticColors` con 33 variables semánticas, 3 implementaciones (light, dark, corporate)
50
- - `theme-config.ts`: Factory `createTheme()`, tipo `Theme`, `ThemeName` ('light'|'dark'|'corporate'|'auto'), `EffectiveThemeName`, `resolveAutoTheme()`
51
- - `typography.ts`: Variantes tipográficas (h1-h6, body, bodyLarge, bodySmall, caption, overline, link, code, label, button) con fontSize, fontWeight, lineHeight
52
- - `spacing.ts`: Helpers funcionales `padding()`, `margin()`, `gap()`, `paddingHorizontal()`, etc. + `spacingHelpers` para casos comunes
53
- - `shadows.ts`: Sombras platform-specific con `Platform.select` + `componentShadows` para presets de componentes
54
- - ThemeContext consume estos archivos y expone `currentTheme: Theme` via `useTheme()`
55
-
56
- ## Rules
57
-
58
- 1. **Cadena de tokens inviolable**: Raw tokens (`tokens.ts`) → Semantic colors (`semantic-colors.ts`) → Theme config (`theme-config.ts`). Nunca referenciar colores hexadecimales directamente en semantic-colors para light/dark themes; siempre usar `tokens.colors.{palette}[{shade}]`. El theme corporate puede usar valores directos.
59
-
60
- 2. **Los 3 themes siempre sincronizados**: Al agregar una propiedad a `SemanticColors`, los 3 objetos (`lightSemanticColors`, `darkSemanticColors`, `corporateSemanticColors`) deben implementarla. TypeScript lo forzará pero el agente debe verificar valores apropiados para cada tema.
61
-
62
- 3. **Contraste WCAG AA mínimo**: Texto sobre fondo debe tener ratio de contraste >= 4.5:1 para texto normal, >= 3:1 para texto grande. Verificar especialmente en dark y corporate themes.
63
-
64
- 4. **Spacing base 4px**: Todos los valores de spacing deben ser múltiplos de 4 (`tokens.spacing` usa keys: xs=4, sm=8, md=16, lg=24, xl=32, '2xl'=40, '3xl'=48, '4xl'=64).
65
-
66
- 5. **Sombras platform-specific**: Toda sombra nueva debe definir tanto la variante iOS (shadowColor, shadowOffset, shadowOpacity, shadowRadius) como Android (elevation) usando `Platform.select`.
67
-
68
- 6. **Typography con lineHeight**: Toda variante tipográfica debe incluir `fontSize`, `fontWeight` y `lineHeight`. El lineHeight debe ser proporcional (~1.4x-1.6x del fontSize para body, ~1.2x para headings).
69
-
70
- 7. **Interface Theme centraliza todo**: Si se agrega una nueva categoría al sistema de tema (ej: `borders`, `animations`), actualizar la interface `Theme` en `theme-config.ts` y la factory `createTheme()`.
71
-
72
- 8. **Convención de nombres semánticos**: Los colores semánticos usan el formato `{category}{Variant}` en camelCase (ej: `bgPrimary`, `textSecondary`, `stateError`, `borderFocus`). Las categorías existentes son: bg, text, color, border, divider, state, interactive, overlay, backdrop, shadow, icon, tabIcon.
73
-
74
- 9. **No duplicar tokens**: Si un valor ya existe en `tokens.ts`, referenciarlo en lugar de redefinirlo. Buscar primero en las paletas existentes.
75
-
76
- 10. **Export desde index.ts**: Cualquier nuevo archivo en `src/theme/` debe exportarse desde `src/theme/index.ts`.
77
-
78
- ## Workflow
79
-
80
- 1. **Analizar el requerimiento**: Determinar qué tipo de extensión se necesita (nuevo color semántico, nueva paleta, nueva tipografía, nuevo spacing, nueva sombra, nuevo theme).
81
-
82
- 2. **Verificar tokens existentes**: Revisar `tokens.ts` para confirmar que el token raw necesario existe o si se debe crear primero.
83
-
84
- 3. **Implementar cambio de abajo hacia arriba**:
85
- - Si es token raw → editar `tokens.ts`
86
- - Si es color semántico → editar `SemanticColors` interface + los 3 themes en `semantic-colors.ts`
87
- - Si es typography/spacing/shadows → editar el archivo correspondiente
88
- - Si es categoría nueva → editar `Theme` interface y `createTheme()` en `theme-config.ts`
89
-
90
- 4. **Verificar los 3 themes**: Confirmar que light, dark y corporate tienen valores apropiados para el nuevo token. Para dark theme, invertir la escala (ej: si light usa [500], dark usa [400]).
91
-
92
- 5. **Verificar contraste**: Para colores de texto sobre fondo, calcular ratio de contraste y asegurar WCAG AA.
93
-
94
- 6. **Actualizar barrel export**: Si se creó un nuevo archivo, agregarlo a `src/theme/index.ts`.
95
-
96
- 7. **Validar tipos**: Ejecutar `pnpm run type-check` para confirmar que `Theme` interface está satisfecha en todos los themes.
97
-
98
- ## Output Standards
99
-
100
- - Todo color semántico para light/dark debe referenciar `tokens.colors.{palette}[{shade}]`, no hex directo
101
- - Toda propiedad nueva en `SemanticColors` debe tener comentario JSDoc explicando su propósito
102
- - Los 3 themes deben compilar sin errores TypeScript tras cualquier cambio
103
- - Sombras deben funcionar en iOS y Android (Platform.select con ambas variantes)
104
- - Valores de spacing como múltiplos de 4
105
- - Typography con las 3 propiedades obligatorias (fontSize, fontWeight, lineHeight)
106
- - Nombres semánticos consistentes con la convención `{category}{Variant}` existente
@@ -1,184 +0,0 @@
1
- # add-translation
2
-
3
- Actuá como **arquitecto mobile senior especializado en React Native, Expo, i18next y localización de aplicaciones**.
4
-
5
- Este comando debe **agregar claves de traducción i18n de forma consistente** a todos los archivos de idiomas del proyecto, siguiendo las convenciones existentes.
6
-
7
- ---
8
-
9
- ## Flujo interactivo (obligatorio)
10
-
11
- 1. Preguntar:
12
- - ¿En qué namespace/módulo agregar las traducciones? (ej: `common`, `auth`, `profile`, `errors`)
13
- - Si el namespace no existe, preguntar si crearlo
14
- 2. Preguntar:
15
- - Las claves de traducción a agregar, una por una:
16
- - Clave (**camelCase o dot.notation**, ej: `welcomeMessage`, `form.email.placeholder`)
17
- - Valor en cada idioma configurado (ej: español, inglés)
18
- 3. Analizar automáticamente:
19
- - Qué idiomas están configurados en el proyecto
20
- - Dónde están los archivos de traducción (ej: `src/i18n/locales/`)
21
- - La estructura existente de namespaces
22
- 4. Preguntar:
23
- - ¿Agregar también la clave de tipo (TypeScript)? (Sí / No) — Recomendado: Sí
24
- 5. Validar:
25
- - Que la clave no exista ya en los archivos de traducción
26
- - Que el valor se provea para todos los idiomas configurados
27
- - Que la clave siga el formato de naming del proyecto
28
-
29
- Si alguna validación falla, **detener la ejecución y explicar el error**.
30
-
31
- ---
32
-
33
- ## Archivos a modificar
34
-
35
- ```
36
- src/
37
- ├── i18n/
38
- │ ├── locales/
39
- │ │ ├── es/
40
- │ │ │ ├── common.json (o el namespace seleccionado)
41
- │ │ │ └── {namespace}.json (crear si es nuevo)
42
- │ │ └── en/
43
- │ │ ├── common.json
44
- │ │ └── {namespace}.json
45
- │ └── types.ts (actualizar tipos si aplica)
46
- ```
47
-
48
- ---
49
-
50
- ## Reglas generales
51
-
52
- - Mantener la misma estructura en todos los idiomas
53
- - Claves en camelCase o dot.notation
54
- - Valores descriptivos y naturales en cada idioma
55
- - No dejar claves sin traducir en ningún idioma
56
- - Ordenar claves alfabéticamente dentro de cada archivo
57
- - Soportar interpolación de variables con `{{variable}}`
58
- - Soportar pluralización con sufijos `_one`, `_other`
59
-
60
- ---
61
-
62
- ## Ejemplo de traducción simple
63
-
64
- Para agregar `welcomeMessage` al namespace `common`:
65
-
66
- **`es/common.json`:**
67
- ```json
68
- {
69
- "welcomeMessage": "¡Bienvenido a la aplicación!",
70
- "logout": "Cerrar sesión"
71
- }
72
- ```
73
-
74
- **`en/common.json`:**
75
- ```json
76
- {
77
- "welcomeMessage": "Welcome to the app!",
78
- "logout": "Log out"
79
- }
80
- ```
81
-
82
- ---
83
-
84
- ## Ejemplo con interpolación
85
-
86
- ```json
87
- {
88
- "greeting": "Hola, {{name}}. Tenés {{count}} notificaciones."
89
- }
90
- ```
91
-
92
- Uso en componente:
93
- ```tsx
94
- t('greeting', { name: 'Juan', count: 5 })
95
- ```
96
-
97
- ---
98
-
99
- ## Ejemplo con pluralización
100
-
101
- ```json
102
- {
103
- "items_one": "{{count}} item",
104
- "items_other": "{{count}} items"
105
- }
106
- ```
107
-
108
- ---
109
-
110
- ## Ejemplo con namespace nuevo
111
-
112
- Si el namespace no existe, crear los archivos en todos los idiomas:
113
-
114
- ```
115
- src/i18n/locales/es/{namespace}.json
116
- src/i18n/locales/en/{namespace}.json
117
- ```
118
-
119
- Y registrar el namespace en la configuración de i18n:
120
-
121
- ```typescript
122
- // En el archivo de configuración de i18n
123
- resources: {
124
- es: {
125
- common: esCommon,
126
- {namespace}: es{Namespace}, // nuevo
127
- },
128
- en: {
129
- common: enCommon,
130
- {namespace}: en{Namespace}, // nuevo
131
- },
132
- }
133
- ```
134
-
135
- ---
136
-
137
- ## Tipado TypeScript
138
-
139
- Si se seleccionó actualizar tipos:
140
-
141
- ```typescript
142
- // Actualizar el tipo de recursos para autocompletado
143
- declare module 'i18next' {
144
- interface CustomTypeOptions {
145
- resources: {
146
- common: typeof import('./locales/es/common.json');
147
- {namespace}: typeof import('./locales/es/{namespace}.json');
148
- };
149
- }
150
- }
151
- ```
152
-
153
- ---
154
-
155
- ## Mensajes finales obligatorios
156
-
157
- Al finalizar, mostrar:
158
-
159
- * Lista de archivos modificados/creados
160
- * Resumen de claves agregadas por idioma
161
- * Ejemplo de uso en un componente:
162
-
163
- ```tsx
164
- import { useTranslation } from 'react-i18next';
165
-
166
- const { t } = useTranslation('{namespace}');
167
-
168
- <Text>{t('welcomeMessage')}</Text>
169
- ```
170
-
171
- * Si se creó un namespace nuevo, recordar actualizar la configuración de i18n
172
- * Advertir si alguna traducción parece incompleta
173
-
174
- ---
175
-
176
- ## Criterios de calidad
177
-
178
- * Traducciones consistentes en todos los idiomas
179
- * Claves ordenadas alfabéticamente
180
- * Interpolación y pluralización correctas
181
- * Tipado TypeScript actualizado
182
- * Cumple con la estructura existente del proyecto
183
-
184
- Este command debe **mantener las traducciones consistentes y completas en todos los idiomas de la aplicación**.