@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.
- package/README.md +65 -29
- package/dist/index.js +3834 -217
- package/package.json +14 -11
- 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 +205 -195
- package/templates/modules/agents/.agents/skills/doc-maintain/references/triggers.md +171 -165
- package/templates/modules/agents/.agents/skills/doc-review/SKILL.md +245 -240
- package/templates/modules/agents/.agents/skills/doc-review/references/health-checklist.md +115 -112
- package/templates/modules/agents/.agents/skills/doc-scaffold/SKILL.md +164 -157
- 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 +240 -212
- 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 -110
- 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,345 +1,355 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: doc-maintain
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
post-
|
|
8
|
-
TRIGGER:
|
|
9
|
-
"post-feature", "post-release", "post-incident",
|
|
10
|
-
|
|
4
|
+
Keeps documentation synchronized with code changes.
|
|
5
|
+
Runs AFTER each task that modifies code, using the trigger
|
|
6
|
+
table to determine which documentation to update. Follows the
|
|
7
|
+
post-task protocol from AGENTS.md.
|
|
8
|
+
TRIGGER: When the user says "sync docs", "update docs post-change",
|
|
9
|
+
"post-feature", "post-release", "post-incident", or automatically after
|
|
10
|
+
any task that changes code.
|
|
11
11
|
license: Apache-2.0
|
|
12
12
|
metadata:
|
|
13
13
|
author: damenordev
|
|
14
|
-
version:
|
|
14
|
+
version: '1.0'
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# doc-maintain
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## When to Use
|
|
20
20
|
|
|
21
|
-
- **Post-feature**:
|
|
22
|
-
- **Post-release**:
|
|
23
|
-
- **Post-incident**:
|
|
24
|
-
- **Post-refactor**:
|
|
25
|
-
- **Post-hire**:
|
|
26
|
-
- **Post-design-change**:
|
|
27
|
-
- **Post-API-change**:
|
|
28
|
-
- **Post-config-change**:
|
|
21
|
+
- **Post-feature**: After implementing a new feature
|
|
22
|
+
- **Post-release**: After making a release to production
|
|
23
|
+
- **Post-incident**: After resolving a production incident
|
|
24
|
+
- **Post-refactor**: After refactoring code
|
|
25
|
+
- **Post-hire**: When a new dev reviews the documentation
|
|
26
|
+
- **Post-design-change**: After changes to styles/UI
|
|
27
|
+
- **Post-API-change**: After adding/modifying/removing endpoints
|
|
28
|
+
- **Post-config-change**: After changing configuration
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Critical Patterns
|
|
31
31
|
|
|
32
|
-
###
|
|
32
|
+
### RULE #1: This skill runs AFTER every task that changes code
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
|
|
35
|
+
Code changed → doc-maintain runs
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
It is not optional. It is not "when there's time". It is part of the Definition of Done.
|
|
39
39
|
|
|
40
|
-
###
|
|
40
|
+
### RULE #2: Verify what changed and update corresponding docs
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
1.
|
|
44
|
-
2.
|
|
45
|
-
3.
|
|
46
|
-
4.
|
|
43
|
+
1. Identify which files changed (git diff, change list)
|
|
44
|
+
2. Map changes to affected documentation (see trigger table)
|
|
45
|
+
3. Update each affected doc file
|
|
46
|
+
4. Verify consistency
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
###
|
|
49
|
+
### RULE #3: NEVER skip doc updates
|
|
50
50
|
|
|
51
51
|
```
|
|
52
|
-
|
|
52
|
+
Code changes = Documentation changes
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
If there's no time to update docs, there's no time to make the code change.
|
|
56
56
|
|
|
57
|
-
###
|
|
57
|
+
### RULE #4: Follow the post-task protocol from AGENTS.md
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Execute the **post-task tree** defined in `AGENTS.md` § AFTER each task. That tree is the source of truth for which documentation to update based on what changed.
|
|
60
60
|
|
|
61
|
-
###
|
|
61
|
+
### RULE #5: If unsure what to update, run doc-review first
|
|
62
62
|
|
|
63
63
|
```
|
|
64
|
-
|
|
65
|
-
→
|
|
66
|
-
→
|
|
67
|
-
→
|
|
64
|
+
Not clear which docs are affected?
|
|
65
|
+
→ Run doc-review skill
|
|
66
|
+
→ Identify gaps
|
|
67
|
+
→ Update based on the report
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
##
|
|
70
|
+
## Trigger and Action Table
|
|
71
71
|
|
|
72
72
|
### Post-feature
|
|
73
73
|
|
|
74
|
-
**
|
|
74
|
+
**What to detect**: A new feature was added (new module, new functionality, new endpoint)
|
|
75
75
|
|
|
76
|
-
**Docs
|
|
76
|
+
**Docs to update**:
|
|
77
77
|
|
|
78
|
-
|
|
|
79
|
-
|
|
80
|
-
| `docs/CONTEXT.md` |
|
|
81
|
-
| `docs/README.md`
|
|
82
|
-
| `docs/adr/`
|
|
83
|
-
| `how-to/`
|
|
84
|
-
| `reference/`
|
|
85
|
-
| `tutorials/`
|
|
86
|
-
| `CHANGELOG.md`
|
|
78
|
+
| Document | When | Priority | Skill |
|
|
79
|
+
| ----------------- | --------------------------------------------------- | -------- | --------- |
|
|
80
|
+
| `docs/CONTEXT.md` | If there are new terms | Critical | doc-write |
|
|
81
|
+
| `docs/README.md` | If doc files were created/removed | Critical | doc-write |
|
|
82
|
+
| `docs/adr/` | If an architectural decision was made | High | doc-write |
|
|
83
|
+
| `how-to/` | If there is a repeatable problem the feature solves | Medium | doc-write |
|
|
84
|
+
| `reference/` | If endpoints/functions/props were added | High | doc-write |
|
|
85
|
+
| `tutorials/` | If the feature changes onboarding | Low | doc-write |
|
|
86
|
+
| `CHANGELOG.md` | If the feature will be in a release | High | doc-write |
|
|
87
87
|
|
|
88
88
|
### Post-release
|
|
89
89
|
|
|
90
|
-
**
|
|
90
|
+
**What to detect**: A deploy to production was made, a version tag was created
|
|
91
91
|
|
|
92
|
-
**Docs
|
|
92
|
+
**Docs to update**:
|
|
93
93
|
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
| `CHANGELOG.md`
|
|
97
|
-
| `docs/guides/deployment.md` |
|
|
98
|
-
| `docs/README.md`
|
|
99
|
-
| `README.md`
|
|
94
|
+
| Document | When | Priority | Skill |
|
|
95
|
+
| --------------------------- | --------------------------------- | -------- | --------- |
|
|
96
|
+
| `CHANGELOG.md` | Always | Critical | doc-write |
|
|
97
|
+
| `docs/guides/deployment.md` | If the deploy process changed | High | doc-write |
|
|
98
|
+
| `docs/README.md` | If the doc structure changed | Medium | doc-write |
|
|
99
|
+
| `README.md` | If there are user-visible changes | High | doc-write |
|
|
100
|
+
|
|
101
|
+
**CHANGELOG entry**:
|
|
100
102
|
|
|
101
|
-
**Entrada de CHANGELOG**:
|
|
102
103
|
```markdown
|
|
103
104
|
## [X.Y.Z] - YYYY-MM-DD
|
|
104
105
|
|
|
105
106
|
### Added
|
|
106
|
-
|
|
107
|
+
|
|
108
|
+
- Description of new feature
|
|
107
109
|
|
|
108
110
|
### Changed
|
|
109
|
-
|
|
111
|
+
|
|
112
|
+
- Description of change
|
|
110
113
|
|
|
111
114
|
### Fixed
|
|
112
|
-
|
|
115
|
+
|
|
116
|
+
- Description of fix
|
|
113
117
|
|
|
114
118
|
### Breaking
|
|
115
|
-
|
|
119
|
+
|
|
120
|
+
- ⚠️ Description of breaking change
|
|
116
121
|
```
|
|
117
122
|
|
|
118
123
|
### Post-incident
|
|
119
124
|
|
|
120
|
-
**
|
|
125
|
+
**What to detect**: A production incident was resolved (outage, critical bug, data loss)
|
|
121
126
|
|
|
122
|
-
**Docs
|
|
127
|
+
**Docs to update**:
|
|
123
128
|
|
|
124
|
-
|
|
|
125
|
-
|
|
126
|
-
| `operations/post-mortems/YYYY-MM-DD-
|
|
127
|
-
| `operations/runbooks/`
|
|
128
|
-
| `docs/CONTEXT.md`
|
|
129
|
-
| `reference/configuration.md`
|
|
130
|
-
| `how-to/troubleshooting.md`
|
|
129
|
+
| Document | When | Priority | Skill |
|
|
130
|
+
| --------------------------------------------- | ------------------------------------------- | -------- | --------- |
|
|
131
|
+
| `operations/post-mortems/YYYY-MM-DD-title.md` | Always | Critical | doc-write |
|
|
132
|
+
| `operations/runbooks/` | If there are resolution steps to repeat | High | doc-write |
|
|
133
|
+
| `docs/CONTEXT.md` | If domain terms were discovered | Medium | doc-write |
|
|
134
|
+
| `reference/configuration.md` | If configs were changed during the incident | High | doc-write |
|
|
135
|
+
| `how-to/troubleshooting.md` | If the fix is applicable in the future | High | doc-write |
|
|
136
|
+
|
|
137
|
+
**Post-mortem format**:
|
|
131
138
|
|
|
132
|
-
**Formato de post-mortem**:
|
|
133
139
|
```markdown
|
|
134
140
|
---
|
|
135
|
-
created:
|
|
141
|
+
created: 'YYYY-MM-DD'
|
|
136
142
|
status: active
|
|
137
143
|
type: explanation
|
|
138
144
|
tags: [post-mortem, incident, sev-N]
|
|
139
145
|
---
|
|
140
146
|
|
|
141
|
-
# Post-mortem: [
|
|
147
|
+
# Post-mortem: [Incident title]
|
|
148
|
+
|
|
149
|
+
**Date**: YYYY-MM-DD
|
|
150
|
+
**Severity**: SEV-N
|
|
151
|
+
**Duration**: X hours/minutes
|
|
152
|
+
**Impact**: Description of user impact
|
|
153
|
+
|
|
154
|
+
## Timeline
|
|
155
|
+
|
|
156
|
+
- HH:MM — Detection
|
|
157
|
+
- HH:MM — Diagnosis
|
|
158
|
+
- HH:MM — Mitigation
|
|
159
|
+
- HH:MM — Resolution
|
|
160
|
+
|
|
161
|
+
## Root cause
|
|
142
162
|
|
|
143
|
-
|
|
144
|
-
**Severidad**: SEV-N
|
|
145
|
-
**Duración**: X horas/minutos
|
|
146
|
-
**Impacto**: Descripción del impacto en usuarios
|
|
163
|
+
[Description]
|
|
147
164
|
|
|
148
|
-
##
|
|
149
|
-
- HH:MM — Detección
|
|
150
|
-
- HH:MM — Diagnóstico
|
|
151
|
-
- HH:MM — Mitigación
|
|
152
|
-
- HH:MM — Resolución
|
|
165
|
+
## Preventive actions
|
|
153
166
|
|
|
154
|
-
|
|
155
|
-
[
|
|
167
|
+
- [ ] [Action 1] — Responsible — Deadline
|
|
168
|
+
- [ ] [Action 2] — Responsible — Deadline
|
|
156
169
|
|
|
157
|
-
##
|
|
158
|
-
- [ ] [Acción 1] — Responsable — Fecha límite
|
|
159
|
-
- [ ] [Acción 2] — Responsable — Fecha límite
|
|
170
|
+
## Lessons learned
|
|
160
171
|
|
|
161
|
-
|
|
162
|
-
[Qué aprendimos]
|
|
172
|
+
[What we learned]
|
|
163
173
|
```
|
|
164
174
|
|
|
165
175
|
### Post-refactor
|
|
166
176
|
|
|
167
|
-
**
|
|
177
|
+
**What to detect**: Code was refactored (renamed, moved, changed patterns)
|
|
168
178
|
|
|
169
|
-
**Docs
|
|
179
|
+
**Docs to update**:
|
|
170
180
|
|
|
171
|
-
|
|
|
172
|
-
|
|
173
|
-
| `docs/adr/`
|
|
174
|
-
| `docs/explanation/architecture.md` |
|
|
175
|
-
| `docs/CONTEXT.md`
|
|
176
|
-
| `docs/README.md`
|
|
177
|
-
| ADRs
|
|
181
|
+
| Document | When | Priority | Skill |
|
|
182
|
+
| ---------------------------------- | ---------------------------------------- | -------- | --------- |
|
|
183
|
+
| `docs/adr/` | If the refactor implies a pattern change | High | doc-write |
|
|
184
|
+
| `docs/explanation/architecture.md` | If the architecture changed | High | doc-write |
|
|
185
|
+
| `docs/CONTEXT.md` | If names/terms changed | Critical | doc-write |
|
|
186
|
+
| `docs/README.md` | If files were moved | Medium | doc-write |
|
|
187
|
+
| Existing ADRs | Verify they are still valid | High | doc-write |
|
|
178
188
|
|
|
179
189
|
### Post-hire
|
|
180
190
|
|
|
181
|
-
**
|
|
191
|
+
**What to detect**: A new dev joined the team and reviews the documentation
|
|
182
192
|
|
|
183
|
-
**Docs
|
|
193
|
+
**Docs to update**:
|
|
184
194
|
|
|
185
|
-
|
|
|
186
|
-
|
|
187
|
-
| `tutorials/quick-start.md` |
|
|
188
|
-
| `docs/CONTEXT.md`
|
|
189
|
-
|
|
|
195
|
+
| Document | When | Priority | Skill |
|
|
196
|
+
| -------------------------- | ------------------------------------------- | -------- | --------- |
|
|
197
|
+
| `tutorials/quick-start.md` | If the new dev couldn't follow the tutorial | Critical | doc-write |
|
|
198
|
+
| `docs/CONTEXT.md` | If the new dev found confusing terms | High | doc-write |
|
|
199
|
+
| Any doc | If the new dev found incorrect info | High | doc-write |
|
|
190
200
|
|
|
191
201
|
### Post-design-change
|
|
192
202
|
|
|
193
|
-
**
|
|
203
|
+
**What to detect**: Styles, design tokens, or UI components were changed
|
|
194
204
|
|
|
195
|
-
**Docs
|
|
205
|
+
**Docs to update**:
|
|
196
206
|
|
|
197
|
-
|
|
|
198
|
-
|
|
199
|
-
| `DESIGN.md`
|
|
200
|
-
| `docs/CONTEXT.md` |
|
|
207
|
+
| Document | When | Priority | Skill |
|
|
208
|
+
| ----------------- | ----------------------------- | -------- | ---------- |
|
|
209
|
+
| `DESIGN.md` | Always | Critical | doc-design |
|
|
210
|
+
| `docs/CONTEXT.md` | If there are new design terms | Medium | doc-write |
|
|
201
211
|
|
|
202
|
-
**
|
|
212
|
+
**Use skill `doc-design`** to re-extract tokens and update DESIGN.md.
|
|
203
213
|
|
|
204
214
|
### Post-API-change
|
|
205
215
|
|
|
206
|
-
**
|
|
216
|
+
**What to detect**: Endpoints were added, modified, or removed
|
|
207
217
|
|
|
208
|
-
**Docs
|
|
218
|
+
**Docs to update**:
|
|
209
219
|
|
|
210
|
-
|
|
|
211
|
-
|
|
212
|
-
| `reference/api.md` |
|
|
213
|
-
| `CHANGELOG.md`
|
|
214
|
-
| `docs/adr/`
|
|
215
|
-
| `how-to/`
|
|
220
|
+
| Document | When | Priority | Skill |
|
|
221
|
+
| ------------------ | ----------------------------- | -------- | --------- |
|
|
222
|
+
| `reference/api.md` | Always | Critical | doc-write |
|
|
223
|
+
| `CHANGELOG.md` | If there are breaking changes | Critical | doc-write |
|
|
224
|
+
| `docs/adr/` | If the API structure changed | High | doc-write |
|
|
225
|
+
| `how-to/` | If there are new usage flows | Medium | doc-write |
|
|
216
226
|
|
|
217
227
|
### Post-config-change
|
|
218
228
|
|
|
219
|
-
**
|
|
229
|
+
**What to detect**: Environment variables, configurations, or infrastructure were changed
|
|
220
230
|
|
|
221
|
-
**Docs
|
|
231
|
+
**Docs to update**:
|
|
222
232
|
|
|
223
|
-
|
|
|
224
|
-
|
|
225
|
-
| `reference/configuration.md` |
|
|
226
|
-
| `docs/guides/deployment.md`
|
|
227
|
-
| `docs/adr/`
|
|
228
|
-
| `.env.example`
|
|
233
|
+
| Document | When | Priority | Skill |
|
|
234
|
+
| ---------------------------- | -------------------------------------------- | -------- | --------- |
|
|
235
|
+
| `reference/configuration.md` | Always | Critical | doc-write |
|
|
236
|
+
| `docs/guides/deployment.md` | If it affects deploy | High | doc-write |
|
|
237
|
+
| `docs/adr/` | If it is a significant infrastructure change | High | doc-write |
|
|
238
|
+
| `.env.example` | If variables were added | High | direct |
|
|
229
239
|
|
|
230
|
-
##
|
|
240
|
+
## Process Flow
|
|
231
241
|
|
|
232
|
-
###
|
|
242
|
+
### Step 1: Identify what changed
|
|
233
243
|
|
|
234
244
|
```bash
|
|
235
|
-
#
|
|
245
|
+
# Option A: Git diff
|
|
236
246
|
git diff --name-only HEAD~1 HEAD
|
|
237
247
|
git diff --name-only --staged
|
|
238
248
|
|
|
239
|
-
#
|
|
240
|
-
[
|
|
249
|
+
# Option B: Manual list of changed files
|
|
250
|
+
[list provided by agent/human]
|
|
241
251
|
```
|
|
242
252
|
|
|
243
|
-
###
|
|
253
|
+
### Step 2: Map changes to affected docs
|
|
244
254
|
|
|
245
255
|
```
|
|
246
|
-
|
|
247
|
-
├──
|
|
248
|
-
├──
|
|
249
|
-
├──
|
|
250
|
-
├──
|
|
251
|
-
├──
|
|
252
|
-
├──
|
|
253
|
-
└──
|
|
256
|
+
For each changed file:
|
|
257
|
+
├── Is it source code? → Check reference/, CONTEXT.md
|
|
258
|
+
├── Is it styles/CSS? → Check DESIGN.md
|
|
259
|
+
├── Is it configuration? → Check reference/configuration.md
|
|
260
|
+
├── Is it a new module? → Check CONTEXT.md, docs/README.md
|
|
261
|
+
├── Is it a fix? → Check CHANGELOG.md, troubleshooting
|
|
262
|
+
├── Is it infrastructure? → Check deployment.md, ADRs
|
|
263
|
+
└── Is it a test? → Generally no doc update needed
|
|
254
264
|
```
|
|
255
265
|
|
|
256
|
-
###
|
|
266
|
+
### Step 3: Update each affected doc
|
|
257
267
|
|
|
258
268
|
```
|
|
259
|
-
1.
|
|
260
|
-
2.
|
|
261
|
-
3.
|
|
262
|
-
4.
|
|
269
|
+
1. Open the affected doc file
|
|
270
|
+
2. Identify the section that needs changing
|
|
271
|
+
3. Make the change maintaining the existing format
|
|
272
|
+
4. Verify the change is consistent with the rest of the file
|
|
263
273
|
```
|
|
264
274
|
|
|
265
|
-
###
|
|
275
|
+
### Step 4: Verify consistency
|
|
266
276
|
|
|
267
277
|
```
|
|
268
|
-
1. CONTEXT.md:
|
|
269
|
-
2. docs/README.md:
|
|
270
|
-
3. ADRs:
|
|
271
|
-
4. DESIGN.md:
|
|
272
|
-
5. reference/api.md:
|
|
278
|
+
1. CONTEXT.md: Are the new terms there? Are removed ones marked?
|
|
279
|
+
2. docs/README.md: Does the map reflect current files?
|
|
280
|
+
3. ADRs: Do the changes invalidate any existing ADR?
|
|
281
|
+
4. DESIGN.md: Do tokens still match? (if styles changed)
|
|
282
|
+
5. reference/api.md: Do documented endpoints match the code?
|
|
273
283
|
```
|
|
274
284
|
|
|
275
|
-
###
|
|
285
|
+
### Step 5: Report what was updated
|
|
276
286
|
|
|
277
287
|
```
|
|
278
|
-
✅
|
|
279
|
-
- docs/CONTEXT.md:
|
|
280
|
-
- docs/README.md:
|
|
281
|
-
- reference/api.md:
|
|
282
|
-
|
|
283
|
-
ℹ️
|
|
284
|
-
- CHANGELOG.md: Feature
|
|
285
|
-
- DESIGN.md: No
|
|
288
|
+
✅ Documentation updated:
|
|
289
|
+
- docs/CONTEXT.md: Added 2 terms (UserService, RateLimit)
|
|
290
|
+
- docs/README.md: Added how-to/rate-limiting.md to map
|
|
291
|
+
- reference/api.md: Updated endpoint /api/users with new field
|
|
292
|
+
|
|
293
|
+
ℹ️ No changes needed:
|
|
294
|
+
- CHANGELOG.md: Feature not yet released
|
|
295
|
+
- DESIGN.md: No style changes
|
|
286
296
|
```
|
|
287
297
|
|
|
288
|
-
##
|
|
298
|
+
## Batch Updates
|
|
289
299
|
|
|
290
|
-
|
|
300
|
+
When multiple changes occur together (e.g., end of sprint):
|
|
291
301
|
|
|
292
302
|
```
|
|
293
|
-
1.
|
|
294
|
-
2.
|
|
295
|
-
3.
|
|
296
|
-
4.
|
|
303
|
+
1. List ALL changes since the last update
|
|
304
|
+
2. Group by trigger type (feature, refactor, fix, etc.)
|
|
305
|
+
3. Update each doc ONCE with all accumulated changes
|
|
306
|
+
4. Run doc-review at the end to verify consistency
|
|
297
307
|
```
|
|
298
308
|
|
|
299
|
-
###
|
|
309
|
+
### Example: End of sprint
|
|
300
310
|
|
|
301
311
|
```
|
|
302
|
-
|
|
303
|
-
- 3 features
|
|
304
|
-
- 1 refactor
|
|
312
|
+
Sprint changes:
|
|
313
|
+
- 3 new features
|
|
314
|
+
- 1 auth refactor
|
|
305
315
|
- 2 bug fixes
|
|
306
|
-
- 1
|
|
307
|
-
|
|
308
|
-
Docs
|
|
309
|
-
1. CHANGELOG.md →
|
|
310
|
-
2. CONTEXT.md →
|
|
311
|
-
3. reference/api.md →
|
|
312
|
-
4. docs/adr/ →
|
|
313
|
-
5. reference/configuration.md →
|
|
314
|
-
6. docs/README.md →
|
|
316
|
+
- 1 configuration change
|
|
317
|
+
|
|
318
|
+
Docs to update:
|
|
319
|
+
1. CHANGELOG.md → Complete sprint entry
|
|
320
|
+
2. CONTEXT.md → Terms from 3 features + auth refactor
|
|
321
|
+
3. reference/api.md → New endpoints
|
|
322
|
+
4. docs/adr/ → Auth refactor ADR (if applicable)
|
|
323
|
+
5. reference/configuration.md → Changed config
|
|
324
|
+
6. docs/README.md → If docs were added/removed
|
|
315
325
|
```
|
|
316
326
|
|
|
317
|
-
##
|
|
327
|
+
## Commands
|
|
318
328
|
|
|
319
|
-
###
|
|
329
|
+
### Identify changes
|
|
320
330
|
|
|
321
331
|
```bash
|
|
322
|
-
#
|
|
332
|
+
# Files modified in the last commit
|
|
323
333
|
git diff --name-only HEAD~1
|
|
324
334
|
|
|
325
|
-
#
|
|
335
|
+
# Modified files (staged + unstaged)
|
|
326
336
|
git diff --name-only; git diff --name-only --staged
|
|
327
337
|
|
|
328
|
-
#
|
|
338
|
+
# Changes in a range of commits
|
|
329
339
|
git diff --name-only commit1..commit2
|
|
330
340
|
```
|
|
331
341
|
|
|
332
|
-
###
|
|
342
|
+
### Post-update consistency verification
|
|
333
343
|
|
|
334
344
|
```
|
|
335
|
-
1.
|
|
336
|
-
2.
|
|
337
|
-
3.
|
|
338
|
-
4.
|
|
339
|
-
5.
|
|
345
|
+
1. Does CONTEXT.md have all the new terms from code?
|
|
346
|
+
2. Does docs/README.md list all existing doc files?
|
|
347
|
+
3. Are ADRs consistent with the current implementation?
|
|
348
|
+
4. Does DESIGN.md match current styles?
|
|
349
|
+
5. Does reference/api.md reflect current endpoints?
|
|
340
350
|
```
|
|
341
351
|
|
|
342
|
-
##
|
|
352
|
+
## Resources
|
|
343
353
|
|
|
344
|
-
- [Triggers Reference](references/triggers.md) —
|
|
345
|
-
-
|
|
354
|
+
- [Triggers Reference](references/triggers.md) — Complete table of events → docs to update with examples
|
|
355
|
+
- Related skills: `doc-write` (write/update docs), `doc-review` (audit after updating), `doc-design` (update DESIGN.md), `doc-scaffold` (if structure is missing)
|