@damenor/agent-docs 0.1.1 → 0.4.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 (41) hide show
  1. package/README.md +65 -29
  2. package/dist/index.js +3834 -217
  3. package/package.json +14 -11
  4. package/templates/modules/agents/.agents/agents/doc-designer.md +39 -37
  5. package/templates/modules/agents/.agents/agents/doc-maintainer.md +35 -35
  6. package/templates/modules/agents/.agents/agents/doc-reviewer.md +55 -46
  7. package/templates/modules/agents/.agents/agents/doc-writer.md +34 -33
  8. package/templates/modules/agents/.agents/agents/reviewer.md +114 -100
  9. package/templates/modules/agents/.agents/skills/doc-design/SKILL.md +176 -174
  10. package/templates/modules/agents/.agents/skills/doc-design/references/design-system-format.md +241 -247
  11. package/templates/modules/agents/.agents/skills/doc-maintain/SKILL.md +205 -195
  12. package/templates/modules/agents/.agents/skills/doc-maintain/references/triggers.md +171 -165
  13. package/templates/modules/agents/.agents/skills/doc-review/SKILL.md +245 -240
  14. package/templates/modules/agents/.agents/skills/doc-review/references/health-checklist.md +115 -112
  15. package/templates/modules/agents/.agents/skills/doc-scaffold/SKILL.md +164 -157
  16. package/templates/modules/agents/.agents/skills/doc-scaffold/references/diataxis-quick-ref.md +110 -110
  17. package/templates/modules/agents/.agents/skills/doc-write/SKILL.md +240 -212
  18. package/templates/modules/agents/.agents/skills/doc-write/references/adr-format.md +99 -93
  19. package/templates/modules/agents/.agents/skills/doc-write/references/diataxis-patterns.md +221 -200
  20. package/templates/base/AGENTS.md +0 -177
  21. package/templates/base/CHANGELOG.md +0 -86
  22. package/templates/base/README.md +0 -110
  23. package/templates/base/docs/CONTEXT.md +0 -111
  24. package/templates/base/docs/README.md +0 -131
  25. package/templates/base/docs/adr/TEMPLATE.md +0 -83
  26. package/templates/modules/design/docs/DESIGN.md +0 -253
  27. package/templates/modules/explanation/docs/explanation/agent-flow.md +0 -15
  28. package/templates/modules/explanation/docs/explanation/architecture.md +0 -138
  29. package/templates/modules/guides/docs/guides/deployment.md +0 -189
  30. package/templates/modules/guides/docs/guides/runbooks/TEMPLATE.md +0 -86
  31. package/templates/modules/guides/docs/guides/troubleshooting.md +0 -65
  32. package/templates/modules/operations/docs/operations/README.md +0 -115
  33. package/templates/modules/product/docs/product/overview.md +0 -90
  34. package/templates/modules/product/docs/roadmap.md +0 -80
  35. package/templates/modules/reference/docs/reference/api.md +0 -131
  36. package/templates/modules/reference/docs/reference/code-style.md +0 -275
  37. package/templates/modules/reference/docs/reference/configuration.md +0 -117
  38. package/templates/modules/reference/docs/reference/infrastructure.md +0 -191
  39. package/templates/modules/tutorials/docs/tutorials/environment-setup.md +0 -212
  40. package/templates/modules/tutorials/docs/tutorials/first-task.md +0 -246
  41. package/templates/modules/tutorials/docs/tutorials/quick-start.md +0 -146
@@ -1,13 +1,13 @@
1
1
  ---
2
- created: "2024-01-15"
2
+ created: '2024-01-15'
3
3
  status: active
4
4
  type: reference
5
- tags: [auditoria, checklist, salud, documentacion]
5
+ tags: [audit, checklist, health, documentation]
6
6
  ---
7
7
 
8
- # Checklist de Salud de Documentación
8
+ # Documentation Health Checklist
9
9
 
10
- ## Checklist por Tipo de Archivo
10
+ ## Checklist by File Type
11
11
 
12
12
  ### README.md
13
13
 
