@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.
Files changed (63) hide show
  1. package/assets/agents/oat-reviewer.md +48 -10
  2. package/assets/docs/cli-utilities/config-and-local-state.md +12 -0
  3. package/assets/docs/cli-utilities/configuration.md +19 -1
  4. package/assets/docs/contributing/documentation.md +6 -2
  5. package/assets/docs/docs-tooling/add-docs-to-a-repo.md +24 -14
  6. package/assets/docs/docs-tooling/commands.md +16 -14
  7. package/assets/docs/docs-tooling/workflows.md +22 -9
  8. package/assets/docs/reference/cli-reference.md +6 -2
  9. package/assets/docs/reference/docs-index-contract.md +28 -6
  10. package/assets/docs/reference/index.md +1 -1
  11. package/assets/docs/workflows/projects/implementation-execution.md +1 -1
  12. package/assets/docs/workflows/projects/reviews.md +41 -0
  13. package/assets/docs/workflows/skills/index.md +3 -1
  14. package/assets/public-package-versions.json +4 -4
  15. package/assets/skills/authoring-docs/SKILL.md +135 -0
  16. package/assets/skills/authoring-docs/references/categories.md +251 -0
  17. package/assets/skills/authoring-docs/references/information-architecture.md +156 -0
  18. package/assets/skills/authoring-docs/references/page-types.md +119 -0
  19. package/assets/skills/authoring-docs/references/principles.md +98 -0
  20. package/assets/skills/authoring-docs/references/review-rubric.md +169 -0
  21. package/assets/skills/authoring-docs/references/templates.md +549 -0
  22. package/assets/skills/authoring-docs/references/workflow.md +133 -0
  23. package/assets/skills/authoring-docs/references/writing-style.md +128 -0
  24. package/assets/skills/oat-agent-instructions-analyze/SKILL.md +43 -13
  25. package/assets/skills/oat-docs-analyze/SKILL.md +183 -28
  26. package/assets/skills/oat-docs-analyze/references/analysis-artifact-template.md +101 -1
  27. package/assets/skills/oat-docs-analyze/references/directory-assessment-criteria.md +16 -0
  28. package/assets/skills/oat-docs-analyze/references/quality-checklist.md +83 -3
  29. package/assets/skills/oat-docs-authoring/SKILL.md +193 -0
  30. package/assets/skills/oat-docs-authoring/references/docs-root-resolution.md +64 -0
  31. package/assets/skills/oat-docs-authoring/references/lifecycle-boundaries.md +51 -0
  32. package/assets/skills/oat-docs-authoring/references/oat-fumadocs-contract.md +77 -0
  33. package/assets/skills/oat-docs-authoring/references/targeted-authoring-workflow.md +61 -0
  34. package/assets/skills/oat-docs-authoring/references/validation.md +61 -0
  35. package/assets/skills/oat-docs-bootstrap/SKILL.md +15 -11
  36. package/assets/skills/oat-docs-bootstrap/assets/AGENTS.md.template +5 -5
  37. package/assets/skills/oat-project-discover/SKILL.md +22 -4
  38. package/assets/skills/oat-project-import-plan/SKILL.md +38 -9
  39. package/assets/skills/oat-project-plan/SKILL.md +30 -7
  40. package/assets/skills/oat-project-plan-writing/SKILL.md +45 -2
  41. package/assets/skills/oat-project-progress/SKILL.md +9 -3
  42. package/assets/skills/oat-project-quick-start/SKILL.md +40 -8
  43. package/assets/skills/oat-project-review-provide/SKILL.md +24 -11
  44. package/assets/skills/oat-project-review-receive/SKILL.md +37 -17
  45. package/dist/commands/config/index.d.ts.map +1 -1
  46. package/dist/commands/config/index.js +36 -0
  47. package/dist/commands/index.d.ts.map +1 -1
  48. package/dist/commands/index.js +2 -0
  49. package/dist/commands/init/tools/shared/skill-manifest.d.ts +1 -1
  50. package/dist/commands/init/tools/shared/skill-manifest.d.ts.map +1 -1
  51. package/dist/commands/init/tools/shared/skill-manifest.js +2 -0
  52. package/dist/commands/review/index.d.ts +3 -0
  53. package/dist/commands/review/index.d.ts.map +1 -0
  54. package/dist/commands/review/index.js +7 -0
  55. package/dist/commands/review/latest.d.ts +23 -0
  56. package/dist/commands/review/latest.d.ts.map +1 -0
  57. package/dist/commands/review/latest.js +182 -0
  58. package/dist/config/oat-config.d.ts +5 -0
  59. package/dist/config/oat-config.d.ts.map +1 -1
  60. package/dist/config/oat-config.js +12 -0
  61. package/dist/config/resolve.d.ts.map +1 -1
  62. package/dist/config/resolve.js +4 -0
  63. package/package.json +2 -2
