@open-agent-toolkit/cli 0.1.21 → 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.
Files changed (34) hide show
  1. package/assets/docs/contributing/documentation.md +6 -2
  2. package/assets/docs/docs-tooling/add-docs-to-a-repo.md +24 -14
  3. package/assets/docs/docs-tooling/commands.md +16 -14
  4. package/assets/docs/docs-tooling/workflows.md +15 -8
  5. package/assets/docs/reference/docs-index-contract.md +28 -6
  6. package/assets/docs/reference/index.md +1 -1
  7. package/assets/docs/workflows/projects/implementation-execution.md +1 -1
  8. package/assets/docs/workflows/skills/index.md +3 -1
  9. package/assets/public-package-versions.json +4 -4
  10. package/assets/skills/authoring-docs/SKILL.md +135 -0
  11. package/assets/skills/authoring-docs/references/categories.md +251 -0
  12. package/assets/skills/authoring-docs/references/information-architecture.md +156 -0
  13. package/assets/skills/authoring-docs/references/page-types.md +119 -0
  14. package/assets/skills/authoring-docs/references/principles.md +98 -0
  15. package/assets/skills/authoring-docs/references/review-rubric.md +169 -0
  16. package/assets/skills/authoring-docs/references/templates.md +549 -0
  17. package/assets/skills/authoring-docs/references/workflow.md +133 -0
  18. package/assets/skills/authoring-docs/references/writing-style.md +128 -0
  19. package/assets/skills/oat-docs-analyze/SKILL.md +143 -18
  20. package/assets/skills/oat-docs-analyze/references/analysis-artifact-template.md +101 -1
  21. package/assets/skills/oat-docs-analyze/references/directory-assessment-criteria.md +16 -0
  22. package/assets/skills/oat-docs-analyze/references/quality-checklist.md +83 -3
  23. package/assets/skills/oat-docs-authoring/SKILL.md +193 -0
  24. package/assets/skills/oat-docs-authoring/references/docs-root-resolution.md +64 -0
  25. package/assets/skills/oat-docs-authoring/references/lifecycle-boundaries.md +51 -0
  26. package/assets/skills/oat-docs-authoring/references/oat-fumadocs-contract.md +77 -0
  27. package/assets/skills/oat-docs-authoring/references/targeted-authoring-workflow.md +61 -0
  28. package/assets/skills/oat-docs-authoring/references/validation.md +61 -0
  29. package/assets/skills/oat-docs-bootstrap/SKILL.md +15 -11
  30. package/assets/skills/oat-docs-bootstrap/assets/AGENTS.md.template +5 -5
  31. package/dist/commands/init/tools/shared/skill-manifest.d.ts +1 -1
  32. package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
  33. package/dist/commands/init/tools/shared/skill-manifest.js +2 -0
  34. package/package.json +2 -2
