@open-agent-toolkit/cli 0.3.12 → 0.3.14

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 (152) hide show
  1. package/README.md +1 -1
  2. package/assets/bundle-metadata.json +1 -1
  3. package/assets/docs/contributing/index.md +14 -1
  4. package/assets/docs/contributing/skills.md +64 -2
  5. package/assets/docs/contributing/smoke-testing.md +3 -3
  6. package/assets/docs/contributing/updating-model-guidance.md +2 -2
  7. package/assets/docs/contributing/verifying-cursor-pins.md +1 -1
  8. package/assets/docs/docs-tooling/add-docs-to-a-repo.md +112 -15
  9. package/assets/docs/docs-tooling/agent-instructions.md +131 -0
  10. package/assets/docs/docs-tooling/commands.md +74 -30
  11. package/assets/docs/docs-tooling/index.md +7 -6
  12. package/assets/docs/docs-tooling/meta.json +1 -1
  13. package/assets/docs/docs-tooling/workflows.md +357 -11
  14. package/assets/docs/{cli-utilities → getting-started}/bootstrap.md +60 -5
  15. package/assets/docs/{guide → getting-started}/concepts.md +28 -10
  16. package/assets/docs/getting-started/index.md +68 -0
  17. package/assets/docs/getting-started/meta.json +4 -0
  18. package/assets/docs/getting-started/quickstart.md +174 -0
  19. package/assets/docs/{cli-utilities → getting-started}/tool-packs.md +146 -15
  20. package/assets/docs/index.md +47 -48
  21. package/assets/docs/meta.json +6 -7
  22. package/assets/docs/provider-sync/commands.md +26 -3
  23. package/assets/docs/provider-sync/config.md +60 -1
  24. package/assets/docs/provider-sync/index.md +31 -15
  25. package/assets/docs/provider-sync/instruction-sync.md +43 -5
  26. package/assets/docs/provider-sync/manifest-and-drift.md +85 -0
  27. package/assets/docs/provider-sync/meta.json +1 -0
  28. package/assets/docs/provider-sync/pilot-with-a-team.md +236 -0
  29. package/assets/docs/provider-sync/scope-and-surface.md +37 -3
  30. package/assets/docs/reference/cli-reference.md +34 -34
  31. package/assets/docs/{cli-utilities → reference}/config-and-local-state.md +25 -9
  32. package/assets/docs/{cli-utilities → reference}/configuration.md +151 -34
  33. package/assets/docs/reference/docs-index-contract.md +19 -4
  34. package/assets/docs/reference/file-locations.md +7 -2
  35. package/assets/docs/reference/index.md +13 -1
  36. package/assets/docs/reference/meta.json +7 -1
  37. package/assets/docs/reference/oat-directory-structure.md +24 -22
  38. package/assets/docs/{workflows/projects/artifacts.md → reference/project-artifacts.md} +4 -4
  39. package/assets/docs/{workflows/projects/state-machine.md → reference/project-state-machine.md} +1 -1
  40. package/assets/docs/{workflows/projects/repo-analysis.md → reference/repository-pr-comments.md} +2 -2
  41. package/assets/docs/reference/troubleshooting.md +125 -10
  42. package/assets/docs/reference/what-oat-writes.md +410 -0
  43. package/assets/docs/skills/brainstorm.md +77 -0
  44. package/assets/docs/skills/diagnostics.md +56 -0
  45. package/assets/docs/{workflows/skills → skills}/explainer-kit.md +121 -0
  46. package/assets/docs/skills/index.md +416 -0
  47. package/assets/docs/{workflows/skills → skills}/meta.json +4 -2
  48. package/assets/docs/{workflows/skills → skills}/recon.md +49 -0
  49. package/assets/docs/skills/repo-improve.md +254 -0
  50. package/assets/docs/skills/research.md +237 -0
  51. package/assets/docs/skills/session-closeout.md +61 -0
  52. package/assets/docs/workflows/advanced/autonomy.md +344 -0
  53. package/assets/docs/workflows/{projects → advanced}/cursor-cloud.md +69 -1
  54. package/assets/docs/workflows/{projects → advanced}/dispatch-ceiling.md +163 -18
  55. package/assets/docs/workflows/{projects → advanced}/evidence-layers.md +1 -1
  56. package/assets/docs/workflows/advanced/index.md +19 -0
  57. package/assets/docs/workflows/advanced/meta.json +13 -0
  58. package/assets/docs/workflows/{projects → advanced}/orchestration-model.md +63 -4
  59. package/assets/docs/workflows/{projects → advanced}/programmatic-execution.md +4 -4
  60. package/assets/docs/{cli-utilities → workflows/advanced}/workflow-gates.md +162 -8
  61. package/assets/docs/workflows/advanced/worktree-bootstrap.md +83 -0
  62. package/assets/docs/workflows/approvals-and-automation.md +261 -0
  63. package/assets/docs/workflows/backlog-and-planning/backlog-lifecycle.md +348 -0
  64. package/assets/docs/workflows/backlog-and-planning/index.md +13 -0
  65. package/assets/docs/workflows/backlog-and-planning/meta.json +4 -0
  66. package/assets/docs/workflows/backlog-and-planning/remote-project-management.md +303 -0
  67. package/assets/docs/workflows/choose-workflow.md +114 -0
  68. package/assets/docs/workflows/ideas/index.md +3 -3
  69. package/assets/docs/workflows/ideas/lifecycle.md +218 -1
  70. package/assets/docs/workflows/index.md +11 -62
  71. package/assets/docs/workflows/meta.json +10 -2
  72. package/assets/docs/workflows/projects/closeout/closeout-skills.md +538 -0
  73. package/assets/docs/workflows/projects/closeout/index.md +14 -0
  74. package/assets/docs/workflows/projects/closeout/meta.json +4 -0
  75. package/assets/docs/workflows/projects/{pr-flow.md → closeout/pr-flow.md} +1 -1
  76. package/assets/docs/workflows/projects/{retro.md → closeout/retro.md} +1 -1
  77. package/assets/docs/workflows/projects/execution/execution-skills.md +258 -0
  78. package/assets/docs/workflows/projects/{implementation-execution.md → execution/implementation-execution.md} +8 -8
  79. package/assets/docs/workflows/projects/execution/index.md +15 -0
  80. package/assets/docs/workflows/projects/execution/meta.json +9 -0
  81. package/assets/docs/workflows/projects/execution/picking-up-projects.md +376 -0
  82. package/assets/docs/{cli-utilities → workflows/projects/execution}/project-log.md +1 -1
  83. package/assets/docs/workflows/projects/index.md +38 -49
  84. package/assets/docs/workflows/projects/lifecycle.md +47 -11
  85. package/assets/docs/workflows/projects/meta.json +2 -23
  86. package/assets/docs/workflows/projects/{design-modes.md → planning/design-modes.md} +29 -0
  87. package/assets/docs/workflows/projects/planning/hill-checkpoints.md +167 -0
  88. package/assets/docs/workflows/projects/planning/index.md +16 -0
  89. package/assets/docs/workflows/projects/planning/meta.json +10 -0
  90. package/assets/docs/workflows/projects/planning/planning-skills.md +381 -0
  91. package/assets/docs/workflows/projects/{splitting.md → planning/splitting.md} +3 -3
  92. package/assets/docs/workflows/projects/planning/starting-projects.md +511 -0
  93. package/assets/docs/workflows/projects/{reviews.md → reviews/index.md} +51 -5
  94. package/assets/docs/workflows/projects/reviews/meta.json +4 -0
  95. package/assets/docs/workflows/projects/reviews/review-flavors.md +643 -0
  96. package/assets/docs/workflows/projects/{reviewing-oat-prs.md → reviews/reviewing-oat-prs.md} +3 -3
  97. package/assets/docs/workflows/waves/index.md +12 -0
  98. package/assets/docs/workflows/waves/meta.json +4 -0
  99. package/assets/docs/workflows/waves/wave-workflows.md +206 -0
  100. package/assets/public-package-versions.json +4 -4
  101. package/assets/skills/oat-docs/SKILL.md +19 -19
  102. package/assets/skills/oat-docs-analyze/SKILL.md +27 -7
  103. package/assets/skills/oat-docs-analyze/references/quality-checklist.md +16 -3
  104. package/assets/skills/oat-docs-apply/SKILL.md +20 -3
  105. package/assets/skills/oat-docs-authoring/SKILL.md +11 -7
  106. package/assets/skills/oat-docs-authoring/references/docs-root-resolution.md +12 -5
  107. package/assets/skills/oat-docs-authoring/references/lifecycle-boundaries.md +7 -7
  108. package/assets/skills/oat-docs-authoring/references/oat-fumadocs-contract.md +13 -3
  109. package/assets/skills/oat-docs-authoring/references/targeted-authoring-workflow.md +5 -4
  110. package/assets/skills/oat-docs-authoring/references/validation.md +11 -1
  111. package/assets/skills/oat-docs-bootstrap/SKILL.md +31 -8
  112. package/assets/skills/oat-docs-bootstrap/assets/AGENTS.md.template +2 -1
  113. package/assets/skills/oat-doctor/SKILL.md +25 -25
  114. package/assets/skills/oat-project-document/SKILL.md +21 -2
  115. package/assets/templates/docs-markdown/contributing.md +35 -0
  116. package/assets/templates/docs-markdown/index.md +18 -0
  117. package/dist/commands/docs/index-generate/index.d.ts.map +1 -1
  118. package/dist/commands/docs/index-generate/index.js +41 -8
  119. package/dist/commands/docs/init/index.d.ts +17 -2
  120. package/dist/commands/docs/init/index.d.ts.map +1 -1
  121. package/dist/commands/docs/init/index.js +194 -14
  122. package/dist/commands/docs/init/markdown.d.ts +39 -0
  123. package/dist/commands/docs/init/markdown.d.ts.map +1 -0
  124. package/dist/commands/docs/init/markdown.js +317 -0
  125. package/dist/commands/docs/init/resolve-options.d.ts +3 -1
  126. package/dist/commands/docs/init/resolve-options.d.ts.map +1 -1
  127. package/dist/commands/docs/init/resolve-options.js +36 -0
  128. package/dist/commands/docs/init/scaffold.d.ts.map +1 -1
  129. package/dist/commands/docs/init/scaffold.js +11 -0
  130. package/dist/commands/shared/agents-md.d.ts +7 -0
  131. package/dist/commands/shared/agents-md.d.ts.map +1 -1
  132. package/dist/commands/shared/agents-md.js +131 -91
  133. package/dist/commands/tools/shared/pack-manifest.d.ts.map +1 -1
  134. package/dist/commands/tools/shared/pack-manifest.js +1 -0
  135. package/dist/config/oat-config.d.ts +2 -1
  136. package/dist/config/oat-config.d.ts.map +1 -1
  137. package/dist/config/oat-config.js +4 -2
  138. package/package.json +2 -2
  139. package/assets/docs/cli-utilities/backlog-lifecycle.md +0 -80
  140. package/assets/docs/cli-utilities/index.md +0 -74
  141. package/assets/docs/cli-utilities/meta.json +0 -13
  142. package/assets/docs/cli-utilities/remote-project-management.md +0 -191
  143. package/assets/docs/guide/index.md +0 -31
  144. package/assets/docs/guide/meta.json +0 -4
  145. package/assets/docs/quickstart.md +0 -88
  146. package/assets/docs/workflows/projects/autonomy.md +0 -196
  147. package/assets/docs/workflows/projects/hill-checkpoints.md +0 -93
  148. package/assets/docs/workflows/projects/picking-up-projects.md +0 -124
  149. package/assets/docs/workflows/projects/review-flavors.md +0 -138
  150. package/assets/docs/workflows/skills/index.md +0 -184
  151. package/assets/docs/workflows/skills/repo-improve.md +0 -89
  152. package/assets/docs/workflows/wave-workflows.md +0 -77