@@ -104,187 +104,190 @@ tags: [auditoria, checklist, salud, documentacion]
104
104
 
105
105
  ---
106
106
 
107
- ## Rúbrica de Puntuación
107
+ ## Scoring Rubric
108
108
 
109
- ### Completitud (máximo: 30 puntos)
109
+ ### Completeness (max: 30 points)
110
110
 
111
- | Criterio | 10 | 5 | 0 |
112
- |----------|-----|-----|-----|
113
- | Archivos esenciales | Todos existen | Faltan 1-2 | Faltan 3+ |
114
- | Secciones con contenido | Todas tienen contenido real | 1-2 secciones vacías | 3+ secciones vacías |
115
- | Features documentadas | Todas las features públicas | >75% documentadas | <75% documentadas |
111
+ | Criterion | 10 | 5 | 0 |
112
+ | --------------------- | --------------------- | ------------------ | ----------------- |
113
+ | Essential files | All exist | 1-2 missing | 3+ missing |
114
+ | Sections with content | All have real content | 1-2 empty sections | 3+ empty sections |
115
+ | Documented features | All public features | >75% documented | <75% documented |
116
116
 
117
- ### Actualidad (máximo: 20 puntos)
117
+ ### Timeliness (max: 20 points)
118
118
 
119
- | Criterio | Puntos | Cómo verificar |
120
- |----------|--------|----------------|
121
- | Docs reflejan código actual | 0-10 | Comparar con `git log --since="3 months ago"` |
122
- | CHANGELOG al día | 0-5 | Comparar con git tags |
123
- | Sin referencias obsoletas | 0-5 | Buscar versiones viejas de librerías |
119
+ | Criterion | Points | How to check |
120
+ | ------------------------- | ------ | --------------------------------------------- |
121
+ | Docs reflect current code | 0-10 | Compare with `git log --since="3 months ago"` |
122
+ | CHANGELOG up to date | 0-5 | Compare with git tags |
123
+ | No obsolete references | 0-5 | Search for old library versions |
124
124
 
125
- ### Consistencia (máximo: 20 puntos)
125
+ ### Consistency (max: 20 points)
126
126
 
127
- | Criterio | Puntos | Cómo verificar |
128
- |----------|--------|----------------|
129
- | CONTEXT.md coincide con código | 0-5 | Comparar términos definidos vs usados |
130
- | DESIGN.md coincide con estilos | 0-5 | Comparar tokens vs CSS vars/Tailwind |
131
- | docs/README.md refleja archivos | 0-5 | Comparar mapa vs filesystem |
132
- | Formato consistente | 0-5 | Verificar frontmatter, idioma, nomenclatura |
127
+ | Criterion | Points | How to check |
128
+ | ----------------------------- | ------ | ----------------------------------- |
129
+ | CONTEXT.md matches code | 0-5 | Compare defined vs used terms |
130
+ | DESIGN.md matches styles | 0-5 | Compare tokens vs CSS vars/Tailwind |
131
+ | docs/README.md reflects files | 0-5 | Compare map vs filesystem |
132
+ | Consistent format | 0-5 | Check frontmatter, language, naming |
133
133
 
134
- ### Cobertura (máximo: 20 puntos)
134
+ ### Coverage (max: 20 points)
135
135
 
136
- | Criterio | Puntos | Cómo verificar |
137
- |----------|--------|----------------|
138
- | Diátaxis 4 cuadrantes | 0-10 | Al menos un archivo en cada carpeta |
139
- | API/endpoints documentados | 0-5 | Comparar rutas de código con reference/ |
140
- | Componentes UI en DESIGN.md | 0-5 | Comparar componentes de código con DESIGN.md |
136
+ | Criterion | Points | How to check |
137
+ | -------------------------- | ------ | -------------------------------------- |
138
+ | Diátaxis 4 quadrants | 0-10 | At least one file in each folder |
139
+ | API/endpoints documented | 0-5 | Compare code routes with reference/ |
140
+ | UI components in DESIGN.md | 0-5 | Compare code components with DESIGN.md |
141
141
 