@@ -0,0 +1,169 @@
1
+ ---
2
+ title: Documentation Review Rubric
3
+ description: Checklist for reviewing documentation quality, accuracy, safety, and maintainability.
4
+ ---
5
+
6
+ # Documentation Review Rubric
7
+
8
+ Use this rubric to review documentation changes and audit existing docs. The
9
+ goal is not perfection. The goal is to identify whether docs are accurate,
10
+ useful, safe, and maintainable.
11
+
12
+ ## Quick Review Checklist
13
+
14
+ A documentation change is ready when:
15
+
16
+ - The page has a clear purpose.
17
+ - The reader persona is obvious.
18
+ - The page belongs to the right documentation type.
19
+ - The page is in the right location.
20
+ - The title describes the task or topic.
21
+ - Commands are accurate.
22
+ - Examples are realistic and grounded in evidence.
23
+ - Links work.
24
+ - Code blocks specify a language.
25
+ - Prerequisites are listed for task pages.
26
+ - Verification steps are included for tasks.
27
+ - Rollback steps are included for risky operations.
28
+ - Reference tables include types, defaults, required fields, and descriptions.
29
+ - Internal-only details are not included in public docs.
30
+ - No secrets or sensitive data are present.
31
+ - Terminology is consistent.
32
+ - Uncertainty is marked clearly.
33
+ - The docs are useful without external tribal knowledge.
34
+
35
+ ## Scoring Model
36
+
37
+ Score each area from 0 to 3.
38
+
39
+ | Score | Meaning |
40
+ | ----: | ------------------------------------------- |
41
+ | 0 | Missing or harmful |
42
+ | 1 | Present but incomplete, stale, or confusing |
43
+ | 2 | Useful but has gaps |
44
+ | 3 | Strong, accurate, and maintainable |
45
+
46
+ ## Core Areas
47
+
48
+ Review purpose, accuracy, structure, task support, reference quality,
49
+ operational safety, agent usefulness, maintainability, public/internal boundary,
50
+ and links or navigation.
51
+
52
+ Production runbooks should be especially strong on operational safety.
53
+ Public-facing docs should be especially strong on examples, accuracy, and
54
+ audience boundary.
55
+
56
+ | Area | 0 | 1 | 2 | 3 |
57
+ | ------------------------ | --------------------------- | ---------------------- | --------------------------- | ---------------------------------------------------------- |
58
+ | Purpose | No clear reason page exists | Purpose is implied | Purpose is stated | Purpose, reader, and outcome are clear |
59
+ | Accuracy | Incorrect or invented | Partially accurate | Mostly accurate | Grounded and verified |
60
+ | Structure | Hard to scan | Some headings | Clear sections | Predictable IA and strong headings |
61
+ | Task support | Cannot complete task | Can partially complete | Can complete with some gaps | Can complete safely with verification |
62
+ | Reference quality | Missing facts | Facts scattered | Most fields documented | Types, defaults, constraints, examples, errors documented |
63
+ | Operational safety | Risky or absent | Mentions risk | Includes basic verification | Includes verification, rollback, escalation, failure modes |
64
+ | Agent usefulness | Ambiguous | Some exact data | Mostly explicit | Exact commands, paths, constraints, and uncertainty |
65
+ | Maintainability | Duplicated or stale | Hard to update | Mostly maintainable | Clear source of truth and generated markers where needed |
66
+ | Public/internal boundary | Leaks or omits key context | Boundary unclear | Mostly appropriate | Correct assumptions and safe content |
67
+ | Links and navigation | Broken or absent | Sparse | Useful | Strong cross-links and clear next steps |
68
+
69
+ ## Minimum Acceptable Scores
70
+
71
+ For internal docs:
72
+
73
+ - no area below 1
74
+ - purpose, accuracy, task support, and operational safety at least 2
75
+ - production runbooks at 3 for operational safety
76
+
77
+ For public docs:
78
+
79
+ - no area below 2
80
+ - accuracy, structure, examples, and public/internal boundary at 3
81
+
82
+ ## Definition of Done for a Docs Migration
83
+
84
+ A repo docs migration is done when:
85
+
86
+ - docs have a clear landing page
87
+ - local development works from documented steps
88
+ - test commands are documented
89
+ - deployment behavior is documented or explicitly marked unknown
90
+ - configuration is documented
91
+ - API or CLI reference exists if applicable
92
+ - architecture summary exists for non-trivial systems
93
+ - operations docs exist for production systems
94
+ - ownership is documented or explicitly marked missing
95
+ - old docs are redirected, moved, or deleted
96
+ - duplicate docs are removed or linked to the source of truth
97
+ - public/internal boundary is reviewed
98
+
99
+ ## Red Flags
100
+
101
+ Block publishing until fixed or explicitly marked when docs include invented
102
+ deployment steps, undocumented production mutation commands, missing rollback
103
+ for risky operations, secrets or tokens, stale commands that fail, public docs
104
+ with internal URLs, internal docs with no owner, runbooks with no verification,
105
+ or generated reference edited manually without a regeneration path.
106
+
107
+ ## Good Enough vs Done
108
+
109
+ Sometimes a repo starts with no docs. A first pass can be good enough if it is
110
+ honest.
111
+
112
+ Acceptable first pass:
113
+
114
+ - grounded overview
115
+ - local setup from repo scripts
116
+ - test commands
117
+ - config table from source
118
+ - explicit missing deployment or ownership notes
119
+
120
+ Not acceptable:
121
+
122
+ - plausible but unverified architecture
123
+ - fake owner
124
+ - guessed deploy process
125
+ - copied templates with empty sections
126
+
127
+ ## Review Comment Patterns
128
+
129
+ Use direct, actionable comments.
130
+
131
+ Weak:
132
+
133
+ ```txt
134
+ This needs more detail.
135
+ ```
136
+
137
+ Stronger:
138
+
139
+ ```txt
140
+ Add the expected output for `pnpm dev` so readers can verify local startup.
141
+ ```
142
+
143
+ Weak:
144
+
145
+ ```txt
146
+ This is confusing.
147
+ ```
148
+
149
+ Stronger:
150
+
151
+ ```txt
152
+ This page mixes API reference and architecture explanation. Split endpoint
153
+ fields into `reference/api.md` and keep the auth model explanation here.
154
+ ```
155
+
156
+ ## Agent Self-Check
157
+
158
+ Before finishing a documentation task, verify:
159
+
160
+ - Did I inspect enough source files?
161
+ - Did I avoid inventing facts?
162
+ - Did I mark uncertainty?
163
+ - Did I use the right page type and structure?
164
+ - Did I include prerequisites and verification?
165
+ - Did I include rollback for risky operations?
166
+ - Did I document exact commands and paths?
167
+ - Did I preserve useful existing content?
168
+ - Did I avoid public/private leakage?
169
+ - Did I leave a useful handoff summary?
@@ -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
+ ```