swl-ses 3.3.2

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 (177) hide show
  1. package/CLAUDE.md +425 -0
  2. package/_userland/agentes/.gitkeep +0 -0
  3. package/_userland/habilidades/.gitkeep +0 -0
  4. package/agentes/accesibilidad-wcag-swl.md +683 -0
  5. package/agentes/arquitecto-swl.md +210 -0
  6. package/agentes/auto-evolucion-swl.md +408 -0
  7. package/agentes/backend-api-swl.md +442 -0
  8. package/agentes/backend-node-swl.md +439 -0
  9. package/agentes/backend-python-swl.md +469 -0
  10. package/agentes/backend-workers-swl.md +444 -0
  11. package/agentes/cloud-infra-swl.md +466 -0
  12. package/agentes/consolidador-swl.md +487 -0
  13. package/agentes/datos-swl.md +568 -0
  14. package/agentes/depurador-swl.md +301 -0
  15. package/agentes/devops-ci-swl.md +352 -0
  16. package/agentes/disenador-ui-swl.md +546 -0
  17. package/agentes/documentador-swl.md +323 -0
  18. package/agentes/frontend-angular-swl.md +603 -0
  19. package/agentes/frontend-css-swl.md +700 -0
  20. package/agentes/frontend-react-swl.md +672 -0
  21. package/agentes/frontend-swl.md +483 -0
  22. package/agentes/frontend-tailwind-swl.md +808 -0
  23. package/agentes/implementador-swl.md +235 -0
  24. package/agentes/investigador-swl.md +274 -0
  25. package/agentes/investigador-ux-swl.md +482 -0
  26. package/agentes/migrador-swl.md +389 -0
  27. package/agentes/mobile-android-swl.md +473 -0
  28. package/agentes/mobile-cross-swl.md +501 -0
  29. package/agentes/mobile-ios-swl.md +464 -0
  30. package/agentes/notificador-swl.md +886 -0
  31. package/agentes/observabilidad-swl.md +408 -0
  32. package/agentes/orquestador-swl.md +490 -0
  33. package/agentes/planificador-swl.md +222 -0
  34. package/agentes/producto-prd-swl.md +565 -0
  35. package/agentes/release-manager-swl.md +545 -0
  36. package/agentes/rendimiento-swl.md +691 -0
  37. package/agentes/revisor-codigo-swl.md +254 -0
  38. package/agentes/revisor-seguridad-swl.md +316 -0
  39. package/agentes/tdd-qa-swl.md +323 -0
  40. package/agentes/ux-disenador-swl.md +498 -0
  41. package/bin/swl-ses.js +119 -0
  42. package/comandos/swl/actualizar.md +117 -0
  43. package/comandos/swl/aprender.md +348 -0
  44. package/comandos/swl/auditar-deps.md +390 -0
  45. package/comandos/swl/autoresearch.md +346 -0
  46. package/comandos/swl/checkpoint.md +296 -0
  47. package/comandos/swl/compactar.md +283 -0
  48. package/comandos/swl/crear-skill.md +609 -0
  49. package/comandos/swl/discutir-fase.md +230 -0
  50. package/comandos/swl/ejecutar-fase.md +302 -0
  51. package/comandos/swl/evolucionar.md +377 -0
  52. package/comandos/swl/instalar.md +220 -0
  53. package/comandos/swl/mapear-codebase.md +205 -0
  54. package/comandos/swl/nuevo-proyecto.md +154 -0
  55. package/comandos/swl/planear-fase.md +221 -0
  56. package/comandos/swl/release.md +405 -0
  57. package/comandos/swl/salud.md +382 -0
  58. package/comandos/swl/verificar.md +292 -0
  59. package/habilidades/accesibilidad-a11y/SKILL.md +584 -0
  60. package/habilidades/angular-avanzado/SKILL.md +491 -0
  61. package/habilidades/angular-moderno/SKILL.md +326 -0
  62. package/habilidades/api-rest-diseno/SKILL.md +302 -0
  63. package/habilidades/api-rest-diseno/recursos/openapi-template.yaml +506 -0
  64. package/habilidades/aprendizaje-continuo/SKILL.md +369 -0
  65. package/habilidades/async-python/SKILL.md +474 -0
  66. package/habilidades/auth-patrones/SKILL.md +488 -0
  67. package/habilidades/auto-evolucion-protocolo/SKILL.md +376 -0
  68. package/habilidades/autoresearch/SKILL.md +248 -0
  69. package/habilidades/autoresearch/recursos/checklist-template.md +191 -0
  70. package/habilidades/autoresearch/scripts/calcular-score.js +88 -0
  71. package/habilidades/checklist-calidad/SKILL.md +247 -0
  72. package/habilidades/checklist-calidad/recursos/quality-report-template.md +148 -0
  73. package/habilidades/checklist-seguridad/SKILL.md +224 -0
  74. package/habilidades/checkpoints-verificacion/SKILL.md +309 -0
  75. package/habilidades/checkpoints-verificacion/recursos/checkpoint-templates.md +360 -0
  76. package/habilidades/ci-cd-pipelines/SKILL.md +583 -0
  77. package/habilidades/ci-cd-pipelines/recursos/github-actions-template.yaml +403 -0
  78. package/habilidades/cloud-aws/SKILL.md +497 -0
  79. package/habilidades/compactacion-contexto/SKILL.md +201 -0
  80. package/habilidades/contenedores-docker/SKILL.md +453 -0
  81. package/habilidades/contenedores-docker/recursos/dockerfile-template.dockerfile +160 -0
  82. package/habilidades/css-moderno/SKILL.md +463 -0
  83. package/habilidades/datos-etl/SKILL.md +486 -0
  84. package/habilidades/dependencias-auditoria/SKILL.md +293 -0
  85. package/habilidades/deprecacion-migracion/SKILL.md +485 -0
  86. package/habilidades/design-tokens/SKILL.md +519 -0
  87. package/habilidades/discutir-fase/SKILL.md +167 -0
  88. package/habilidades/diseno-responsivo/SKILL.md +326 -0
  89. package/habilidades/django-experto/SKILL.md +395 -0
  90. package/habilidades/doc-sync/SKILL.md +259 -0
  91. package/habilidades/ejecutar-fase/SKILL.md +199 -0
  92. package/habilidades/estructura-proyecto-claude/SKILL.md +459 -0
  93. package/habilidades/estructura-proyecto-claude/recursos/claude-md-template.md +261 -0
  94. package/habilidades/estructura-proyecto-claude/recursos/frontmatter-y-hooks-referencia.md +213 -0
  95. package/habilidades/estructura-proyecto-claude/recursos/mcp-json-template.json +77 -0
  96. package/habilidades/estructura-proyecto-claude/recursos/variantes-por-stack.md +177 -0
  97. package/habilidades/event-driven/SKILL.md +580 -0
  98. package/habilidades/extractor-de-aprendizajes/SKILL.md +234 -0
  99. package/habilidades/fastapi-experto/SKILL.md +368 -0
  100. package/habilidades/frontend-avanzado/SKILL.md +555 -0
  101. package/habilidades/git-worktrees-paralelo/SKILL.md +246 -0
  102. package/habilidades/iam-secretos/SKILL.md +511 -0
  103. package/habilidades/instalar-sistema/SKILL.md +140 -0
  104. package/habilidades/kubernetes-orquestacion/SKILL.md +549 -0
  105. package/habilidades/manejo-errores/SKILL.md +512 -0
  106. package/habilidades/mapear-codebase/SKILL.md +199 -0
  107. package/habilidades/microservicios/SKILL.md +473 -0
  108. package/habilidades/mobile-flutter/SKILL.md +566 -0
  109. package/habilidades/mobile-react-native/SKILL.md +493 -0
  110. package/habilidades/monitoring-alertas/SKILL.md +447 -0
  111. package/habilidades/node-experto/SKILL.md +521 -0
  112. package/habilidades/notificaciones-multicanal/SKILL.md +448 -0
  113. package/habilidades/notificaciones-multicanal/recursos/config-template.json +115 -0
  114. package/habilidades/nuevo-proyecto/SKILL.md +183 -0
  115. package/habilidades/patrones-python/SKILL.md +381 -0
  116. package/habilidades/performance-baseline/SKILL.md +243 -0
  117. package/habilidades/planear-fase/SKILL.md +184 -0
  118. package/habilidades/postgresql-experto/SKILL.md +379 -0
  119. package/habilidades/react-experto/SKILL.md +434 -0
  120. package/habilidades/react-optimizacion/SKILL.md +328 -0
  121. package/habilidades/release-semver/SKILL.md +226 -0
  122. package/habilidades/release-semver/scripts/generar-changelog.sh +238 -0
  123. package/habilidades/sql-optimizacion/SKILL.md +314 -0
  124. package/habilidades/tailwind-experto/SKILL.md +412 -0
  125. package/habilidades/tdd-workflow/SKILL.md +267 -0
  126. package/habilidades/testing-python/SKILL.md +350 -0
  127. package/habilidades/threat-model-lite/SKILL.md +218 -0
  128. package/habilidades/typescript-avanzado/SKILL.md +454 -0
  129. package/habilidades/ux-diseno/SKILL.md +488 -0
  130. package/habilidades/validacion-ci-sistema/SKILL.md +543 -0
  131. package/habilidades/validacion-ci-sistema/scripts/validar-sistema.sh +286 -0
  132. package/habilidades/verificar-trabajo/SKILL.md +208 -0
  133. package/habilidades/wireframes-flujos/SKILL.md +396 -0
  134. package/habilidades/workflow-claude-code/SKILL.md +359 -0
  135. package/hooks/calidad-pre-commit.js +578 -0
  136. package/hooks/escaneo-secretos.js +302 -0
  137. package/hooks/extraccion-aprendizajes.js +550 -0
  138. package/hooks/linea-estado.js +249 -0
  139. package/hooks/monitor-contexto.js +230 -0
  140. package/hooks/proteccion-rutas.js +249 -0
  141. package/manifiestos/hooks-config.json +41 -0
  142. package/manifiestos/modulos.json +318 -0
  143. package/manifiestos/perfiles.json +189 -0
  144. package/package.json +45 -0
  145. package/plantillas/PROJECT.md +122 -0
  146. package/plantillas/REQUIREMENTS.md +132 -0
  147. package/plantillas/ROADMAP.md +143 -0
  148. package/plantillas/STATE.md +109 -0
  149. package/plantillas/research/ARCHITECTURE.md +220 -0
  150. package/plantillas/research/FEATURES.md +175 -0
  151. package/plantillas/research/PITFALLS.md +299 -0
  152. package/plantillas/research/STACK.md +233 -0
  153. package/plantillas/research/SUMMARY.md +165 -0
  154. package/plugin.json +144 -0
  155. package/reglas/accesibilidad.md +269 -0
  156. package/reglas/api-diseno.md +400 -0
  157. package/reglas/arquitectura.md +183 -0
  158. package/reglas/cloud-infra.md +247 -0
  159. package/reglas/docs.md +245 -0
  160. package/reglas/estilo-codigo.md +179 -0
  161. package/reglas/git-workflow.md +186 -0
  162. package/reglas/performance.md +195 -0
  163. package/reglas/pruebas.md +159 -0
  164. package/reglas/seguridad.md +151 -0
  165. package/reglas/skills-estandar.md +473 -0
  166. package/scripts/actualizar.js +51 -0
  167. package/scripts/desinstalar.js +86 -0
  168. package/scripts/doctor.js +222 -0
  169. package/scripts/inicializar.js +89 -0
  170. package/scripts/instalador.js +333 -0
  171. package/scripts/lib/detectar-runtime.js +177 -0
  172. package/scripts/lib/estado.js +112 -0
  173. package/scripts/lib/hooks-settings.js +283 -0
  174. package/scripts/lib/manifiestos.js +138 -0
  175. package/scripts/lib/seguridad.js +160 -0
  176. package/scripts/publicar.js +209 -0
  177. package/scripts/validar.js +120 -0
