elsabro 2.1.0 → 2.2.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 (46) hide show
  1. package/commands/elsabro/add-phase.md +17 -0
  2. package/commands/elsabro/add-todo.md +111 -53
  3. package/commands/elsabro/audit-milestone.md +19 -0
  4. package/commands/elsabro/check-todos.md +210 -31
  5. package/commands/elsabro/complete-milestone.md +20 -1
  6. package/commands/elsabro/debug.md +19 -0
  7. package/commands/elsabro/discuss-phase.md +18 -1
  8. package/commands/elsabro/execute.md +288 -12
  9. package/commands/elsabro/insert-phase.md +18 -1
  10. package/commands/elsabro/list-phase-assumptions.md +17 -0
  11. package/commands/elsabro/new-milestone.md +19 -0
  12. package/commands/elsabro/new.md +19 -0
  13. package/commands/elsabro/pause-work.md +19 -0
  14. package/commands/elsabro/plan-milestone-gaps.md +20 -1
  15. package/commands/elsabro/plan.md +264 -36
  16. package/commands/elsabro/progress.md +203 -79
  17. package/commands/elsabro/quick.md +19 -0
  18. package/commands/elsabro/remove-phase.md +17 -0
  19. package/commands/elsabro/research-phase.md +18 -1
  20. package/commands/elsabro/resume-work.md +19 -0
  21. package/commands/elsabro/start.md +365 -98
  22. package/commands/elsabro/verify-work.md +109 -5
  23. package/package.json +1 -1
  24. package/references/SYSTEM_INDEX.md +241 -0
  25. package/references/command-flow.md +352 -0
  26. package/references/enforcement-rules.md +331 -0
  27. package/references/error-handling-instructions.md +26 -12
  28. package/references/state-sync.md +381 -0
  29. package/references/task-dispatcher.md +388 -0
  30. package/references/tasks-integration.md +380 -0
  31. package/skills/api-microservice.md +765 -0
  32. package/skills/api-setup.md +76 -3
  33. package/skills/auth-setup.md +46 -6
  34. package/skills/chrome-extension.md +584 -0
  35. package/skills/cicd-setup.md +1206 -0
  36. package/skills/cli-tool.md +884 -0
  37. package/skills/database-setup.md +41 -5
  38. package/skills/desktop-app.md +1351 -0
  39. package/skills/expo-app.md +35 -2
  40. package/skills/full-stack-app.md +543 -0
  41. package/skills/mobile-app.md +813 -0
  42. package/skills/nextjs-app.md +33 -2
  43. package/skills/payments-setup.md +76 -1
  44. package/skills/saas-starter.md +639 -0
  45. package/skills/sentry-setup.md +41 -7
  46. package/skills/testing-setup.md +1218 -0
@@ -1,6 +1,16 @@
1
1
  ---
2
2
  name: api-setup
3
3
  description: Skill para crear APIs y endpoints. Usa este skill cuando el usuario quiere crear una API, backend, o endpoints.
4
+ tags:
5
+ - api
6
+ - backend
7
+ - rest
8
+ - hono
9
+ - express
10
+ - fastify
11
+ - typescript
12
+ difficulty: intermediate
13
+ estimated_time: 25-40 min
4
14
  ---
5
15
 
6
16
  # Skill: Setup de API/Backend
@@ -16,6 +26,26 @@ Usar cuando el usuario menciona:
16
26
  - "rutas" (en contexto de backend)
17
27
  </when_to_use>
18
28
 
29
+ <pre_requisites>
30
+ ## Pre-requisitos
31
+
32
+ ### Conocimientos
33
+ - JavaScript/TypeScript basico
34
+ - Conceptos HTTP (GET, POST, PUT, DELETE)
35
+ - JSON
36
+ - Terminal/CLI basico
37
+
38
+ ### Software
39
+ - Node.js 20+ LTS
40
+ - npm, yarn, o pnpm
41
+ - Editor de codigo (VS Code recomendado)
42
+ - Cliente HTTP para testing (curl, Postman, Insomnia, o Thunder Client)
43
+
44
+ ### Opcional
45
+ - Docker (para containerizacion)
46
+ - Base de datos (PostgreSQL, MySQL, MongoDB segun necesidad)
47
+ </pre_requisites>
48
+
19
49
  <before_starting>
20
50
  ## Investigación Obligatoria
21
51
 
@@ -53,7 +83,7 @@ Usar cuando el usuario menciona:
53
83
  src/app/api/[endpoint]/route.ts
