@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,242 @@
|
|
|
1
|
+
# Cómo Empezar un Proyecto con LMAgent
|
|
2
|
+
|
|
3
|
+
> **LMAgent Framework v3.0 (SPEC+LM)**
|
|
4
|
+
>
|
|
5
|
+
> Esta guía explica el proceso automatizado para iniciar un nuevo proyecto.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Resumen del Flujo
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
13
|
+
│ FLUJO AUTOMATIZADO DE INICIO │
|
|
14
|
+
│ │
|
|
15
|
+
│ DESARROLLADOR AGENTE DE IA │
|
|
16
|
+
│ ───────────── ───────────── │
|
|
17
|
+
│ │
|
|
18
|
+
│ 1. Crear carpeta del proyecto │
|
|
19
|
+
│ │ │
|
|
20
|
+
│ ▼ │
|
|
21
|
+
│ 2. Crear PROJECT_KICKOFF.md ──────────┐ │
|
|
22
|
+
│ (5-10 minutos) │ │
|
|
23
|
+
│ │ │
|
|
24
|
+
│ 3. Abrir en IDE agéntico │ │
|
|
25
|
+
│ │ │ │
|
|
26
|
+
│ ▼ ▼ │
|
|
27
|
+
│ ┌─────────────────────────────────────────────────────────────────────┐ │
|
|
28
|
+
│ │ AUTOMÁTICO (Sin intervención) │ │
|
|
29
|
+
│ │ │ │
|
|
30
|
+
│ │ 4. Agente detecta PROJECT_KICKOFF.md │ │
|
|
31
|
+
│ │ 5. Ejecuta: lmagent init │ │
|
|
32
|
+
│ │ 6. Ejecuta: /spec workflow │ │
|
|
33
|
+
│ │ 7. Crea: spec.yaml → plan.yaml → tasks.yaml │ │
|
|
34
|
+
│ │ 8. Implementa código siguiendo tasks │ │
|
|
35
|
+
│ │ 9. Tests + Documentación │ │
|
|
36
|
+
│ │ │ │
|
|
37
|
+
│ └─────────────────────────────────────────────────────────────────────┘ │
|
|
38
|
+
│ │
|
|
39
|
+
│ 10. USUARIO: Revisar y aprobar cada fase │
|
|
40
|
+
│ │
|
|
41
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 📋 Paso a Paso
|
|
47
|
+
|
|
48
|
+
### Paso 1: Crear Carpeta del Proyecto
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
mkdir mi-nuevo-proyecto
|
|
52
|
+
cd mi-nuevo-proyecto
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Paso 2: Crear PROJECT_KICKOFF.md
|
|
56
|
+
|
|
57
|
+
Copia el template desde el repositorio de LMAgent:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Si tienes LMAgent instalado globalmente:
|
|
61
|
+
lmagent kickoff
|
|
62
|
+
|
|
63
|
+
# O manualmente, copia el archivo:
|
|
64
|
+
cp /path/to/lmagent/templates/PROJECT_KICKOFF.md ./PROJECT_KICKOFF.md
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Paso 3: Completar el Template (OPCIONAL)
|
|
68
|
+
|
|
69
|
+
Abre `PROJECT_KICKOFF.md` y tienes DOS opciones:
|
|
70
|
+
|
|
71
|
+
#### Opción A: Completar manualmente (5-10 minutos)
|
|
72
|
+
Llena las secciones marcadas con `[...]`. Solo necesitas:
|
|
73
|
+
- Nombre del proyecto
|
|
74
|
+
- Descripción en una línea
|
|
75
|
+
- Tipo de proyecto
|
|
76
|
+
- Usuario principal
|
|
77
|
+
- Problema a resolver
|
|
78
|
+
- 2-5 features MUST HAVE
|
|
79
|
+
|
|
80
|
+
#### Opción B: Dejar que el agente pregunte
|
|
81
|
+
Si no completas el template, el agente detectará que está vacío y te hará las preguntas necesarias en el chat:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Agente: "Detecté que este es un proyecto nuevo. Voy a hacerte
|
|
85
|
+
algunas preguntas para entender qué quieres construir."
|
|
86
|
+
|
|
87
|
+
"¿Cómo se llama tu proyecto?"
|
|
88
|
+
|
|
89
|
+
Tú: "NutriTrack AI"
|
|
90
|
+
|
|
91
|
+
Agente: "En una frase, ¿qué es y para quién?"
|
|
92
|
+
|
|
93
|
+
Tú: "App para rastrear nutrición con IA que analiza fotos de comida"
|
|
94
|
+
|
|
95
|
+
... (5-7 preguntas en total)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Paso 4: Abrir en tu IDE Agéntico
|
|
99
|
+
|
|
100
|
+
Abre la carpeta del proyecto en tu IDE favorito:
|
|
101
|
+
|
|
102
|
+
| IDE | Cómo Abrir |
|
|
103
|
+
|-----|-----------|
|
|
104
|
+
| **Cursor** | `cursor .` |
|
|
105
|
+
| **Claude Code** | `claude .` |
|
|
106
|
+
| **Antigravity** | Abrir carpeta en VS Code + extensión |
|
|
107
|
+
| **Copilot** | Abrir en VS Code |
|
|
108
|
+
|
|
109
|
+
### Paso 5: El Agente Toma el Control 🤖
|
|
110
|
+
|
|
111
|
+
Una vez que el IDE agéntico analice tu carpeta, detectará `PROJECT_KICKOFF.md` y comenzará automáticamente:
|
|
112
|
+
|
|
113
|
+
1. **Detecta Framework** → Inicializa LMAgent
|
|
114
|
+
2. **Lee tu Kickoff** → Entiende el proyecto
|
|
115
|
+
3. **Ejecuta /spec** → Crea especificación formal
|
|
116
|
+
4. **Te muestra spec.yaml** → Pide aprobación
|
|
117
|
+
5. **Diseña arquitectura** → Crea plan.yaml
|
|
118
|
+
6. **Te muestra el plan** → Pide aprobación
|
|
119
|
+
7. **Crea tasks** → Desglose de implementación
|
|
120
|
+
8. **Implementa** → Código real
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 🔄 Puntos de Aprobación
|
|
125
|
+
|
|
126
|
+
El agente se detendrá y pedirá tu aprobación en estos puntos:
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
┌────────────────┐
|
|
130
|
+
│ spec.yaml │ ← "¿Está bien el alcance y las features?"
|
|
131
|
+
└───────┬────────┘
|
|
132
|
+
│ ✅ Aprobado
|
|
133
|
+
▼
|
|
134
|
+
┌────────────────┐
|
|
135
|
+
│ plan.yaml │ ← "¿Está bien la arquitectura y el plan?"
|
|
136
|
+
└───────┬────────┘
|
|
137
|
+
│ ✅ Aprobado
|
|
138
|
+
▼
|
|
139
|
+
┌────────────────┐
|
|
140
|
+
│ tasks.yaml │ ← "¿Puedo empezar a implementar?"
|
|
141
|
+
└───────┬────────┘
|
|
142
|
+
│ ✅ Aprobado
|
|
143
|
+
▼
|
|
144
|
+
🚀 IMPLEMENTACIÓN
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 📂 Estructura Final del Proyecto
|
|
150
|
+
|
|
151
|
+
Después del proceso, tu proyecto tendrá esta estructura:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
mi-nuevo-proyecto/
|
|
155
|
+
├── PROJECT_KICKOFF.md # Tu input original
|
|
156
|
+
├── AGENTS.md # Main entry point de LMAgent
|
|
157
|
+
├── .lmagent # Marker del framework
|
|
158
|
+
├── README.md # Generado automáticamente
|
|
159
|
+
│
|
|
160
|
+
├── specs/
|
|
161
|
+
│ └── mi-nuevo-proyecto/
|
|
162
|
+
│ ├── spec.yaml # Especificación formal
|
|
163
|
+
│ ├── plan.yaml # Plan de arquitectura
|
|
164
|
+
│ └── tasks.yaml # Tasks desglosadas
|
|
165
|
+
│
|
|
166
|
+
├── src/ # Código fuente
|
|
167
|
+
│ ├── app/
|
|
168
|
+
│ ├── services/
|
|
169
|
+
│ └── ...
|
|
170
|
+
│
|
|
171
|
+
├── tests/ # Tests automatizados
|
|
172
|
+
│
|
|
173
|
+
├── docs/ # Documentación
|
|
174
|
+
│ └── adr/ # Architecture Decision Records
|
|
175
|
+
│
|
|
176
|
+
├── docker-compose.yml # Si aplica
|
|
177
|
+
└── pyproject.toml # O package.json
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## ⚡ Comandos Útiles
|
|
183
|
+
|
|
184
|
+
Una vez que el proyecto está inicializado:
|
|
185
|
+
|
|
186
|
+
| Comando | Qué Hace |
|
|
187
|
+
|---------|----------|
|
|
188
|
+
| `/spec status` | Ver estado del spec actual |
|
|
189
|
+
| `/spec validate` | Validar implementación vs spec |
|
|
190
|
+
| `/pm` | Activar Product Manager para cambios de requisitos |
|
|
191
|
+
| `/arch` | Activar Architect para decisiones técnicas |
|
|
192
|
+
| `/dev` | Activar Developer para implementar |
|
|
193
|
+
| `/qa` | Activar QA para testing |
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## ❓ FAQ
|
|
198
|
+
|
|
199
|
+
### ¿Qué pasa si quiero cambiar algo después?
|
|
200
|
+
|
|
201
|
+
Simplemente dile al agente:
|
|
202
|
+
```
|
|
203
|
+
"Quiero agregar feature X al proyecto"
|
|
204
|
+
```
|
|
205
|
+
El agente actualizará spec.yaml y te pedirá aprobación.
|
|
206
|
+
|
|
207
|
+
### ¿Puedo usar LMAgent en un proyecto existente?
|
|
208
|
+
|
|
209
|
+
Sí, ejecuta:
|
|
210
|
+
```bash
|
|
211
|
+
cd mi-proyecto-existente
|
|
212
|
+
lmagent init
|
|
213
|
+
```
|
|
214
|
+
Luego crea un PROJECT_KICKOFF.md describiendo lo que quieres agregar.
|
|
215
|
+
|
|
216
|
+
### ¿Qué IDEs son compatibles?
|
|
217
|
+
|
|
218
|
+
- ✅ Cursor
|
|
219
|
+
- ✅ Claude Code
|
|
220
|
+
- ✅ Antigravity (VS Code)
|
|
221
|
+
- ✅ GitHub Copilot
|
|
222
|
+
- ✅ Windsurf
|
|
223
|
+
- ✅ Roo Code
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 🎬 Video Demo (Conceptual)
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
00:00 - Crear carpeta y PROJECT_KICKOFF.md
|
|
231
|
+
00:05 - Completar template (fast-forward)
|
|
232
|
+
00:15 - Abrir en Cursor
|
|
233
|
+
00:20 - Agente detecta y comienza
|
|
234
|
+
00:30 - spec.yaml generado, revisión
|
|
235
|
+
00:40 - plan.yaml generado, revisión
|
|
236
|
+
00:50 - Implementación automática
|
|
237
|
+
02:00 - Proyecto MVP funcionando 🎉
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
*LMAgent v3.0 (SPEC+LM) - Build More, Automate Dreams* 🚀
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# LMAgent Framework - Navigation Index
|
|
2
|
+
|
|
3
|
+
> **Quick Reference**: Find any resource in the framework instantly.
|
|
4
|
+
>
|
|
5
|
+
> **Versión**: 3.0 (SPEC+LM) | **Actualizado**: 2026-01
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 Entry Points (Start Here)
|
|
10
|
+
|
|
11
|
+
| Archivo | Propósito | Cuándo Leer |
|
|
12
|
+
|---------|-----------|-------------|
|
|
13
|
+
| [AGENTS.md](../AGENTS.md) | **Main entry point** - Visual flow, commands, rules | ⭐ SIEMPRE primero |
|
|
14
|
+
| [README.md](../README.md) | Overview del proyecto, instalación | Setup inicial |
|
|
15
|
+
| [.agent/README.md](../.agent/README.md) | Config para Antigravity | Si usas Antigravity IDE |
|
|
16
|
+
| [CLAUDE.md](../CLAUDE.md) | Config para Claude Code | Si usas Claude Code |
|
|
17
|
+
| [.cursorrules](../.cursorrules) | Config para Cursor | Si usas Cursor |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 👥 Personas & Metodologías (21 Total)
|
|
22
|
+
|
|
23
|
+
### Roles de Producto & Gestión
|
|
24
|
+
|
|
25
|
+
| Persona | Archivo | Trigger | Especialidad |
|
|
26
|
+
|---------|---------|---------|--------------|
|
|
27
|
+
| **Orchestrator** | [orchestrator.md](../personas/orchestrator.md) | `/orch` | Meta-routing, coordinación |
|
|
28
|
+
| **Product Manager** | [product-manager.md](../personas/product-manager.md) | `/pm` | Requisitos, PRDs, spec.yaml |
|
|
29
|
+
| **Scrum Master** | [scrum-master.md](../personas/scrum-master.md) | `/sm` | Agile, procesos, facilitación |
|
|
30
|
+
| **Tech Lead** | [tech-lead.md](../personas/tech-lead.md) | `/lead` | Decisiones técnicas, mentoring |
|
|
31
|
+
|
|
32
|
+
### Roles de Ingeniería
|
|
33
|
+
|
|
34
|
+
| Persona | Archivo | Trigger | Especialidad |
|
|
35
|
+
|---------|---------|---------|--------------|
|
|
36
|
+
| **Architect** | [architect.md](../personas/architect.md) | `/arch` | Diseño de sistemas, ADRs |
|
|
37
|
+
| **Backend Engineer** | [backend-engineer.md](../personas/backend-engineer.md) | `/dev` | Python, FastAPI, APIs |
|
|
38
|
+
| **Frontend Engineer** | [frontend-engineer.md](../personas/frontend-engineer.md) | `/frontend` | React, TypeScript |
|
|
39
|
+
| **Mobile Engineer** | [mobile-engineer.md](../personas/mobile-engineer.md) | `/mobile` | React Native |
|
|
40
|
+
| **DevOps Engineer** | [devops-engineer.md](../personas/devops-engineer.md) | `/devops` | CI/CD, Docker, K8s |
|
|
41
|
+
| **Data Engineer** | [data-engineer.md](../personas/data-engineer.md) | `/dba` | SQL, PostgreSQL, pipelines |
|
|
42
|
+
|
|
43
|
+
### Roles de IA & Automatización
|
|
44
|
+
|
|
45
|
+
| Persona | Archivo | Trigger | Especialidad |
|
|
46
|
+
|---------|---------|---------|--------------|
|
|
47
|
+
| **AI Agent Engineer** | [ai-agent-engineer.md](../personas/ai-agent-engineer.md) | `/ai` | Agentes, RAG, LangChain |
|
|
48
|
+
| **Prompt Engineer** | [prompt-engineer.md](../personas/prompt-engineer.md) | `/prompt` | System prompts, CoT |
|
|
49
|
+
| **Automation Engineer** | [automation-engineer.md](../personas/automation-engineer.md) | `/auto` | n8n, webhooks |
|
|
50
|
+
|
|
51
|
+
### Roles de Calidad & Seguridad
|
|
52
|
+
|
|
53
|
+
| Persona | Archivo | Trigger | Especialidad |
|
|
54
|
+
|---------|---------|---------|--------------|
|
|
55
|
+
| **QA Engineer** | [qa-engineer.md](../personas/qa-engineer.md) | `/qa` | Testing, E2E |
|
|
56
|
+
| **Security Analyst** | [security-analyst.md](../personas/security-analyst.md) | `/sec` | OWASP, compliance |
|
|
57
|
+
| **Performance Engineer** | [performance-engineer.md](../personas/performance-engineer.md) | `/perf` | Optimización |
|
|
58
|
+
|
|
59
|
+
### Roles de Documentación & UX
|
|
60
|
+
|
|
61
|
+
| Persona | Archivo | Trigger | Especialidad |
|
|
62
|
+
|---------|---------|---------|--------------|
|
|
63
|
+
| **Technical Writer** | [technical-writer.md](../personas/technical-writer.md) | `/writer` | Documentación |
|
|
64
|
+
| **UX/UI Designer** | [ux-ui-designer.md](../personas/ux-ui-designer.md) | `/ux` | Diseño, a11y |
|
|
65
|
+
|
|
66
|
+
### Metodologías
|
|
67
|
+
|
|
68
|
+
| Metodología | Archivo | Trigger | Especialidad |
|
|
69
|
+
|---------|---------|---------|--------------|
|
|
70
|
+
| **BMAD Methodology** | [bmad-methodology](../skills/bmad-methodology/SKILL.md) | `/bmad` | Scale-Adaptive Intelligence, kickoff |
|
|
71
|
+
| **SWE-Agent** | [swe-agent](../skills/swe-agent/SKILL.md) | `/swe` | Resolución autónoma de issues |
|
|
72
|
+
| **Spec-Driven Dev** | [spec-driven-dev](../skills/spec-driven-dev/SKILL.md) | `/spec-dev` | Pipeline SPECIFY→PLAN→TASKS→IMPL→VERIFY |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 📋 Workflows (13 Total)
|
|
77
|
+
|
|
78
|
+
| Workflow | Archivo | Trigger | Nivel | Uso |
|
|
79
|
+
|----------|---------|---------|-------|-----|
|
|
80
|
+
| **SPEC DRIVEN** | [spec-driven.md](../workflows/spec-driven.md) | `/spec` | 2-4 | ⭐ Desarrollo completo |
|
|
81
|
+
| New Automation | [new-automation.md](../workflows/new-automation.md) | `/new-auto` | 2-3 | Backend + n8n |
|
|
82
|
+
| New AI Agent | [new-agent-ia.md](../workflows/new-agent-ia.md) | `/new-agent` | 2-3 | Crear agente IA |
|
|
83
|
+
| Bugfix Backend | [bugfix-backend.md](../workflows/bugfix-backend.md) | `/fix` | 1-2 | Arreglar bugs |
|
|
84
|
+
| Optimize Performance | [optimize-performance.md](../workflows/optimize-performance.md) | `/perf` | 2-3 | Optimización |
|
|
85
|
+
| Resolve GitHub Issue | [resolve-github-issue.md](../workflows/resolve-github-issue.md) | `/issue` | 1-3 | Issues automáticos |
|
|
86
|
+
| Security Review | [security-review.md](../workflows/security-review.md) | `/sec-review` | 2-4 | Auditoría |
|
|
87
|
+
| Generate PRD | [generate-prd.md](../workflows/generate-prd.md) | `/prd` | 2 | Documentos de producto |
|
|
88
|
+
| Ideation | [ideation.md](../workflows/ideation.md) | `/brainstorm` | 1-2 | Ideación |
|
|
89
|
+
| New Feature | [new-feature.md](../workflows/new-feature.md) | `/feature` | 2-3 | Features nuevos |
|
|
90
|
+
| Testing Strategy | [testing-strategy.md](../workflows/testing-strategy.md) | `/test-plan` | 2 | Estrategia de tests |
|
|
91
|
+
| Third Party Integration | [third-party-integration.md](../workflows/third-party-integration.md) | `/integrate` | 2-3 | Integraciones |
|
|
92
|
+
| Documentation | [documentation.md](../workflows/documentation.md) | `/docs` | 1-2 | Documentar |
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 📏 Rules (9 Total)
|
|
97
|
+
|
|
98
|
+
| Regla | Archivo | Prioridad | Descripción |
|
|
99
|
+
|-------|---------|-----------|-------------|
|
|
100
|
+
| **Documentation** | [documentation.md](../rules/documentation.md) | ⚠️ CRÍTICA | Documentar cambios siempre |
|
|
101
|
+
| Stack | [stack.md](../rules/stack.md) | Alta | Stack tecnológico |
|
|
102
|
+
| Workflow | [workflow.md](../rules/workflow.md) | Alta | Flujo de trabajo |
|
|
103
|
+
| Code Style | [code-style.md](../rules/code-style.md) | Alta | Guías de estilo |
|
|
104
|
+
| Agents IA | [agents-ia.md](../rules/agents-ia.md) | Alta | Reglas para agentes |
|
|
105
|
+
| Automations n8n | [automations-n8n.md](../rules/automations-n8n.md) | Media | n8n patterns |
|
|
106
|
+
| API Design | [api-design.md](../rules/api-design.md) | Media | Diseño de APIs |
|
|
107
|
+
| Security | [security.md](../rules/security.md) | Alta | Seguridad |
|
|
108
|
+
| Testing | [testing.md](../rules/testing.md) | Alta | Estrategias de testing |
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## ✅ Checklists (5 Niveles)
|
|
113
|
+
|
|
114
|
+
| Nivel | Archivo | Tiempo | Confirmación |
|
|
115
|
+
|-------|---------|--------|--------------|
|
|
116
|
+
| Level 0: Trivial | [level-0-trivial.md](../checklists/level-0-trivial.md) | <5 min | No |
|
|
117
|
+
| Level 1: Small | [level-1-small.md](../checklists/level-1-small.md) | 5-30 min | No |
|
|
118
|
+
| Level 2: Medium | [level-2-medium.md](../checklists/level-2-medium.md) | 30m-2h | Sí |
|
|
119
|
+
| Level 3: Complex | [level-3-complex.md](../checklists/level-3-complex.md) | 2-8h | Sí + Artefactos |
|
|
120
|
+
| Level 4: Enterprise | [level-4-enterprise.md](../checklists/level-4-enterprise.md) | 8h+ | Governance |
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 📄 Templates (SPEC DRIVEN)
|
|
125
|
+
|
|
126
|
+
| Template | Archivo | Cuándo Usar |
|
|
127
|
+
|----------|---------|-------------|
|
|
128
|
+
| **PROJECT_KICKOFF.md** | [PROJECT_KICKOFF.md](../templates/PROJECT_KICKOFF.md) | ⭐ **INICIO**: Entry point para proyectos nuevos |
|
|
129
|
+
| **spec.yaml** | [spec.yaml](../templates/spec.yaml) | Fase 1: Especificación |
|
|
130
|
+
| **plan.yaml** | [plan.yaml](../templates/plan.yaml) | Fase 2: Plan de implementación |
|
|
131
|
+
| **tasks.yaml** | [tasks.yaml](../templates/tasks.yaml) | Fase 3: Tasks ejecutables |
|
|
132
|
+
| **session.yaml** | [session.yaml](../templates/session.yaml) | Estado persistente del proyecto |
|
|
133
|
+
| **checkpoint.yaml** | [checkpoint.yaml](../templates/checkpoint.yaml) | Auto-backups de estado |
|
|
134
|
+
| Agent Python | [agent-python/](../templates/agent-python/) | Scaffold para agentes IA |
|
|
135
|
+
| Backend Python | [backend-python/](../templates/backend-python/) | Scaffold para backend FastAPI |
|
|
136
|
+
| Frontend React | [frontend-react/](../templates/frontend-react/) | Scaffold para frontend React |
|
|
137
|
+
| Database | [database/](../templates/database/) | Esquemas de DB |
|
|
138
|
+
|
|
139
|
+
**Flujo único**: `PROJECT_KICKOFF.md` → `spec.yaml` → `plan.yaml` → `tasks.yaml` → CODE
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## ⚙️ Configuration
|
|
144
|
+
|
|
145
|
+
| Config | Archivo | Descripción |
|
|
146
|
+
|--------|---------|-------------|
|
|
147
|
+
| Settings | [settings.yaml](../config/settings.yaml) | Configuración global |
|
|
148
|
+
| Levels | [levels.yaml](../config/levels.yaml) | Sistema de niveles |
|
|
149
|
+
| Tools | [tools.yaml](../config/tools.yaml) | Registry de herramientas |
|
|
150
|
+
| Tools Extended | [tools-extended.yaml](../config/tools-extended.yaml) | Tools adicionales |
|
|
151
|
+
| Commands | [commands.yaml](../config/commands.yaml) | Aliases de comandos |
|
|
152
|
+
| Models | [models.yaml](../config/models.yaml) | Configuración de LLMs |
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 🔍 "What to Read When..."
|
|
157
|
+
|
|
158
|
+
| Situación | Único Archivo a Leer |
|
|
159
|
+
|-----------|---------------------|
|
|
160
|
+
| **Proyecto nuevo (desde cero)** | `templates/PROJECT_KICKOFF.md` → completar → el agente hace el resto |
|
|
161
|
+
| **Proyecto existente + LMAgent** | `AGENTS.md` (entry point) |
|
|
162
|
+
| **Feature nuevo (L2+)** | Ejecutar `/spec [nombre]` |
|
|
163
|
+
| **Bug fix rápido** | `workflows/bugfix-backend.md` |
|
|
164
|
+
| **No sé qué persona usar** | Usar `/orch` (Orchestrator decide) |
|
|
165
|
+
|
|
166
|
+
### Flujo Único para Proyectos Nuevos
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
DESARROLLADOR AGENTE
|
|
170
|
+
──────────── ──────
|
|
171
|
+
│
|
|
172
|
+
▼
|
|
173
|
+
Crear PROJECT_KICKOFF.md
|
|
174
|
+
(5-10 minutos)
|
|
175
|
+
│
|
|
176
|
+
▼
|
|
177
|
+
Abrir en IDE ─────────────────────────────▶ Detecta PROJECT_KICKOFF.md
|
|
178
|
+
│
|
|
179
|
+
▼
|
|
180
|
+
Ejecuta /spec workflow
|
|
181
|
+
│
|
|
182
|
+
▼
|
|
183
|
+
spec.yaml (← Aprobación)
|
|
184
|
+
│
|
|
185
|
+
▼
|
|
186
|
+
plan.yaml (← Aprobación)
|
|
187
|
+
│
|
|
188
|
+
▼
|
|
189
|
+
tasks.yaml
|
|
190
|
+
│
|
|
191
|
+
▼
|
|
192
|
+
CÓDIGO + TESTS
|
|
193
|
+
│
|
|
194
|
+
▼
|
|
195
|
+
PROYECTO LISTO ✅
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 🗺️ Relationship Map
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
┌─────────────┐
|
|
204
|
+
│ AGENTS.md │ ← Main Entry Point
|
|
205
|
+
└──────┬──────┘
|
|
206
|
+
│
|
|
207
|
+
┌────────────────────┼────────────────────┐
|
|
208
|
+
│ │ │
|
|
209
|
+
▼ ▼ ▼
|
|
210
|
+
┌───────────┐ ┌───────────┐ ┌───────────┐
|
|
211
|
+
│ personas │ │ workflows │ │ rules │
|
|
212
|
+
│ (18) │ │ (13) │ │ (9) │
|
|
213
|
+
└─────┬─────┘ └─────┬─────┘ └─────┬─────┘
|
|
214
|
+
│ │ │
|
|
215
|
+
│ ┌──────┴──────┐ │
|
|
216
|
+
│ │ │ │
|
|
217
|
+
▼ ▼ ▼ ▼
|
|
218
|
+
┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐
|
|
219
|
+
│ templates │ │ checklists│ │ config │ │ docs │
|
|
220
|
+
│ (8) │ │ (5) │ │ (6) │ │ (4) │
|
|
221
|
+
└───────────┘ └───────────┘ └───────────┘ └───────────┘
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
*LMAgent Framework v3.0 (SPEC+LM)*
|
|
227
|
+
*Navigation Index - Updated 2026-01*
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Guía de Uso Completa de LMAgent
|
|
2
|
+
|
|
3
|
+
Esta guía detalla cómo sacar el máximo provecho al framework LMAgent en tu día a día.
|
|
4
|
+
|
|
5
|
+
## Flujo de Trabajo Mental
|
|
6
|
+
|
|
7
|
+
Cuando le pidas algo al agente, sigue este patrón mental para obtener los mejores resultados:
|
|
8
|
+
|
|
9
|
+
1. **¿QUIÉN debe hacerlo?** → Selecciona la Persona (`/dev`, `/pm`, `/arch`)
|
|
10
|
+
2. **¿QUÉ tan complejo es?** → Define el Nivel (0-4)
|
|
11
|
+
3. **¿CÓMO debe hacerlo?** → Selecciona un Workflow o Regla
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. Trabajando con Personas
|
|
16
|
+
|
|
17
|
+
Las personas no son solo "prompts"; son contextos completos con instrucciones específicas.
|
|
18
|
+
|
|
19
|
+
### Cómo activarlas
|
|
20
|
+
Simplemente menciónalas en el chat o usa su trigger:
|
|
21
|
+
|
|
22
|
+
> "Actúa como **/product-manager** para analizar este requerimiento."
|
|
23
|
+
> "Hola **/arch**, necesito diseñar un nuevo microservicio."
|
|
24
|
+
|
|
25
|
+
### Cuándo cambiar de persona
|
|
26
|
+
Es común cambiar de persona durante una tarea compleja:
|
|
27
|
+
|
|
28
|
+
1. **Inicio**: `/pm` analiza el pedido y crea User Stories.
|
|
29
|
+
2. **Diseño**: `/arch` revisa las stories y define la estructura de DB y API.
|
|
30
|
+
3. **Desarrollo**: `/dev` toma el diseño e implementa el código.
|
|
31
|
+
4. **Revisión**: `/qa` escribe los tests para validar el código.
|
|
32
|
+
5. **Prompting**: `/prompt` ajusta el system prompt del agente creado.
|
|
33
|
+
6. **Cierre**: `/tech-writer` actualiza la documentación.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 2. El Sistema de Niveles (The Thinking Process)
|
|
38
|
+
|
|
39
|
+
El error #1 de los agentes es "correr a escribir código" sin entender el problema. Los niveles fuerzan un momento de planificación.
|
|
40
|
+
|
|
41
|
+
### Tipos de Niveles
|
|
42
|
+
|
|
43
|
+
| Nivel | Cuándo usarlo | Comportamiento del Agente |
|
|
44
|
+
|-------|---------------|---------------------------|
|
|
45
|
+
| **L0 (Trivial)** | Typos, logs, fixes obvios de 1 línea | Ejecuta directo. Sin preámbulos. |
|
|
46
|
+
| **L1 (Small)** | Funciones pequeñas, tweaks de UI | Piensa brevemente, confirma, ejecuta. |
|
|
47
|
+
| **L2 (Medium)** | Features completos, endpoints nuevos | **STOP & PLAN**. Crea `implementation_plan.md`. Pide OK. |
|
|
48
|
+
| **L3 (Complex)** | Refactors grandes, integraciones | Plan extenso. Verifica impactos. Pide revisión de `/arch`. |
|
|
49
|
+
| **L4 (Enterprise)** | Migraciones, cambios críticos de seguridad | Plan paranoico. Plan de rollback. Múltiples confirmaciones. |
|
|
50
|
+
|
|
51
|
+
### Cómo usarlos
|
|
52
|
+
Dile al agente explícitamente o deja que él clasifique:
|
|
53
|
+
> "Esto es una tarea **Level 2**. Haz un plan primero."
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 3. Workflows: Autopistas al Éxito
|
|
58
|
+
|
|
59
|
+
Los workflows son "recetas" paso a paso para tareas comunes. Garantizan consistencia.
|
|
60
|
+
|
|
61
|
+
### Workflows más usados
|
|
62
|
+
|
|
63
|
+
- **/new-feature**: Para crear algo nuevo de punta a punta.
|
|
64
|
+
- **/fix**: Para debugging sistemático (no adivinar).
|
|
65
|
+
- **/refactor**: Para mejorar código sin romper nada.
|
|
66
|
+
- **/test**: Para generar estrategias de testing.
|
|
67
|
+
|
|
68
|
+
### Cómo invocarlos
|
|
69
|
+
> "Usa el workflow **/fix** para arreglar este error en producción."
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. Reglas y Documentación Continua
|
|
74
|
+
|
|
75
|
+
LMAgent tiene una "memoria muscular" basada en reglas.
|
|
76
|
+
|
|
77
|
+
### Reglas Globales (`.agent/rules/`)
|
|
78
|
+
Aplican a todos los proyectos. Ej: "Siempre usar English para nombres de variables".
|
|
79
|
+
|
|
80
|
+
### Reglas de Proyecto (`.agent/rules/project.md`)
|
|
81
|
+
Específicas de ESTE proyecto. Ej: "Los endpoints deben empezar con `/api/v1`".
|
|
82
|
+
|
|
83
|
+
### La Regla de Oro: Documentación Continua
|
|
84
|
+
Si el agente o tú descubren algo nuevo (un truco, un bug recurrente, una decisión de diseño), **DEBEN** escribirlo en una nueva regla o actualizar la documentación.
|
|
85
|
+
|
|
86
|
+
> "Agente, aprendimos que la librería X falla con Y. Crea una regla en `rules/tech-stack.md` para evitar esto en el futuro."
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 5. Artefactos (Tu Memoria Externa)
|
|
91
|
+
|
|
92
|
+
El agente usa archivos Markdown para mantener el contexto entre sesiones.
|
|
93
|
+
|
|
94
|
+
- **`task.md`**: El estado actual. Qué hicimos, qué falta.
|
|
95
|
+
- **`implementation_plan.md`**: El plan detallado (para L2+).
|
|
96
|
+
- **`tech_spec.md`**: Especificaciones técnicas complejas.
|
|
97
|
+
- **`walkthrough.md`**: Guía visual de lo que se construyó (al final).
|
|
98
|
+
|
|
99
|
+
**Tip**: Si el agente "olvida" algo, dile que lea los artefactos:
|
|
100
|
+
> "Lee `task.md` y dime qué sigue."
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## FAQ
|
|
105
|
+
|
|
106
|
+
**Q: El agente se queda atascado en un bucle.**
|
|
107
|
+
A: Dile "STOP". Pídele que revise sus últimos pasos, identifique el error y proponga un enfoque alternativo. Cambia a L2 para forzar planificación.
|
|
108
|
+
|
|
109
|
+
**Q: El agente ignora mis reglas.**
|
|
110
|
+
A: Recuérdaselo explícitamente: "Revisa `rules/code-style.md` antes de escribir código". Asegúrate que la regla sea clara y esté en la carpeta correcta.
|
|
111
|
+
|
|
112
|
+
**Q: ¿Puedo crear mis propias personas?**
|
|
113
|
+
A: ¡Sí! Crea un archivo `.md` en `.agent/personas/` siguiendo el formato de los existentes.
|