142
- ### Calidad (máximo: 10 puntos)
142
+ ### Quality (max: 10 points)
143
143
 
144
- | Criterio | Puntos | Cómo verificar |
145
- |----------|--------|----------------|
146
- | Sin placeholders/TODOs | 0-5 | `rg "TODO|TBD|PENDIENTE|agregar" --type md` |
147
- | Ejemplos ejecutables | 0-3 | Verificar código en tutoriales/how-tos |
148
- | Sin duplicación | 0-2 | Buscar contenido idéntico entre archivos |
144
+ | Criterion | Points | How to check |
145
+ | --------------------- | ------ | ------------------------------------------ | --- | --------- | ------------------- |
146
+ | No placeholders/TODOs | 0-5 | `rg "TODO | TBD | PENDIENTE | agregar" --type md` |
147
+ | Executable examples | 0-3 | Verify code in tutorials/how-tos |
148
+ | No duplication | 0-2 | Search for identical content between files |
149
149
 
150
150
  ---
151
151
 
152
- ## Problemas Comunes y Soluciones
152
+ ## Common Problems and Solutions
153
153
 
154
- ### Problema: Archivo con solo título y frontmatter
154
+ ### Problem: File with only title and frontmatter
155
155
 
156
- **Causa**: Se creó como placeholder y nunca se completó
156
+ **Cause**: Created as a placeholder and never completed
157
157
 
158
- **Solución**: Usar `doc-write` para escribir contenido real o eliminar el archivo
158
+ **Solution**: Use `doc-write` to write real content or delete the file
159
159
 
160
- ### Problema: CONTEXT.md desactualizado
160
+ ### Problem: CONTEXT.md outdated
161
161
 
162
- **Causa**: Se agregaron términos al código sin actualizar CONTEXT
162
+ **Cause**: Terms were added to code without updating CONTEXT
163
163
 
164
- **Solución**: Usar `doc-write` para agregar términos faltantes. Buscar en código: nombres de módulos, clases, interfaces, tipos principales
164
+ **Solution**: Use `doc-write` to add missing terms. Search code for: module names, classes, interfaces, main types
165
165
 
166
- ### Problema: DESIGN.md no coincide con CSS
166
+ ### Problem: DESIGN.md doesn't match CSS
167
167
 
168
- **Causa**: Se cambiaron estilos sin actualizar DESIGN.md
168
+ **Cause**: Styles were changed without updating DESIGN.md
169
169
 
170
- **Solución**: Usar `doc-design` para re-extraer tokens del código y actualizar
170
+ **Solution**: Use `doc-design` to re-extract tokens from code and update
171
171
 
172
- ### Problema: ADRs sin status
172
+ ### Problem: ADRs without status
173
173
 
174
- **Causa**: Se crearon como proposed y nunca se actualizó el status
174
+ **Cause**: Created as proposed and status was never updated
175
175
 
176
- **Solución**: Revisar cada ADR y actualizar status según la realidad actual
176
+ **Solution**: Review each ADR and update status according to current reality
177
177
 
178
- ### Problema: Wikilinks rotos
178
+ ### Problem: Broken wikilinks
179
179
 
180
- **Causa**: Se renombró o eliminó un archivo sin actualizar las referencias
180
+ **Cause**: A file was renamed or deleted without updating references
181
181
 
182
- **Solución**: Buscar todos los `[[enlace]]` y verificar que el archivo existe
182
+ **Solution**: Search all `[[links]]` and verify the file exists
183
183
 
184
- ### Problema: How-to que explica conceptos
184
+ ### Problem: How-to that explains concepts
185
185
 
186
- **Causa**: Confusión entre how-to y explanation
186
+ **Cause**: Confusion between how-to and explanation
187
187
 
188
- **Solución**: Extraer las explicaciones a explanation/ y dejar solo los pasos en how-to
188
+ **Solution**: Extract explanations to explanation/ and leave only steps in how-to
189
189
 
190
- ### Problema: Tutorial sin verificación por paso
190
+ ### Problem: Tutorial without per-step verification
191
191
 
