@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.
- package/README.md +65 -29
- package/dist/index.js +3848 -217
- package/package.json +5 -2
- package/templates/modules/agents/.agents/agents/doc-designer.md +39 -37
- package/templates/modules/agents/.agents/agents/doc-maintainer.md +35 -35
- package/templates/modules/agents/.agents/agents/doc-reviewer.md +55 -46
- package/templates/modules/agents/.agents/agents/doc-writer.md +34 -33
- package/templates/modules/agents/.agents/agents/reviewer.md +114 -100
- package/templates/modules/agents/.agents/skills/doc-design/SKILL.md +176 -174
- package/templates/modules/agents/.agents/skills/doc-design/references/design-system-format.md +241 -247
- package/templates/modules/agents/.agents/skills/doc-maintain/SKILL.md +61 -51
- package/templates/modules/agents/.agents/skills/doc-maintain/references/triggers.md +171 -165
- package/templates/modules/agents/.agents/skills/doc-review/SKILL.md +39 -34
- package/templates/modules/agents/.agents/skills/doc-review/references/health-checklist.md +115 -112
- package/templates/modules/agents/.agents/skills/doc-scaffold/SKILL.md +19 -12
- package/templates/modules/agents/.agents/skills/doc-scaffold/references/diataxis-quick-ref.md +110 -110
- package/templates/modules/agents/.agents/skills/doc-write/SKILL.md +47 -18
- package/templates/modules/agents/.agents/skills/doc-write/references/adr-format.md +99 -93
- package/templates/modules/agents/.agents/skills/doc-write/references/diataxis-patterns.md +221 -200
- package/templates/base/AGENTS.md +0 -177
- package/templates/base/CHANGELOG.md +0 -86
- package/templates/base/README.md +0 -105
- package/templates/base/docs/CONTEXT.md +0 -111
- package/templates/base/docs/README.md +0 -131
- package/templates/base/docs/adr/TEMPLATE.md +0 -83
- package/templates/modules/design/docs/DESIGN.md +0 -253
- package/templates/modules/explanation/docs/explanation/agent-flow.md +0 -15
- package/templates/modules/explanation/docs/explanation/architecture.md +0 -138
- package/templates/modules/guides/docs/guides/deployment.md +0 -189
- package/templates/modules/guides/docs/guides/runbooks/TEMPLATE.md +0 -86
- package/templates/modules/guides/docs/guides/troubleshooting.md +0 -65
- package/templates/modules/operations/docs/operations/README.md +0 -115
- package/templates/modules/product/docs/product/overview.md +0 -90
- package/templates/modules/product/docs/roadmap.md +0 -80
- package/templates/modules/reference/docs/reference/api.md +0 -131
- package/templates/modules/reference/docs/reference/code-style.md +0 -275
- package/templates/modules/reference/docs/reference/configuration.md +0 -117
- package/templates/modules/reference/docs/reference/infrastructure.md +0 -191
- package/templates/modules/tutorials/docs/tutorials/environment-setup.md +0 -212
- package/templates/modules/tutorials/docs/tutorials/first-task.md +0 -246
- package/templates/modules/tutorials/docs/tutorials/quick-start.md +0 -146
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
created:
|
|
2
|
+
created: '2024-01-15'
|
|
3
3
|
status: active
|
|
4
4
|
type: reference
|
|
5
|
-
tags: [
|
|
5
|
+
tags: [audit, checklist, health, documentation]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Documentation Health Checklist
|
|
9
9
|
|
|
10
|
-
## Checklist
|
|
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
|
-
##
|
|
107
|
+
## Scoring Rubric
|
|
108
108
|
|
|
109
|
-
###
|
|
109
|
+
### Completeness (max: 30 points)
|
|
110
110
|
|
|
111
|
-
|
|
|
112
|
-
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
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
|
-
###
|
|
117
|
+
### Timeliness (max: 20 points)
|
|
118
118
|
|
|
119
|
-
|
|
|
120
|
-
|
|
121
|
-
| Docs
|
|
122
|
-
| CHANGELOG
|
|
123
|
-
|
|
|
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
|
-
###
|
|
125
|
+
### Consistency (max: 20 points)
|
|
126
126
|
|
|
127
|
-
|
|
|
128
|
-
|
|
129
|
-
| CONTEXT.md
|
|
130
|
-
| DESIGN.md
|
|
131
|
-
| docs/README.md
|
|
132
|
-
|
|
|
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
|
-
###
|
|
134
|
+
### Coverage (max: 20 points)
|
|
135
135
|
|
|
136
|
-
|
|
|
137
|
-
|
|
138
|
-
| Diátaxis 4
|
|
139
|
-
| API/endpoints
|
|
140
|
-
|
|
|
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
|
-
###
|
|
142
|
+
### Quality (max: 10 points)
|
|
143
143
|
|
|
144
|
-
|
|
|
145
|
-
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
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
|
-
##
|
|
152
|
+
## Common Problems and Solutions
|
|
153
153
|
|
|
154
|
-
###
|
|
154
|
+
### Problem: File with only title and frontmatter
|
|
155
155
|
|
|
156
|
-
**
|
|
156
|
+
**Cause**: Created as a placeholder and never completed
|
|
157
157
|
|
|
158
|
-
**
|
|
158
|
+
**Solution**: Use `doc-write` to write real content or delete the file
|
|
159
159
|
|
|
160
|
-
###
|
|
160
|
+
### Problem: CONTEXT.md outdated
|
|
161
161
|
|
|
162
|
-
**
|
|
162
|
+
**Cause**: Terms were added to code without updating CONTEXT
|
|
163
163
|
|
|
164
|
-
**
|
|
164
|
+
**Solution**: Use `doc-write` to add missing terms. Search code for: module names, classes, interfaces, main types
|
|
165
165
|
|
|
166
|
-
###
|
|
166
|
+
### Problem: DESIGN.md doesn't match CSS
|
|
167
167
|
|
|
168
|
-
**
|
|
168
|
+
**Cause**: Styles were changed without updating DESIGN.md
|
|
169
169
|
|
|
170
|
-
**
|
|
170
|
+
**Solution**: Use `doc-design` to re-extract tokens from code and update
|
|
171
171
|
|
|
172
|
-
###
|
|
172
|
+
### Problem: ADRs without status
|
|
173
173
|
|
|
174
|
-
**
|
|
174
|
+
**Cause**: Created as proposed and status was never updated
|
|
175
175
|
|
|
176
|
-
**
|
|
176
|
+
**Solution**: Review each ADR and update status according to current reality
|
|
177
177
|
|
|
178
|
-
###
|
|
178
|
+
### Problem: Broken wikilinks
|
|
179
179
|
|
|
180
|
-
**
|
|
180
|
+
**Cause**: A file was renamed or deleted without updating references
|
|
181
181
|
|
|
182
|
-
**
|
|
182
|
+
**Solution**: Search all `[[links]]` and verify the file exists
|
|
183
183
|
|
|
184
|
-
###
|
|
184
|
+
### Problem: How-to that explains concepts
|
|
185
185
|
|
|
186
|
-
**
|
|
186
|
+
**Cause**: Confusion between how-to and explanation
|
|
187
187
|
|
|
188
|
-
**
|
|
188
|
+
**Solution**: Extract explanations to explanation/ and leave only steps in how-to
|
|
189
189
|
|
|
190
|
-
###
|
|
190
|
+
### Problem: Tutorial without per-step verification
|
|
191
191
|
|
|
192
|
-
**
|
|
192
|
+
**Cause**: Written without following the tutorial pattern
|
|
193
193
|
|
|
194
|
-
**
|
|
194
|
+
**Solution**: Add "✅ Verification" section at the end of each step
|
|
195
195
|
|
|
196
|
-
###
|
|
196
|
+
### Problem: Reference with narrative prose
|
|
197
197
|
|
|
198
|
-
**
|
|
198
|
+
**Cause**: Reference written as if it were a tutorial
|
|
199
199
|
|
|
200
|
-
**
|
|
200
|
+
**Solution**: Convert prose to tables and lists. Move narrative to explanation/
|
|
201
201
|
|
|
202
202
|
---
|
|
203
203
|
|
|
204
|
-
##
|
|
204
|
+
## Health Report Template
|
|
205
205
|
|
|
206
206
|
```markdown
|
|
207
|
-
# 🏥
|
|
207
|
+
# 🏥 Health Report — Documentation
|
|
208
208
|
|
|
209
|
-
**
|
|
210
|
-
**
|
|
211
|
-
**
|
|
209
|
+
**Date**: [YYYY-MM-DD]
|
|
210
|
+
**Reviewer**: [agent/human]
|
|
211
|
+
**Project**: [name]
|
|
212
212
|
|
|
213
213
|
---
|
|
214
214
|
|
|
215
|
-
## 📊
|
|
215
|
+
## 📊 Overall Score: [XX]/100 [🟢🟡🟠🔴]
|
|
216
216
|
|
|
217
|
-
|
|
|
218
|
-
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
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
|
-
## 🔴
|
|
227
|
+
## 🔴 Critical (resolve immediately)
|
|
228
228
|
|
|
229
|
-
1. **[
|
|
229
|
+
1. **[problem]** → [affected file] → [suggested action]
|
|
230
230
|
|
|
231
|
-
## 🟡
|
|
231
|
+
## 🟡 Important (resolve this sprint)
|
|
232
232
|
|
|
233
|
-
1. **[
|
|
233
|
+
1. **[problem]** → [affected file] → [suggested action]
|
|
234
234
|
|
|
235
|
-
## 🟢
|
|
235
|
+
## 🟢 Improvement (resolve when possible)
|
|
236
236
|
|
|
237
|
-
1. **[
|
|
237
|
+
1. **[problem]** → [affected file] → [suggested action]
|
|
238
238
|
|
|
239
239
|
---
|
|
240
240
|
|
|
241
|
-
## 📁
|
|
241
|
+
## 📁 Detail by File
|
|
242
242
|
|
|
243
|
-
|
|
|
244
|
-
|
|
245
|
-
| README.md
|
|
246
|
-
| docs/CONTEXT.md | ⚠️
|
|
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
|
-
## 📋
|
|
251
|
+
## 📋 Recommended Actions
|
|
252
252
|
|
|
253
|
-
###
|
|
254
|
-
- [ ] [acción 1] → usar skill `[skill-name]`
|
|
255
|
-
- [ ] [acción 2] → usar skill `[skill-name]`
|
|
253
|
+
### Immediate Priority
|
|
256
254
|
|
|
257
|
-
|
|
258
|
-
- [ ] [
|
|
255
|
+
- [ ] [action 1] → use skill `[skill-name]`
|
|
256
|
+
- [ ] [action 2] → use skill `[skill-name]`
|
|
259
257
|
|
|
260
|
-
###
|
|
261
|
-
|
|
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
|
-
|
|
268
|
+
_Suggested next review: [YYYY-MM-DD]_
|
|
266
269
|
```
|
|
267
270
|
|
|
268
271
|
---
|
|
269
272
|
|
|
270
|
-
##
|
|
273
|
+
## When to Escalate
|
|
271
274
|
|
|
272
|
-
###
|
|
275
|
+
### Critical gaps that block
|
|
273
276
|
|
|
274
|
-
| Gap
|
|
275
|
-
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
| CHANGELOG
|
|
279
|
-
|
|
|
280
|
-
|
|
|
281
|
-
| DESIGN.md
|
|
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
|
-
###
|
|
286
|
+
### Important gaps that degrade
|
|
284
287
|
|
|
285
|
-
| Gap
|
|
286
|
-
|
|
287
|
-
|
|
|
288
|
-
| ADRs
|
|
289
|
-
| 3+ TODOs
|
|
290
|
-
| docs/README.md
|
|
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:
|
|
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
|
|
49
|
-
|
|
50
|
-
| `README.md`
|
|
51
|
-
| `CHANGELOG.md`
|
|
52
|
-
| `AGENTS.md`
|
|
53
|
-
| `docs/README.md`
|
|
54
|
-
| `docs/CONTEXT.md`
|
|
55
|
-
| `docs/adr/TEMPLATE.md`
|
|
56
|
-
| `docs/adr/001-*.md`
|
|
57
|
-
| `tutorials/quick-start.md` | Quick start tutorial
|
|
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:
|
|
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`
|