@damenor/agent-docs 0.1.2 → 0.4.1

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 +3848 -217
  3. package/package.json +5 -2
  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 +61 -51
  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 +39 -34
  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 +19 -12
  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 +47 -18
  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 -105
  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 |
@@ -9,7 +9,7 @@ description: >
9
9
  license: Apache-2.0
10
10
  metadata:
11
11
  author: damenordev
12
- version: "1.0"
12
+ version: '1.0'
13
13
  ---
14
14
 
15
15
  # doc-scaffold
@@ -45,16 +45,16 @@ Always analyze the project BEFORE generating documentation:
45
45
 
46
46
  Create ONLY these files with real content:
47
47
 
48
- | File | Purpose | When to create |
49
- |------|---------|----------------|
50
- | `README.md` | Project entry point | Always |
51
- | `CHANGELOG.md` | Version history | Always (with initial entry) |
52
- | `AGENTS.md` | Protocol for AI agents | Always |
53
- | `docs/README.md` | Documentation map + growth rules | Always |
54
- | `docs/CONTEXT.md` | Domain terms found in code | Always |
55
- | `docs/adr/TEMPLATE.md` | Template for ADRs | Always |
56
- | `docs/adr/001-*.md` | First ADR if applicable | When there are architectural decisions |
57
- | `tutorials/quick-start.md` | Quick start tutorial | Always |
48
+ | File | Purpose | When to create |
49
+ | -------------------------- | -------------------------------- | -------------------------------------- |
50
+ | `README.md` | Project entry point | Always |
51
+ | `CHANGELOG.md` | Version history | Always (with initial entry) |
52
+ | `AGENTS.md` | Protocol for AI agents | Always |
53
+ | `docs/README.md` | Documentation map + growth rules | Always |
54
+ | `docs/CONTEXT.md` | Domain terms found in code | Always |
55
+ | `docs/adr/TEMPLATE.md` | Template for ADRs | Always |
56
+ | `docs/adr/001-*.md` | First ADR if applicable | When there are architectural decisions |
57
+ | `tutorials/quick-start.md` | Quick start tutorial | Always |
58
58
 
59
59
  ### RULE #4: CONTEXT.md is generated by analyzing code
60
60
 
@@ -71,7 +71,7 @@ Every documentation file must include frontmatter:
71
71
 
72
72
  ```yaml
73
73
  ---
74
- created: "2024-01-15"
74
+ created: '2024-01-15'
75
75
  status: active
76
76
  type: tutorial | how-to | reference | explanation
77
77
  tags: [tag1, tag2]
@@ -114,17 +114,20 @@ Check:
114
114
  # AGENTS.md — Documentation Protocol
115
115
 
116
116
  ## Before starting a task
117
+
117
118
  1. Read docs/CONTEXT.md to understand the domain
118
119
  2. Read docs/README.md to navigate the documentation
119
120
  3. Review relevant ADRs in docs/adr/
120
121
 
121
122
  ## After completing a task
123
+
122
124
  1. Update CONTEXT.md if new terms emerged
123
125
  2. Update docs/README.md if files were added/removed
124
126
  3. Evaluate if an ADR is needed (is it hard to reverse? is it surprising? is there a trade-off?)
125
127
  4. Pass the protocol to the subagent if work is delegated
126
128
 
127
129
  ## When delegating work
130
+
128
131
  1. Include this protocol in the subagent's prompt
129
132
  2. Specify which doc files to update
130
133
  3. Verify the subagent followed the protocol
@@ -133,6 +136,7 @@ Check:
133
136
  ### Step 4: Create docs/README.md
134
137
 
135
138
  Include:
139
+
136
140
  - Complete map of documentation files (generated, not placeholder)
137
141
  - Growth rules: when to add each type of doc
138
142
  - Naming conventions
@@ -141,6 +145,7 @@ Include:
141
145
  ### Step 5: Create docs/CONTEXT.md
142
146
 
143
147
  Generate with real domain terms detected in the code:
148
+
144
149
  - Table of terms with definitions
145
150
  - Relationships between terms
146
151
  - Flagged ambiguous terms
@@ -154,6 +159,7 @@ Generate with real domain terms detected in the code:
154
159
  ### Step 7: Create tutorials/quick-start.md
155
160
 
156
161
  Based on the detected stack:
162
+
157
163
  - Stack-specific prerequisites
158
164
  - Real installation steps
159
165
  - First runnable example
@@ -162,6 +168,7 @@ Based on the detected stack:
162
168
  ### Step 8: Create essential reference files
163
169
 
164
170
  Only those applicable to the detected stack:
171
+
165
172
  - If there is an API: `reference/api.md`
166
173
  - If there is configuration: `reference/configuration.md`
167
174
  - If there is a CLI: `reference/cli.md`