@open-agent-toolkit/cli 0.1.20 → 0.1.22
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/assets/agents/oat-reviewer.md +48 -10
- package/assets/docs/cli-utilities/config-and-local-state.md +12 -0
- package/assets/docs/cli-utilities/configuration.md +19 -1
- package/assets/docs/contributing/documentation.md +6 -2
- package/assets/docs/docs-tooling/add-docs-to-a-repo.md +24 -14
- package/assets/docs/docs-tooling/commands.md +16 -14
- package/assets/docs/docs-tooling/workflows.md +22 -9
- package/assets/docs/reference/cli-reference.md +6 -2
- package/assets/docs/reference/docs-index-contract.md +28 -6
- package/assets/docs/reference/index.md +1 -1
- package/assets/docs/workflows/projects/implementation-execution.md +1 -1
- package/assets/docs/workflows/projects/reviews.md +41 -0
- package/assets/docs/workflows/skills/index.md +3 -1
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/authoring-docs/SKILL.md +135 -0
- package/assets/skills/authoring-docs/references/categories.md +251 -0
- package/assets/skills/authoring-docs/references/information-architecture.md +156 -0
- package/assets/skills/authoring-docs/references/page-types.md +119 -0
- package/assets/skills/authoring-docs/references/principles.md +98 -0
- package/assets/skills/authoring-docs/references/review-rubric.md +169 -0
- package/assets/skills/authoring-docs/references/templates.md +549 -0
- package/assets/skills/authoring-docs/references/workflow.md +133 -0
- package/assets/skills/authoring-docs/references/writing-style.md +128 -0
- package/assets/skills/oat-agent-instructions-analyze/SKILL.md +43 -13
- package/assets/skills/oat-docs-analyze/SKILL.md +183 -28
- package/assets/skills/oat-docs-analyze/references/analysis-artifact-template.md +101 -1
- package/assets/skills/oat-docs-analyze/references/directory-assessment-criteria.md +16 -0
- package/assets/skills/oat-docs-analyze/references/quality-checklist.md +83 -3
- package/assets/skills/oat-docs-authoring/SKILL.md +193 -0
- package/assets/skills/oat-docs-authoring/references/docs-root-resolution.md +64 -0
- package/assets/skills/oat-docs-authoring/references/lifecycle-boundaries.md +51 -0
- package/assets/skills/oat-docs-authoring/references/oat-fumadocs-contract.md +77 -0
- package/assets/skills/oat-docs-authoring/references/targeted-authoring-workflow.md +61 -0
- package/assets/skills/oat-docs-authoring/references/validation.md +61 -0
- package/assets/skills/oat-docs-bootstrap/SKILL.md +15 -11
- package/assets/skills/oat-docs-bootstrap/assets/AGENTS.md.template +5 -5
- package/assets/skills/oat-project-discover/SKILL.md +22 -4
- package/assets/skills/oat-project-import-plan/SKILL.md +38 -9
- package/assets/skills/oat-project-plan/SKILL.md +30 -7
- package/assets/skills/oat-project-plan-writing/SKILL.md +45 -2
- package/assets/skills/oat-project-progress/SKILL.md +9 -3
- package/assets/skills/oat-project-quick-start/SKILL.md +40 -8
- package/assets/skills/oat-project-review-provide/SKILL.md +24 -11
- package/assets/skills/oat-project-review-receive/SKILL.md +37 -17
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +36 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/init/tools/shared/skill-manifest.d.ts +1 -1
- package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
- package/dist/commands/init/tools/shared/skill-manifest.js +2 -0
- package/dist/commands/review/index.d.ts +3 -0
- package/dist/commands/review/index.d.ts.map +1 -0
- package/dist/commands/review/index.js +7 -0
- package/dist/commands/review/latest.d.ts +23 -0
- package/dist/commands/review/latest.d.ts.map +1 -0
- package/dist/commands/review/latest.js +182 -0
- package/dist/config/oat-config.d.ts +5 -0
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +12 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Documentation Templates
|
|
3
|
+
description: Rules for using reusable documentation templates without keeping empty boilerplate.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Templates
|
|
7
|
+
|
|
8
|
+
Use templates as starting points, not as forms to fill mechanically. Delete
|
|
9
|
+
sections that do not apply, merge sections when the repo is small, and add
|
|
10
|
+
sections when the evidence requires them.
|
|
11
|
+
|
|
12
|
+
## Template Rules
|
|
13
|
+
|
|
14
|
+
- Keep placeholders only while drafting; replace or remove them before
|
|
15
|
+
publishing.
|
|
16
|
+
- Do not keep empty headings for symmetry.
|
|
17
|
+
- Preserve accurate existing content before introducing a new shape.
|
|
18
|
+
- Add frontmatter only when the target docs system uses it.
|
|
19
|
+
- Use exact commands, paths, versions, configuration keys, and source links.
|
|
20
|
+
- Mark missing ownership, deployment, or operations facts explicitly.
|
|
21
|
+
- Include verification for task pages.
|
|
22
|
+
- Include rollback or cleanup for risky operations.
|
|
23
|
+
- Prefer local repository templates when they exist.
|
|
24
|
+
|
|
25
|
+
## Landing Page
|
|
26
|
+
|
|
27
|
+
````md
|
|
28
|
+
# <Project name>
|
|
29
|
+
|
|
30
|
+
<One short paragraph explaining what this project is and why it exists.>
|
|
31
|
+
|
|
32
|
+
## Who this is for
|
|
33
|
+
|
|
34
|
+
- <Persona>
|
|
35
|
+
|
|
36
|
+
## What this project does
|
|
37
|
+
|
|
38
|
+
- <Responsibility>
|
|
39
|
+
|
|
40
|
+
## What this project does not do
|
|
41
|
+
|
|
42
|
+
- <Non-goal>
|
|
43
|
+
|
|
44
|
+
## Quick start
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
<command>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Common tasks
|
|
51
|
+
|
|
52
|
+
- [Run locally](./how-to/local-development.md)
|
|
53
|
+
- [Run tests](./how-to/testing.md)
|
|
54
|
+
- [Deploy](./how-to/deployment.md)
|
|
55
|
+
- [Troubleshoot](./how-to/troubleshooting.md)
|
|
56
|
+
|
|
57
|
+
## Architecture
|
|
58
|
+
|
|
59
|
+
<Summarize major components and link to concepts.>
|
|
60
|
+
|
|
61
|
+
## Operations
|
|
62
|
+
|
|
63
|
+
<Link to runbooks, dashboards, alerts, and rollback.>
|
|
64
|
+
|
|
65
|
+
## Reference
|
|
66
|
+
|
|
67
|
+
- [Configuration](./reference/configuration.md)
|
|
68
|
+
- [Environment variables](./reference/environment-variables.md)
|
|
69
|
+
- [API reference](./reference/api.md)
|
|
70
|
+
- [Commands](./reference/commands.md)
|
|
71
|
+
|
|
72
|
+
## Ownership
|
|
73
|
+
|
|
74
|
+
| Area | Owner | Contact | Escalation |
|
|
75
|
+
| ---- | -------- | ----------- | ---------- |
|
|
76
|
+
| Code | `<team>` | `<channel>` | `<path>` |
|
|
77
|
+
````
|
|
78
|
+
|
|
79
|
+
## Getting Started Tutorial
|
|
80
|
+
|
|
81
|
+
````md
|
|
82
|
+
# Getting started
|
|
83
|
+
|
|
84
|
+
Use this tutorial to get `<project>` running for the first time.
|
|
85
|
+
|
|
86
|
+
## Prerequisites
|
|
87
|
+
|
|
88
|
+
| Requirement | Version or access | Source or notes |
|
|
89
|
+
| ------------- | ----------------- | --------------- |
|
|
90
|
+
| <Requirement> | <Version/access> | <Source> |
|
|
91
|
+
|
|
92
|
+
## What you will do
|
|
93
|
+
|
|
94
|
+
By the end, you will have installed dependencies, configured local environment,
|
|
95
|
+
started the project, and verified it works.
|
|
96
|
+
|
|
97
|
+
## 1. Install dependencies
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
<install-command>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 2. Configure environment
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
<config-command>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## 3. Start the project
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
<start-command>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## 4. Verify
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
<verification-command>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Expected output:
|
|
122
|
+
|
|
123
|
+
```txt
|
|
124
|
+
<expected output or UI state>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Troubleshooting
|
|
128
|
+
|
|
129
|
+
| Problem | Cause | Fix |
|
|
130
|
+
| --------- | ------- | ----- |
|
|
131
|
+
| <Problem> | <Cause> | <Fix> |
|
|
132
|
+
|
|
133
|
+
## Next steps
|
|
134
|
+
|
|
135
|
+
- [Local development](./how-to/local-development.md)
|
|
136
|
+
- [Testing](./how-to/testing.md)
|
|
137
|
+
````
|
|
138
|
+
|
|
139
|
+
## How-To Guide
|
|
140
|
+
|
|
141
|
+
````md
|
|
142
|
+
# How to <complete a task>
|
|
143
|
+
|
|
144
|
+
Use this guide when you need to <specific outcome>.
|
|
145
|
+
|
|
146
|
+
## Prerequisites
|
|
147
|
+
|
|
148
|
+
- <Requirement>
|
|
149
|
+
|
|
150
|
+
## Steps
|
|
151
|
+
|
|
152
|
+
### 1. <Do the first thing>
|
|
153
|
+
|
|
154
|
+
```sh
|
|
155
|
+
<command>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
<Explain what this does.>
|
|
159
|
+
|
|
160
|
+
### 2. <Do the next thing>
|
|
161
|
+
|
|
162
|
+
```sh
|
|
163
|
+
<command>
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Verify
|
|
167
|
+
|
|
168
|
+
```sh
|
|
169
|
+
<verification-command>
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Expected output:
|
|
173
|
+
|
|
174
|
+
```txt
|
|
175
|
+
<expected output>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Roll back
|
|
179
|
+
|
|
180
|
+
<Explain how to undo the change safely.>
|
|
181
|
+
|
|
182
|
+
## Troubleshooting
|
|
183
|
+
|
|
184
|
+
| Problem | Cause | Fix |
|
|
185
|
+
| --------- | ------- | ----- |
|
|
186
|
+
| <Problem> | <Cause> | <Fix> |
|
|
187
|
+
|
|
188
|
+
## Related docs
|
|
189
|
+
|
|
190
|
+
- [Configuration](../reference/configuration.md)
|
|
191
|
+
````
|
|
192
|
+
|
|
193
|
+
## Configuration Reference
|
|
194
|
+
|
|
195
|
+
```md
|
|
196
|
+
# Configuration reference
|
|
197
|
+
|
|
198
|
+
This page lists supported configuration options.
|
|
199
|
+
|
|
200
|
+
## Environment variables
|
|
201
|
+
|
|
202
|
+
| Name | Type | Required | Default | Environments | Description |
|
|
203
|
+
| ------ | ------ | -------: | ------- | ------------ | ---------------- |
|
|
204
|
+
| `PORT` | number | No | `3000` | local | Local HTTP port. |
|
|
205
|
+
|
|
206
|
+
## Configuration files
|
|
207
|
+
|
|
208
|
+
| File | Purpose |
|
|
209
|
+
| ------------ | ------------------------- |
|
|
210
|
+
| `.env.local` | Local environment values. |
|
|
211
|
+
|
|
212
|
+
## Configuration precedence
|
|
213
|
+
|
|
214
|
+
1. Command flags
|
|
215
|
+
2. Environment variables
|
|
216
|
+
3. Project config file
|
|
217
|
+
4. Built-in defaults
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## API Endpoint Reference
|
|
221
|
+
|
|
222
|
+
````md
|
|
223
|
+
# `POST /examples`
|
|
224
|
+
|
|
225
|
+
Creates an example resource.
|
|
226
|
+
|
|
227
|
+
## Authentication
|
|
228
|
+
|
|
229
|
+
Requires <auth method> with <scope or permission>.
|
|
230
|
+
|
|
231
|
+
## Request
|
|
232
|
+
|
|
233
|
+
```json
|
|
234
|
+
{
|
|
235
|
+
"name": "Example"
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
| Field | Type | Required | Description |
|
|
240
|
+
| ------ | ------ | -------: | -------------------- |
|
|
241
|
+
| `name` | string | Yes | Human-readable name. |
|
|
242
|
+
|
|
243
|
+
## Response
|
|
244
|
+
|
|
245
|
+
```json
|
|
246
|
+
{
|
|
247
|
+
"id": "example_123",
|
|
248
|
+
"name": "Example"
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
| Field | Type | Description |
|
|
253
|
+
| ----- | ------ | ------------------ |
|
|
254
|
+
| `id` | string | Unique identifier. |
|
|
255
|
+
|
|
256
|
+
## Errors
|
|
257
|
+
|
|
258
|
+
| Status | Code | Meaning | Fix |
|
|
259
|
+
| -----: | ----------------- | ----------------------- | ---------------------- |
|
|
260
|
+
| 400 | `invalid_request` | The request is invalid. | Check required fields. |
|
|
261
|
+
|
|
262
|
+
## Example
|
|
263
|
+
|
|
264
|
+
```sh
|
|
265
|
+
curl -X POST "$BASE_URL/examples" \
|
|
266
|
+
-H "Authorization: Bearer $TOKEN" \
|
|
267
|
+
-H "Content-Type: application/json" \
|
|
268
|
+
-d '{"name":"Example"}'
|
|
269
|
+
```
|
|
270
|
+
````
|
|
271
|
+
|
|
272
|
+
## CLI Command Reference
|
|
273
|
+
|
|
274
|
+
````md
|
|
275
|
+
# `<tool> <command>`
|
|
276
|
+
|
|
277
|
+
<Describe what the command does.>
|
|
278
|
+
|
|
279
|
+
## Usage
|
|
280
|
+
|
|
281
|
+
```sh
|
|
282
|
+
<tool> <command> [arguments] [flags]
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Examples
|
|
286
|
+
|
|
287
|
+
```sh
|
|
288
|
+
<tool> <command> <example>
|
|
289
|
+
<tool> <command> <example> --json
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Arguments
|
|
293
|
+
|
|
294
|
+
| Argument | Required | Description |
|
|
295
|
+
| ------------ | -------: | ------------- |
|
|
296
|
+
| `<argument>` | Yes | <Description> |
|
|
297
|
+
|
|
298
|
+
## Flags
|
|
299
|
+
|
|
300
|
+
| Flag | Type | Default | Description |
|
|
301
|
+
| -------- | ------- | ------- | ----------------------------- |
|
|
302
|
+
| `--json` | boolean | `false` | Output machine-readable JSON. |
|
|
303
|
+
|
|
304
|
+
## Output
|
|
305
|
+
|
|
306
|
+
```txt
|
|
307
|
+
<example output>
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## JSON output
|
|
311
|
+
|
|
312
|
+
```json
|
|
313
|
+
{
|
|
314
|
+
"status": "ok"
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
## Exit codes
|
|
319
|
+
|
|
320
|
+
Only include this table when exit-code meanings are explicit in source or
|
|
321
|
+
existing documentation. If they are not explicit, say exit codes are not
|
|
322
|
+
documented.
|
|
323
|
+
|
|
324
|
+
| Code | Source-backed meaning |
|
|
325
|
+
| -------- | ---------------------- |
|
|
326
|
+
| `<code>` | `<documented meaning>` |
|
|
327
|
+
|
|
328
|
+
## Related commands
|
|
329
|
+
|
|
330
|
+
- [`<tool> <related-command>`](./related-command.md)
|
|
331
|
+
````
|
|
332
|
+
|
|
333
|
+
## Architecture Page
|
|
334
|
+
|
|
335
|
+
```md
|
|
336
|
+
# Architecture
|
|
337
|
+
|
|
338
|
+
This page explains how `<system>` works and why it is designed this way.
|
|
339
|
+
|
|
340
|
+
## Summary
|
|
341
|
+
|
|
342
|
+
<One or two paragraphs.>
|
|
343
|
+
|
|
344
|
+
## Goals
|
|
345
|
+
|
|
346
|
+
- <Goal>
|
|
347
|
+
|
|
348
|
+
## Non-goals
|
|
349
|
+
|
|
350
|
+
- <Non-goal>
|
|
351
|
+
|
|
352
|
+
## System context
|
|
353
|
+
|
|
354
|
+
<Describe users, external systems, and dependencies.>
|
|
355
|
+
|
|
356
|
+
## Components
|
|
357
|
+
|
|
358
|
+
| Component | Responsibility | Notes |
|
|
359
|
+
| ----------- | ---------------- | ------- |
|
|
360
|
+
| <Component> | <Responsibility> | <Notes> |
|
|
361
|
+
|
|
362
|
+
## Data flow
|
|
363
|
+
|
|
364
|
+
<Explain request, event, job, or user-action flow.>
|
|
365
|
+
|
|
366
|
+
## Key decisions
|
|
367
|
+
|
|
368
|
+
- <Decision and rationale>
|
|
369
|
+
|
|
370
|
+
## Failure modes
|
|
371
|
+
|
|
372
|
+
| Failure mode | Symptom | Impact | Recovery |
|
|
373
|
+
| ------------ | --------- | -------- | ---------- |
|
|
374
|
+
| <Failure> | <Symptom> | <Impact> | <Recovery> |
|
|
375
|
+
|
|
376
|
+
## Related docs
|
|
377
|
+
|
|
378
|
+
- [Runbook](../operations/runbook.md)
|
|
379
|
+
- [Deployment](../how-to/deployment.md)
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
## Runbook
|
|
383
|
+
|
|
384
|
+
````md
|
|
385
|
+
# Runbook
|
|
386
|
+
|
|
387
|
+
Use this runbook when `<system>` is unhealthy or degraded.
|
|
388
|
+
|
|
389
|
+
## Service summary
|
|
390
|
+
|
|
391
|
+
| Field | Value |
|
|
392
|
+
| ------------------- | ------------ |
|
|
393
|
+
| Owner | `<team>` |
|
|
394
|
+
| Support channel | `<channel>` |
|
|
395
|
+
| Production location | `<location>` |
|
|
396
|
+
| Dashboard | `<link>` |
|
|
397
|
+
| Logs | `<link>` |
|
|
398
|
+
| Alerts | `<link>` |
|
|
399
|
+
|
|
400
|
+
## Health checks
|
|
401
|
+
|
|
402
|
+
```sh
|
|
403
|
+
curl <health-url>
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
Expected output:
|
|
407
|
+
|
|
408
|
+
```json
|
|
409
|
+
{
|
|
410
|
+
"status": "ok"
|
|
411
|
+
}
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
## Common incidents
|
|
415
|
+
|
|
416
|
+
### Symptom: <symptom>
|
|
417
|
+
|
|
418
|
+
Impact:
|
|
419
|
+
|
|
420
|
+
- <Impact>
|
|
421
|
+
|
|
422
|
+
Checks:
|
|
423
|
+
|
|
424
|
+
1. <Check>
|
|
425
|
+
2. <Check>
|
|
426
|
+
|
|
427
|
+
Mitigation:
|
|
428
|
+
|
|
429
|
+
1. <Step>
|
|
430
|
+
2. <Step>
|
|
431
|
+
|
|
432
|
+
Verification:
|
|
433
|
+
|
|
434
|
+
- <Verification step>
|
|
435
|
+
|
|
436
|
+
Escalation:
|
|
437
|
+
|
|
438
|
+
- <Escalation path>
|
|
439
|
+
````
|
|
440
|
+
|
|
441
|
+
## Architecture Decision Record
|
|
442
|
+
|
|
443
|
+
```md
|
|
444
|
+
# ADR <number>: <decision>
|
|
445
|
+
|
|
446
|
+
## Status
|
|
447
|
+
|
|
448
|
+
Proposed | Accepted | Deprecated | Superseded
|
|
449
|
+
|
|
450
|
+
## Context
|
|
451
|
+
|
|
452
|
+
What problem, constraint, or pressure led to this decision?
|
|
453
|
+
|
|
454
|
+
## Decision
|
|
455
|
+
|
|
456
|
+
What decision was made?
|
|
457
|
+
|
|
458
|
+
## Consequences
|
|
459
|
+
|
|
460
|
+
What are the benefits, costs, tradeoffs, and risks?
|
|
461
|
+
|
|
462
|
+
## Alternatives considered
|
|
463
|
+
|
|
464
|
+
What options were considered and rejected?
|
|
465
|
+
|
|
466
|
+
## Related docs
|
|
467
|
+
|
|
468
|
+
- <Links>
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
## Documentation Audit Summary
|
|
472
|
+
|
|
473
|
+
````md
|
|
474
|
+
# Documentation audit: <repo>
|
|
475
|
+
|
|
476
|
+
## Summary
|
|
477
|
+
|
|
478
|
+
<Short summary of current docs quality.>
|
|
479
|
+
|
|
480
|
+
## Project type
|
|
481
|
+
|
|
482
|
+
- <frontend app/backend service/API/CLI/library/framework/etc.>
|
|
483
|
+
|
|
484
|
+
## Current docs
|
|
485
|
+
|
|
486
|
+
| Page | Type | Quality | Notes |
|
|
487
|
+
| ----------- | ------- | ------- | ------------------------------ |
|
|
488
|
+
| `README.md` | Landing | 2 | Useful but missing deployment. |
|
|
489
|
+
|
|
490
|
+
## Missing docs
|
|
491
|
+
|
|
492
|
+
| Missing page | Priority | Why it matters |
|
|
493
|
+
| ---------------- | -------: | -------------------------------------------------- |
|
|
494
|
+
| Deployment guide | High | Production changes need verification and rollback. |
|
|
495
|
+
|
|
496
|
+
## Stale or risky docs
|
|
497
|
+
|
|
498
|
+
| Page | Issue | Recommended action |
|
|
499
|
+
| ----------- | ------------------------ | --------------------------- |
|
|
500
|
+
| `README.md` | Command no longer exists | Update from `package.json`. |
|
|
501
|
+
|
|
502
|
+
## Recommended structure
|
|
503
|
+
|
|
504
|
+
```txt
|
|
505
|
+
docs/
|
|
506
|
+
├── index.md
|
|
507
|
+
├── getting-started.md
|
|
508
|
+
├── how-to/
|
|
509
|
+
├── reference/
|
|
510
|
+
├── concepts/
|
|
511
|
+
└── operations/
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
## Follow-up questions
|
|
515
|
+
|
|
516
|
+
- <Question that needs owner verification>
|
|
517
|
+
````
|
|
518
|
+
|
|
519
|
+
## Documentation Handoff Summary
|
|
520
|
+
|
|
521
|
+
```md
|
|
522
|
+
## Summary
|
|
523
|
+
|
|
524
|
+
- <Change>
|
|
525
|
+
|
|
526
|
+
## Sources inspected
|
|
527
|
+
|
|
528
|
+
- `<file>`
|
|
529
|
+
|
|
530
|
+
## Docs structure
|
|
531
|
+
|
|
532
|
+
- Added/updated landing page
|
|
533
|
+
- Added/updated how-to guides
|
|
534
|
+
- Added/updated reference pages
|
|
535
|
+
- Added/updated concepts
|
|
536
|
+
- Added/updated operations docs
|
|
537
|
+
|
|
538
|
+
## Verification
|
|
539
|
+
|
|
540
|
+
- `<command>`: pass/fail
|
|
541
|
+
|
|
542
|
+
## Needs owner review
|
|
543
|
+
|
|
544
|
+
- <Unverified fact or missing context>
|
|
545
|
+
|
|
546
|
+
## Not included
|
|
547
|
+
|
|
548
|
+
- <Explicitly out-of-scope docs>
|
|
549
|
+
```
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Documentation Authoring Workflow
|
|
3
|
+
description: Evidence-first workflow for creating, migrating, or improving docs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Authoring Workflow
|
|
7
|
+
|
|
8
|
+
The job is not to write plausible documentation. The job is to extract truth
|
|
9
|
+
from the repository, organize it, and make it usable.
|
|
10
|
+
|
|
11
|
+
## 1. Classify the Project
|
|
12
|
+
|
|
13
|
+
Identify the primary project type before writing:
|
|
14
|
+
|
|
15
|
+
- frontend app
|
|
16
|
+
- backend service
|
|
17
|
+
- full-stack app
|
|
18
|
+
- API service
|
|
19
|
+
- CLI
|
|
20
|
+
- library, package, framework, or SDK
|
|
21
|
+
- infrastructure module
|
|
22
|
+
- worker or job processor
|
|
23
|
+
- event-driven system
|
|
24
|
+
- documentation-only repo
|
|
25
|
+
- mixed monorepo
|
|
26
|
+
|
|
27
|
+
Repos can have multiple types. Document the dominant reader path first, then
|
|
28
|
+
add category-specific coverage.
|
|
29
|
+
|
|
30
|
+
## 2. Inventory Sources of Truth
|
|
31
|
+
|
|
32
|
+
Inspect likely evidence before editing.
|
|
33
|
+
|
|
34
|
+
For package-based projects, check package metadata, lockfiles, runtime version
|
|
35
|
+
files, build config, source entry points, scripts, tests, and CI.
|
|
36
|
+
|
|
37
|
+
For APIs, check route definitions, controllers, middleware, schema files,
|
|
38
|
+
OpenAPI, GraphQL, protobuf, tests, and generated clients.
|
|
39
|
+
|
|
40
|
+
For CLIs, check `bin` entries, command definitions, flag parsing,
|
|
41
|
+
configuration loading, environment variables, tests, and existing examples.
|
|
42
|
+
|
|
43
|
+
For services and infrastructure, check Docker files, compose files, workflows,
|
|
44
|
+
Terraform, Kubernetes, Helm, serverless or CDK configuration, deployment
|
|
45
|
+
manifests, monitor definitions, dashboards, and runbooks.
|
|
46
|
+
|
|
47
|
+
For existing docs, check README files, docs directories, contribution guides,
|
|
48
|
+
changelogs, ADRs, RFCs, and migration notes.
|
|
49
|
+
|
|
50
|
+
## 3. Build a Docs Inventory
|
|
51
|
+
|
|
52
|
+
Create a lightweight inventory before making broad changes.
|
|
53
|
+
|
|
54
|
+
| Area | Exists? | Quality | Source of Truth | Action |
|
|
55
|
+
| ----------------- | ------: | ------------------ | ----------------------- | --------------- |
|
|
56
|
+
| Landing page | Yes/No | Good/Stale/Missing | README or docs index | Update/Create |
|
|
57
|
+
| Getting started | Yes/No | Good/Stale/Missing | scripts, README, tests | Update/Create |
|
|
58
|
+
| Local development | Yes/No | Good/Stale/Missing | package scripts, config | Update/Create |
|
|
59
|
+
| Testing | Yes/No | Good/Stale/Missing | package scripts, CI | Update/Create |
|
|
60
|
+
| Deployment | Yes/No | Good/Stale/Missing | CI, infra | Verify/Create |
|
|
61
|
+
| API reference | Yes/No | Good/Stale/Missing | schema/routes | Generate/Create |
|
|
62
|
+
| CLI reference | Yes/No | Good/Stale/Missing | CLI source | Generate/Create |
|
|
63
|
+
| Configuration | Yes/No | Good/Stale/Missing | env/config files | Create |
|
|
64
|
+
| Architecture | Yes/No | Good/Stale/Missing | source, infra | Create |
|
|
65
|
+
| Operations | Yes/No | Good/Stale/Missing | monitors, runbooks | Create |
|
|
66
|
+
| Troubleshooting | Yes/No | Good/Stale/Missing | issues, tests, logs | Create |
|
|
67
|
+
|
|
68
|
+
## 4. Identify Reader Personas
|
|
69
|
+
|
|
70
|
+
Most docs serve one or more of these readers:
|
|
71
|
+
|
|
72
|
+
- new contributor
|
|
73
|
+
- maintainer
|
|
74
|
+
- service consumer
|
|
75
|
+
- CLI user
|
|
76
|
+
- API consumer
|
|
77
|
+
- operator on call
|
|
78
|
+
- reviewer
|
|
79
|
+
- product stakeholder
|
|
80
|
+
- support engineer
|
|
81
|
+
- AI agent making future changes
|
|
82
|
+
|
|
83
|
+
Write pages for actual tasks, not org-chart abstractions.
|
|
84
|
+
|
|
85
|
+
## 5. Decide the Minimum Useful Set
|
|
86
|
+
|
|
87
|
+
Most repos need a landing page, getting started, local development, testing,
|
|
88
|
+
configuration reference, deployment or release docs if deployable, and
|
|
89
|
+
ownership.
|
|
90
|
+
|
|
91
|
+
Then add category-specific pages. APIs need auth, examples, endpoint or
|
|
92
|
+
operation reference, and error behavior. CLIs need command reference, config,
|
|
93
|
+
output, exit codes, and automation behavior. Production systems need
|
|
94
|
+
observability, runbooks, rollback, and failure modes.
|
|
95
|
+
|
|
96
|
+
## 6. Preserve Existing Intent
|
|
97
|
+
|
|
98
|
+
Do not blindly replace existing docs. Existing pages often contain historical
|
|
99
|
+
context, production details, migration notes, local setup caveats, owner
|
|
100
|
+
knowledge, and important links. Extract useful facts, remove duplication, and
|
|
101
|
+
restructure around reader needs.
|
|
102
|
+
|
|
103
|
+
## 7. Ground Every Claim
|
|
104
|
+
|
|
105
|
+
For each factual statement, ask where it came from. Good sources include source
|
|
106
|
+
code, schemas, package scripts, configuration files, CI workflows, deployment
|
|
107
|
+
manifests, tests, generated types, and current docs that still match behavior.
|
|
108
|
+
|
|
109
|
+
Weak sources include stale comments, guessed conventions, issue titles without
|
|
110
|
+
details, inferred ownership, and copied docs from a similar repo. Mark weak but
|
|
111
|
+
useful facts as needing verification.
|
|
112
|
+
|
|
113
|
+
## 8. Write in Layers
|
|
114
|
+
|
|
115
|
+
For each topic, prefer this order:
|
|
116
|
+
|
|
117
|
+
1. Purpose
|
|
118
|
+
2. Common path
|
|
119
|
+
3. Example
|
|
120
|
+
4. Verification
|
|
121
|
+
5. Edge cases
|
|
122
|
+
6. Troubleshooting
|
|
123
|
+
7. Related reference
|
|
124
|
+
8. Deeper explanation
|
|
125
|
+
|
|
126
|
+
This keeps pages useful under time pressure.
|
|
127
|
+
|
|
128
|
+
## 9. Verify and Handoff
|
|
129
|
+
|
|
130
|
+
Run relevant checks when available: docs build, link check, formatter,
|
|
131
|
+
generated-reference command, examples, tests, or local preview. Handoff with
|
|
132
|
+
files changed, evidence inspected, verification results, unresolved facts, and
|
|
133
|
+
recommended next improvements.
|