package/CLAUDE.md ADDED
@@ -0,0 +1,425 @@
1
+ # CLAUDE.md — swl-software-engineering-system v3.0
2
+
3
+ Este archivo guía a Claude Code cuando trabaja en este repositorio.
4
+
5
+ ## Qué es este repositorio
6
+
7
+ Es un **sistema de ingeniería de software auto-evolutivo** que cubre el SDLC completo — no un proyecto de software tradicional. Contiene definiciones de agentes, módulos de conocimiento (habilidades/skills), comandos, reglas y hooks que extienden las capacidades de Claude Code. Integra lo mejor de Everything Claude Code (aprendizaje continuo, validación CI, hooks inteligentes) y GSD (thin orchestrator, fases explícitas, estado persistido, anti-context-rot).
8
+
9
+ **Idioma**: 100% español (México) para componentes SWL. Los componentes GSD y skills de Anthropic se mantienen en inglés.
10
+
11
+ ## Estructura del repositorio
12
+
13
+ ```
14
+ agentes/ # 37 agentes SWL (markdown con frontmatter YAML)
15
+ habilidades/ # 62 habilidades en español (directorios con SKILL.md)
16
+ comandos/swl/ # 17 comandos del sistema (/swl:*)
17
+ reglas/ # 11 reglas obligatorias
18
+ hooks/ # 6 hooks JavaScript (pre/post ejecución)
19
+ manifiestos/ # modulos.json, perfiles.json, hooks-config.json
20
+ plantillas/ # Templates para PROJECT.md, ROADMAP.md, etc.
21
+ scripts/ # CLI (swl-ses) y librerías de instalación
22
+ bin/ # Entrypoint CLI (swl-ses.js)
23
+ _userland/ # Extensiones del usuario (agentes y habilidades custom)
24
+ .claude/ # Settings locales de Claude Code
25
+ .planning/ # Estado del sistema (STATE.md)
26
+ ```
27
+
28
+ ## Sistema de Agentes SWL (37 agentes)
29
+
30
+ ### Agentes por dominio
31
+
32
+ **Orquestación y Proceso** (4):
33
+ - `orquestador-swl` — Coordinador central, thin orchestrator
34
+ - `producto-prd-swl` — Product Requirements Documents
35
+ - `consolidador-swl` — Actualiza CLAUDE.md y memoria al cerrar sesión
36
+ - `auto-evolucion-swl` — Mejora agentes y skills, versionado SemVer
37
+
38
+ **Discovery e Investigación** (2):
39
+ - `investigador-swl` — Investigación técnica y de dominio
40
+ - `investigador-ux-swl` — Investigación de usuarios, personas, journeys
41
+
42
+ **Arquitectura y Diseño** (2):
43
+ - `arquitecto-swl` — ADRs, módulos profundos, tradeoffs
44
+ - `planificador-swl` — PLAN.md con vertical slices
45
+
46
+ **UX / UI / Diseño** (3):
47
+ - `ux-disenador-swl` — UX + UI general
48
+ - `disenador-ui-swl` — Capa visual: tokens, tipografía, color, componentes
49
+ - `accesibilidad-wcag-swl` — Auditoría WCAG 2.1 AA / 2.2
50
+
51
+ **Frontend** (5):
52
+ - `frontend-swl` — Implementador frontend generalista
53
+ - `frontend-react-swl` — React + Next.js especialista
54
+ - `frontend-angular-swl` — Angular v20+ con signals
55
+ - `frontend-css-swl` — CSS moderno (Container Queries, Layers, Nesting)
56
+ - `frontend-tailwind-swl` — Tailwind CSS v4 y design systems
57
+
58
+ **Backend** (4):
59
+ - `backend-python-swl` — Python backend avanzado (FastAPI, Django, SQLAlchemy)
60
+ - `backend-node-swl` — Node.js/TypeScript (Express, Fastify, NestJS)
61
+ - `backend-api-swl` — Diseño de APIs (REST, GraphQL, gRPC, WebSocket)
62
+ - `backend-workers-swl` — Background jobs, queues, event processing
63
+
64
+ **Mobile** (3):
65
+ - `mobile-android-swl` — Android nativo (Kotlin, Jetpack Compose)
66
+ - `mobile-ios-swl` — iOS nativo (Swift, SwiftUI)
67
+ - `mobile-cross-swl` — React Native + Flutter
68
+
69
+ **Datos** (2):
70
+ - `datos-swl` — Ingeniería de datos, ETL, data quality
71
+ - `migrador-swl` — Migraciones de BD y datos
72
+
73
+ **Implementación General** (1):
74
+ - `implementador-swl` — Implementador full-stack generalista
75
+
76
+ **Calidad** (3):
77
+ - `tdd-qa-swl` — TDD y cobertura de tests
78
+ - `revisor-codigo-swl` — Code review
79
+ - `revisor-seguridad-swl` — Auditoría OWASP, CVSSv3
80
+
81
+ **Infraestructura y Operaciones** (3):
82
+ - `devops-ci-swl` — CI/CD pipelines
83
+ - `cloud-infra-swl` — Arquitectura cloud (AWS, Azure, GCP)
84
+ - `observabilidad-swl` — Monitoring, alertas, SLOs
85
+
86
+ **Rendimiento y Releases** (2):
87
+ - `rendimiento-swl` — Profiling, caching, load testing
88
+ - `release-manager-swl` — SemVer, changelog, rollbacks
89
+
90
+ **Documentación y Comunicación** (2):
91
+ - `documentador-swl` — Documentación viva
92
+ - `notificador-swl` — Notificaciones multicanal (Telegram, WhatsApp, email, webhooks)
93
+
94
+ **Debugging** (1):
95
+ - `depurador-swl` — Debugging sistemático
96
+
97
+ ### Formato de archivo de agente (v3.0)
98
+
99
+ ```yaml
100
+ ---
101
+ name: nombre-agente-swl
102
+ description: Cuándo invocar y cuándo NO (activación proactiva)
103
+ tools: Read, Write, Edit, Bash, Grep, Glob, Skill, Agent
104
+ model: claude-sonnet-4-6
105
+ modeloAlterno: claude-haiku-4-5-20251001
106
+ ventanaContexto: 200k
107
+ permissionMode: plan | acceptEdits | bypassPermissions
108
+ color: green
109
+ version: 1.0.0
110
+ nivelRiesgo: BAJO | MEDIO | ALTO
111
+ skillsInvocables: skill-1, skill-2
112
+ skillsRestringidos: skill-x
113
+ permisosRed: true | false
114
+ permisosEscritura: true | false
115
+ permisosComandos: true | false
116
+ ---
117
+ ```
118
+
119
+ ### Flujos de trabajo principales
120
+
121
+ **Feature completa con PRD (orquestado)**:
122
+ ```
123
+ orquestador-swl
124
+ → investigador-swl + investigador-ux-swl (discovery)
125
+ → producto-prd-swl (PRD.md)
126
+ → arquitecto-swl (ADR)
127
+ → disenador-ui-swl (UI-SPEC.md, si hay frontend)
128
+ → planificador-swl (PLAN.md)
129
+ → [paralelo] backend-python-swl + frontend-react-swl (o angular/mobile)
130
+ → [paralelo] tdd-qa-swl + revisor-codigo-swl + revisor-seguridad-swl + accesibilidad-wcag-swl
131
+ → [paralelo] documentador-swl + release-manager-swl
132
+ → consolidador-swl (actualiza CLAUDE.md + memoria)
133
+ → notificador-swl (notifica finalización)
134
+ ```
135
+
136
+ **Pipeline frontend especializado**:
137
+ ```
138
+ investigador-ux-swl (research)
139
+ → disenador-ui-swl (design tokens, UI-SPEC.md)
140
+ → accesibilidad-wcag-swl (validación pre-implementación)
141
+ → frontend-react-swl / frontend-angular-swl (implementación)
142
+ → frontend-css-swl / frontend-tailwind-swl (estilos)
143
+ → rendimiento-swl (Core Web Vitals)
144
+ ```
145
+
146
+ **Pipeline mobile**:
147
+ ```
148
+ producto-prd-swl (PRD.md)
149
+ → mobile-cross-swl (decisión: RN vs Flutter vs nativo)
150
+ → mobile-android-swl + mobile-ios-swl (implementación paralela)
151
+ → tdd-qa-swl (testing)
152
+ ```
153
+
154
+ **Pipeline backend**:
155
+ ```
156
+ backend-api-swl (diseño de API)
157
+ → backend-python-swl / backend-node-swl (implementación)
158
+ → backend-workers-swl (jobs asíncronos)
159
+ → datos-swl (pipelines de datos)
160
+ ```
161
+
162
+ ### Equipos de agentes (paralelización real)
163
+
164
+ | Equipo | Líder | Miembros paralelos | Cuándo |
165
+ |--------|-------|-------------------|--------|
166
+ | Discovery | investigador-swl | investigador-ux-swl, producto-prd-swl | Proyecto nuevo |
167
+ | Arquitectura | arquitecto-swl | rendimiento-swl, revisor-seguridad-swl | Decisión de diseño |
168
+ | Frontend | frontend-swl | frontend-react-swl, frontend-css-swl, frontend-tailwind-swl | Feature UI compleja |
169
+ | Backend | backend-python-swl | backend-api-swl, backend-workers-swl | Feature backend compleja |
170
+ | Mobile | mobile-cross-swl | mobile-android-swl, mobile-ios-swl | Feature mobile |
171
+ | Calidad | tdd-qa-swl | revisor-codigo-swl, revisor-seguridad-swl, accesibilidad-wcag-swl, rendimiento-swl | Pre-release |
172
+ | Operaciones | devops-ci-swl | cloud-infra-swl, observabilidad-swl | Deploy, infra |
173
+ | Cierre | consolidador-swl | documentador-swl, release-manager-swl, notificador-swl | Fase completada |
174
+
175
+ Los miembros se lanzan en **paralelo real** (múltiples `Agent()` en un solo mensaje).
176
+
177
+ ## Sistema de habilidades (61 en español + 40 en inglés)
178
+
179
+ ### Estándar oficial de skills (regla: `skills-estandar.md`)
180
+
181
+ Toda skill sigue el estándar oficial de Claude Agent Skills con 3 niveles de carga:
182
+
183
+ ```
184
+ nombre-skill/
185
+ ├── SKILL.md # OBLIGATORIO — Nivel 2 (instrucciones, ≤300 líneas)
186
+ ├── scripts/ # OPCIONAL — Nivel 3 (lógica ejecutable)
187
+ └── recursos/ # OPCIONAL — Nivel 3 (plantillas, ejemplos, docs)
188
+ ```
189
+
190
+ **Frontmatter obligatorio**: `name` (≤64 chars, kebab-case) + `description` (≤1024 chars, QUÉ + CUÁNDO)
191
+ **Paths relativos**: Toda referencia dentro de SKILL.md usa paths relativos al directorio de la skill
192
+
193
+ ### Habilidades con scripts/ o recursos/
194
+
195
+ | Habilidad | scripts/ | recursos/ |
196
+ |-----------|----------|-----------|
197
+ | validacion-ci-sistema | `validar-sistema.sh` | — |
198
+ | release-semver | `generar-changelog.sh` | — |
199
+ | checklist-calidad | — | `quality-report-template.md` |
200
+ | checkpoints-verificacion | — | `checkpoint-templates.md` |
201
+ | notificaciones-multicanal | — | `config-template.json` |
202
+ | api-rest-diseno | — | `openapi-template.yaml` |
203
+ | contenedores-docker | — | `dockerfile-template.dockerfile` |
204
+ | ci-cd-pipelines | — | `github-actions-template.yaml` |
205
+ | estructura-proyecto-claude | — | `claude-md-template.md`, `mcp-json-template.json`, `variantes-por-stack.md`, `frontmatter-y-hooks-referencia.md` |
206
+ | autoresearch | `calcular-score.js` | `checklist-template.md` |
207
+
208
+ ### Cobertura por dominio
209
+
210
+ | Dominio | Habilidades |
211
+ |---------|------------|
212
+ | **Backend Python** | fastapi-experto, django-experto, patrones-python, async-python, auth-patrones, manejo-errores |
213
+ | **Backend Node** | node-experto |
214
+ | **Frontend Core** | angular-moderno, angular-avanzado, frontend-avanzado, typescript-avanzado |
215
+ | **Frontend Styling** | css-moderno, tailwind-experto, diseno-responsivo |
216
+ | **Frontend React** | react-experto, react-optimizacion |
217
+ | **Mobile** | mobile-react-native, mobile-flutter |
218
+ | **UX/Diseño** | ux-diseno, accesibilidad-a11y, design-tokens, wireframes-flujos |
219
+ | **Datos** | postgresql-experto, sql-optimizacion, datos-etl |
220
+ | **Infraestructura** | cloud-aws, contenedores-docker, kubernetes-orquestacion, ci-cd-pipelines |
221
+ | **Seguridad** | checklist-seguridad, threat-model-lite, iam-secretos |
222
+ | **Observabilidad** | monitoring-alertas, performance-baseline |
223
+ | **Arquitectura** | api-rest-diseno, microservicios, event-driven, deprecacion-migracion |
224
+ | **Calidad** | checklist-calidad, tdd-workflow, testing-python, validacion-ci-sistema |
225
+ | **Notificaciones** | notificaciones-multicanal, checkpoints-verificacion |
226
+ | **Aprendizaje** | aprendizaje-continuo, extractor-de-aprendizajes, auto-evolucion-protocolo, autoresearch |
227
+ | **Estructura** | estructura-proyecto-claude, workflow-claude-code |
228
+ | **Proceso** | nuevo-proyecto, instalar-sistema, planear-fase, ejecutar-fase, discutir-fase, verificar-trabajo, mapear-codebase, compactacion-contexto, git-worktrees-paralelo, release-semver, doc-sync, dependencias-auditoria |
229
+
230
+ ## Comandos del sistema (/swl:*)
231
+
232
+ | Comando | Propósito |
233
+ |---------|-----------|
234
+ | `/swl:instalar` | Instalar SWL desde dentro de Claude Code (interactivo) |
235
+ | `/swl:actualizar` | Actualizar SWL a la última versión sin desinstalar |
236
+ | `/swl:nuevo-proyecto` | Iniciar proyecto con PROJECT.md y roadmap |
237
+ | `/swl:discutir-fase` | Recopilar contexto antes de planificar |
238
+ | `/swl:planear-fase` | Crear PLAN.md con vertical slices |
239
+ | `/swl:ejecutar-fase` | Ejecutar plan con commits atómicos |
240
+ | `/swl:verificar` | Verificar implementación contra spec |
241
+ | `/swl:mapear-codebase` | Analizar codebase existente |
242
+ | `/swl:checkpoint` | Guardar estado para continuar después |
243
+ | `/swl:compactar` | Reducir contexto preservando información clave |
244
+ | `/swl:aprender` | Extraer aprendizajes de la sesión |
245
+ | `/swl:evolucionar` | Auto-evolución de agentes/skills |
246
+ | `/swl:salud` | Diagnóstico de integridad del sistema |
247
+ | `/swl:release` | Ciclo de release SemVer |
248
+ | `/swl:auditar-deps` | Auditoría de dependencias (CVEs, outdated) |
249
+ | `/swl:crear-skill` | Crear nuevo skill con guía interactiva |
250
+ | `/swl:autoresearch` | Loop de auto-mejora iterativa de skills (Karpathy) |
251
+
252
+ ## Sistema de notificaciones
253
+
254
+ El `notificador-swl` envía notificaciones multicanal cuando eventos importantes ocurren:
255
+
256
+ | Evento | Prioridad | Canal por defecto |
257
+ |--------|-----------|------------------|
258
+ | Intervención humana requerida | CRITICA | Todos los canales activos |
259
+ | Verificación fallida (score < 9.0) | ALTA | Telegram + Desktop |
260
+ | Fase completada | MEDIA | Desktop |
261
+ | Riesgo alto detectado | ALTA | Telegram + Email |
262
+ | Tarea larga completada | MEDIA | Desktop |
263
+ | Error de API | ALTA | Webhook |
264
+
265
+ Canales soportados: Desktop nativo, Telegram, WhatsApp, Email, Webhooks genéricos (Slack, Discord, ntfy.sh, Teams).
266
+
267
+ Integración con `claude-notifications-go` (en `respositorios-git/`).
268
+
269
+ ## Skills bundled de Claude Code (disponibles sin instalación)
270
+
271
+ Claude Code incluye 17 skills predefinidos que TODOS los agentes pueden usar:
272
+
273
+ | Skill | Propósito | Agentes que deben usarlo |
274
+ |-------|-----------|-------------------------|
275
+ | `/pdf` | Leer, crear, combinar, dividir PDFs | documentador-swl, producto-prd-swl, release-manager-swl |
276
+ | `/pptx` | Crear presentaciones PowerPoint | producto-prd-swl, documentador-swl |
277
+ | `/docx` | Crear documentos Word | documentador-swl, producto-prd-swl |
278
+ | `/xlsx` | Analizar hojas de cálculo Excel | datos-swl, documentador-swl |
279
+ | `/frontend-design` | Interfaces frontend de alta calidad | disenador-ui-swl, frontend-swl, frontend-react-swl, frontend-angular-swl |
280
+ | `/web-artifacts-builder` | Componentes web complejos (React+shadcn) | frontend-react-swl, disenador-ui-swl |
281
+ | `/claude-api` | Desarrollar con la API de Claude/Anthropic SDK | backend-python-swl, backend-node-swl, backend-api-swl |
282
+ | `/brand-guidelines` | Aplicar guías de marca Anthropic | disenador-ui-swl, frontend-css-swl |
283
+ | `/skill-creator` | Crear nuevos skills para Claude Code | auto-evolucion-swl |
284
+ | `/mcp-builder` | Construir servidores MCP | backend-node-swl, backend-python-swl |
285
+ | `/webapp-testing` | Testing de aplicaciones web | tdd-qa-swl, frontend-swl |
286
+ | `/internal-comms` | Comunicaciones internas | documentador-swl, notificador-swl |
287
+ | `/doc-coauthoring` | Co-escribir documentos | documentador-swl |
288
+ | `/canvas-design` | Diseño en canvas HTML | disenador-ui-swl |
289
+ | `/algorithmic-art` | Arte algorítmico/generativo | disenador-ui-swl |
290
+ | `/theme-factory` | Crear temas y design systems | frontend-tailwind-swl, frontend-css-swl |
291
+ | `/slack-gif-creator` | Crear GIFs para Slack | notificador-swl |
292
+
293
+ **Regla**: Los agentes listados en la columna "Agentes que deben usarlo" DEBEN considerar estos skills cuando sean relevantes para la tarea. No son opcionales — son herramientas disponibles que deben aprovecharse.
294
+
295
+ ## Patrones integrados de ECC y GSD
296
+
297
+ ### De Everything Claude Code (integrados)
298
+ - **Aprendizaje continuo v2**: Instintos con confianza, scope proyecto/global (`aprendizaje-continuo` skill)
299
+ - **Validación CI**: 7 capas de validación de integridad (`validacion-ci-sistema` skill)
300
+ - **Checkpoints**: human-verify, decision, human-action (`checkpoints-verificacion` skill)
301
+ - **Activación proactiva**: Cada agente declara cuándo activarse sin prompt del usuario
302
+ - **Anti-context-rot**: Contextos frescos por subagente, presupuesto de contexto
303
+
304
+ ### De GSD (integrados)
305
+ - **Thin orchestrator**: `orquestador-swl` coordina sin implementar
306
+ - **Fases explícitas**: discutir → planear → ejecutar → verificar
307
+ - **Estado persistido**: `.planning/STATE.md` como fuente de verdad
308
+ - **Commits atómicos**: Por tarea, bisectables, independientemente revertibles
309
+ - **Trazabilidad**: CONTEXT.md → PLAN.md → SUMMARY.md → VERIFICATION.md
310
+
311
+ ## Reglas obligatorias (11)
312
+
313
+ | Regla | Aplica a |
314
+ |-------|---------|
315
+ | `seguridad.md` | Código que toque datos o autenticación |
316
+ | `estilo-codigo.md` | Todo código Python y TypeScript |
317
+ | `pruebas.md` | Todo código nuevo o modificado |
318
+ | `arquitectura.md` | Cambios estructurales o nuevos módulos |
319
+ | `git-workflow.md` | Todos los commits y branches |
320
+ | `performance.md` | Código en rutas críticas |
321
+ | `docs.md` | APIs públicas y componentes compartidos |
322
+ | `accesibilidad.md` | Todo frontend y mobile |
323
+ | `cloud-infra.md` | Infraestructura y deployment |
324
+ | `api-diseno.md` | Diseño de APIs REST/GraphQL/gRPC |
325
+ | `skills-estandar.md` | Creación y estructura de skills (estándar oficial) |
326
+
327
+ ## Hooks activos (6)
328
+
329
+ | Hook | Tipo | Propósito |
330
+ |------|------|-----------|
331
+ | `escaneo-secretos.js` | PreToolUse | Bloquea commits con secretos |
332
+ | `linea-estado.js` | PostToolUse | Estado del sistema en terminal |
333
+ | `monitor-contexto.js` | PostToolUse | Alerta contexto saturado |
334
+ | `proteccion-rutas.js` | PreToolUse | Protege archivos críticos |
335
+ | `calidad-pre-commit.js` | PreToolUse | Calidad mínima pre-commit |
336
+ | `extraccion-aprendizajes.js` | PostToolUse | Captura aprendizajes automáticamente |
337
+
338
+ ## Protocolo de auto-evolución
339
+
340
+ 1. **Observación**: Hooks capturan 100% de actividad de sesión (patrón ECC v2)
341
+ 2. **Extracción**: `extraccion-aprendizajes.js` detecta insights automáticamente
342
+ 3. **Clasificación**: anti-patrón, patrón positivo, gotcha, decisión
343
+ 4. **Instintos**: Creación con confianza 0.3-0.9, scope proyecto/global (patrón ECC)
344
+ 5. **Incorporación**: `auto-evolucion-swl` propone cambios a agentes/skills
345
+ 6. **Autoresearch**: Loop medible de mutación atómica contra checklists por skill
346
+ 7. **Consolidación**: `consolidador-swl` actualiza CLAUDE.md del proyecto
347
+ 7. **Versionado**: SemVer (MAJOR.MINOR.PATCH) con CHANGELOG
348
+ 8. **Governance**: Cambios de alto riesgo requieren aprobación humana
349
+
350
+ ## Artefactos del sistema
351
+
352
+ | Artefacto | Productor | Ubicación |
353
+ |-----------|-----------|-----------|
354
+ | PROJECT.md | orquestador / nuevo-proyecto | `.planning/PROJECT.md` |
355
+ | PRD.md | producto-prd-swl | `.planning/PRD.md` |
356
+ | PLAN.md | planificador-swl | `.planning/PLAN.md` |
357
+ | STATE.md | orquestador-swl | `.planning/STATE.md` |
358
+ | CONTEXT.md | discutir-fase | `.planning/phases/NN-nombre/CONTEXT.md` |
359
+ | UI-SPEC.md | disenador-ui-swl | `.planning/UI-SPEC.md` |
360
+ | QUALITY-REPORT.md | checklist-calidad | `.planning/QUALITY-REPORT.md` |
361
+ | APRENDIZAJES.md | extraccion-aprendizajes | `.planning/APRENDIZAJES.md` |
362
+ | DECISIONS.md | consolidador-swl | `.planning/DECISIONS.md` |
363
+ | ADR-NNN.md | arquitecto-swl | `.planning/adrs/` |
364
+ | CHANGELOG.md | auto-evolucion / release-manager | raíz del proyecto |
365
+
366
+ ## Generación de estructura de proyecto Claude-ready
367
+
368
+ Fuentes oficiales: `referencias/Claude Code Project Structure.jpg`, `referencias/Claude Code WorkFlow Cheatsheet.jpg`
369
+
370
+ El sistema genera proyectos con soporte nativo para Claude Code usando `Skill("estructura-proyecto-claude")`:
371
+
372
+ ```
373
+ mi_proyecto/
374
+ ├── CLAUDE.md # Fuente de verdad — L1 (7 secciones obligatorias)
375
+ ├── .claude/
376
+ │ ├── settings.json # Permisos (allow/deny) + hooks + context rules
377
+ │ ├── settings.local.json # Config local (NUNCA commitear)
378
+ │ ├── commands/ # Slash commands del proyecto
379
+ │ ├── skills/ # Skills con SKILL.md + scripts/ + references/ + assets/ (L2)
380
+ │ ├── agents/ # Subagentes especializados del proyecto (L4)
381
+ │ ├── hooks/ # Automatizaciones event-driven (L3)
382
+ │ ├── rules/ # Reglas path-scoped (.md con frontmatter paths:)
383
+ │ └── plugins/ # Plugins distribuibles (plugin.json)
384
+ ├── .planning/ # Estado SWL persistido
385
+ │ ├── PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md
386
+ │ └── research/ (STACK.md, ARCHITECTURE.md, FEATURES.md, PITFALLS.md)
387
+ ├── .mcp.json # Servidores MCP (GitHub, context7, Slack, Playwright, etc.)
388
+ └── [código según stack]
389
+ ```
390
+
391
+ **Arquitectura de 4 capas**: L1-CLAUDE.md (contexto persistente) → L2-Skills (conocimiento versionado) → L3-Hooks (seguridad y automatización) → L4-Agents (subagentes aislados).
392
+
393
+ **6 tipos de extensiones**: Skills (auto-activación), Commands (slash/legacy), Subagents (paralelo), Hooks (event-driven), MCP Servers (integraciones), Plugins (distribuibles).
394
+
395
+ **25 eventos de hook oficiales** (clave: PreToolUse, PostToolUse, SessionStart, Stop, PreCompact, PostCompact, Notification, SubagentStart/Stop, ConfigChange, FileChanged).
396
+
397
+ **Jerarquía de memoria CLAUDE.md**: Managed Policy → User (`~/.claude/CLAUDE.md`) → Project (`./CLAUDE.md`) → Subdirectory. Cada archivo < 200 líneas.
398
+
399
+ **Gestión de contexto**: 0-40% normal → 40-70% monitorear → 70-90% compactar → 90%+ nueva sesión.
400
+
401
+ Variantes por stack y templates en `habilidades/estructura-proyecto-claude/recursos/`.
402
+
403
+ ## Convenciones
404
+
405
+ - Nombres en **kebab-case**
406
+ - Agentes SWL en español, GSD en inglés
407
+ - Skills se cargan vía `Skill("nombre")`, nunca leyendo AGENTS.md directamente
408
+ - Score mínimo de calidad: **9.0/10** para aprobar trabajo
409
+ - Todos los agentes declaran: version, modelo, permisos, skills, nivel de riesgo
410
+ - `respositorios-git/` es material de referencia — no modificar
411
+
412
+ ## Métricas del sistema
413
+
414
+ | Componente | Cantidad | Líneas |
415
+ |-----------|----------|--------|
416
+ | Agentes SWL | 37 | ~17,400 |
417
+ | Habilidades ES | 62 (9 con recursos/, 3 con scripts/) | ~24,000 |
418
+ | Recursos y scripts | 15 archivos en 10 habilidades | ~3,300 |
419
+ | Comandos | 17 | ~5,900 |
420
+ | Reglas | 11 | ~2,700 |
421
+ | Hooks | 6 | ~2,200 |
422
+ | **Total SWL** | **172 componentes** | **~54,900 líneas** |
423
+ | + Agentes GSD | 23 | (heredados) |
424
+ | + Skills EN | 40 | (heredados) |
425
+ | **Total sistema** | **235 componentes** | **~54,900 líneas propias** |
File without changes
File without changes