@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.
Files changed (155) hide show
  1. package/.editorconfig +18 -0
  2. package/AGENTS.md +169 -0
  3. package/CLAUDE.md +122 -0
  4. package/CONTRIBUTING.md +90 -0
  5. package/LICENSE +21 -0
  6. package/README.md +195 -0
  7. package/config/commands.yaml +194 -0
  8. package/config/levels.yaml +135 -0
  9. package/config/models.yaml +192 -0
  10. package/config/settings.yaml +405 -0
  11. package/config/tools-extended.yaml +534 -0
  12. package/config/tools.yaml +437 -0
  13. package/docs/assets/logo.png +0 -0
  14. package/docs/commands.md +132 -0
  15. package/docs/customization-guide.md +445 -0
  16. package/docs/getting-started.md +154 -0
  17. package/docs/how-to-start.md +242 -0
  18. package/docs/navigation-index.md +227 -0
  19. package/docs/usage-guide.md +113 -0
  20. package/install.js +1044 -0
  21. package/package.json +35 -0
  22. package/pyproject.toml +182 -0
  23. package/rules/_bootstrap.md +138 -0
  24. package/rules/agents-ia.md +607 -0
  25. package/rules/api-design.md +337 -0
  26. package/rules/automations-n8n.md +646 -0
  27. package/rules/code-style.md +570 -0
  28. package/rules/documentation.md +98 -0
  29. package/rules/security.md +316 -0
  30. package/rules/stack.md +395 -0
  31. package/rules/testing.md +326 -0
  32. package/rules/workflow.md +353 -0
  33. package/scripts/create_skill.js +300 -0
  34. package/scripts/validate_skills.js +283 -0
  35. package/skills/ai-agent-engineer/SKILL.md +394 -0
  36. package/skills/ai-agent-engineer/references/agent-patterns.md +149 -0
  37. package/skills/api-designer/SKILL.md +429 -0
  38. package/skills/api-designer/references/api-standards.md +13 -0
  39. package/skills/architect/SKILL.md +285 -0
  40. package/skills/architect/references/c4-model.md +133 -0
  41. package/skills/automation-engineer/SKILL.md +352 -0
  42. package/skills/automation-engineer/references/n8n-patterns.md +127 -0
  43. package/skills/backend-engineer/SKILL.md +261 -0
  44. package/skills/backend-engineer/assets/fastapi-project-structure.yaml +74 -0
  45. package/skills/backend-engineer/references/debugging-guide.md +174 -0
  46. package/skills/backend-engineer/references/design-patterns.md +208 -0
  47. package/skills/backend-engineer/scripts/scaffold_backend.py +313 -0
  48. package/skills/bmad-methodology/SKILL.md +202 -0
  49. package/skills/bmad-methodology/references/scale-adaptive-levels.md +141 -0
  50. package/skills/browser-agent/SKILL.md +502 -0
  51. package/skills/browser-agent/scripts/playwright_setup.ts +16 -0
  52. package/skills/code-reviewer/SKILL.md +306 -0
  53. package/skills/code-reviewer/references/code-review-checklist.md +16 -0
  54. package/skills/data-engineer/SKILL.md +474 -0
  55. package/skills/data-engineer/assets/pg-monitoring-queries.sql +154 -0
  56. package/skills/data-engineer/references/index-strategy.md +128 -0
  57. package/skills/data-engineer/scripts/backup_postgres.py +221 -0
  58. package/skills/devops-engineer/SKILL.md +547 -0
  59. package/skills/devops-engineer/references/ci-cd-patterns.md +265 -0
  60. package/skills/devops-engineer/scripts/docker_healthcheck.py +125 -0
  61. package/skills/document-generator/SKILL.md +746 -0
  62. package/skills/document-generator/references/pdf-generation.md +22 -0
  63. package/skills/frontend-engineer/SKILL.md +532 -0
  64. package/skills/frontend-engineer/references/accessibility-guide.md +146 -0
  65. package/skills/frontend-engineer/scripts/audit_bundle.py +144 -0
  66. package/skills/git-workflow/SKILL.md +374 -0
  67. package/skills/git-workflow/references/git-flow.md +25 -0
  68. package/skills/mcp-builder/SKILL.md +471 -0
  69. package/skills/mcp-builder/references/mcp-server-guide.md +23 -0
  70. package/skills/mobile-engineer/SKILL.md +502 -0
  71. package/skills/mobile-engineer/references/platform-guidelines.md +160 -0
  72. package/skills/orchestrator/SKILL.md +246 -0
  73. package/skills/orchestrator/references/methodology-routing.md +117 -0
  74. package/skills/orchestrator/references/persona-mapping.md +85 -0
  75. package/skills/orchestrator/references/routing-logic.md +110 -0
  76. package/skills/performance-engineer/SKILL.md +549 -0
  77. package/skills/performance-engineer/references/caching-patterns.md +181 -0
  78. package/skills/performance-engineer/scripts/profile_endpoint.py +170 -0
  79. package/skills/product-manager/SKILL.md +488 -0
  80. package/skills/product-manager/references/prioritization-frameworks.md +126 -0
  81. package/skills/prompt-engineer/SKILL.md +433 -0
  82. package/skills/prompt-engineer/references/prompt-patterns.md +158 -0
  83. package/skills/qa-engineer/SKILL.md +441 -0
  84. package/skills/qa-engineer/references/testing-strategy.md +166 -0
  85. package/skills/qa-engineer/scripts/run_coverage.py +147 -0
  86. package/skills/scrum-master/SKILL.md +225 -0
  87. package/skills/scrum-master/references/sprint-ceremonies.md +159 -0
  88. package/skills/security-analyst/SKILL.md +390 -0
  89. package/skills/security-analyst/references/owasp-top10.md +188 -0
  90. package/skills/security-analyst/scripts/audit_security.py +242 -0
  91. package/skills/seo-auditor/SKILL.md +523 -0
  92. package/skills/seo-auditor/references/seo-checklist.md +17 -0
  93. package/skills/spec-driven-dev/SKILL.md +342 -0
  94. package/skills/spec-driven-dev/references/phase-gates.md +107 -0
  95. package/skills/supabase-expert/SKILL.md +602 -0
  96. package/skills/supabase-expert/references/supabase-patterns.md +19 -0
  97. package/skills/swe-agent/SKILL.md +311 -0
  98. package/skills/swe-agent/references/trajectory-format.md +134 -0
  99. package/skills/systematic-debugger/SKILL.md +512 -0
  100. package/skills/systematic-debugger/references/debugging-guide.md +12 -0
  101. package/skills/tech-lead/SKILL.md +409 -0
  102. package/skills/tech-lead/references/code-review-checklist.md +111 -0
  103. package/skills/technical-writer/SKILL.md +631 -0
  104. package/skills/technical-writer/references/doc-templates.md +218 -0
  105. package/skills/testing-strategist/SKILL.md +476 -0
  106. package/skills/testing-strategist/references/testing-pyramid.md +16 -0
  107. package/skills/ux-ui-designer/SKILL.md +419 -0
  108. package/skills/ux-ui-designer/references/design-system-foundation.md +168 -0
  109. package/skills_overview.txt +94 -0
  110. package/templates/PROJECT_KICKOFF.md +284 -0
  111. package/templates/SKILL_TEMPLATE.md +131 -0
  112. package/templates/USAGE.md +95 -0
  113. package/templates/agent-python/README.md +71 -0
  114. package/templates/agent-python/agent.py +272 -0
  115. package/templates/agent-python/config.yaml +76 -0
  116. package/templates/agent-python/prompts/system.md +109 -0
  117. package/templates/agent-python/requirements.txt +7 -0
  118. package/templates/automation-n8n/README.md +14 -0
  119. package/templates/automation-n8n/webhook-handler.json +57 -0
  120. package/templates/backend-node/Dockerfile +12 -0
  121. package/templates/backend-node/README.md +15 -0
  122. package/templates/backend-node/package.json +30 -0
  123. package/templates/backend-node/src/index.ts +19 -0
  124. package/templates/backend-node/src/routes.ts +7 -0
  125. package/templates/backend-node/tsconfig.json +22 -0
  126. package/templates/backend-python/Dockerfile +11 -0
  127. package/templates/backend-python/README.md +78 -0
  128. package/templates/backend-python/app/core/config.py +12 -0
  129. package/templates/backend-python/app/core/database.py +12 -0
  130. package/templates/backend-python/app/main.py +17 -0
  131. package/templates/backend-python/app/routers/__init__.py +1 -0
  132. package/templates/backend-python/app/routers/health.py +7 -0
  133. package/templates/backend-python/requirements-dev.txt +6 -0
  134. package/templates/backend-python/requirements.txt +4 -0
  135. package/templates/backend-python/tests/test_health.py +9 -0
  136. package/templates/checkpoint.yaml +117 -0
  137. package/templates/database/README.md +474 -0
  138. package/templates/frontend-react/README.md +446 -0
  139. package/templates/plan.yaml +320 -0
  140. package/templates/session.yaml +125 -0
  141. package/templates/spec.yaml +229 -0
  142. package/templates/tasks.yaml +330 -0
  143. package/workflows/bugfix-backend.md +380 -0
  144. package/workflows/documentation.md +232 -0
  145. package/workflows/generate-prd.md +320 -0
  146. package/workflows/ideation.md +396 -0
  147. package/workflows/new-agent-ia.md +497 -0
  148. package/workflows/new-automation.md +374 -0
  149. package/workflows/new-feature.md +290 -0
  150. package/workflows/optimize-performance.md +373 -0
  151. package/workflows/resolve-github-issue.md +524 -0
  152. package/workflows/security-review.md +291 -0
  153. package/workflows/spec-driven.md +476 -0
  154. package/workflows/testing-strategy.md +296 -0
  155. package/workflows/third-party-integration.md +277 -0
