@qubiit/lmagent 2.5.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/.editorconfig +18 -0
- package/AGENTS.md +169 -0
- package/CLAUDE.md +122 -0
- package/CONTRIBUTING.md +90 -0
- package/LICENSE +21 -0
- package/README.md +195 -0
- package/config/commands.yaml +194 -0
- package/config/levels.yaml +135 -0
- package/config/models.yaml +192 -0
- package/config/settings.yaml +405 -0
- package/config/tools-extended.yaml +534 -0
- package/config/tools.yaml +437 -0
- package/docs/assets/logo.png +0 -0
- package/docs/commands.md +132 -0
- package/docs/customization-guide.md +445 -0
- package/docs/getting-started.md +154 -0
- package/docs/how-to-start.md +242 -0
- package/docs/navigation-index.md +227 -0
- package/docs/usage-guide.md +113 -0
- package/install.js +1044 -0
- package/package.json +35 -0
- package/pyproject.toml +182 -0
- package/rules/_bootstrap.md +138 -0
- package/rules/agents-ia.md +607 -0
- package/rules/api-design.md +337 -0
- package/rules/automations-n8n.md +646 -0
- package/rules/code-style.md +570 -0
- package/rules/documentation.md +98 -0
- package/rules/security.md +316 -0
- package/rules/stack.md +395 -0
- package/rules/testing.md +326 -0
- package/rules/workflow.md +353 -0
- package/scripts/create_skill.js +300 -0
- package/scripts/validate_skills.js +283 -0
- package/skills/ai-agent-engineer/SKILL.md +394 -0
- package/skills/ai-agent-engineer/references/agent-patterns.md +149 -0
- package/skills/api-designer/SKILL.md +429 -0
- package/skills/api-designer/references/api-standards.md +13 -0
- package/skills/architect/SKILL.md +285 -0
- package/skills/architect/references/c4-model.md +133 -0
- package/skills/automation-engineer/SKILL.md +352 -0
- package/skills/automation-engineer/references/n8n-patterns.md +127 -0
- package/skills/backend-engineer/SKILL.md +261 -0
- package/skills/backend-engineer/assets/fastapi-project-structure.yaml +74 -0
- package/skills/backend-engineer/references/debugging-guide.md +174 -0
- package/skills/backend-engineer/references/design-patterns.md +208 -0
- package/skills/backend-engineer/scripts/scaffold_backend.py +313 -0
- package/skills/bmad-methodology/SKILL.md +202 -0
- package/skills/bmad-methodology/references/scale-adaptive-levels.md +141 -0
- package/skills/browser-agent/SKILL.md +502 -0
- package/skills/browser-agent/scripts/playwright_setup.ts +16 -0
- package/skills/code-reviewer/SKILL.md +306 -0
- package/skills/code-reviewer/references/code-review-checklist.md +16 -0
- package/skills/data-engineer/SKILL.md +474 -0
- package/skills/data-engineer/assets/pg-monitoring-queries.sql +154 -0
- package/skills/data-engineer/references/index-strategy.md +128 -0
- package/skills/data-engineer/scripts/backup_postgres.py +221 -0
- package/skills/devops-engineer/SKILL.md +547 -0
- package/skills/devops-engineer/references/ci-cd-patterns.md +265 -0
- package/skills/devops-engineer/scripts/docker_healthcheck.py +125 -0
- package/skills/document-generator/SKILL.md +746 -0
- package/skills/document-generator/references/pdf-generation.md +22 -0
- package/skills/frontend-engineer/SKILL.md +532 -0
- package/skills/frontend-engineer/references/accessibility-guide.md +146 -0
- package/skills/frontend-engineer/scripts/audit_bundle.py +144 -0
- package/skills/git-workflow/SKILL.md +374 -0
- package/skills/git-workflow/references/git-flow.md +25 -0
- package/skills/mcp-builder/SKILL.md +471 -0
- package/skills/mcp-builder/references/mcp-server-guide.md +23 -0
- package/skills/mobile-engineer/SKILL.md +502 -0
- package/skills/mobile-engineer/references/platform-guidelines.md +160 -0
- package/skills/orchestrator/SKILL.md +246 -0
- package/skills/orchestrator/references/methodology-routing.md +117 -0
- package/skills/orchestrator/references/persona-mapping.md +85 -0
- package/skills/orchestrator/references/routing-logic.md +110 -0
- package/skills/performance-engineer/SKILL.md +549 -0
- package/skills/performance-engineer/references/caching-patterns.md +181 -0
- package/skills/performance-engineer/scripts/profile_endpoint.py +170 -0
- package/skills/product-manager/SKILL.md +488 -0
- package/skills/product-manager/references/prioritization-frameworks.md +126 -0
- package/skills/prompt-engineer/SKILL.md +433 -0
- package/skills/prompt-engineer/references/prompt-patterns.md +158 -0
- package/skills/qa-engineer/SKILL.md +441 -0
- package/skills/qa-engineer/references/testing-strategy.md +166 -0
- package/skills/qa-engineer/scripts/run_coverage.py +147 -0
- package/skills/scrum-master/SKILL.md +225 -0
- package/skills/scrum-master/references/sprint-ceremonies.md +159 -0
- package/skills/security-analyst/SKILL.md +390 -0
- package/skills/security-analyst/references/owasp-top10.md +188 -0
- package/skills/security-analyst/scripts/audit_security.py +242 -0
- package/skills/seo-auditor/SKILL.md +523 -0
- package/skills/seo-auditor/references/seo-checklist.md +17 -0
- package/skills/spec-driven-dev/SKILL.md +342 -0
- package/skills/spec-driven-dev/references/phase-gates.md +107 -0
- package/skills/supabase-expert/SKILL.md +602 -0
- package/skills/supabase-expert/references/supabase-patterns.md +19 -0
- package/skills/swe-agent/SKILL.md +311 -0
- package/skills/swe-agent/references/trajectory-format.md +134 -0
- package/skills/systematic-debugger/SKILL.md +512 -0
- package/skills/systematic-debugger/references/debugging-guide.md +12 -0
- package/skills/tech-lead/SKILL.md +409 -0
- package/skills/tech-lead/references/code-review-checklist.md +111 -0
- package/skills/technical-writer/SKILL.md +631 -0
- package/skills/technical-writer/references/doc-templates.md +218 -0
- package/skills/testing-strategist/SKILL.md +476 -0
- package/skills/testing-strategist/references/testing-pyramid.md +16 -0
- package/skills/ux-ui-designer/SKILL.md +419 -0
- package/skills/ux-ui-designer/references/design-system-foundation.md +168 -0
- package/skills_overview.txt +94 -0
- package/templates/PROJECT_KICKOFF.md +284 -0
- package/templates/SKILL_TEMPLATE.md +131 -0
- package/templates/USAGE.md +95 -0
- package/templates/agent-python/README.md +71 -0
- package/templates/agent-python/agent.py +272 -0
- package/templates/agent-python/config.yaml +76 -0
- package/templates/agent-python/prompts/system.md +109 -0
- package/templates/agent-python/requirements.txt +7 -0
- package/templates/automation-n8n/README.md +14 -0
- package/templates/automation-n8n/webhook-handler.json +57 -0
- package/templates/backend-node/Dockerfile +12 -0
- package/templates/backend-node/README.md +15 -0
- package/templates/backend-node/package.json +30 -0
- package/templates/backend-node/src/index.ts +19 -0
- package/templates/backend-node/src/routes.ts +7 -0
- package/templates/backend-node/tsconfig.json +22 -0
- package/templates/backend-python/Dockerfile +11 -0
- package/templates/backend-python/README.md +78 -0
- package/templates/backend-python/app/core/config.py +12 -0
- package/templates/backend-python/app/core/database.py +12 -0
- package/templates/backend-python/app/main.py +17 -0
- package/templates/backend-python/app/routers/__init__.py +1 -0
- package/templates/backend-python/app/routers/health.py +7 -0
- package/templates/backend-python/requirements-dev.txt +6 -0
- package/templates/backend-python/requirements.txt +4 -0
- package/templates/backend-python/tests/test_health.py +9 -0
- package/templates/checkpoint.yaml +117 -0
- package/templates/database/README.md +474 -0
- package/templates/frontend-react/README.md +446 -0
- package/templates/plan.yaml +320 -0
- package/templates/session.yaml +125 -0
- package/templates/spec.yaml +229 -0
- package/templates/tasks.yaml +330 -0
- package/workflows/bugfix-backend.md +380 -0
- package/workflows/documentation.md +232 -0
- package/workflows/generate-prd.md +320 -0
- package/workflows/ideation.md +396 -0
- package/workflows/new-agent-ia.md +497 -0
- package/workflows/new-automation.md +374 -0
- package/workflows/new-feature.md +290 -0
- package/workflows/optimize-performance.md +373 -0
- package/workflows/resolve-github-issue.md +524 -0
- package/workflows/security-review.md +291 -0
- package/workflows/spec-driven.md +476 -0
- package/workflows/testing-strategy.md +296 -0
- package/workflows/third-party-integration.md +277 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# 🚀 PROJECT KICKOFF
|
|
2
|
+
## LMAgent Framework v3.0 (SPEC+LM)
|
|
3
|
+
|
|
4
|
+
> **🤖 AGENTE DE IA**: Si detectas este archivo, activa el **AUTO-START PROTOCOL** (ver final del documento).
|
|
5
|
+
>
|
|
6
|
+
> Si las secciones están vacías `[...]`, activa el **MODO INTERACTIVO** y haz las preguntas al usuario.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# INFORMACIÓN DEL PROYECTO
|
|
11
|
+
|
|
12
|
+
## 1. Visión del Producto 🔭
|
|
13
|
+
|
|
14
|
+
### Nombre del Proyecto
|
|
15
|
+
<!-- Nombre clave o final del proyecto -->
|
|
16
|
+
```
|
|
17
|
+
[Escribe el nombre aquí]
|
|
18
|
+
```
|
|
19
|
+
> *Ejemplo: "AgentFlow 2026" o "NutriTrack AI"*
|
|
20
|
+
|
|
21
|
+
### Elevator Pitch
|
|
22
|
+
<!-- En UNA frase: ¿Qué es y para quién? Máximo 280 caracteres -->
|
|
23
|
+
```
|
|
24
|
+
[Describe tu producto aquí]
|
|
25
|
+
```
|
|
26
|
+
> *Ejemplo: "Un asistente de IA que organiza automáticamente la agenda de médicos conectándose a WhatsApp y Google Calendar, reduciendo el ausentismo de pacientes en un 40%."*
|
|
27
|
+
|
|
28
|
+
### Tipo de Proyecto
|
|
29
|
+
<!-- Marca UNA opción con [x] -->
|
|
30
|
+
- [ ] **MVP (Speed)** - Validar idea rápido, priorizar velocidad sobre perfección
|
|
31
|
+
- [ ] **Producto Escalable (Quality)** - Arquitectura limpia, TDD, para producción
|
|
32
|
+
- [ ] **Prototipo/Demo** - Visualmente impactante, puede tener mocks
|
|
33
|
+
- [ ] **Herramienta Interna** - Utilidad sobre estética
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 2. Usuarios y Problema 👥
|
|
38
|
+
|
|
39
|
+
### Usuario Principal
|
|
40
|
+
<!-- ¿Quién usará esto principalmente? -->
|
|
41
|
+
```
|
|
42
|
+
Rol: [ej: Contador, Médico, Developer]
|
|
43
|
+
Edad/Perfil: [ej: 40+ años, poco tecnológico]
|
|
44
|
+
Contexto: [ej: Usa principalmente celular, prefiere WhatsApp]
|
|
45
|
+
```
|
|
46
|
+
> *Ejemplo: "Médico Cardiólogo: 50+ años, poco tecnológico, usa voz para notas."*
|
|
47
|
+
|
|
48
|
+
### Usuario Secundario (opcional)
|
|
49
|
+
```
|
|
50
|
+
Rol: [ej: Cliente del usuario principal]
|
|
51
|
+
Contexto: [ej: Quiere confirmar turno sin instalar apps]
|
|
52
|
+
```
|
|
53
|
+
> *Ejemplo: "Paciente: Quiere confirmar turno por WhatsApp sin instalar apps."*
|
|
54
|
+
|
|
55
|
+
### Problema Principal a Resolver
|
|
56
|
+
<!-- ¿Qué dolor específico resuelves? Sé concreto con números si es posible. -->
|
|
57
|
+
```
|
|
58
|
+
[Describe el problema aquí]
|
|
59
|
+
```
|
|
60
|
+
> *Ejemplo: "El médico pierde 2 horas diarias confirmando turnos manualmente por teléfono."*
|
|
61
|
+
|
|
62
|
+
### ¿Por qué ahora?
|
|
63
|
+
<!-- ¿Por qué este problema es urgente? -->
|
|
64
|
+
```
|
|
65
|
+
[Explica la urgencia]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 3. Funcionalidades Clave ✨
|
|
71
|
+
|
|
72
|
+
### 🟢 MUST HAVE (MVP)
|
|
73
|
+
<!-- Sin esto, el producto NO funciona. Máximo 5 items. -->
|
|
74
|
+
1. [Feature 1]
|
|
75
|
+
> *Ej: "Chatbot en WhatsApp que entienda lenguaje natural."*
|
|
76
|
+
2. [Feature 2]
|
|
77
|
+
> *Ej: "Sincronización bi-direccional con Google Calendar."*
|
|
78
|
+
3. [Feature 3]
|
|
79
|
+
4. [Feature 4]
|
|
80
|
+
5. [Feature 5]
|
|
81
|
+
|
|
82
|
+
### 🟡 SHOULD HAVE (v1.1)
|
|
83
|
+
<!-- Importante pero puede esperar a la siguiente versión -->
|
|
84
|
+
1. [Feature extra 1]
|
|
85
|
+
> *Ej: "Recordatorios automáticos 24hs antes."*
|
|
86
|
+
2. [Feature extra 2]
|
|
87
|
+
|
|
88
|
+
### 🔴 OUT OF SCOPE (NO hacer ahora)
|
|
89
|
+
<!-- Explícitamente excluido para evitar scope creep -->
|
|
90
|
+
1. [Lo que NO haremos]
|
|
91
|
+
> *Ej: "Pagos online (se hará en Q3)."*
|
|
92
|
+
2. [Otra cosa que NO haremos]
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 4. Stack Tecnológico 🛠️
|
|
97
|
+
|
|
98
|
+
> **Instrucción**: Marca con [x] lo que prefieras. Si no sabes, deja TODO vacío y el Architect decidirá lo mejor para tu caso.
|
|
99
|
+
|
|
100
|
+
### Frontend
|
|
101
|
+
- [ ] **Next.js 15+ / React 19** *(Recomendado para web apps)*
|
|
102
|
+
- [ ] **React Native / Expo** *(Apps móviles)*
|
|
103
|
+
- [ ] **Vue 3 / Nuxt 4** *(Alternativa a React)*
|
|
104
|
+
- [ ] **Sin Frontend** *(Solo backend/API)*
|
|
105
|
+
- [ ] **Otro**: _________
|
|
106
|
+
|
|
107
|
+
### Backend
|
|
108
|
+
- [ ] **Python 3.12+ (FastAPI)** *(Recomendado para IA/Agents)*
|
|
109
|
+
- [ ] **Node.js 22+ (NestJS)** *(TypeScript estricto)*
|
|
110
|
+
- [ ] **Go** *(Alto rendimiento)*
|
|
111
|
+
- [ ] **Otro**: _________
|
|
112
|
+
|
|
113
|
+
### Base de Datos
|
|
114
|
+
- [ ] **PostgreSQL 16+** *(Recomendado - relacional + vectores)*
|
|
115
|
+
- [ ] **Supabase** *(BaaS rápido con auth incluido)*
|
|
116
|
+
- [ ] **MongoDB** *(Documentos)*
|
|
117
|
+
- [ ] **Otro**: _________
|
|
118
|
+
|
|
119
|
+
### Infraestructura
|
|
120
|
+
- [ ] **Docker Compose** *(Desarrollo local standard)*
|
|
121
|
+
- [ ] **Vercel** *(Fácil deploy para frontend)*
|
|
122
|
+
- [ ] **Railway** *(Fácil con base de datos)*
|
|
123
|
+
- [ ] **AWS/GCP** *(Enterprise)*
|
|
124
|
+
|
|
125
|
+
### IA & Agents
|
|
126
|
+
- [ ] **OpenAI (GPT-4o)** *(Más popular)*
|
|
127
|
+
- [ ] **Anthropic (Claude)** *(Mejor para código)*
|
|
128
|
+
- [ ] **Gemini (Google)** *(Multi-modal)*
|
|
129
|
+
- [ ] **Local (Ollama)** *(Sin costo de API)*
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 5. Diseño y UX 🎨 (opcional)
|
|
134
|
+
|
|
135
|
+
### Estilo Visual Preferido
|
|
136
|
+
- [ ] **Neo-Brutalism** *(Tendencia 2025/26)*
|
|
137
|
+
- [ ] **Glassmorphism / Apple Style** *(Elegante)*
|
|
138
|
+
- [ ] **Minimal SaaS** *(Inter font, Tailwind)*
|
|
139
|
+
- [ ] **Dark Mode First**
|
|
140
|
+
- [ ] **Sin preferencia** *(el diseñador decide)*
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 6. Integraciones Externas 🔌 (opcional)
|
|
145
|
+
|
|
146
|
+
<!-- ¿Con qué servicios debe conectarse? -->
|
|
147
|
+
- [ ] WhatsApp Business API
|
|
148
|
+
- [ ] Stripe / MercadoPago (Pagos)
|
|
149
|
+
- [ ] Google Calendar / Outlook
|
|
150
|
+
- [ ] Email (SendGrid, Resend)
|
|
151
|
+
- [ ] Auth0 / Clerk (Autenticación)
|
|
152
|
+
- [ ] Otro: _________
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 7. Restricciones 📅 (opcional)
|
|
157
|
+
|
|
158
|
+
### Deadline
|
|
159
|
+
```
|
|
160
|
+
[Si hay fecha límite, escríbela. Ej: "Demo para inversores el 15 de marzo"]
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Presupuesto de Infraestructura
|
|
164
|
+
```
|
|
165
|
+
[Límite mensual. Ej: "$50/mes máximo en cloud"]
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Otras Restricciones
|
|
169
|
+
```
|
|
170
|
+
[Cualquier otra limitación técnica o de negocio]
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## 8. Métricas de Éxito 📊 (recomendado)
|
|
176
|
+
|
|
177
|
+
<!-- ¿Cómo sabrás que el proyecto fue exitoso? -->
|
|
178
|
+
| Métrica | Valor Actual | Meta |
|
|
179
|
+
|---------|--------------|------|
|
|
180
|
+
| [Ej: Tiempo de categorización] | [3 horas] | [10 minutos] |
|
|
181
|
+
| [Ej: Usuarios activos] | [0] | [100 en primer mes] |
|
|
182
|
+
| [Ej: NPS] | [N/A] | [> 50] |
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## 9. Contexto Adicional 💬 (opcional)
|
|
187
|
+
|
|
188
|
+
<!-- Links, documentos, competidores, diseños existentes -->
|
|
189
|
+
```
|
|
190
|
+
[Cualquier información extra que ayude a entender el proyecto]
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
196
|
+
# 🤖 SECCIÓN PARA EL AGENTE
|
|
197
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
198
|
+
|
|
199
|
+
## AUTO-START PROTOCOL
|
|
200
|
+
|
|
201
|
+
**Cuando detectes este archivo en la raíz del proyecto:**
|
|
202
|
+
|
|
203
|
+
### Caso A: Template Completado (secciones tienen contenido)
|
|
204
|
+
```
|
|
205
|
+
1. Ejecutar: lmagent init (si no está inicializado)
|
|
206
|
+
2. Leer PROJECT_KICKOFF.md completo
|
|
207
|
+
3. Clasificar como Level 3-4 (proyecto nuevo)
|
|
208
|
+
4. Ejecutar workflow /spec automáticamente:
|
|
209
|
+
- Crear specs/[project-name]/spec.yaml
|
|
210
|
+
- Mostrar al usuario → Pedir aprobación
|
|
211
|
+
- Crear specs/[project-name]/plan.yaml
|
|
212
|
+
- Mostrar al usuario → Pedir aprobación
|
|
213
|
+
- Crear specs/[project-name]/tasks.yaml
|
|
214
|
+
- Implementar tasks en orden
|
|
215
|
+
5. Documentar todo en el proceso
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Caso B: Template Vacío o Incompleto (secciones tienen [...])
|
|
219
|
+
```
|
|
220
|
+
ACTIVAR MODO INTERACTIVO:
|
|
221
|
+
|
|
222
|
+
1. Saludar al usuario:
|
|
223
|
+
"Detecté que este es un proyecto nuevo. Voy a hacerte algunas
|
|
224
|
+
preguntas para entender qué quieres construir."
|
|
225
|
+
|
|
226
|
+
2. Hacer preguntas en ESTE ORDEN (una a la vez):
|
|
227
|
+
|
|
228
|
+
Q1: "¿Cómo se llama tu proyecto? (nombre clave)"
|
|
229
|
+
|
|
230
|
+
Q2: "En una frase, ¿qué es y para quién?"
|
|
231
|
+
|
|
232
|
+
Q3: "¿Es un MVP rápido, un producto escalable, un prototipo/demo,
|
|
233
|
+
o una herramienta interna?"
|
|
234
|
+
|
|
235
|
+
Q4: "¿Quién es el usuario principal? Describe su perfil brevemente."
|
|
236
|
+
|
|
237
|
+
Q5: "¿Qué problema específico resuelve? Sé concreto."
|
|
238
|
+
|
|
239
|
+
Q6: "Dame 3-5 features que DEBEN estar en el MVP (sin esto no funciona)."
|
|
240
|
+
|
|
241
|
+
Q7: "¿Hay alguna restricción de tecnología, deadline o presupuesto?"
|
|
242
|
+
|
|
243
|
+
3. Con las respuestas, llenar el template internamente
|
|
244
|
+
4. Continuar con Caso A (workflow /spec)
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
## Estructura de Salida Esperada
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
proyecto/
|
|
251
|
+
├── PROJECT_KICKOFF.md ← Este archivo (input del usuario)
|
|
252
|
+
├── AGENTS.md ← Copiado de LMAgent
|
|
253
|
+
├── .lmagent ← Marker del framework
|
|
254
|
+
│
|
|
255
|
+
├── specs/
|
|
256
|
+
│ └── [project-name]/
|
|
257
|
+
│ ├── spec.yaml ← Generado por /pm
|
|
258
|
+
│ ├── plan.yaml ← Generado por /arch
|
|
259
|
+
│ └── tasks.yaml ← Generado por /dev
|
|
260
|
+
│
|
|
261
|
+
├── src/ ← Código implementado
|
|
262
|
+
├── tests/ ← Tests
|
|
263
|
+
├── docs/ ← Documentación
|
|
264
|
+
│ └── adr/ ← Architecture Decision Records
|
|
265
|
+
└── README.md ← Generado automáticamente
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Validación de Completitud
|
|
269
|
+
|
|
270
|
+
Considerar **COMPLETO** si tiene al menos:
|
|
271
|
+
- [ ] Nombre del proyecto
|
|
272
|
+
- [ ] Descripción/Pitch
|
|
273
|
+
- [ ] Tipo de proyecto seleccionado
|
|
274
|
+
- [ ] Usuario principal descrito
|
|
275
|
+
- [ ] Problema definido
|
|
276
|
+
- [ ] Al menos 2 MUST HAVE features
|
|
277
|
+
|
|
278
|
+
Si faltan ≥3 de estos → Activar **MODO INTERACTIVO**.
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
**FIN DEL TEMPLATE**
|
|
283
|
+
|
|
284
|
+
*LMAgent v3.0 (SPEC+LM) - Build More, Automate Dreams* 🚀
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "[Nombre del Skill]"
|
|
3
|
+
description: "[Descripción breve: qué hace este skill en una oración]"
|
|
4
|
+
role: "[Rol profesional que desempeña]"
|
|
5
|
+
type: agent_persona # agent_persona | methodology
|
|
6
|
+
version: 2.3
|
|
7
|
+
icon: "🔧"
|
|
8
|
+
expertise:
|
|
9
|
+
- "[Área de expertise 1]"
|
|
10
|
+
- "[Área de expertise 2]"
|
|
11
|
+
- "[Área de expertise 3]"
|
|
12
|
+
activates_on:
|
|
13
|
+
- "[Contexto en que se activa 1]"
|
|
14
|
+
- "[Contexto en que se activa 2]"
|
|
15
|
+
- "[Contexto en que se activa 3]"
|
|
16
|
+
triggers:
|
|
17
|
+
- "/[trigger1]"
|
|
18
|
+
- "/[trigger2]"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# [Nombre del Skill] Persona
|
|
22
|
+
|
|
23
|
+
## 🧠 System Prompt
|
|
24
|
+
> **Instrucciones para el LLM**: Copia este bloque en tu system prompt o contexto inicial.
|
|
25
|
+
|
|
26
|
+
```markdown
|
|
27
|
+
Eres **[Nombre]**, un experto en [dominio].
|
|
28
|
+
Tu objetivo es **[OBJETIVO EN MAYÚSCULAS]**.
|
|
29
|
+
Tu tono es **[Adjetivo 1, Adjetivo 2, Adjetivo 3]**.
|
|
30
|
+
|
|
31
|
+
**Principios Core:**
|
|
32
|
+
1. **[Principio 1]**: [Descripción]
|
|
33
|
+
2. **[Principio 2]**: [Descripción]
|
|
34
|
+
3. **[Principio 3]**: [Descripción]
|
|
35
|
+
4. **[Principio 4]**: [Descripción]
|
|
36
|
+
|
|
37
|
+
**Restricciones:**
|
|
38
|
+
- NUNCA [restricción 1].
|
|
39
|
+
- SIEMPRE [restricción 2].
|
|
40
|
+
- SIEMPRE [restricción 3].
|
|
41
|
+
- NUNCA [restricción 4].
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 🔄 Arquitectura Cognitiva (Cómo Pensar)
|
|
45
|
+
|
|
46
|
+
### 1. Fase de Análisis
|
|
47
|
+
Antes de actuar, pregúntate:
|
|
48
|
+
- **Input**: ¿Qué se necesita?
|
|
49
|
+
- **Contexto**: ¿Qué restricciones existen?
|
|
50
|
+
- **Riesgo**: ¿Qué puede salir mal?
|
|
51
|
+
- **Salida**: ¿Cuál es el resultado esperado?
|
|
52
|
+
|
|
53
|
+
### 2. Fase de Diseño
|
|
54
|
+
- Definir **estructura** del entregable.
|
|
55
|
+
- Planear **enfoque** paso a paso.
|
|
56
|
+
- Identificar **dependencias** y **bloqueantes**.
|
|
57
|
+
|
|
58
|
+
### 3. Fase de Ejecución
|
|
59
|
+
- Implementar según el plan.
|
|
60
|
+
- Verificar en cada paso.
|
|
61
|
+
- Documentar decisiones.
|
|
62
|
+
|
|
63
|
+
### 4. Auto-Corrección
|
|
64
|
+
Antes de finalizar, verifica:
|
|
65
|
+
- "¿Cumple con los criterios de aceptación?"
|
|
66
|
+
- "¿Sigue los patrones del proyecto?"
|
|
67
|
+
- "¿Es mantenible y documentado?"
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Rol
|
|
72
|
+
|
|
73
|
+
[Descripción extendida del rol: experiencia, fortalezas, enfoque]
|
|
74
|
+
|
|
75
|
+
## Responsabilidades
|
|
76
|
+
|
|
77
|
+
1. **[Responsabilidad 1]**: [Detalle]
|
|
78
|
+
2. **[Responsabilidad 2]**: [Detalle]
|
|
79
|
+
3. **[Responsabilidad 3]**: [Detalle]
|
|
80
|
+
4. **[Responsabilidad 4]**: [Detalle]
|
|
81
|
+
5. **[Responsabilidad 5]**: [Detalle]
|
|
82
|
+
|
|
83
|
+
## Stack Técnico
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
[Tecnología 1] → [Propósito]
|
|
87
|
+
[Tecnología 2] → [Propósito]
|
|
88
|
+
[Tecnología 3] → [Propósito]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Patrones y Ejemplos
|
|
92
|
+
|
|
93
|
+
```[lenguaje]
|
|
94
|
+
// Ejemplo de patrón clave para este skill
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Interacción con Otros Roles
|
|
98
|
+
|
|
99
|
+
| Rol | Colaboración |
|
|
100
|
+
|-----|-------------|
|
|
101
|
+
| [Rol 1] | [Cómo colaboran] |
|
|
102
|
+
| [Rol 2] | [Cómo colaboran] |
|
|
103
|
+
| [Rol 3] | [Cómo colaboran] |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 🛠️ Herramientas Preferidas
|
|
108
|
+
|
|
109
|
+
| Herramienta | Cuándo Usarla |
|
|
110
|
+
|-------------|---------------|
|
|
111
|
+
| `view_file` | [Cuándo] |
|
|
112
|
+
| `run_command` | [Cuándo] |
|
|
113
|
+
| `grep_search` | [Cuándo] |
|
|
114
|
+
| `write_to_file` | [Cuándo] |
|
|
115
|
+
|
|
116
|
+
## 📋 Definition of Done
|
|
117
|
+
|
|
118
|
+
Antes de considerar una tarea terminada, verifica TODO:
|
|
119
|
+
|
|
120
|
+
### Calidad
|
|
121
|
+
- [ ] [Criterio 1]
|
|
122
|
+
- [ ] [Criterio 2]
|
|
123
|
+
- [ ] [Criterio 3]
|
|
124
|
+
|
|
125
|
+
### Documentación
|
|
126
|
+
- [ ] [Criterio de documentación 1]
|
|
127
|
+
- [ ] [Criterio de documentación 2]
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
*Skill version: 2.3 | LMAgent Framework*
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Guía de Uso de Templates LMAgent
|
|
2
|
+
|
|
3
|
+
Los templates ubicados en esta carpeta están diseñados para ser puntos de partida listos para usar para nuevos componentes de tu sistema.
|
|
4
|
+
|
|
5
|
+
## Flujo de Trabajo General
|
|
6
|
+
|
|
7
|
+
1. **Elegir**: Selecciona el template adecuado para tu tarea.
|
|
8
|
+
2. **Copiar**: Duplica la carpeta del template a tu destino.
|
|
9
|
+
3. **Personalizar**: Ajusta la configuración y nombres.
|
|
10
|
+
4. **Instalar**: Instala las dependencias y corre.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🐍 Backend Python (FastAPI)
|
|
15
|
+
|
|
16
|
+
Ideal para microservicios robustos, APIs de datos o lógica de negocio compleja.
|
|
17
|
+
|
|
18
|
+
**Pasos:**
|
|
19
|
+
|
|
20
|
+
1. Copia el template:
|
|
21
|
+
```bash
|
|
22
|
+
cp -r templates/backend-python servicios/mi-nuevo-servicio
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
2. Navega al directorio:
|
|
26
|
+
```bash
|
|
27
|
+
cd servicios/mi-nuevo-servicio
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. Crea tu entorno virtual e instala dependencias:
|
|
31
|
+
```bash
|
|
32
|
+
python -m venv venv
|
|
33
|
+
source venv/bin/activate # o venv\Scripts\activate en Windows
|
|
34
|
+
pip install -r requirements.txt
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
4. Configura el entorno:
|
|
38
|
+
```bash
|
|
39
|
+
cp .env.example .env # (Si existe, sino crea uno basado en config.py)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
5. Ejecuta:
|
|
43
|
+
```bash
|
|
44
|
+
uvicorn app.main:app --reload
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🟢 Backend Node (Express + TS)
|
|
50
|
+
|
|
51
|
+
Ideal para servicios ligeros, webhooks, o adaptadores de integración.
|
|
52
|
+
|
|
53
|
+
**Pasos:**
|
|
54
|
+
|
|
55
|
+
1. Copia el template:
|
|
56
|
+
```bash
|
|
57
|
+
cp -r templates/backend-node servicios/mi-adaptador
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
2. Instala dependencias:
|
|
61
|
+
```bash
|
|
62
|
+
cd servicios/mi-adaptador
|
|
63
|
+
npm install
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
3. Ejecuta en desarrollo:
|
|
67
|
+
```bash
|
|
68
|
+
npm run dev
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## ⚡ Automation n8n
|
|
74
|
+
|
|
75
|
+
Para flujos de automatización visual.
|
|
76
|
+
|
|
77
|
+
**Pasos:**
|
|
78
|
+
|
|
79
|
+
1. Abre n8n en tu navegador.
|
|
80
|
+
2. Crea un nuevo workflow.
|
|
81
|
+
3. Copia el contenido de `templates/automation-n8n/webhook-handler.json`.
|
|
82
|
+
4. Pega (Ctrl+V) directamente en el canvas de n8n.
|
|
83
|
+
5. Ajusta los nodos a tu necesidad.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 🤖 Agent Python
|
|
88
|
+
|
|
89
|
+
Para crear agentes autónomos especializados.
|
|
90
|
+
|
|
91
|
+
**Pasos:**
|
|
92
|
+
|
|
93
|
+
1. Copia `templates/agent-python` a tu carpeta de agentes.
|
|
94
|
+
2. Define el `system.md` en la carpeta `prompts`.
|
|
95
|
+
3. Configura las herramientas disponibles en `config.yaml`.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# LMAgent Python Agent Template
|
|
2
|
+
|
|
3
|
+
Este template proporciona la estructura base para crear agentes de IA con LMAgent.
|
|
4
|
+
|
|
5
|
+
## Estructura
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
agent_name/
|
|
9
|
+
├── __init__.py
|
|
10
|
+
├── config.yaml # Configuración del agente
|
|
11
|
+
├── agent.py # Clase principal del agente
|
|
12
|
+
├── prompts/
|
|
13
|
+
│ └── system.md # System prompt del agente
|
|
14
|
+
├── tools/
|
|
15
|
+
│ ├── __init__.py
|
|
16
|
+
│ └── custom_tool.py # Herramientas específicas
|
|
17
|
+
└── tests/
|
|
18
|
+
└── test_agent.py # Tests del agente
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Uso
|
|
22
|
+
|
|
23
|
+
## Uso
|
|
24
|
+
|
|
25
|
+
1. Copiar este directorio:
|
|
26
|
+
```bash
|
|
27
|
+
cp -r templates/agent-python agents/my-new-agent
|
|
28
|
+
cd agents/my-new-agent
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
2. Crear entorno virtual e instalar dependencias:
|
|
32
|
+
```bash
|
|
33
|
+
python -m venv venv
|
|
34
|
+
source venv/bin/activate # o venv\Scripts\activate en Windows
|
|
35
|
+
pip install -r requirements.txt
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
3. Configurar:
|
|
39
|
+
- Renombrar `config.yaml` y ajustar parámetros
|
|
40
|
+
- Personalizar `prompts/system.md`
|
|
41
|
+
- Crear `.env` con tus API Keys (ver `config.yaml` para referencias)
|
|
42
|
+
|
|
43
|
+
4. Ejecutar:
|
|
44
|
+
```bash
|
|
45
|
+
python agent.py
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Archivos
|
|
49
|
+
|
|
50
|
+
### config.yaml
|
|
51
|
+
|
|
52
|
+
Define la configuración del agente:
|
|
53
|
+
- Modelo LLM a usar
|
|
54
|
+
- Herramientas disponibles
|
|
55
|
+
- Límites de costo/iteraciones
|
|
56
|
+
- Guardrails
|
|
57
|
+
|
|
58
|
+
### agent.py
|
|
59
|
+
|
|
60
|
+
Clase principal que implementa:
|
|
61
|
+
- Inicialización con configuración
|
|
62
|
+
- Método `run()` para ejecutar el agente
|
|
63
|
+
- Integración con tools y prompts
|
|
64
|
+
|
|
65
|
+
### prompts/system.md
|
|
66
|
+
|
|
67
|
+
System prompt que define:
|
|
68
|
+
- Rol y responsabilidades
|
|
69
|
+
- Herramientas disponibles
|
|
70
|
+
- Formato de respuestas
|
|
71
|
+
- Restricciones
|