@@ -0,0 +1,119 @@
1
+ ---
2
+ title: Documentation Page Types
3
+ description: Guidance for tutorials, how-to guides, reference docs, explanations, and runbooks.
4
+ ---
5
+
6
+ # Documentation Page Types
7
+
8
+ Most documentation problems come from mixing different kinds of information into
9
+ one page. A page can contain supporting material from another type, but it
10
+ should have one primary job.
11
+
12
+ ## Tutorial
13
+
14
+ A tutorial teaches through a guided path. Use tutorials when the reader is new
15
+ to the project or workflow.
16
+
17
+ Good tutorial topics include running the app locally for the first time,
18
+ sending the first API request, running the first CLI command, creating the first
19
+ integration, making the first contribution, or deploying to a non-production
20
+ environment.
21
+
22
+ Rules:
23
+
24
+ - Assume the reader is capable but unfamiliar with this system.
25
+ - State prerequisites before steps.
26
+ - Use one successful path.
27
+ - Avoid branching.
28
+ - Show expected output.
29
+ - Explain only enough to keep the reader oriented.
30
+ - End with a working result.
31
+ - Link to deeper docs for next steps.
32
+
33
+ ## How-To Guide
34
+
35
+ A how-to guide helps a reader complete a specific task.
36
+
37
+ Good how-to topics include adding a route, adding a CLI command, rotating a
38
+ secret, deploying a service, running a migration, debugging a worker, adding a
39
+ feature flag, creating a webhook consumer, or onboarding a service consumer.
40
+
41
+ Rules:
42
+
43
+ - Title the page as a task.
44
+ - Start with when to use the guide.
45
+ - State prerequisites.
46
+ - Use numbered steps.
47
+ - Include verification.
48
+ - Include rollback or cleanup when relevant.
49
+ - Keep conceptual explanation brief.
50
+ - Link to reference and concept pages.
51
+
52
+ ## Reference
53
+
54
+ Reference documentation provides exact facts.
55
+
56
+ Good reference topics include API endpoints, GraphQL schema, CLI commands,
57
+ environment variables, configuration, error codes, event schemas, package
58
+ exports, permissions, cache keys, and feature flags.
59
+
60
+ Rules:
61
+
62
+ - Do not bury facts in prose.
63
+ - Use tables, lists, and code blocks.
64
+ - Include required vs optional status.
65
+ - Include defaults, types, constraints, examples, and errors.
66
+ - Include versioning and deprecation notes when known.
67
+ - Avoid tutorials inside reference pages.
68
+
69
+ ## Explanation
70
+
71
+ Explanation helps readers understand how and why the system works.
72
+
73
+ Good explanation topics include architecture, data flow, rendering model,
74
+ caching strategy, auth model, queueing model, consistency model, failure modes,
75
+ tradeoffs, migration strategy, and design constraints.
76
+
77
+ Rules:
78
+
79
+ - Start with the problem or design pressure.
80
+ - Explain the mental model.
81
+ - Be honest about tradeoffs.
82
+ - Include diagrams when helpful.
83
+ - Link to ADRs or RFCs when available.
84
+ - Do not turn explanation pages into step-by-step guides.
85
+ - Do not hide operational instructions only in explanation pages.
86
+
87
+ ## Runbook
88
+
89
+ A runbook is operational how-to plus reference. Use it when the reader needs to
90
+ recover or safely operate a system.
91
+
92
+ Rules:
93
+
94
+ - Start with symptoms and impact.
95
+ - Include first checks, dashboards, logs, metrics, or traces.
96
+ - List likely causes and known false positives.
97
+ - Provide mitigation steps and exact commands or links.
98
+ - Include verification, rollback, and escalation.
99
+ - Avoid long historical background before recovery steps.
100
+
101
+ ## Mixed Pages
102
+
103
+ Some pages legitimately mix types. A landing page can include orientation,
104
+ links, and a small quick start. A runbook can include reference tables and task
105
+ steps. An API guide can include conceptual auth explanation plus endpoint
106
+ reference links.
107
+
108
+ The rule is not "never mix." The rule is to know the primary job of the page
109
+ and keep everything else subordinate.
110
+
111
+ ## Smell Test
112
+
113
+ | If the Reader Asks | They Need | Do Not Give Them |
114
+ | ------------------------------- | ------------ | --------------------------- |
115
+ | I am new. Walk me through this. | Tutorial | Full API reference |
116
+ | How do I do X? | How-to guide | Architecture essay |
117
+ | What does this option mean? | Reference | A blog post |
118
+ | Why does this behave this way? | Explanation | A command list |
119
+ | Production is broken. What now? | Runbook | Historical background first |
@@ -0,0 +1,98 @@
1
+ ---
2
+ title: Documentation Principles
3
+ description: Core principles for evidence-first technical documentation.
4
+ ---
5
+
6
+ # Documentation Principles
7
+
8
+ Documentation is part of the system. Maintain it with the same seriousness as
9
+ code, tests, configuration, infrastructure, and runbooks.
10
+
11
+ The goal is not to produce many pages. The goal is to reduce confusion, support
12
+ safe change, and make the system legible to humans and agents.
13
+
14
+ ## Start With the Reader's Job
15
+
16
+ Write from the reader's task, not the source tree.
17
+
18
+ Weak:
19
+
20
+ ```md
21
+ This service uses HTTP handlers, queues, and PostgreSQL.
22
+ ```
23
+
24
+ Stronger:
25
+
26
+ ```md
27
+ Use this service to publish content lifecycle events. The service accepts HTTP
28
+ requests, persists event state in PostgreSQL, and processes asynchronous work
29
+ through queue-backed workers.
30
+ ```
31
+
32
+ Purpose comes first. Implementation details follow when they help the reader.
33
+
34
+ ## Task Completion Beats Encyclopedic Completeness
35
+
36
+ Most readers arrive with a problem:
37
+
38
+ - How do I run this locally?
39
+ - How do I deploy this?
40
+ - What does this flag do?
41
+ - Why did this job fail?
42
+ - What request shape should I send?
43
+ - Can I safely change this config?
44
+
45
+ Complete docs are useful only when structured around those moments.
46
+
47
+ ## Separate Documentation Modes
48
+
49
+ Tutorials, how-to guides, reference pages, explanations, and runbooks do
50
+ different jobs. Keep each page's primary job clear. Do not turn a first-run
51
+ tutorial into a full reference manual, or a reference page into a long
52
+ architecture essay.
53
+
54
+ ## Make Context Explicit for Agents
55
+
56
+ Agents do not know which conventions are local, current, or tribal. Write down
57
+ exact commands, paths, service names, environment names, runtime versions,
58
+ configuration keys, ownership when known, constraints, non-goals, failure modes,
59
+ and uncertainty.
60
+
61
+ ## Prefer Boring Consistency
62
+
63
+ Across repositories, readers should know where to find setup, commands,
64
+ configuration, API or CLI reference, deployment, observability, runbooks,
65
+ architecture, and ownership. Familiar structure lowers cognitive load.
66
+
67
+ ## Lead With the Safe Path
68
+
69
+ Document the common path first. Then explain variations, edge cases, production
70
+ caveats, failure modes, unsafe commands, rollback, and compatibility
71
+ boundaries.
72
+
73
+ ## Treat Reference as a Contract
74
+
75
+ Reference docs for APIs, commands, configuration, events, packages, and
76
+ environment variables should include names, types, required or optional status,
77
+ defaults, allowed values, constraints, examples, errors, version notes, and
78
+ deprecation notes when those facts exist.
79
+
80
+ ## Treat Operations Docs as Safety Equipment
81
+
82
+ Runbooks are not background reading. They should help someone recover a system
83
+ under pressure with symptoms, impact, likely causes, dashboards, logs, commands,
84
+ verification, rollback, escalation, and known false positives.
85
+
86
+ ## Give Internal Docs the Same Quality Bar
87
+
88
+ Internal docs can assume more context only when that context is linked or
89
+ explained. They still need accurate examples, safe operations guidance, and
90
+ clear ownership. Internal docs often guide production changes and future agent
91
+ work.
92
+
93
+ ## Make Docs Age Visibly
94
+
95
+ Docs get stale. Include version compatibility, last-verified dates for
96
+ operational procedures, supported environments, deprecated behavior, ownership,
97
+ source-of-truth links, and generated-reference markers when useful. Avoid
98
+ claims like "new," "soon," or "temporary" without dates or issue links.
@@ -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?