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.
- package/agents/elsabro-orchestrator.md +113 -0
- package/commands/elsabro/add-phase.md +17 -0
- package/commands/elsabro/add-todo.md +111 -53
- package/commands/elsabro/audit-milestone.md +19 -0
- package/commands/elsabro/check-todos.md +210 -31
- package/commands/elsabro/complete-milestone.md +20 -1
- package/commands/elsabro/debug.md +19 -0
- package/commands/elsabro/discuss-phase.md +18 -1
- package/commands/elsabro/execute.md +511 -58
- package/commands/elsabro/insert-phase.md +18 -1
- package/commands/elsabro/list-phase-assumptions.md +17 -0
- package/commands/elsabro/new-milestone.md +19 -0
- package/commands/elsabro/new.md +19 -0
- package/commands/elsabro/pause-work.md +19 -0
- package/commands/elsabro/plan-milestone-gaps.md +20 -1
- package/commands/elsabro/plan.md +264 -36
- package/commands/elsabro/progress.md +203 -79
- package/commands/elsabro/quick.md +19 -0
- package/commands/elsabro/remove-phase.md +17 -0
- package/commands/elsabro/research-phase.md +18 -1
- package/commands/elsabro/resume-work.md +19 -0
- package/commands/elsabro/start.md +399 -98
- package/commands/elsabro/verify-work.md +138 -5
- package/hooks/confirm-destructive.sh +145 -0
- package/hooks/hooks-config.json +81 -0
- package/hooks/lint-check.sh +238 -0
- package/hooks/post-edit-test.sh +189 -0
- package/package.json +3 -2
- package/references/SYSTEM_INDEX.md +241 -0
- package/references/command-flow.md +352 -0
- package/references/enforcement-rules.md +331 -0
- package/references/error-contracts-tests.md +1171 -0
- package/references/error-contracts.md +3102 -0
- package/references/error-handling-instructions.md +26 -12
- package/references/parallel-worktrees.md +293 -0
- package/references/state-sync.md +381 -0
- package/references/task-dispatcher.md +388 -0
- package/references/tasks-integration.md +380 -0
- package/scripts/setup-parallel-worktrees.sh +319 -0
- package/skills/api-microservice.md +765 -0
- package/skills/api-setup.md +76 -3
- package/skills/auth-setup.md +46 -6
- package/skills/chrome-extension.md +584 -0
- package/skills/cicd-setup.md +1206 -0
- package/skills/cli-tool.md +884 -0
- package/skills/database-setup.md +41 -5
- package/skills/desktop-app.md +1351 -0
- package/skills/expo-app.md +35 -2
- package/skills/full-stack-app.md +543 -0
- package/skills/memory-update.md +207 -0
- package/skills/mobile-app.md +813 -0
- package/skills/nextjs-app.md +33 -2
- package/skills/payments-setup.md +76 -1
- package/skills/review.md +331 -0
- package/skills/saas-starter.md +639 -0
- package/skills/sentry-setup.md +41 -7
- package/skills/techdebt.md +289 -0
- package/skills/testing-setup.md +1218 -0
- package/skills/tutor.md +219 -0
- package/templates/.planning/notes/.gitkeep +0 -0
- package/templates/CLAUDE.md.template +48 -0
- package/templates/error-handling-config.json +79 -2
- package/templates/mistakes.md.template +52 -0
- package/templates/patterns.md.template +114 -0
package/skills/database-setup.md
CHANGED
|
@@ -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
|
-
//
|
|
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
|