192
- **Causa**: Se escribió sin seguir el patrón de tutorial
192
+ **Cause**: Written without following the tutorial pattern
193
193
 
194
- **Solución**: Agregar sección "✅ Verificación" al final de cada paso
194
+ **Solution**: Add "✅ Verification" section at the end of each step
195
195
 
196
- ### Problema: Referencia con prosa narrativa
196
+ ### Problem: Reference with narrative prose
197
197
 
198
- **Causa**: Se escribió referencia como si fuera tutorial
198
+ **Cause**: Reference written as if it were a tutorial
199
199
 
200
- **Solución**: Convertir prosa a tablas y listas. Mover narrativa a explanation/
200
+ **Solution**: Convert prose to tables and lists. Move narrative to explanation/
201
201
 
202
202
  ---
203
203
 
204
- ## Plantilla de Reporte de Salud
204
+ ## Health Report Template
205
205
 
206
206
  ```markdown
207
- # 🏥 Reporte de Salud Documentación
207
+ # 🏥 Health ReportDocumentation
208
208
 
209
- **Fecha**: [YYYY-MM-DD]
210
- **Revisor**: [agente/humano]
211
- **Proyecto**: [nombre]
209
+ **Date**: [YYYY-MM-DD]
210
+ **Reviewer**: [agent/human]
211
+ **Project**: [name]
212
212
 
213
213
  ---
214
214
 
215
- ## 📊 Puntuación General: [XX]/100 [🟢🟡🟠🔴]
215
+ ## 📊 Overall Score: [XX]/100 [🟢🟡🟠🔴]
216
216
 
217
- | Dimensión | Puntos | Máximo | Estado |
218
- |-----------|--------|--------|--------|
219
- | Completitud | XX | 30 | 🟢🟡🟠🔴 |
220
- | Actualidad | XX | 20 | 🟢🟡🟠🔴 |
221
- | Consistencia | XX | 20 | 🟢🟡🟠🔴 |
222
- | Cobertura | XX | 20 | 🟢🟡🟠🔴 |
223
- | Calidad | XX | 10 | 🟢🟡🟠🔴 |
217
+ | Dimension | Points | Max | Status |
218
+ | ------------ | ------ | --- | -------- |
219
+ | Completeness | XX | 30 | 🟢🟡🟠🔴 |
220
+ | Timeliness | XX | 20 | 🟢🟡🟠🔴 |
221
+ | Consistency | XX | 20 | 🟢🟡🟠🔴 |
222
+ | Coverage | XX | 20 | 🟢🟡🟠🔴 |
223
+ | Quality | XX | 10 | 🟢🟡🟠🔴 |
224
224
 
225
225
  ---
226
226
 
227
- ## 🔴 Crítico (resolver inmediatamente)
227
+ ## 🔴 Critical (resolve immediately)
228
228
 
229
- 1. **[problema]** → [archivo afectado] → [acción sugerida]
229
+ 1. **[problem]** → [affected file] → [suggested action]
230
230
 
231
- ## 🟡 Importante (resolver este sprint)
231
+ ## 🟡 Important (resolve this sprint)
232
232
 
233
- 1. **[problema]** → [archivo afectado] → [acción sugerida]
233
+ 1. **[problem]** → [affected file] → [suggested action]
234
234
 
235
- ## 🟢 Mejora (resolver cuando sea posible)
235
+ ## 🟢 Improvement (resolve when possible)
236
236
 
237
- 1. **[problema]** → [archivo afectado] → [acción sugerida]
237
+ 1. **[problem]** → [affected file] → [suggested action]
238
238
 
239
239
  ---
240
240
 
241
- ## 📁 Detalle por Archivo
241
+ ## 📁 Detail by File
242
242
 
243
- | Archivo | Estado | Puntuación | Issues |
244
- |---------|--------|------------|--------|
245
- | README.md | ✅ | 10/10 | — |
246
- | docs/CONTEXT.md | ⚠️ | 6/10 | 3 términos faltantes |
247
- | ... | ... | ... | ... |
243
+ | File | Status | Score | Issues |
244
+ | --------------- | ------ | ----- | --------------- |
245
+ | README.md | ✅ | 10/10 | — |
246
+ | docs/CONTEXT.md | ⚠️ | 6/10 | 3 missing terms |
247
+ | ... | ... | ... | ... |
248
248
 
249
249
  ---
250
250
 
251
- ## 📋 Acciones Recomendadas
251
+ ## 📋 Recommended Actions
252
252
 
253
- ### Prioridad Inmediata
254
- - [ ] [acción 1] → usar skill `[skill-name]`
255
- - [ ] [acción 2] → usar skill `[skill-name]`
253
+ ### Immediate Priority
256
254
 
257
- ### Esta Semana
258
- - [ ] [acción 3] → usar skill `[skill-name]`
255
+ - [ ] [action 1] → use skill `[skill-name]`
256
+ - [ ] [action 2] → use skill `[skill-name]`
259
257
 
260
- ### Este Sprint
261
- - [ ] [acción 4] → usar skill `[skill-name]`
258
+ ### This Week
259
+
260
+ - [ ] [action 3] → use skill `[skill-name]`
261
+
262
+ ### This Sprint
263
+
264
+ - [ ] [action 4] → use skill `[skill-name]`
262
265
 
263
266
  ---
264
267
 
265
- *Próxima revisión sugerida: [YYYY-MM-DD]*
268
+ _Suggested next review: [YYYY-MM-DD]_
266
269
  ```