@@ -86,7 +86,7 @@ behavioral change needs evidence that fails without the change.
86
86
  machine-scannable repo-improvement (`RP-NN`) and upstream-feedback (`UP-NN`)
87
87
  registers. Promotion and filing rollups let the retro skills resume approved
88
88
  applications and tracker filing without repeating settled work. See
89
- [Project Retrospectives](retro.md).
89
+ [Project Retrospectives](../workflows/projects/closeout/retro.md).
90
90
 
91
91
  ### Explainer artifacts
92
92
 
@@ -197,7 +197,7 @@ Coordination parents do not contain executable phase files. `spec.md`, `design.m
197
197
 
198
198
  The parent still keeps `state.md`, `discovery.md`, and `references/split-plan.json`. Child projects are flat siblings and link back to the parent through state metadata. Each child starts from a distilled discovery seed and must revalidate inherited context before moving beyond discovery/design.
199
199
 
200
- See [Project Splitting](splitting.md) for the full parent/child model.
200
+ See [Project Splitting](../workflows/projects/planning/splitting.md) for the full parent/child model.
201
201
 
202
202
  ### plan.md frontmatter
203
203
 
@@ -232,7 +232,7 @@ Each inner array is a group of phases that execute concurrently in their own wor
232
232
 
233
233
  **Validation:**
234
234
 
235
- Before dispatching, `oat-project-implement` invokes `oat project validate-plan --project-path "${PROJECT_PATH}"`. Non-zero exit blocks the run. See [CLI Reference](../../reference/cli-reference.md) and [Implementation Execution](implementation-execution.md) for details.
235
+ Before dispatching, `oat-project-implement` invokes `oat project validate-plan --project-path "${PROJECT_PATH}"`. Non-zero exit blocks the run. See [CLI Reference](cli-reference.md) and [Implementation Execution](../workflows/projects/execution/implementation-execution.md) for details.
236
236
 
237
237
  #### oat_phase_review_gate
238
238
 
@@ -261,7 +261,7 @@ oat_phase_review_gate:
261
261
  - `review_type` → optional, defaults to `code`. Only `code` is supported for phase gates.
262
262
  - `exit_nonzero_on` → optional, defaults to `high`. One of `critical`, `high`, `medium`, `low`. This is the blocking threshold: findings at or above it stop the phase; sub-threshold findings are dispositioned by the judgment sweep rather than ignored.
263
263
 
264
- A malformed gate stops the run before task execution rather than being silently disabled. The gate is independent of HiLL checkpoints and reuses the existing `oat gate review` target config — it does not hardcode a `--target`. See [Reviews → Phase review gate](reviews.md#phase-review-gate) for the runtime behavior and disposition rules.
264
+ A malformed gate stops the run before task execution rather than being silently disabled. The gate is independent of HiLL checkpoints and reuses the existing `oat gate review` target config — it does not hardcode a `--target`. See [Reviews → Phase review gate](../workflows/projects/reviews/index.md#phase-review-gate) for the runtime behavior and disposition rules.
265
265
 
266
266
  ## Reference artifacts
267
267
 
@@ -83,7 +83,7 @@ Lite progression:
83
83
  A lite project that outgrows one sitting can move to the quick chain with `oat
