@vpxa/aikit 0.1.65 → 0.1.66
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/package.json +1 -1
- package/packages/cli/dist/constants-D93JHBiN.js +1 -0
- package/packages/cli/dist/index.js +3 -3
- package/packages/cli/dist/{init-DBo2fDoM.js → init-DANkCO2c.js} +1 -1
- package/packages/cli/dist/{user-CXIL0rVI.js → user-Bb99C6xW.js} +1 -1
- package/scaffold/flows/_epilogue/steps/docs-sync/README.md +119 -119
- package/scaffold/general/skills/docs/SKILL.md +508 -508
- package/scaffold/general/skills/docs/references/diataxis-anti-patterns.md +146 -146
- package/scaffold/general/skills/docs/references/diataxis-compass.md +122 -122
- package/scaffold/general/skills/docs/references/diataxis-quadrants.md +191 -191
- package/scaffold/general/skills/docs/references/diataxis-quality.md +75 -75
- package/scaffold/general/skills/docs/references/diataxis-templates.md +119 -119
- package/scaffold/general/skills/docs/references/flow-artifacts-guide.md +69 -69
- package/scaffold/general/skills/docs/references/project-knowledge-gotchas.md +31 -31
- package/scaffold/general/skills/docs/references/project-knowledge-templates.md +280 -280
- package/scaffold/general/skills/docs/references/project-knowledge-workflow.md +79 -79
- package/packages/cli/dist/constants-BjDyZo-l.js +0 -1
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
# Diataxis Quadrants
|
|
2
|
-
|
|
3
|
-
This reference describes the four documentation quadrants in Diataxis: Tutorial, How-to guide, Reference, and Explanation. Use it when a document has already been classified, or when you need boundary tests to decide whether content belongs in one quadrant or has drifted into another.
|
|
4
|
-
|
|
5
|
-
## Tutorial
|
|
6
|
-
|
|
7
|
-
### Definition
|
|
8
|
-
|
|
9
|
-
A tutorial is a guided learning experience. It helps a reader acquire competence by doing something meaningful in a controlled path toward a defined outcome.
|
|
10
|
-
|
|
11
|
-
### Tutorial Is / Is Not
|
|
12
|
-
|
|
13
|
-
| IS | IS NOT |
|
|
14
|
-
|----|--------|
|
|
15
|
-
| Learning-oriented | A reference to consult |
|
|
16
|
-
| Practical and guided | A set of independent steps |
|
|
17
|
-
| Structured as a path | Complete coverage of a topic |
|
|
18
|
-
| Built around a defined outcome | A free-form discussion |
|
|
19
|
-
|
|
20
|
-
### Defining Characteristics
|
|
21
|
-
|
|
22
|
-
- It is designed for a reader who is still learning.
|
|
23
|
-
- It follows a deliberate path from start to finish.
|
|
24
|
-
- It creates a successful encounter with the product or skill.
|
|
25
|
-
- It limits choices so the learner can focus.
|
|
26
|
-
- It optimizes for confidence, momentum, and visible progress.
|
|
27
|
-
|
|
28
|
-
### Language Patterns
|
|
29
|
-
|
|
30
|
-
Tutorial language is guided, concrete, and supportive. It commonly uses second person and first-person plural.
|
|
31
|
-
|
|
32
|
-
- `In this tutorial, you will ...`
|
|
33
|
-
- `You'll see ...`
|
|
34
|
-
- `Next, we ...`
|
|
35
|
-
- `Notice that ...`
|
|
36
|
-
- `The output should look something like ...`
|
|
37
|
-
|
|
38
|
-
The tone should reduce uncertainty, set expectations, and keep the learner on a single path.
|
|
39
|
-
|
|
40
|
-
### Boundary Tests
|
|
41
|
-
|
|
42
|
-
- If the steps can be done in any order, it is probably **not** a tutorial.
|
|
43
|
-
- If there is no learning outcome, it is probably a **How-to guide**.
|
|
44
|
-
- If the content starts listing all options and variants, it is drifting toward **Reference**.
|
|
45
|
-
- If the content spends time on rationale and design history, it is drifting toward **Explanation**.
|
|
46
|
-
|
|
47
|
-
## How-to Guide
|
|
48
|
-
|
|
49
|
-
### Definition
|
|
50
|
-
|
|
51
|
-
A how-to guide is a task-oriented document for someone trying to solve a specific problem or complete a real piece of work. It assumes the reader already has enough competence to act on concise guidance.
|
|
52
|
-
|
|
53
|
-
### How-to Is / Is Not
|
|
54
|
-
|
|
55
|
-
| IS | IS NOT |
|
|
56
|
-
|----|--------|
|
|
57
|
-
| Task-oriented | A lesson |
|
|
58
|
-
| Practical | An explanation of concepts |
|
|
59
|
-
| Focused on a specific problem | A comprehensive reference |
|
|
60
|
-
| Written for application in real work | A broad introduction |
|
|
61
|
-
|
|
62
|
-
### Defining Characteristics
|
|
63
|
-
|
|
64
|
-
- It starts from a concrete goal or problem.
|
|
65
|
-
- It is written for readers who are already doing work.
|
|
66
|
-
- It emphasizes action, judgement, and usable sequence.
|
|
67
|
-
- It avoids digressions into fundamentals unless strictly necessary.
|
|
68
|
-
- It may branch for real-world conditions and alternatives.
|
|
69
|
-
|
|
70
|
-
### Language Patterns
|
|
71
|
-
|
|
72
|
-
How-to language is direct and imperative. It should sound executable.
|
|
73
|
-
|
|
74
|
-
- `Configure X.`
|
|
75
|
-
- `Deploy to Y.`
|
|
76
|
-
- `Set up the service account.`
|
|
77
|
-
- `If you need Z, do ...`
|
|
78
|
-
- `To migrate safely, first ...`
|
|
79
|
-
|
|
80
|
-
Good how-to writing is short, concrete, and free of conceptual detours.
|
|
81
|
-
|
|
82
|
-
### Boundary Tests
|
|
83
|
-
|
|
84
|
-
- If it teaches fundamentals before the task, it is drifting toward **Tutorial**.
|
|
85
|
-
- If it mostly describes available options rather than choosing a path, it is drifting toward **Reference**.
|
|
86
|
-
- If it answers `why` more than `what to do`, it is drifting toward **Explanation**.
|
|
87
|
-
- If success depends on following a pedagogical sequence rather than solving a task, it belongs in **Tutorial**.
|
|
88
|
-
|
|
89
|
-
## Reference
|
|
90
|
-
|
|
91
|
-
### Definition
|
|
92
|
-
|
|
93
|
-
Reference is factual documentation consulted during work. It describes the machinery, interface, structure, or behavior of the system as clearly and consistently as possible.
|
|
94
|
-
|
|
95
|
-
### Reference Is / Is Not
|
|
96
|
-
|
|
97
|
-
| IS | IS NOT |
|
|
98
|
-
|----|--------|
|
|
99
|
-
| Information-oriented | A guide |
|
|
100
|
-
| Austere and factual | Opinionated |
|
|
101
|
-
| Comprehensive within scope | Narrative |
|
|
102
|
-
| Structured consistently | Selective in the style of a lesson |
|
|
103
|
-
|
|
104
|
-
### Defining Characteristics
|
|
105
|
-
|
|
106
|
-
- It is optimized for lookup, not for linear reading.
|
|
107
|
-
- It presents facts, interfaces, constraints, and structure.
|
|
108
|
-
- It uses a consistent pattern so readers can find answers quickly.
|
|
109
|
-
- It aims for completeness inside a defined scope.
|
|
110
|
-
- It avoids persuasion, instruction-heavy flow, and discursive context.
|
|
111
|
-
|
|
112
|
-
### Language Patterns
|
|
113
|
-
|
|
114
|
-
Reference language is descriptive, factual, and usually third person.
|
|
115
|
-
|
|
116
|
-
- `Returns {type}.`
|
|
117
|
-
- `Accepts the following parameters ...`
|
|
118
|
-
- `Option values are ...`
|
|
119
|
-
- `The schema contains ...`
|
|
120
|
-
- `Configuration keys include ...`
|
|
121
|
-
|
|
122
|
-
Warnings and constraints are fine, but they should remain factual rather than tutorial or argumentative.
|
|
123
|
-
|
|
124
|
-
### Boundary Tests
|
|
125
|
-
|
|
126
|
-
- If the content explains why a design exists, it belongs in **Explanation**.
|
|
127
|
-
- If the content shows how to accomplish a task with the feature, it belongs in **How-to guide**.
|
|
128
|
-
- If the content walks a newcomer through a first success path, it belongs in **Tutorial**.
|
|
129
|
-
- If the content becomes selective and outcome-driven rather than complete and structured, it is no longer pure reference.
|
|
130
|
-
|
|
131
|
-
## Explanation
|
|
132
|
-
|
|
133
|
-
### Definition
|
|
134
|
-
|
|
135
|
-
Explanation is understanding-oriented documentation. It connects concepts, provides rationale and background, and helps the reader build a mental model of the system or topic.
|
|
136
|
-
|
|
137
|
-
### Explanation Is / Is Not
|
|
138
|
-
|
|
139
|
-
| IS | IS NOT |
|
|
140
|
-
|----|--------|
|
|
141
|
-
| Understanding-oriented | Step-by-step instructions |
|
|
142
|
-
| Discursive and connective | A lookup table |
|
|
143
|
-
| Rich in context | A tutorial |
|
|
144
|
-
| Concerned with reasons and implications | A terse list of facts |
|
|
145
|
-
|
|
146
|
-
### Defining Characteristics
|
|
147
|
-
|
|
148
|
-
- It provides context, rationale, and conceptual framing.
|
|
149
|
-
- It connects details into a broader mental model.
|
|
150
|
-
- It can discuss trade-offs, history, alternatives, and design intent.
|
|
151
|
-
- It supports reflection more than immediate action.
|
|
152
|
-
- It is bounded by topic rather than by task or API surface.
|
|
153
|
-
|
|
154
|
-
### Language Patterns
|
|
155
|
-
|
|
156
|
-
Explanation language is descriptive, interpretive, and often comparative.
|
|
157
|
-
|
|
158
|
-
- `The reason for ...`
|
|
159
|
-
- `This approach was chosen because ...`
|
|
160
|
-
- `Consider the trade-off ...`
|
|
161
|
-
- `Historically, the system evolved this way because ...`
|
|
162
|
-
- `An X in this system is analogous to ...`
|
|
163
|
-
|
|
164
|
-
It is acceptable here to surface perspective, evaluation, and multiple interpretations.
|
|
165
|
-
|
|
166
|
-
### Boundary Tests
|
|
167
|
-
|
|
168
|
-
- If the document has numbered operational steps, it likely belongs in **How-to guide** or **Tutorial**.
|
|
169
|
-
- If it lists facts without context, it likely belongs in **Reference**.
|
|
170
|
-
- If it promises a concrete outcome the reader will build, it likely belongs in **Tutorial**.
|
|
171
|
-
- If it exists mainly to solve an immediate operational problem, it belongs in **How-to guide**.
|
|
172
|
-
|
|
173
|
-
## Cross-Linking Rules
|
|
174
|
-
|
|
175
|
-
Quadrants should cooperate rather than compete. Each document should point to adjacent documentation types when a different reader need appears.
|
|
176
|
-
|
|
177
|
-
| From | Cross-link pattern |
|
|
178
|
-
|------|--------------------|
|
|
179
|
-
| Tutorial | `For the full API, see [Reference].` |
|
|
180
|
-
| How-to guide | `To understand why, see [Explanation].` |
|
|
181
|
-
| Reference | `For a guide on using this, see [How-to].` |
|
|
182
|
-
| Explanation | `To get started, see [Tutorial].` |
|
|
183
|
-
|
|
184
|
-
Use cross-links when content would otherwise drift into the wrong quadrant. Link instead of absorbing the adjacent material.
|
|
185
|
-
|
|
186
|
-
## Attribution
|
|
187
|
-
|
|
188
|
-
This document adapts concepts from the Diataxis framework at [diataxis.fr](https://diataxis.fr/), especially the quadrant descriptions and distinction pages.
|
|
189
|
-
|
|
190
|
-
Source material is licensed under **CC-BY-SA 4.0**.
|
|
191
|
-
|
|
1
|
+
# Diataxis Quadrants
|
|
2
|
+
|
|
3
|
+
This reference describes the four documentation quadrants in Diataxis: Tutorial, How-to guide, Reference, and Explanation. Use it when a document has already been classified, or when you need boundary tests to decide whether content belongs in one quadrant or has drifted into another.
|
|
4
|
+
|
|
5
|
+
## Tutorial
|
|
6
|
+
|
|
7
|
+
### Definition
|
|
8
|
+
|
|
9
|
+
A tutorial is a guided learning experience. It helps a reader acquire competence by doing something meaningful in a controlled path toward a defined outcome.
|
|
10
|
+
|
|
11
|
+
### Tutorial Is / Is Not
|
|
12
|
+
|
|
13
|
+
| IS | IS NOT |
|
|
14
|
+
|----|--------|
|
|
15
|
+
| Learning-oriented | A reference to consult |
|
|
16
|
+
| Practical and guided | A set of independent steps |
|
|
17
|
+
| Structured as a path | Complete coverage of a topic |
|
|
18
|
+
| Built around a defined outcome | A free-form discussion |
|
|
19
|
+
|
|
20
|
+
### Defining Characteristics
|
|
21
|
+
|
|
22
|
+
- It is designed for a reader who is still learning.
|
|
23
|
+
- It follows a deliberate path from start to finish.
|
|
24
|
+
- It creates a successful encounter with the product or skill.
|
|
25
|
+
- It limits choices so the learner can focus.
|
|
26
|
+
- It optimizes for confidence, momentum, and visible progress.
|
|
27
|
+
|
|
28
|
+
### Language Patterns
|
|
29
|
+
|
|
30
|
+
Tutorial language is guided, concrete, and supportive. It commonly uses second person and first-person plural.
|
|
31
|
+
|
|
32
|
+
- `In this tutorial, you will ...`
|
|
33
|
+
- `You'll see ...`
|
|
34
|
+
- `Next, we ...`
|
|
35
|
+
- `Notice that ...`
|
|
36
|
+
- `The output should look something like ...`
|
|
37
|
+
|
|
38
|
+
The tone should reduce uncertainty, set expectations, and keep the learner on a single path.
|
|
39
|
+
|
|
40
|
+
### Boundary Tests
|
|
41
|
+
|
|
42
|
+
- If the steps can be done in any order, it is probably **not** a tutorial.
|
|
43
|
+
- If there is no learning outcome, it is probably a **How-to guide**.
|
|
44
|
+
- If the content starts listing all options and variants, it is drifting toward **Reference**.
|
|
45
|
+
- If the content spends time on rationale and design history, it is drifting toward **Explanation**.
|
|
46
|
+
|
|
47
|
+
## How-to Guide
|
|
48
|
+
|
|
49
|
+
### Definition
|
|
50
|
+
|
|
51
|
+
A how-to guide is a task-oriented document for someone trying to solve a specific problem or complete a real piece of work. It assumes the reader already has enough competence to act on concise guidance.
|
|
52
|
+
|
|
53
|
+
### How-to Is / Is Not
|
|
54
|
+
|
|
55
|
+
| IS | IS NOT |
|
|
56
|
+
|----|--------|
|
|
57
|
+
| Task-oriented | A lesson |
|
|
58
|
+
| Practical | An explanation of concepts |
|
|
59
|
+
| Focused on a specific problem | A comprehensive reference |
|
|
60
|
+
| Written for application in real work | A broad introduction |
|
|
61
|
+
|
|
62
|
+
### Defining Characteristics
|
|
63
|
+
|
|
64
|
+
- It starts from a concrete goal or problem.
|
|
65
|
+
- It is written for readers who are already doing work.
|
|
66
|
+
- It emphasizes action, judgement, and usable sequence.
|
|
67
|
+
- It avoids digressions into fundamentals unless strictly necessary.
|
|
68
|
+
- It may branch for real-world conditions and alternatives.
|
|
69
|
+
|
|
70
|
+
### Language Patterns
|
|
71
|
+
|
|
72
|
+
How-to language is direct and imperative. It should sound executable.
|
|
73
|
+
|
|
74
|
+
- `Configure X.`
|
|
75
|
+
- `Deploy to Y.`
|
|
76
|
+
- `Set up the service account.`
|
|
77
|
+
- `If you need Z, do ...`
|
|
78
|
+
- `To migrate safely, first ...`
|
|
79
|
+
|
|
80
|
+
Good how-to writing is short, concrete, and free of conceptual detours.
|
|
81
|
+
|
|
82
|
+
### Boundary Tests
|
|
83
|
+
|
|
84
|
+
- If it teaches fundamentals before the task, it is drifting toward **Tutorial**.
|
|
85
|
+
- If it mostly describes available options rather than choosing a path, it is drifting toward **Reference**.
|
|
86
|
+
- If it answers `why` more than `what to do`, it is drifting toward **Explanation**.
|
|
87
|
+
- If success depends on following a pedagogical sequence rather than solving a task, it belongs in **Tutorial**.
|
|
88
|
+
|
|
89
|
+
## Reference
|
|
90
|
+
|
|
91
|
+
### Definition
|
|
92
|
+
|
|
93
|
+
Reference is factual documentation consulted during work. It describes the machinery, interface, structure, or behavior of the system as clearly and consistently as possible.
|
|
94
|
+
|
|
95
|
+
### Reference Is / Is Not
|
|
96
|
+
|
|
97
|
+
| IS | IS NOT |
|
|
98
|
+
|----|--------|
|
|
99
|
+
| Information-oriented | A guide |
|
|
100
|
+
| Austere and factual | Opinionated |
|
|
101
|
+
| Comprehensive within scope | Narrative |
|
|
102
|
+
| Structured consistently | Selective in the style of a lesson |
|
|
103
|
+
|
|
104
|
+
### Defining Characteristics
|
|
105
|
+
|
|
106
|
+
- It is optimized for lookup, not for linear reading.
|
|
107
|
+
- It presents facts, interfaces, constraints, and structure.
|
|
108
|
+
- It uses a consistent pattern so readers can find answers quickly.
|
|
109
|
+
- It aims for completeness inside a defined scope.
|
|
110
|
+
- It avoids persuasion, instruction-heavy flow, and discursive context.
|
|
111
|
+
|
|
112
|
+
### Language Patterns
|
|
113
|
+
|
|
114
|
+
Reference language is descriptive, factual, and usually third person.
|
|
115
|
+
|
|
116
|
+
- `Returns {type}.`
|
|
117
|
+
- `Accepts the following parameters ...`
|
|
118
|
+
- `Option values are ...`
|
|
119
|
+
- `The schema contains ...`
|
|
120
|
+
- `Configuration keys include ...`
|
|
121
|
+
|
|
122
|
+
Warnings and constraints are fine, but they should remain factual rather than tutorial or argumentative.
|
|
123
|
+
|
|
124
|
+
### Boundary Tests
|
|
125
|
+
|
|
126
|
+
- If the content explains why a design exists, it belongs in **Explanation**.
|
|
127
|
+
- If the content shows how to accomplish a task with the feature, it belongs in **How-to guide**.
|
|
128
|
+
- If the content walks a newcomer through a first success path, it belongs in **Tutorial**.
|
|
129
|
+
- If the content becomes selective and outcome-driven rather than complete and structured, it is no longer pure reference.
|
|
130
|
+
|
|
131
|
+
## Explanation
|
|
132
|
+
|
|
133
|
+
### Definition
|
|
134
|
+
|
|
135
|
+
Explanation is understanding-oriented documentation. It connects concepts, provides rationale and background, and helps the reader build a mental model of the system or topic.
|
|
136
|
+
|
|
137
|
+
### Explanation Is / Is Not
|
|
138
|
+
|
|
139
|
+
| IS | IS NOT |
|
|
140
|
+
|----|--------|
|
|
141
|
+
| Understanding-oriented | Step-by-step instructions |
|
|
142
|
+
| Discursive and connective | A lookup table |
|
|
143
|
+
| Rich in context | A tutorial |
|
|
144
|
+
| Concerned with reasons and implications | A terse list of facts |
|
|
145
|
+
|
|
146
|
+
### Defining Characteristics
|
|
147
|
+
|
|
148
|
+
- It provides context, rationale, and conceptual framing.
|
|
149
|
+
- It connects details into a broader mental model.
|
|
150
|
+
- It can discuss trade-offs, history, alternatives, and design intent.
|
|
151
|
+
- It supports reflection more than immediate action.
|
|
152
|
+
- It is bounded by topic rather than by task or API surface.
|
|
153
|
+
|
|
154
|
+
### Language Patterns
|
|
155
|
+
|
|
156
|
+
Explanation language is descriptive, interpretive, and often comparative.
|
|
157
|
+
|
|
158
|
+
- `The reason for ...`
|
|
159
|
+
- `This approach was chosen because ...`
|
|
160
|
+
- `Consider the trade-off ...`
|
|
161
|
+
- `Historically, the system evolved this way because ...`
|
|
162
|
+
- `An X in this system is analogous to ...`
|
|
163
|
+
|
|
164
|
+
It is acceptable here to surface perspective, evaluation, and multiple interpretations.
|
|
165
|
+
|
|
166
|
+
### Boundary Tests
|
|
167
|
+
|
|
168
|
+
- If the document has numbered operational steps, it likely belongs in **How-to guide** or **Tutorial**.
|
|
169
|
+
- If it lists facts without context, it likely belongs in **Reference**.
|
|
170
|
+
- If it promises a concrete outcome the reader will build, it likely belongs in **Tutorial**.
|
|
171
|
+
- If it exists mainly to solve an immediate operational problem, it belongs in **How-to guide**.
|
|
172
|
+
|
|
173
|
+
## Cross-Linking Rules
|
|
174
|
+
|
|
175
|
+
Quadrants should cooperate rather than compete. Each document should point to adjacent documentation types when a different reader need appears.
|
|
176
|
+
|
|
177
|
+
| From | Cross-link pattern |
|
|
178
|
+
|------|--------------------|
|
|
179
|
+
| Tutorial | `For the full API, see [Reference].` |
|
|
180
|
+
| How-to guide | `To understand why, see [Explanation].` |
|
|
181
|
+
| Reference | `For a guide on using this, see [How-to].` |
|
|
182
|
+
| Explanation | `To get started, see [Tutorial].` |
|
|
183
|
+
|
|
184
|
+
Use cross-links when content would otherwise drift into the wrong quadrant. Link instead of absorbing the adjacent material.
|
|
185
|
+
|
|
186
|
+
## Attribution
|
|
187
|
+
|
|
188
|
+
This document adapts concepts from the Diataxis framework at [diataxis.fr](https://diataxis.fr/), especially the quadrant descriptions and distinction pages.
|
|
189
|
+
|
|
190
|
+
Source material is licensed under **CC-BY-SA 4.0**.
|
|
191
|
+
|
|
192
192
|
Attribution: Daniele Procida, *Diataxis*, [https://diataxis.fr/](https://diataxis.fr/).
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
# Diataxis Quality & Iteration
|
|
2
|
-
|
|
3
|
-
How to assess and improve documentation quality using the Diátaxis framework.
|
|
4
|
-
|
|
5
|
-
## Quality Checklist
|
|
6
|
-
|
|
7
|
-
Run this checklist against every document created or updated during `_docs-sync`:
|
|
8
|
-
|
|
9
|
-
### Quadrant Purity
|
|
10
|
-
- [ ] Document serves exactly ONE Diátaxis quadrant
|
|
11
|
-
- [ ] No mixed-mode content (tutorial narration + reference tables + explanation prose)
|
|
12
|
-
- [ ] Language patterns match the quadrant (see diataxis-quadrants.md)
|
|
13
|
-
- [ ] If content from another quadrant is needed, it's linked — not embedded
|
|
14
|
-
|
|
15
|
-
### Structure & Completeness
|
|
16
|
-
- [ ] All required template sections are present (see diataxis-templates.md)
|
|
17
|
-
- [ ] No empty placeholder sections
|
|
18
|
-
- [ ] Cross-references to related docs in other quadrants exist
|
|
19
|
-
- [ ] `type:` frontmatter tag matches the actual content quadrant
|
|
20
|
-
|
|
21
|
-
### Evidence & Accuracy
|
|
22
|
-
- [ ] Claims are traceable to source files, config, or AI Kit tool output
|
|
23
|
-
- [ ] Unknowns are marked `[TODO]`, not guessed
|
|
24
|
-
- [ ] Team-intent items are marked `[ASK USER]`
|
|
25
|
-
- [ ] No stale information (version numbers, deprecated APIs, removed features)
|
|
26
|
-
|
|
27
|
-
### Audience Fit
|
|
28
|
-
- [ ] Tutorial: assumes beginner, teaches one skill, shows visible results at each step
|
|
29
|
-
- [ ] How-To: assumes competence, addresses specific task, no unnecessary explanation
|
|
30
|
-
- [ ] Reference: factual, comprehensive, consistent structure, austere
|
|
31
|
-
- [ ] Explanation: provides context, takes a position, connects concepts
|
|
32
|
-
|
|
33
|
-
## Iterative Improvement Process
|
|
34
|
-
|
|
35
|
-
Documentation improves incrementally. Don't try to perfect everything at once.
|
|
36
|
-
|
|
37
|
-
### The Loop
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
1. Pick one document (or section, or paragraph)
|
|
41
|
-
2. Classify it → which Diátaxis quadrant?
|
|
42
|
-
3. Check → does it serve that quadrant well? (use checklist above)
|
|
43
|
-
4. Make one improvement
|
|
44
|
-
5. Repeat
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### When to Iterate
|
|
48
|
-
|
|
49
|
-
| Trigger | Action |
|
|
50
|
-
|---------|--------|
|
|
51
|
-
| New doc created during `_docs-sync` | Run full checklist before committing |
|
|
52
|
-
| Existing doc updated | Check only the modified sections |
|
|
53
|
-
| Docs audit requested | Run checklist on all docs; prioritize by staleness |
|
|
54
|
-
| Content feels wrong but works | Classify first — often the issue is quadrant mixing |
|
|
55
|
-
|
|
56
|
-
### Organic Growth (from diataxis.fr)
|
|
57
|
-
|
|
58
|
-
- Let documentation structure emerge from content needs — don't create empty four-section structures
|
|
59
|
-
- A project with no tutorials doesn't need a `tutorials/` directory
|
|
60
|
-
- Add documentation types as the project actually needs them
|
|
61
|
-
- Perfect is the enemy of good — a correct how-to guide is better than no documentation
|
|
62
|
-
|
|
63
|
-
### Scoring (optional, for audits)
|
|
64
|
-
|
|
65
|
-
Per document, count how many checklist items pass out of the total applicable items.
|
|
66
|
-
|
|
67
|
-
| Score | Quality | Action |
|
|
68
|
-
|-------|---------|--------|
|
|
69
|
-
| 100% | Excellent | No action needed |
|
|
70
|
-
| 75-99% | Good | Fix during next relevant change |
|
|
71
|
-
| 50-74% | Needs work | Schedule improvement |
|
|
72
|
-
| <50% | Poor | Rewrite or split immediately |
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
1
|
+
# Diataxis Quality & Iteration
|
|
2
|
+
|
|
3
|
+
How to assess and improve documentation quality using the Diátaxis framework.
|
|
4
|
+
|
|
5
|
+
## Quality Checklist
|
|
6
|
+
|
|
7
|
+
Run this checklist against every document created or updated during `_docs-sync`:
|
|
8
|
+
|
|
9
|
+
### Quadrant Purity
|
|
10
|
+
- [ ] Document serves exactly ONE Diátaxis quadrant
|
|
11
|
+
- [ ] No mixed-mode content (tutorial narration + reference tables + explanation prose)
|
|
12
|
+
- [ ] Language patterns match the quadrant (see diataxis-quadrants.md)
|
|
13
|
+
- [ ] If content from another quadrant is needed, it's linked — not embedded
|
|
14
|
+
|
|
15
|
+
### Structure & Completeness
|
|
16
|
+
- [ ] All required template sections are present (see diataxis-templates.md)
|
|
17
|
+
- [ ] No empty placeholder sections
|
|
18
|
+
- [ ] Cross-references to related docs in other quadrants exist
|
|
19
|
+
- [ ] `type:` frontmatter tag matches the actual content quadrant
|
|
20
|
+
|
|
21
|
+
### Evidence & Accuracy
|
|
22
|
+
- [ ] Claims are traceable to source files, config, or AI Kit tool output
|
|
23
|
+
- [ ] Unknowns are marked `[TODO]`, not guessed
|
|
24
|
+
- [ ] Team-intent items are marked `[ASK USER]`
|
|
25
|
+
- [ ] No stale information (version numbers, deprecated APIs, removed features)
|
|
26
|
+
|
|
27
|
+
### Audience Fit
|
|
28
|
+
- [ ] Tutorial: assumes beginner, teaches one skill, shows visible results at each step
|
|
29
|
+
- [ ] How-To: assumes competence, addresses specific task, no unnecessary explanation
|
|
30
|
+
- [ ] Reference: factual, comprehensive, consistent structure, austere
|
|
31
|
+
- [ ] Explanation: provides context, takes a position, connects concepts
|
|
32
|
+
|
|
33
|
+
## Iterative Improvement Process
|
|
34
|
+
|
|
35
|
+
Documentation improves incrementally. Don't try to perfect everything at once.
|
|
36
|
+
|
|
37
|
+
### The Loop
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
1. Pick one document (or section, or paragraph)
|
|
41
|
+
2. Classify it → which Diátaxis quadrant?
|
|
42
|
+
3. Check → does it serve that quadrant well? (use checklist above)
|
|
43
|
+
4. Make one improvement
|
|
44
|
+
5. Repeat
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### When to Iterate
|
|
48
|
+
|
|
49
|
+
| Trigger | Action |
|
|
50
|
+
|---------|--------|
|
|
51
|
+
| New doc created during `_docs-sync` | Run full checklist before committing |
|
|
52
|
+
| Existing doc updated | Check only the modified sections |
|
|
53
|
+
| Docs audit requested | Run checklist on all docs; prioritize by staleness |
|
|
54
|
+
| Content feels wrong but works | Classify first — often the issue is quadrant mixing |
|
|
55
|
+
|
|
56
|
+
### Organic Growth (from diataxis.fr)
|
|
57
|
+
|
|
58
|
+
- Let documentation structure emerge from content needs — don't create empty four-section structures
|
|
59
|
+
- A project with no tutorials doesn't need a `tutorials/` directory
|
|
60
|
+
- Add documentation types as the project actually needs them
|
|
61
|
+
- Perfect is the enemy of good — a correct how-to guide is better than no documentation
|
|
62
|
+
|
|
63
|
+
### Scoring (optional, for audits)
|
|
64
|
+
|
|
65
|
+
Per document, count how many checklist items pass out of the total applicable items.
|
|
66
|
+
|
|
67
|
+
| Score | Quality | Action |
|
|
68
|
+
|-------|---------|--------|
|
|
69
|
+
| 100% | Excellent | No action needed |
|
|
70
|
+
| 75-99% | Good | Fix during next relevant change |
|
|
71
|
+
| 50-74% | Needs work | Schedule improvement |
|
|
72
|
+
| <50% | Poor | Rewrite or split immediately |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
76
|
*Quality framework follows the Diátaxis documentation framework (CC-BY-SA 4.0, Daniele Procida).*
|