package/.editorconfig ADDED
@@ -0,0 +1,18 @@
1
+ # EditorConfig helps maintain consistent coding styles
2
+ # https://editorconfig.org
3
+
4
+ root = true
5
+
6
+ [*]
7
+ charset = utf-8
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+ indent_style = space
12
+ indent_size = 2
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
16
+
17
+ [*.py]
18
+ indent_size = 4
package/AGENTS.md ADDED
@@ -0,0 +1,169 @@
1
+ # 🤖 LMAgent Intelligence Catalog
2
+
3
+ > Catálogo completo de capacidades del ecosistema **LMAgent v2.5.0**.
4
+ > Última actualización: 2026-02-11
5
+
6
+ ---
7
+
8
+ ## 🏗️ 1. Skills (Capacidades Ejecutables)
9
+ *Ubicación: `skills/`*
10
+
11
+ Skills son unidades especializadas que definen el comportamiento del agente para dominios específicos. Cada skill contiene:
12
+
13
+ ```
14
+ skills/{skill-name}/
15
+ ├── SKILL.md # Instrucciones, system prompt, checklists
16
+ ├── scripts/ # Scripts Python ejecutables
17
+ ├── references/ # Documentos de referencia (guías, patrones)
18
+ └── assets/ # Archivos de datos (YAML, SQL, templates)
19
+ ```
20
+
21
+ ### 🎯 Meta-Skill
22
+
23
+ | Skill | Triggers | Descripción |
24
+ |-------|----------|-------------|
25
+ | **orchestrator** | `/orch`, `/start` | Meta-agent que clasifica tareas, selecciona el skill apropiado y enruta al workflow correcto |
26
+
27
+ ### 🔧 Engineering
28
+
29
+ | Skill | Triggers | Descripción | Extras |
30
+ |-------|----------|-------------|--------|
31
+ | **backend-engineer** | `/dev`, `/backend`, `/api`, `/fix` | APIs, lógica de negocio, bases de datos (FastAPI, NestJS) | **Uso:** Implementación código. **Vs API Designer:** Backend codifica; Designer define contrato. |
32
+ | **frontend-engineer** | `/front`, `/ui`, `/react` | React, Next.js, interfaces web, accesibilidad | `scripts/audit_bundle.py`, `references/accessibility-guide.md` |
33
+ | **mobile-engineer** | `/mobile`, `/rn`, `/ios`, `/android` | React Native, Expo, iOS/Android | `references/platform-guidelines.md` |
34
+ | **data-engineer** | `/data`, `/db`, `/sql`, `/etl` | PostgreSQL, ETL, migraciones, índices | `scripts/backup_postgres.py`, `references/index-strategy.md`, `assets/pg-monitoring-queries.sql` |
35
+ | **devops-engineer** | `/devops`, `/infra`, `/deploy`, `/docker` | CI/CD, Docker, Kubernetes, Terraform | `scripts/docker_healthcheck.py`, `references/ci-cd-patterns.md` |
36
+ | **performance-engineer** | `/perf`, `/slow`, `/optimize`, `/load` | Profiling, caching, load testing | `scripts/profile_endpoint.py`, `references/caching-patterns.md` |
37
+ | **security-analyst** | `/sec`, `/audit`, `/auth` | OWASP, auditoría de código, vulnerabilidades | `scripts/audit_security.py`, `references/owasp-top10.md` |
38
+ | **qa-engineer** | `/qa`, `/test`, `/bug` | Testing, cobertura, E2E (Playwright, pytest, jest) | **Uso:** Ejecución de tests. **Vs Strategist:** QA escribe/corre code; Strategist define plan. |
39
+ | **code-reviewer** | `/review`, `/critique` | Análisis estático, logic verification, clean code | `references/code-review-checklist.md` |
40
+ | **systematic-debugger** | `/debug`, `/fix` | Debugging metódico, root cause analysis | **Uso:** Análisis profundo manual. **Vs SWE:** Debugger diagnostica; SWE resuelve autónomamente. |
41
+ | **api-designer** | `/api-design`, `/openapi` | Diseño de contratos API, REST/GraphQL | `references/api-standards.md` |
42
+ | **supabase-expert** | `/supabase`, `/rls` | Backend as a Service, Auth, DB, Edge Functions | `references/supabase-patterns.md` |
43
+ | **git-workflow** | `/git`, `/commit` | Gestión de ramas, conventional commits, PRs | `references/git-flow.md` |
44
+ | **browser-agent** | `/browser`, `/scrape` | Automatización web, scraping, testing UI | `scripts/playwright_setup.ts` |
45
+ | **seo-auditor** | `/seo`, `/audit` | Auditoría técnica SEO, Core Web Vitals, accesibilidad | `references/seo-checklist.md` |
46
+
47
+ ### 🤖 AI & Automation
48
+
49
+ | Skill | Triggers | Descripción | Extras |
50
+ |-------|----------|-------------|--------|
51
+ | **ai-agent-engineer** | `/agent`, `/mcp`, `/tool` | Agentes IA, MCP servers, tool-use, RAG | `references/agent-patterns.md` |
52
+ | **automation-engineer** | `/auto`, `/n8n`, `/webhook` | n8n workflows, automatizaciones, webhooks | `references/n8n-patterns.md` |
53
+ | **prompt-engineer** | `/prompt`, `/cot`, `/llm` | Optimización de prompts, evaluación, few-shot | `references/prompt-patterns.md` |
54
+ | **mcp-builder** | `/mcp`, `/server` | Construcción de servidores MCP y herramientas | `references/mcp-server-guide.md` |
55
+ | **document-generator** | `/pdf`, `/docx` | Generación de reportes y documentos programáticos | `references/pdf-generation.md` |
56
+
57
+ ### 📋 Management & Process
58
+
59
+ | Skill | Triggers | Descripción | Extras |
60
+ |-------|----------|-------------|--------|
61
+ | **product-manager** | `/pm`, `/product`, `/prd` | PRD, user stories, roadmap, priorización | `references/prioritization-frameworks.md` |
62
+ | **architect** | `/arch`, `/design`, `/system` | Diseño de sistemas, C4, ADRs, NFRs | `references/c4-model.md` |
63
+ | **tech-lead** | `/tl`, `/review`, `/adr`, `/debt` | Code review, decisiones técnicas, mentoring | `references/code-review-checklist.md` |
64
+ | **scrum-master** | `/sm`, `/agile`, `/coach` | Ceremonias Scrum, sprints, retrospectivas | `references/sprint-ceremonies.md` |
65
+ | **technical-writer** | `/doc`, `/readme`, `/guide` | Documentación, API refs, guías de usuario | `references/doc-templates.md` |
66
+ | **ux-ui-designer** | `/ux`, `/ui`, `/design` | Design systems, UX research, accesibilidad | `references/design-system-foundation.md` |
67
+ | **testing-strategist** | `/test-plan`, `/strategy` | Pirámide de testing, planificación y estrategia de QA | **Uso:** Definición de estrategia. **Vs QA:** Strategist piensa el 'qué'; QA ejecuta el 'cómo'. |
68
+
69
+ ### 📐 Methodologies
70
+
71
+ | Skill | Triggers | Descripción | Extras |
72
+ |-------|----------|-------------|--------|
73
+ | **bmad-methodology** | `/bmad` | Scale-Adaptive Intelligence, niveles 0-4, kickoff | `references/scale-adaptive-levels.md` |
74
+ | **swe-agent** | `/swe`, `/issue-solve`, `/trajectory` | Resolución autónoma de issues, Edit-Lint-Test loops | `references/trajectory-format.md` |
75
+ | **spec-driven-dev** | `/spec-dev`, `/sdd-skill`, `/spec-method` | Pipeline: SPECIFY → PLAN → TASKS → IMPLEMENT → VERIFY | `references/phase-gates.md` |
76
+
77
+ ---
78
+
79
+ ## 📜 2. Rules (Guardrails de Comportamiento)
80
+ *Ubicación: `rules/`*
81
+
82
+ Rules definen **CÓMO** debe comportarse el agente. Son restricciones y estándares que aplican siempre.
83
+
84
+ | Rule File | Propósito |
85
+ |-----------|----------|
86
+ | **agents-ia.md** | Directrices core para construir agentes IA (Tool-first, Stateless, Observable) |
87
+ | **api-design.md** | Estándares REST/GraphQL, error handling, versionado |
88
+ | **automations-n8n.md** | Best practices para workflows n8n robustos |
89
+ | **code-style.md** | Linter, naming conventions, estructura de proyecto |
90
+ | **documentation.md** | Estándares para comentarios, READMEs, ADRs. **⚠️ Regla de documentación continua** |
91
+ | **security.md** | **Crítica**: Validación de inputs, gestión de secretos, OWASP Top 10 |
92
+ | **stack.md** | Stack tecnológico aprobado y librerías autorizadas |
93
+ | **testing.md** | TDD obligatorio, requisitos de cobertura |
94
+ | **workflow.md** | Git flow, convenciones de commits, contribución |
95
+
96
+ ---
97
+
98
+ ## ⚡ 3. Workflows (Procedimientos Operativos)
99
+ *Ubicación: `workflows/`*
100
+
101
+ Workflows son **SOPs (Standard Operating Procedures)** que guían al agente en procesos complejos multi-paso.
102
+
103
+ | Workflow | Propósito |
104
+ |----------|----------|
105
+ | **bugfix-backend.md** | Protocolo para diagnosticar, corregir y verificar bugs de backend |
106
+ | **documentation.md** | Guía para actualizar y mantener la documentación del proyecto |
107
+ | **generate-prd.md** | Template e instrucciones para crear Product Requirement Documents |
108
+ | **ideation.md** | Proceso de brainstorming para nuevas features o productos |
109
+ | **new-agent-ia.md** | Guía end-to-end para crear un nuevo agente IA desde cero |
110
+ | **new-automation.md** | Pasos para diseñar y desplegar una nueva automatización (n8n/script) |
111
+ | **new-feature.md** | Flujo estándar: Ticket → Design → Implementation → Test → PR |
112
+ | **optimize-performance.md** | Enfoque sistemático para identificar y corregir bottlenecks |
113
+ | **resolve-github-issue.md** | Flujo estándar para resolver GitHub Issues de forma autónoma |
114
+ | **security-review.md** | Checklist para auditorías de seguridad pre-deployment |
115
+ | **spec-driven.md** | Metodología de desarrollo basada en especificaciones (Spec-First) |
116
+ | **testing-strategy.md** | Definir la pirámide de testing y estrategia para una feature |
117
+ | **third-party-integration.md** | Guía para integrar APIs y SDKs de terceros de forma segura |
118
+
119
+ ---
120
+
121
+ ## 🔧 4. Config (Configuración)
122
+ *Ubicación: `config/`*
123
+
124
+ | Archivo | Propósito |
125
+ |---------|----------|
126
+ | **settings.yaml** | Configuración global del framework (niveles, idioma, autonomía) |
127
+ | **levels.yaml** | Definición de los niveles de complejidad (0-4) |
128
+ | **models.yaml** | Configuración de modelos LLM (providers, fallbacks, costos) |
129
+ | **tools.yaml** | Registry de herramientas disponibles |
130
+ | **tools-extended.yaml** | Herramientas extendidas (database, sandbox, etc.) |
131
+ | **commands.yaml** | Comandos CLI del framework |
132
+
133
+ ---
134
+
135
+ ## 📦 5. Templates (Plantillas de Proyecto)
136
+ *Ubicación: `templates/`*
137
+
138
+ 👉 **[Ver Guía de Uso de Templates](templates/USAGE.md)**
139
+
140
+ | Template | Descripción |
141
+ |----------|-------------|
142
+ | **backend-python/** | FastAPI backend con SQLModel |
143
+ | **agent-python/** | Agente IA basado en Python |
144
+ | **frontend-react/** | Frontend React (template base) |
145
+ | **database/** | Esquema base de PostgreSQL |
146
+ | **PROJECT_KICKOFF.md** | Template de kickoff de proyecto |
147
+ | **spec.yaml** | Template de especificaciones |
148
+ | **plan.yaml** | Template de plan |
149
+ | **tasks.yaml** | Template de tareas |
150
+ | **session.yaml** | Template de sesión |
151
+ | **checkpoint.yaml** | Template de checkpoint |
152
+
153
+ ---
154
+
155
+ ## 💾 Installation
156
+
157
+ ```bash
158
+ npx lmagent install
159
+ ```
160
+
161
+ Para desarrollo local:
162
+
163
+ ```bash
164
+ git clone https://github.com/QuBit/lmagent.git
165
+ cd lmagent
166
+ npm install
167
+ npm link
168
+ lmagent install
169
+ ```
package/CLAUDE.md ADDED
@@ -0,0 +1,122 @@
1
+ # LMAgent Framework v2.5.0 - Claude Code Instructions
2
+
3
+ > [!IMPORTANT]
4
+ > **ANTES DE HACER CUALQUIER COSA**: Este proyecto usa el framework **LMAgent v2.5.0**.
5
+ > **DEBES** leer `AGENTS.md` y `rules/_bootstrap.md` antes de implementar cualquier cambio.
6
+
7
+ ## Framework
8
+
9
+ Estás trabajando con **LMAgent v2.5.0**, un framework para desarrollo de automatizaciones y agentes de IA. Organiza las capacidades del agente en tres pilares: **Skills**, **Rules** y **Workflows**.
10
+
11
+ ## ⚡ Inicio Rápido
12
+
13
+ 1. Lee `rules/_bootstrap.md` — **Entry point del framework** (startup check, 31 skills con triggers, reglas críticas)
14
+ 2. Lee `AGENTS.md` — Catálogo completo de skills, rules y workflows
15
+ 3. Lee las rules aplicables en `rules/`
16
+
17
+ ## 🚀 STARTUP CHECK (Auto-Start)
18
+
19
+ > **¿Existe `PROJECT_KICKOFF.md`?**
20
+ > Si SÍ → Activa el skill **product-manager** (`/pm`) y ejecuta el workflow **SPEC DRIVEN**.
21
+
22
+ ## ⚠️ REGLA CRÍTICA: Documentación Continua
23
+
24
+ > **SIEMPRE** actualiza la documentación al hacer cambios significativos.
25
+ > Ver: `rules/documentation.md` para detalles completos.
26
+
27
+ **Al terminar cada tarea:**
28
+ - ¿Creé algo nuevo? → Documentar
29
+ - ¿Cambié un patrón? → Actualizar reglas
30
+ - ¿Resolví un problema complejo? → Agregar notas
31
+
32
+ ## 📂 Documentos Clave
33
+
34
+ | Documento | Propósito |
35
+ |-----------|----------|
36
+ | `rules/_bootstrap.md` | ⭐ Entry point: startup, skills, reglas críticas |
37
+ | `AGENTS.md` | Catálogo completo de capacidades |
38
+ | `config/settings.yaml` | Configuración del framework |
39
+ | `rules/` | Guardrails de comportamiento (ver abajo) |
40
+ | `skills/` | 31 skills con `SKILL.md` + `scripts/` + `references/` + `assets/` |
41
+ | `workflows/` | 13 procedimientos operativos |
42
+ | `templates/` | Templates de proyecto reutilizables |
43
+
44
+ ## 📜 Rules (Guardrails)
45
+
46
+ Cada rule define **CÓMO** debe comportarse el agente. Son restricciones y estándares que aplican siempre:
47
+
48
+ | Rule | Propósito |
49
+ |------|----------|
50
+ | **_bootstrap.md** | ⭐ Entry point: startup, skills, reglas críticas |
51
+ | **agents-ia.md** | Directrices para construir agentes IA (Tool-first, Stateless, Observable) |
52
+ | **api-design.md** | Estándares REST/GraphQL, error handling, versionado |
53
+ | **automations-n8n.md** | Best practices para workflows n8n robustos |
54
+ | **code-style.md** | Linter, naming conventions, estructura de proyecto |
55
+ | **documentation.md** | ⚠️ Documentación continua, READMEs, ADRs |
56
+ | **security.md** | Validación de inputs, gestión de secretos, OWASP Top 10 |
57
+ | **stack.md** | Stack tecnológico aprobado y librerías autorizadas |
58
+ | **testing.md** | TDD obligatorio, requisitos de cobertura |
59
+ | **workflow.md** | Git flow, niveles de complejidad, flujo de trabajo |
60
+
61
+ ## 🎯 Sistema de Niveles
62
+
63
+ | Nivel | Nombre | Tiempo | Acción |
64
+ |-------|--------|--------|--------|
65
+ | 0 | Trivial | < 5 min | Implementar directamente |
66
+ | 1 | Small | 5-30 min | Planear brevemente |
67
+ | 2 | Medium | 30m-2h | Plan + confirmación |
68
+ | 3 | Complex | 2-8h | Plan extenso + artefactos |
69
+ | 4 | Enterprise | 8h+ | Múltiples aprobaciones |
70
+
71
+ ## 🛠️ Stack Principal
72
+
73
+ ### Backend
74
+ - **Python**: FastAPI, SQLModel, Pydantic, Uvicorn
75
+ - **Node.js**: NestJS, Express, Prisma, TypeScript
76
+
77
+ ### Frontend & Mobile
78
+ - **Web**: React, Next.js
79
+ - **Mobile**: React Native, Expo
80
+
81
+ ### AI & Agents
82
+ - **Frameworks**: LangGraph, LangChain
83
+ - **LLM Providers**: OpenAI (GPT-4o), Anthropic (Claude), Google (Gemini)
84
+ - **Tools**: MCP Servers, Tool-use patterns
85
+
86
+ ### Data & Infrastructure
87
+ - **Base de datos**: PostgreSQL, Redis
88
+ - **Automatización**: n8n
89
+ - **Infraestructura**: Docker, Docker Compose, Dokploy
90
+ - **CI/CD**: GitHub Actions
91
+
92
+ ## 🔄 Flujo de Trabajo
93
+
94
+ 1. **Entender** - Leer AGENTS.md y reglas aplicables
95
+ 2. **Clasificar** - Determinar nivel de complejidad (0-4)
96
+ 3. **Planear** - Crear plan (Level 2+)
97
+ 4. **Activar Skill** - Cargar el skill apropiado según la tarea
98
+ 5. **Implementar** - Seguir patrones establecidos
99
+ 6. **Validar** - Tests y verificaciones
100
+ 7. **Documentar** - ⚠️ **ACTUALIZAR DOCS SI HAY CAMBIOS**
101
+
102
+ ## ✨ Reglas de Oro
103
+
104
+ 1. 📖 Siempre leer AGENTS.md primero
105
+ 2. 🧠 Activar el skill apropiado para la tarea
106
+ 3. 🎯 Clasificar correctamente el nivel (0-4)
107
+ 4. 📝 Planear antes de implementar (Level 2+)
108
+ 5. ✅ Tests para todo código nuevo
109
+ 6. 📐 Seguir patrones existentes
110
+ 7. 🔄 Commits pequeños y descriptivos
111
+ 8. 📚 **Documentar cambios significativos** ← Crítico
112
+ 9. 🔒 Nunca hardcodear secretos — variables de entorno
113
+ 10. ❓ Si hay duda, preguntar
114
+
115
+ ## CLI del Framework
116
+
117
+ ```bash
118
+ lmagent init # Inicializar proyecto (copia CLAUDE.md, AGENTS.md, config)
119
+ lmagent install # Instalar skills, rules y workflows en el IDE
120
+ lmagent doctor # Verificar configuración
121
+ lmagent version # Mostrar versión
122
+ ```
@@ -0,0 +1,90 @@
1
+ # Contributing directly to LMAgent
2
+
3
+ ¡Gracias por tu interés en contribuir a LMAgent! 🚀
4
+
5
+ Este documento define el proceso para contribuir código, documentación o reportar issues.
6
+
7
+ ## Código de Conducta
8
+
9
+ Este proyecto se rige por un Código de Conducta estándar. Al participar, se espera que mantengas un ambiente respetuoso y colaborativo.
10
+
11
+ ## ¿Cómo Contribuir?
12
+
13
+ ### 1. Reportar Bugs
14
+ - Abre un Issue en GitHub.
15
+ - Usa el template de **Bug Report**.
16
+ - Incluye pasos para reproducir, logs y screenshots.
17
+
18
+ ### 2. Sugerir Features
19
+ - Abre un Issue en GitHub con la etiqueta `enhancement`.
20
+ - Explica el "por qué" y el caso de uso.
21
+ - Si es posible, describe la solución técnica propuesta.
22
+
23
+ ### 3. Pull Requests (PRs)
24
+
25
+ #### Proceso
26
+ 1. Haz un Fork del repositorio.
27
+ 2. Crea una rama para tu feature: `git checkout -b feature/mi-nueva-feature`
28
+ 3. Implementa tus cambios siguiendo las reglas del proyecto.
29
+ 4. Asegúrate de pasar todos los tests: `pytest`
30
+ 5. Haz commit con mensajes descriptivos: `feat: agrega soporte para anthropic`
31
+ 6. Push a tu rama: `git push origin feature/mi-nueva-feature`
32
+ 7. Abre un Pull Request hacia `main`.
33
+
34
+ #### Checklist para PRs
35
+ - [ ] ¿Actualizaste la documentación?
36
+ - [ ] ¿Agregaste tests para tu código?
37
+ - [ ] ¿Pasaste el linter (`ruff check .`)?
38
+ - [ ] ¿Cumple con las reglas en `rules/`?
39
+
40
+ ## Estilo de Código
41
+
42
+ Respetamos estrictamente:
43
+ - **Python**: PEP 8, Type Hints (mypy strict), Ruff para linting/formatting.
44
+ - **Commit Messages**: Conventional Commits (`feat:`, `fix:`, `docs:`, etc).
45
+ - **Documentación**: Markdown claro y conciso.
46
+
47
+ ## Estructura del Proyecto
48
+
49
+ - `install.js`: CLI principal (Node.js) — comandos `init`, `install`, `update`, `doctor`.
50
+ - `skills/`: Definiciones de skills/roles (`SKILL.md` + `scripts/`, `references/`, `assets/`).
51
+ - `workflows/`: Definiciones de flujos operativos (.md).
52
+ - `rules/`: Reglas de comportamiento del agente (.md).
53
+ - `config/`: Archivos YAML de configuración.
54
+ - `templates/`: Plantillas de proyecto reutilizables.
55
+ - `docs/`: Documentación extendida.
56
+
57
+ ## Desarrollo Local
58
+
59
+ ### Prerrequisitos
60
+ - Node.js >= 18
61
+ - Python >= 3.10 (para ejecutar scripts de skills)
62
+
63
+ ### Setup del CLI (Node.js)
64
+
65
+ ```bash
66
+ # 1. Instalar dependencias
67
+ npm install
68
+
69
+ # 2. Linkear globalmente para desarrollo
70
+ npm link
71
+
72
+ # 3. Probar cambios
73
+ lmagent doctor
74
+ ```
75
+
76
+ ### Desarrollo de Skills (Python)
77
+
78
+ Si estás creando o modificando scripts Python dentro de `skills/`:
79
+
80
+ ```bash
81
+ # Instalar dependencias de skills (opcional, recomendado usar venv)
82
+ pip install -r skills/{skill-name}/requirements.txt
83
+ ```
84
+
85
+ ### Linting & Formatting
86
+
87
+ - **JavaScript**: Eslint/Prettier (vía `npm test` si configurado)
88
+ - **Python**: `ruff check .` (para scripts en `skills/`)
89
+
90
+ ¡Gracias por ayudar a hacer LMAgent mejor!
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Leandro Martín Alvarez (QuBiit)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,195 @@
1
+ # 🧠 LMAgent: The Universal AI Agent Runtime
2
+
3
+ ```text
4
+ ██╗ ███╗ ███╗ █████╗ ██████╗ ███████╗███╗ ██╗████████╗
5
+ ██║ ████╗ ████║██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝
6
+ ██║ ██╔████╔██║███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║
7
+ ██║ ██║╚██╔╝██║██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║
8
+ ███████╗██║ ╚═╝ ██║██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║
9
+ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝
10
+ by QuBit
11
+ ```
12
+
13
+ ![Version](https://img.shields.io/badge/Version-2.5.0-purple?style=for-the-badge) ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge) ![Agentic](https://img.shields.io/badge/AI-Agentic_Workflow-cyan?style=for-the-badge)
14
+
15
+ > **"Separate the reasoning from the execution."**
16
+ > LMAgent is the foundational runtime that empowers your AI Agents with standardized **Skills**, **Rules**, and **Workflows** across any IDE (Cursor, Windsurf, VSCode, Zed, Qodo).
17
+
18
+ ---
19
+
20
+ ## 🚀 Quick Start Guide
21
+
22
+ Get your agent infrastructure up and running in less than 2 minutes.
23
+
24
+ ### Option A: Direct Execution (No Install)
25
+ The fastest way to enhance your current project.
26
+
27
+ ```bash
28
+ # Initialize project (copies CLAUDE.md, AGENTS.md, config, etc.)
29
+ npx lmagent init
30
+
31
+ # Install skills, rules & workflows into your IDE
32
+ npx lmagent install
33
+
34
+ # Verify everything is correctly configured
35
+ npx lmagent doctor
36
+ ```
37
+
38
+ ### Option B: Local Development Setup
39
+ If you want to contribute or fork the project:
40
+
41
+ 1. **Clone the Repository**
42
+ ```bash
43
+ git clone https://github.com/QuBit/lmagent.git
44
+ cd lmagent
45
+ ```
46
+
47
+ 2. **Install Dependencies**
48
+ ```bash
49
+ npm install
50
+ ```
51
+
52
+ 3. **Link Globally**
53
+ ```bash
54
+ npm link
55
+ lmagent install
56
+ ```
57
+
58
+ ---
59
+
60
+ ## 🏛️ The 3-Pillar Architecture
61
+
62
+ LMAgent organizes AI capabilities into three distinct pillars, enforcing a clear separation of concerns.
63
+
64
+ ```mermaid
65
+ graph TD
66
+ A["🤖 AI Agent"] --> B("🛠️ Skills")
67
+ A --> C("📜 Rules")
68
+ A --> D("⚡ Workflows")
69
+
70
+ B --> B1["{ide}/skills/"]
71
+ B --> B2["Executable Tools & Scripts"]
72
+
73
+ C --> C1["{ide}/rules/"]
74
+ C --> C2["Behavioral Guardrails & Context"]
75
+
76
+ D --> D1["{ide}/workflows/"]
77
+ D --> D2["Standard Operating Procedures (SOPs)"]
78
+ ```
79
+
80
+ ### 1. 🛠️ Skills (Capabilities)
81
+ *Executable units that allow the Agent to interact with the world.*
82
+ **Location:** `{ide}/skills/` or `~/.agents/skills/`
83
+
84
+ | Skill Name | Description | Tools Included |
85
+ | :--- | :--- | :--- |
86
+ | **ai-agent-engineer** | Expert in building LLM-based systems & MCP servers. | `create-agent`, `scaffold-mcp` |
87
+ | **architect** | System design, scalable patterns, cloud infrastructure. | `design-system`, `review-architecture` |
88
+ | **automation-engineer** | n8n workflows, Zapier integration, scripting. | `deploy-n8n`, `check-webhook` |
89
+ | **backend-engineer** | API design, Database schema, Authentication. | `scaffold-api`, `optimize-query` |
90
+ | **data-engineer** | ETL pipelines, SQL optimization, Data warehousing. | `analyze-schema`, `run-migration` |
91
+ | **devops-engineer** | CI/CD, Docker, Kubernetes, Terraform. | `docker-build`, `k8s-deploy` |
92
+ | **frontend-engineer** | React, Next.js, Tailwind, State Management. | `scaffold-component`, `check-accessibility` |
93
+ | **mobile-engineer** | React Native, Expo, iOS/Android build pipelines. | `build-ios`, `debug-android` |
94
+ | **orchestrator** | High-level task planning and agent coordination. | `plan-task`, `delegate-subtask` |
95
+ | **performance-engineer** | Profiling, load testing, optimization. | `run-lighthouse`, `profile-memory` |
96
+ | **product-manager** | PRD generation, user stories, roadmap planning. | `generate-user-story`, `prioritize-backlog` |
97
+ | **prompt-engineer** | Optimizing system prompts and LLM interactions. | `optimize-prompt`, `eval-prompt` |
98
+ | **qa-engineer** | E2E testing (Playwright), Unit tests, QA strategy. | `run-playwright`, `generate-test-plan` |
99
+ | **scrum-master** | Agile ceremonies, sprint planning, retrospective. | `start-sprint`, `generate-retro` |
100
+ | **security-analyst** | Vulnerability scanning, code auditing, OWASP. | `scan-vulnerabilities`, `audit-code` |
101
+ | **tech-lead** | Code review, technical decision making, mentoring. | `review-pr`, `enforce-standards` |
102
+ | **technical-writer** | Documentation, API refs, user guides. | `generate-docs`, `update-readme` |
103
+ | **ux-ui-designer** | Design systems, user flow, prototyping. | `analyze-ux`, `generate-palette` |
104
+ | **bmad-methodology** | Scale-Adaptive Intelligence, project kickoff, complexity classification. | `classify-level`, `kickoff-project` |
105
+ | **swe-agent** | Autonomous issue resolution, trajectory logging, Edit-Lint-Test loops. | `resolve-issue`, `trajectory-log` |
106
+ | **spec-driven-dev** | Spec-first development pipeline: SPECIFY → PLAN → TASKS → IMPLEMENT → VERIFY. | `create-spec`, `validate-spec` |
107
+
108
+
109
+ ### 2. 📜 Rules (Context & Guardrails)
110
+ *Constraints and guidelines that shape Agent behavior.*
111
+ **Location:** `{ide}/rules/` or `~/.agents/rules/`
112
+
113
+ | Rule File | Description |
114
+ | :--- | :--- |
115
+ | **_bootstrap.md** | ⭐ **Entry point**: Startup check, skill activation, critical rules for ALL IDEs. |
116
+ | **agents-ia.md** | Core guidelines for building AI Agents (Tool-first, Stateless, Observable). |
117
+ | **api-design.md** | REST/GraphQL standards, error handling, versioning best practices. |
118
+ | **automations-n8n.md** | Best practices for building robust n8n workflows. |
119
+ | **code-style.md** | Linter configuration, naming conventions, project structure. |
120
+ | **documentation.md** | Standards for code comments, READMEs, and architectural decision records (ADRs). |
121
+ | **security.md** | **Critical**: Input validation, secret management, OWASP Top 10 prevention. |
122
+ | **stack.md** | Approved technology stack and library choices for the project. |
123
+ | **testing.md** | Mandatory Test-Driven Development (TDD) workflows and coverage requirements. |
124
+ | **workflow.md** | General git flow and contribution guidelines. |
125
+
126
+
127
+ ### 3. ⚡ Workflows (SOPs)
128
+ *Step-by-step guides for complex tasks.*
129
+ **Location:** `{ide}/workflows/` or `~/.agents/workflows/`
130
+
131
+ | Workflow Name | Purpose |
132
+ | :--- | :--- |
133
+ | **bugfix-backend.md** | Protocol for diagnosing, fixing, and verifying server-side bugs. |
134
+ | **documentation.md** | Guide for updating and maintaining project documentation. |
135
+ | **generate-prd.md** | Template and instructions for creating Product Requirement Documents. |
136
+ | **ideation.md** | Brainstorming process for new features or products. |
137
+ | **new-agent-ia.md** | End-to-end guide for creating a new AI Agent from scratch. |
138
+ | **new-automation.md** | Steps to design and deploy a new automation (n8n/script). |
139
+ | **new-feature.md** | Standard flow: Ticket -> Design -> Implementation -> Test -> PR. |
140
+ | **optimize-performance.md** | Systematic approach to identifying and fixing bottlenecks. |
141
+ | **resolve-github-issue.md** | Standard flow for addressing GitHub Issues. |
142
+ | **security-review.md** | Checklist for pre-deployment security audits. |
143
+ | **spec-driven.md** | Development methodology based on detailed specifications (Spec-First). |
144
+ | **testing-strategy.md** | Defining the testing pyramid and strategy for a feature. |
145
+ | **third-party-integration.md** | Guide for securely integrating external APIs and SDKs. |
146
+
147
+ ---
148
+
149
+ ## 💎 Features & IDE Support
150
+
151
+ ### 🌍 Centralized "Brain" (`~/.agents`)
152
+ LMAgent creates a **Single Source of Truth** in your home directory.
153
+ * **Update Once, Reflect Everywhere**: Modify a rule in `~/.agents/rules/code-style.md`, and *every project* using Symlinks updates instantly.
154
+ * **Zero-Copy Efficiency**: No more valid/duplicate `.md` files cluttering every repo.
155
+
156
+ ### 🧩 Multi-IDE Support
157
+
158
+ | IDE / Agent | Support Level | Config Path |
159
+ | :--- | :--- | :--- |
160
+ | **Cursor** | ✅ Full | `.cursor/` |
161
+ | **Windsurf** | ✅ Full | `.windsurf/` |
162
+ | **VSCode / Copilot** | ✅ Full | `.github/` |
163
+ | **Zed** | ✅ Full | `.rules/` |
164
+ | **Continue** | ✅ Full | `.continue/` |
165
+ | **Trae** | ✅ Full | `.trae/` |
166
+ | **Antigravity** | ✅ Full | `.antigravity/` |
167
+ | **Cline / Roo Code** | ✅ Full | `.clinerules/` |
168
+ | **Claude Code** | ✅ Full | `.claude/` |
169
+ | **Qodo** | ✅ Full | `agents/` |
170
+
171
+ ---
172
+
173
+ ## 🤝 Contributing
174
+
175
+ We welcome contributions to expand the **Universal Agent Brain**.
176
+ Check out `CONTRIBUTING.md` to add new Skills, Rules, or IDE support.
177
+
178
+ ### 🛠️ Creating New Skills
179
+ Need a custom agent? Use the interactive generator:
180
+
181
+ ```bash
182
+ # Verify structure of existing skills
183
+ python validate_skills.py
184
+
185
+ # Create a new skill interactively
186
+ python create_skill.py
187
+ ```
188
+ This will generate the standard directory structure and `SKILL.md` template for you.
189
+
190
+
191
+ ---
192
+
193
+ <p align="center">
194
+ Built with ❤️ by <b>QuBit</b>
195
+ </p>