267
270
 
268
271
  ---
269
272
 
270
- ## Cuándo Escalar
273
+ ## When to Escalate
271
274
 
272
- ### Gaps críticos que bloquean
275
+ ### Critical gaps that block
273
276
 
274
- | Gap | Impacto | Acción |
275
- |-----|---------|--------|
276
- | Sin tutorial de quick-start | Onboarding bloqueado | Crear con `doc-write` inmediatamente |
277
- | Sin referencia de API | Integradores bloqueados | Crear con `doc-write` |
278
- | CHANGELOG vacío | No hay historial de cambios | Crear entradas para cada versión |
279
- | Sin CONTEXT.md | Términos ambiguos | Crear con `doc-write` |
280
- | Sin AGENTS.md | Agentes sin protocolo | Crear con `doc-scaffold` |
281
- | DESIGN.md desincronizado >5 tokens | Inconsistencias visuales | Arreglar con `doc-design` |
277
+ | Gap | Impact | Action |
278
+ | ---------------------------- | ----------------------- | ----------------------------------- |
279
+ | No quick-start tutorial | Onboarding blocked | Create with `doc-write` immediately |
280
+ | No API reference | Integrators blocked | Create with `doc-write` |
281
+ | Empty CHANGELOG | No change history | Create entries for each version |
282
+ | No CONTEXT.md | Ambiguous terms | Create with `doc-write` |
283
+ | No AGENTS.md | Agents without protocol | Create with `doc-scaffold` |
284
+ | DESIGN.md desynced >5 tokens | Visual inconsistencies | Fix with `doc-design` |
282
285
 
283
- ### Gaps importantes que degradan
286
+ ### Important gaps that degrade
284
287
 
285
- | Gap | Impacto | Acción |
286
- |-----|---------|--------|
287
- | Cuadrante Diátaxis vacío | Cobertura incompleta | Crear contenido con `doc-write` |
288
- | ADRs sin status | Confusión sobre decisiones | Actualizar status |
289
- | 3+ TODOs en docs | Contenido incompleto | Completar o eliminar |
290
- | docs/README.md desactualizado | Mapa incorrecto | Actualizar |
288
+ | Gap | Impact | Action |
289
+ | ----------------------- | ------------------------- | ------------------------------- |
290
+ | Empty Diátaxis quadrant | Incomplete coverage | Create content with `doc-write` |
291
+ | ADRs without status | Confusion about decisions | Update status |
292
+ | 3+ TODOs in docs | Incomplete content | Complete or delete |
293
+ | docs/README.md outdated | Wrong map | Update |