84
84
  project promote <project-path> --to quick`, which flips `oat_workflow_mode` to
85
85
  `quick` and sets `oat_phase: discovery` with `oat_phase_status: complete`. See
86
- [Lifecycle](lifecycle.md#promoting-a-lite-project-to-quick).
86
+ [Lifecycle](../workflows/projects/lifecycle.md#promoting-a-lite-project-to-quick).
87
87
 
88
88
  ## Review progression
89
89
 
@@ -7,7 +7,7 @@ description: 'Repository-level PR comment analysis commands for collecting and t
7
7
 
8
8
  The `oat repo pr-comments` command group provides repository-level review analysis tools. These commands operate across merged pull requests rather than on individual PRs.
9
9
 
10
- This page covers the PR-comment analysis surface only. Other repository-level commands, such as `oat repo archive sync`, are covered in [Lifecycle](lifecycle.md#completion-archive-behavior) and [Configuration](../../cli-utilities/configuration.md#shared-repo-config-you-will-touch-most-often).
10
+ This page covers the PR-comment analysis surface only. Other repository-level commands, such as `oat repo archive sync`, are covered in [Lifecycle](../workflows/projects/lifecycle.md#completion-archive-behavior) and [Configuration](configuration.md#shared-repo-config-you-will-touch-most-often).
11
11
 
12
12
  ## Quick Look
13
13
 
@@ -102,4 +102,4 @@ Both commands accept dependency injection for testability:
102
102
 
103
103
  - Source: `packages/cli/src/commands/repo/pr-comments/`
104
104
  - Types: `packages/cli/src/commands/repo/pr-comments/collect/pr-comments.types.ts`
105
- - Archive sync: [Lifecycle](lifecycle.md#completion-archive-behavior) and [Configuration](../../cli-utilities/configuration.md#shared-repo-config-you-will-touch-most-often)
105
+ - Archive sync: [Lifecycle](../workflows/projects/lifecycle.md#completion-archive-behavior) and [Configuration](configuration.md#shared-repo-config-you-will-touch-most-often)
@@ -5,16 +5,99 @@ description: 'Common issues and fixes for skills visibility, worktrees, sync, an
5
5
 
6
6
  # Troubleshooting
7
7
 
8
+ The commands on this page use the installed `oat` command. A few entries also
9
+ give a `pnpm run ...` form; those work only inside a checkout of the OAT source
10
+ repository and are labelled that way.
11
+
8
12
  ## Skills not visible in host UI
9
13
 
10
- - Run: `pnpm run cli -- sync --scope all`
11
- - Reload/restart host app session
12
- - Verify `AGENTS.md` skills table matches `.agents/skills/*/SKILL.md`
14
+ A skill shows up in your coding tool only when two things are true: the skill
15
+ is installed (a folder with a `SKILL.md` under `.agents/skills/` in this
16
+ repository, or under `~/.agents/skills/` in your home directory), and the
17
+ tool can read it. Some tools, such as Claude Code, read a provider view: a
18
+ link or copy that OAT creates in the tool's own folder, such as
19
+ `.claude/skills`. Others, such as Cursor, read `.agents/skills` directly.
20
+
21
+ **Diagnose first.** These commands only read; they change nothing.
22
+
23
+ 1. Check whether the skill is installed, and where:
24
+
25
+ ```bash
26
+ oat tools info <skill-name>
27
+ ```
28
+
29
+ It prints the skill's pack, its scope (`project` for this repository,
30
+ `user` for your home directory) and its status, then a "Provider views"
31
+ block for each scope with one row per coding tool.
32
+ - `Tool '<skill-name>' not found.` means the skill is not installed at
33
+ either scope. Install the pack that contains it (see the fixes below), or
34
+ create the skill at `.agents/skills/<skill-name>/SKILL.md`. To see every
35
+ installed skill with its pack and scope, run `oat tools list`.
36
+ - `in-sync` on your tool's row means its view of the skill is in place, so
37
+ go to the last fix step and start a new session.
38
+ - `missing-additive`, `removed` or `modified` means your tool's view is
39
+ absent or out of date. The block ends with a `Repair:` line that gives
40
+ the exact `oat sync --scope ...` command to run.
41
+ - `inactive` means that tool is not active at that scope, so OAT creates
42
+ no view for it. Enable it, as shown in the fixes below.
43
+
44
+ 2. Check whether the repository's provider views are in sync:
45
+
46
+ ```bash
47
+ oat status --scope project
48
+ ```
49
+
50
+ Each row names a tool and a skill. `✓ in_sync` means the view is in place.
51
+ `✗ missing provider entry missing` means the view has not been created
52
+ yet; `oat sync` creates it. `No managed entries found.` means OAT manages
53
+ no provider views in this repository, which usually means no tool that
54
+ needs views is enabled. Run `oat providers list --scope project` to see
55
+ which tools are enabled or detected.
56
+
57
+ **Then fix**, always with an explicit scope:
58
+
59
+ - Enable the tool if step 1 or 2 showed it is not active, for example
60
+ `oat providers set --scope project --enabled claude`.
61
+ - For skills in this repository (`.agents/skills`), preview and then
62
+ regenerate the provider views:
63
+
64
+ ```bash
65
+ oat sync --scope project --dry-run
66
+ oat sync --scope project
67
+ ```
68
+
69
+ - For skills installed at user scope (`~/.agents/skills`, where a tool pack
70
+ installs when you give no `--scope`), run `oat sync --scope user`. This
71
+ writes provider views in your home directory, such as `~/.claude/skills`.
72
+ - If the skill comes from a pack that is not installed, install that pack with
73
+ an explicit scope, for example `oat tools install research --scope project`
74
+ (this repository) or `oat tools install research --scope user` (your home
75
+ directory). If you installed a pack with `--no-sync`, running the install
76
+ again does not create the views; run `oat sync` for that scope instead.
77
+ - Reload the tool or start a new session: most tools read their skill list
78
+ when a session starts.
79
+ - If your repository's `AGENTS.md` names skills or packs, check that it
80
+ matches what `oat tools list` reports. The `<!-- OAT tools -->` block that
81
+ `--project-guidance` writes lists the installed packs and the folders
82
+ agents should scan for skills; it does not list each skill.
83
+ - If you are working in the OAT source repository: run
84
+ `pnpm run cli -- sync --scope all`, which runs the CLI from source and syncs
85
+ both project and user scope.
13
86
 
14
87
  ## Worktree checkout missing provider links
15
88
 
16
- - Run: `pnpm run worktree:init`
17
- - This command installs dependencies, builds the workspace, and runs `oat sync --scope project`.
89
+ - In the new worktree, run `oat sync --scope project` to recreate the
90
+ project's provider views. Add `--dry-run` first to preview.
91
+ - To prepare the whole worktree, including local-only files and the
92
+ repository's setup and readiness checks, invoke
93
+ `/oat-worktree-bootstrap --existing` in your coding agent. See
94
+ [Worktree bootstrap](../workflows/advanced/worktree-bootstrap.md).
95
+ - If you are working in the OAT source repository: run
96
+ `pnpm run worktree:init`. This command copies local-only files from the main
97
+ worktree, installs dependencies, configures Git hooks, builds the workspace,
98
+ and runs `oat sync` with no scope flag. A bare `oat sync` uses
99
+ `--scope all`, so it refreshes user-scope provider views in your home
100
+ directory as well as the project's.
18
101
 
19
102
  ## Codex appears detected but no skill sync actions are listed
20
103
 
@@ -85,12 +168,18 @@ Use [Instruction Sync](../provider-sync/instruction-sync.md) for the full strate
85
168
 
86
169
  ## `doctor` warns about canonical directories
87
170
 
88
- - Run `oat init` for the relevant scope.
171
+ - Run `oat init` for the relevant scope. The check's name says which scope is
172
+ missing directories: for `project:canonical_directories` run
173
+ `oat init --scope project`, and for `user:canonical_directories` run
174
+ `oat init --scope user`. A bare `oat init` initializes both.
89
175
  - Re-run `oat doctor` after initialization.
90
176
 
91
177
  ## `doctor` warns about outdated installed OAT skills
92
178
 
93
- - Run `oat init tools` to install/update bundled OAT tool packs.
179
+ - Run `oat tools update --pack <pack> --scope <project|user>` to update an
180
+ installed pack, or `oat tools install <pack> --scope <project|user>` to
181
+ install one. The older form `oat init tools` is a legacy command that still
182
+ installs or updates the bundled tool packs.
94
183
  - In TTY mode, select which outdated skills to update when prompted.
95
184
  - In non-interactive mode, run the scoped command doctor prints:
96
185
  `oat tools update --pack <pack> --scope <scope>`.
@@ -212,7 +301,7 @@ Both commands report managed pack state with a scoped recovery command:
212
301
  contract and does not clear this finding. `oat tools update` cannot fix it.
213
302
  Enable a provider with `oat providers set --scope user --enabled <provider>`
214
303
  and run `oat sync --scope user`; reinstalling at project scope is not
215
- required. See [Tool packs](../cli-utilities/tool-packs.md) for how
304
+ required. See [Tool packs](../getting-started/tool-packs.md) for how
216
305
  user-scope agents reach each provider.
217
306
 
218
307
  ## `status` or `doctor` reports `packs:inventory`
@@ -229,7 +318,21 @@ and the home root becomes `~` when user scope is checked. Redaction is a literal
229
318
  replacement of those exact root paths, so a path outside them, such as a global
230
319
  bundle path in an assets error, stays absolute in the message.
231
320
 
232
- Rebuild the CLI workspace, then rerun the command named in the diagnostic:
321
+ With an installed CLI, reinstall it so its bundled assets are complete and
322
+ match the CLI version, then rerun the command named in the diagnostic. If you
323
+ set `OAT_ASSETS_DIR`, point it at a complete asset bundle built for this CLI
324
+ version, or unset it to use the bundled copy.
325
+
326
+ ```bash
327
+ npm install --global @open-agent-toolkit/cli
328
+ oat status # or: oat doctor
329
+ ```
330
+
331
+ The diagnostic's own recovery line says to run `pnpm build`. That applies only
332
+ when you run the CLI from a checkout of the OAT source repository.
333
+
334
+ If you are working in the OAT source repository: rebuild the CLI workspace,
335
+ then rerun the command named in the diagnostic:
233
336
 
234
337
  ```bash
235
338
  pnpm build
@@ -373,7 +476,11 @@ failure, which is intentional — you asked for a scope that does not exist here
373
476
 
374
477
  ## Manifest not found or invalid
375
478
 
376
- - Missing manifest: run `sync` or `init`
479
+ - Missing manifest: run `sync` or `init`. For the repository's manifest
480
+ (`.oat/sync/manifest.json`), use `oat sync --scope project` or
481
+ `oat init --scope project`; without `--scope`, both commands also write to
482
+ your home directory. For the user manifest (`~/.oat/sync/manifest.json`),
483
+ use `--scope user`.
377
484
  - Invalid manifest: repair/remove file and rerun
378
485
 
379
486
  ## Status/output mismatches with lifecycle expectations
@@ -405,10 +512,18 @@ package.
405
512
 
406
513
  ## Reference artifacts
407
514
 
515
+ In your own repository, these project files hold the evidence most entries on
516
+ this page refer to:
517
+
408
518
  - `.oat/projects/<scope>/<project>/implementation.md`
409
519
  - `.oat/projects/<scope>/<project>/reviews/`
410
520
  - `.oat/projects/<scope>/<project>/explainers/<slug>/manifest.json`
411
521
  - `.oat/projects/<scope>/<project>/explainers/<slug>/qa/result.json`
522
+
523
+ If you are working on OAT itself, in a checkout of the OAT source repository,
524
+ the checks behind `oat doctor`, `oat status` and `oat instructions` live in
525
+ these source files:
526
+
412
527
  - `packages/cli/src/commands/doctor/index.ts`
413
528
  - `packages/cli/src/commands/status/index.ts`
414
529
  - `packages/cli/src/commands/tools/shared/pack-inventory.ts`