elsabro 2.1.0 → 2.3.0

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 (64) hide show
  1. package/agents/elsabro-orchestrator.md +113 -0
  2. package/commands/elsabro/add-phase.md +17 -0
  3. package/commands/elsabro/add-todo.md +111 -53
  4. package/commands/elsabro/audit-milestone.md +19 -0
  5. package/commands/elsabro/check-todos.md +210 -31
  6. package/commands/elsabro/complete-milestone.md +20 -1
  7. package/commands/elsabro/debug.md +19 -0
  8. package/commands/elsabro/discuss-phase.md +18 -1
  9. package/commands/elsabro/execute.md +511 -58
  10. package/commands/elsabro/insert-phase.md +18 -1
  11. package/commands/elsabro/list-phase-assumptions.md +17 -0
  12. package/commands/elsabro/new-milestone.md +19 -0
  13. package/commands/elsabro/new.md +19 -0
  14. package/commands/elsabro/pause-work.md +19 -0
  15. package/commands/elsabro/plan-milestone-gaps.md +20 -1
  16. package/commands/elsabro/plan.md +264 -36
  17. package/commands/elsabro/progress.md +203 -79
  18. package/commands/elsabro/quick.md +19 -0
  19. package/commands/elsabro/remove-phase.md +17 -0
  20. package/commands/elsabro/research-phase.md +18 -1
  21. package/commands/elsabro/resume-work.md +19 -0
  22. package/commands/elsabro/start.md +399 -98
  23. package/commands/elsabro/verify-work.md +138 -5
  24. package/hooks/confirm-destructive.sh +145 -0
  25. package/hooks/hooks-config.json +81 -0
  26. package/hooks/lint-check.sh +238 -0
  27. package/hooks/post-edit-test.sh +189 -0
  28. package/package.json +3 -2
  29. package/references/SYSTEM_INDEX.md +241 -0
  30. package/references/command-flow.md +352 -0
  31. package/references/enforcement-rules.md +331 -0
  32. package/references/error-contracts-tests.md +1171 -0
  33. package/references/error-contracts.md +3102 -0
  34. package/references/error-handling-instructions.md +26 -12
  35. package/references/parallel-worktrees.md +293 -0
  36. package/references/state-sync.md +381 -0
  37. package/references/task-dispatcher.md +388 -0
  38. package/references/tasks-integration.md +380 -0
  39. package/scripts/setup-parallel-worktrees.sh +319 -0
  40. package/skills/api-microservice.md +765 -0
  41. package/skills/api-setup.md +76 -3
  42. package/skills/auth-setup.md +46 -6
  43. package/skills/chrome-extension.md +584 -0
  44. package/skills/cicd-setup.md +1206 -0
  45. package/skills/cli-tool.md +884 -0
  46. package/skills/database-setup.md +41 -5
  47. package/skills/desktop-app.md +1351 -0
  48. package/skills/expo-app.md +35 -2
  49. package/skills/full-stack-app.md +543 -0
  50. package/skills/memory-update.md +207 -0
  51. package/skills/mobile-app.md +813 -0
  52. package/skills/nextjs-app.md +33 -2
  53. package/skills/payments-setup.md +76 -1
  54. package/skills/review.md +331 -0
  55. package/skills/saas-starter.md +639 -0
  56. package/skills/sentry-setup.md +41 -7
  57. package/skills/techdebt.md +289 -0
  58. package/skills/testing-setup.md +1218 -0
  59. package/skills/tutor.md +219 -0
  60. package/templates/.planning/notes/.gitkeep +0 -0
  61. package/templates/CLAUDE.md.template +48 -0
  62. package/templates/error-handling-config.json +79 -2
  63. package/templates/mistakes.md.template +52 -0
  64. package/templates/patterns.md.template +114 -0
@@ -1,6 +1,15 @@
1
1
  ---
2
2
  name: database-setup
3
3
  description: Skill para configurar base de datos en cualquier proyecto. Usa este skill cuando el usuario quiere guardar datos, usuarios, productos, etc.
4
+ tags:
5
+ - database
6
+ - prisma
7
+ - postgresql
8
+ - supabase
9
+ - persistence
10
+ - orm
11
+ difficulty: intermediate
12
+ estimated_time: 20-45 minutes
4
13
  ---
5
14
 
6
15
  # Skill: Setup de Base de Datos
@@ -17,6 +26,33 @@ Usar cuando el usuario menciona:
17
26
  - "PostgreSQL"
18
27
  </when_to_use>
19
28
 
29
+ <pre_requisites>
30
+ ## Pre-requisitos
31
+
32
+ - Node.js 18+ instalado
33
+ - Proyecto existente con package.json
34
+ - Cuenta en Supabase (https://supabase.com) o acceso a PostgreSQL 16.x
35
+ - Conexion a internet para instalar dependencias
36
+ </pre_requisites>
37
+
38
+ <project_structure>
39
+ ## Estructura de Archivos Resultante
40
+
41
+ ```
42
+ proyecto/
43
+ ├── prisma/
44
+ │ ├── schema.prisma # Definicion del schema
45
+ │ └── migrations/ # Migraciones de DB
46
+ ├── src/
47
+ │ └── lib/
48
+ │ ├── db.ts # Cliente Prisma singleton
49
+ │ └── supabase.ts # Cliente Supabase (opcional)
50
+ ├── .env
51
+ │ └── DATABASE_URL=...
52
+ └── package.json # + prisma, @prisma/client
53
+ ```
54
+ </project_structure>
55
+
20
56
  <before_starting>
21
57
  ## Investigación Obligatoria
22
58
 
@@ -54,13 +90,13 @@ Usar cuando el usuario menciona:
54
90
  <prisma_setup>
55
91
  ## Setup Prisma + Supabase
56
92
 
57
- ### Paso 1: Instalar Prisma
93
+ ### Paso 1: Instalar Prisma 6.x
58
94
  ```bash
59
- npm install prisma @prisma/client
95
+ npm install prisma@^6.0.0 @prisma/client@^6.0.0
60
96
  npx prisma init
61
97
  ```
62
98
 
63
- ### Paso 2: Configurar DATABASE_URL
99
+ ### Paso 2: Configurar DATABASE_URL (PostgreSQL 16.x)
64
100
  ```bash
65
101
  # .env
66
102
  DATABASE_URL="postgresql://postgres:[PASSWORD]@[HOST]:5432/postgres"
@@ -107,9 +143,9 @@ npx prisma generate
107
143
  ### Paso 6: Usar en código
108
144
  ```typescript
109
145
  // src/lib/db.ts
110
- // VERIFICAR patrón actual con Context7
146
+ // Prisma 6.x singleton pattern
111
147
 
112
- import { PrismaClient } from '@prisma/client'
148
+ import { PrismaClient } from '@prisma/client' // v6.x
113
149
 
114
150
  const globalForPrisma = globalThis as unknown as {
115
151
  prisma: PrismaClient | undefined