54
84
  ```
55
85
 
56
- ### Proyecto nuevo → Hono (Recomendado)
86
+ ### Proyecto nuevo → Hono 4.x (Recomendado)
57
87
 
58
88
  **Pros:**
59
89
  - Ligero y rápido
@@ -70,12 +100,55 @@ npm create hono@latest my-api
70
100
 
71
101
  | Opción | Cuándo Usar |
72
102
  |--------|-------------|
73
- | Express | Equipo ya lo conoce |
74
- | Fastify | Necesita máximo rendimiento |
103
+ | Express 5.x | Equipo ya lo conoce |
104
+ | Fastify 5.x | Necesita maximo rendimiento |
75
105
  | tRPC | Frontend y backend TypeScript |
76
106
  | GraphQL | Queries complejas, múltiples clientes |
77
107
  </options_by_context>
78
108
 
109
+ <project_structure>
110
+ ## Estructura de Proyecto
111
+
112
+ ### Hono Standalone API
113
+ ```
114
+ my-api/
115
+ ├── src/
116
+ │ ├── index.ts # Entry point
117
+ │ ├── routes/ # Route handlers
118
+ │ │ ├── users.ts
119
+ │ │ ├── products.ts
120
+ │ │ └── index.ts # Route aggregator
121
+ │ ├── middleware/ # Custom middleware
122
+ │ │ ├── auth.ts
123
+ │ │ └── validation.ts
124
+ │ ├── lib/ # Utilities
125
+ │ │ ├── db.ts
126
+ │ │ └── utils.ts
127
+ │ └── types/ # TypeScript types
128
+ │ └── index.ts
129
+ ├── tests/ # Test files
130
+ ├── package.json
131
+ ├── tsconfig.json
132
+ └── .env
133
+ ```
134
+
135
+ ### Next.js API Routes
136
+ ```
137
+ src/
138
+ └── app/
139
+ └── api/
140
+ ├── users/
141
+ │ ├── route.ts # GET /api/users, POST /api/users
142
+ │ └── [id]/
143
+ │ └── route.ts # GET/PUT/DELETE /api/users/[id]
144
+ ├── products/
145
+ │ └── route.ts
146
+ └── webhooks/
147
+ └── stripe/
148
+ └── route.ts
149
+ ```
150
+ </project_structure>
151
+
79
152
  <nextjs_api_setup>
80
153
  ## API Routes en Next.js
81
154
 
@@ -1,6 +1,15 @@
1
1
  ---
2
2
  name: auth-setup
3
3
  description: Skill para implementar autenticación en cualquier proyecto. Usa este skill cuando el usuario quiere login, registro, o manejo de usuarios.
4
+ tags:
5
+ - authentication
6
+ - security
7
+ - next-auth
8
+ - login
9
+ - users
10
+ - sessions
11
+ difficulty: intermediate
12
+ estimated_time: 30-60 minutes
4
13
  ---
5
14
 
6
15
  # Skill: Setup de Autenticación
@@ -16,6 +25,37 @@ Usar cuando el usuario menciona:
16
25
  - "contraseñas"
17
26
  </when_to_use>
18
27
 
28
+ <pre_requisites>
29
+ ## Pre-requisitos
30
+
31
+ - Node.js 18+ instalado
32
+ - Next.js 14+ o 15+ (para NextAuth v5)
33
+ - Base de datos configurada (ver skill: database-setup)
34
+ - Variables de entorno configuradas (NEXTAUTH_SECRET, NEXTAUTH_URL)
35
+ </pre_requisites>
36
+
37
+ <project_structure>
38
+ ## Estructura de Archivos Resultante
39
+
40
+ ```
41
+ proyecto/
42
+ ├── src/
43
+ │ ├── lib/
44
+ │ │ └── auth.ts # Configuracion NextAuth
45
+ │ ├── app/
46
+ │ │ └── api/
47
+ │ │ └── auth/
48
+ │ │ └── [...nextauth]/
49
+ │ │ └── route.ts # Route handlers
50
+ │ └── middleware.ts # Proteccion de rutas
51
+ ├── .env.local
52
+ │ ├── NEXTAUTH_SECRET=...
53
+ │ ├── NEXTAUTH_URL=...
54
+ │ └── [PROVIDER_SECRETS]=...
55
+ └── package.json # + next-auth@5.0.0-beta.25
56
+ ```
57
+ </project_structure>
58
+
19
59
  <before_starting>
20
60
  ## Investigación Obligatoria
21
61
 
@@ -48,7 +88,7 @@ Usar cuando el usuario menciona:
48
88
 
49
89
  **Setup:**
50
90
  ```bash
51
- npm install next-auth@beta
91
+ npm install next-auth@5.0.0-beta.25
52
92
  ```
53
93
 
54
94
  ### Expo/React Native → Supabase Auth
@@ -80,14 +120,14 @@ npx expo install @supabase/supabase-js
80
120
 
81
121
  ### Paso 1: Instalar
82
122
  ```bash
83
- npm install next-auth@beta
123
+ npm install next-auth@5.0.0-beta.25
84
124
  ```
85
125
 
86
126
  ### Paso 2: Crear auth.ts
87
127
  ```typescript
88
128
  // src/lib/auth.ts
89
- // VERIFICAR patrón actual con Context7
90
- import NextAuth from "next-auth"
129
+ // NextAuth v5.0.0-beta.25 pattern
130
+ import NextAuth from "next-auth" // v5.x
91
131
  import Credentials from "next-auth/providers/credentials"
92
132
 
93
133
  export const { handlers, auth, signIn, signOut } = NextAuth({
@@ -109,7 +149,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
109
149
  ### Paso 3: Crear route handler
110
150
  ```typescript
111
151
  // src/app/api/auth/[...nextauth]/route.ts
112
- // VERIFICAR con Context7
152
+ // NextAuth v5.x route handlers
113
153
  import { handlers } from "@/lib/auth"
114
154
  export const { GET, POST } = handlers
115
155
  ```
@@ -117,7 +157,7 @@ export const { GET, POST } = handlers
117
157
  ### Paso 4: Crear middleware
118
158
  ```typescript
119
159
  // src/middleware.ts
120
- // VERIFICAR con Context7
160
+ // NextAuth v5.x middleware pattern
121
161
  export { auth as middleware } from "@/lib/auth"
122
162
 
123
163
  export const config = {