@open-agent-toolkit/cli 0.2.63 → 0.2.65

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 (165) hide show
  1. package/assets/bundle-metadata.json +1 -1
  2. package/assets/docs/cli-utilities/tool-packs.md +83 -0
  3. package/assets/docs/contributing/skills.md +52 -7
  4. package/assets/docs/provider-sync/manifest-and-drift.md +105 -0
  5. package/assets/public-package-versions.json +4 -4
  6. package/assets/skills/analyze/SKILL.md +2 -1
  7. package/assets/skills/authoring-docs/SKILL.md +2 -1
  8. package/assets/skills/compare/SKILL.md +2 -1
  9. package/assets/skills/create-agnostic-skill/SKILL.md +10 -7
  10. package/assets/skills/create-agnostic-skill/references/skill-template.md +9 -7
  11. package/assets/skills/deep-research/SKILL.md +2 -1
  12. package/assets/skills/explainer-kit/SKILL.md +2 -1
  13. package/assets/skills/oat-agent-instructions-analyze/SKILL.md +2 -1
  14. package/assets/skills/oat-agent-instructions-apply/SKILL.md +2 -1
  15. package/assets/skills/oat-brainstorm/SKILL.md +2 -1
  16. package/assets/skills/oat-cursor-cloud-projects/SKILL.md +2 -1
  17. package/assets/skills/oat-dispatch-subagents/SKILL.md +2 -1
  18. package/assets/skills/oat-docs/SKILL.md +2 -1
  19. package/assets/skills/oat-docs-analyze/SKILL.md +2 -1
  20. package/assets/skills/oat-docs-apply/SKILL.md +2 -1
  21. package/assets/skills/oat-docs-authoring/SKILL.md +2 -1
  22. package/assets/skills/oat-docs-bootstrap/SKILL.md +2 -1
  23. package/assets/skills/oat-doctor/SKILL.md +2 -1
  24. package/assets/skills/oat-explainer-kit/SKILL.md +2 -1
  25. package/assets/skills/oat-explainer-kit/scripts/check-core.mjs +322 -2
  26. package/assets/skills/oat-idea-ideate/SKILL.md +2 -1
  27. package/assets/skills/oat-idea-new/SKILL.md +2 -1
  28. package/assets/skills/oat-idea-scratchpad/SKILL.md +2 -1
  29. package/assets/skills/oat-idea-summarize/SKILL.md +2 -1
  30. package/assets/skills/oat-pjm-add-backlog-item/SKILL.md +2 -1
  31. package/assets/skills/oat-pjm-decision/SKILL.md +2 -1
  32. package/assets/skills/oat-pjm-review-backlog/SKILL.md +2 -1
  33. package/assets/skills/oat-pjm-update-repo-reference/SKILL.md +2 -1
  34. package/assets/skills/oat-project-autonomous/SKILL.md +2 -1
  35. package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -0
  36. package/assets/skills/oat-project-capture/SKILL.md +2 -1
  37. package/assets/skills/oat-project-clear-active/SKILL.md +2 -1
  38. package/assets/skills/oat-project-complete/SKILL.md +2 -1
  39. package/assets/skills/oat-project-design/SKILL.md +2 -1
  40. package/assets/skills/oat-project-discover/SKILL.md +2 -1
  41. package/assets/skills/oat-project-dispatch-subagents/SKILL.md +2 -1
  42. package/assets/skills/oat-project-document/SKILL.md +2 -1
  43. package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -0
  44. package/assets/skills/oat-project-implement/SKILL.md +2 -1
  45. package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -0
  46. package/assets/skills/oat-project-import-plan/SKILL.md +2 -1
  47. package/assets/skills/oat-project-lite/SKILL.md +2 -1
  48. package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +1 -0
  49. package/assets/skills/oat-project-new/SKILL.md +2 -1
  50. package/assets/skills/oat-project-next/SKILL.md +2 -1
  51. package/assets/skills/oat-project-open/SKILL.md +2 -1
  52. package/assets/skills/oat-project-plan/SKILL.md +2 -1
  53. package/assets/skills/oat-project-plan-writing/SKILL.md +2 -1
  54. package/assets/skills/oat-project-pr-final/SKILL.md +282 -6
  55. package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -0
  56. package/assets/skills/oat-project-pr-progress/SKILL.md +2 -1
  57. package/assets/skills/oat-project-progress/SKILL.md +2 -1
  58. package/assets/skills/oat-project-promote-spec-driven/SKILL.md +2 -1
  59. package/assets/skills/oat-project-quick-start/SKILL.md +2 -1
  60. package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -0
  61. package/assets/skills/oat-project-reconcile/SKILL.md +2 -1
  62. package/assets/skills/oat-project-retro/SKILL.md +2 -1
  63. package/assets/skills/oat-project-retro-file/SKILL.md +2 -1
  64. package/assets/skills/oat-project-review-provide/SKILL.md +2 -1
  65. package/assets/skills/oat-project-review-provide-remote/SKILL.md +2 -1
  66. package/assets/skills/oat-project-review-receive/SKILL.md +2 -1
  67. package/assets/skills/oat-project-review-receive-remote/SKILL.md +2 -1
  68. package/assets/skills/oat-project-revise/SKILL.md +2 -1
  69. package/assets/skills/oat-project-spec/SKILL.md +2 -1
  70. package/assets/skills/oat-project-split/SKILL.md +2 -1
  71. package/assets/skills/oat-project-summary/SKILL.md +2 -1
  72. package/assets/skills/oat-repo-improve/SKILL.md +1 -1
  73. package/assets/skills/oat-repo-knowledge-index/SKILL.md +2 -1
  74. package/assets/skills/oat-repo-maintainability-review/SKILL.md +2 -1
  75. package/assets/skills/oat-review-provide/SKILL.md +2 -1
  76. package/assets/skills/oat-review-provide-remote/SKILL.md +2 -1
  77. package/assets/skills/oat-review-receive/SKILL.md +2 -1
  78. package/assets/skills/oat-review-receive-remote/SKILL.md +2 -1
  79. package/assets/skills/oat-wave-execute/SKILL.md +2 -1
  80. package/assets/skills/oat-wave-program/SKILL.md +2 -1
  81. package/assets/skills/oat-worktree-bootstrap/SKILL.md +2 -1
  82. package/assets/skills/oat-worktree-bootstrap-auto/SKILL.md +2 -1
  83. package/assets/skills/oat-wrap-up/SKILL.md +2 -1
  84. package/assets/skills/recon/SKILL.md +2 -1
  85. package/assets/skills/skeptic/SKILL.md +2 -1
  86. package/assets/skills/subagent-orchestration/SKILL.md +2 -1
  87. package/assets/skills/synthesize/SKILL.md +2 -1
  88. package/dist/agents/canonical/resolve.d.ts.map +1 -1
  89. package/dist/agents/canonical/resolve.js +25 -4
  90. package/dist/commands/doctor/index.d.ts +7 -0
  91. package/dist/commands/doctor/index.d.ts.map +1 -1
  92. package/dist/commands/doctor/index.js +10 -2
  93. package/dist/commands/init/tools/index.d.ts.map +1 -1
  94. package/dist/commands/init/tools/index.js +68 -36
  95. package/dist/commands/shared/frontmatter.d.ts +51 -0
  96. package/dist/commands/shared/frontmatter.d.ts.map +1 -1
  97. package/dist/commands/shared/frontmatter.js +118 -6
  98. package/dist/commands/status/index.d.ts.map +1 -1
  99. package/dist/commands/status/index.js +5 -3
  100. package/dist/commands/sync/index.d.ts +14 -0
  101. package/dist/commands/sync/index.d.ts.map +1 -1
  102. package/dist/commands/sync/index.js +21 -0
  103. package/dist/commands/tools/info/index.d.ts.map +1 -1
  104. package/dist/commands/tools/info/index.js +14 -1
  105. package/dist/commands/tools/info/info-tool.d.ts +12 -0
  106. package/dist/commands/tools/info/info-tool.d.ts.map +1 -1
  107. package/dist/commands/tools/info/info-tool.js +54 -6
  108. package/dist/commands/tools/info/skill-views.d.ts +86 -0
  109. package/dist/commands/tools/info/skill-views.d.ts.map +1 -0
  110. package/dist/commands/tools/info/skill-views.js +383 -0
  111. package/dist/commands/tools/install/index.d.ts.map +1 -1
  112. package/dist/commands/tools/install/index.js +3 -25
  113. package/dist/commands/tools/list/list-tools.d.ts +2 -0
  114. package/dist/commands/tools/list/list-tools.d.ts.map +1 -1
  115. package/dist/commands/tools/list/list-tools.js +23 -4
  116. package/dist/commands/tools/remove/index.d.ts.map +1 -1
  117. package/dist/commands/tools/remove/index.js +35 -42
  118. package/dist/commands/tools/remove/remove-tools.d.ts +3 -2
  119. package/dist/commands/tools/remove/remove-tools.d.ts.map +1 -1
  120. package/dist/commands/tools/remove/remove-tools.js +14 -4
  121. package/dist/commands/tools/shared/auto-sync.d.ts +12 -1
  122. package/dist/commands/tools/shared/auto-sync.d.ts.map +1 -1
  123. package/dist/commands/tools/shared/auto-sync.js +20 -4
  124. package/dist/commands/tools/shared/format-pack-inventory.d.ts +12 -1
  125. package/dist/commands/tools/shared/format-pack-inventory.d.ts.map +1 -1
  126. package/dist/commands/tools/shared/format-pack-inventory.js +48 -6
  127. package/dist/commands/tools/shared/in-process-sync.d.ts +11 -0
  128. package/dist/commands/tools/shared/in-process-sync.d.ts.map +1 -0
  129. package/dist/commands/tools/shared/in-process-sync.js +79 -0
  130. package/dist/commands/tools/shared/pack-evidence.d.ts +78 -2
  131. package/dist/commands/tools/shared/pack-evidence.d.ts.map +1 -1
  132. package/dist/commands/tools/shared/pack-evidence.js +96 -2
  133. package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts +11 -0
  134. package/dist/commands/tools/shared/pack-lifecycle-outcome.d.ts.map +1 -1
  135. package/dist/commands/tools/shared/pack-lifecycle-outcome.js +24 -3
  136. package/dist/commands/tools/shared/pack-provider-evidence.d.ts +73 -0
  137. package/dist/commands/tools/shared/pack-provider-evidence.d.ts.map +1 -0
  138. package/dist/commands/tools/shared/pack-provider-evidence.js +161 -0
  139. package/dist/commands/tools/shared/provider-context.d.ts +88 -0
  140. package/dist/commands/tools/shared/provider-context.d.ts.map +1 -0
  141. package/dist/commands/tools/shared/provider-context.js +77 -0
  142. package/dist/commands/tools/shared/provider-reachability.d.ts +93 -0
  143. package/dist/commands/tools/shared/provider-reachability.d.ts.map +1 -0
  144. package/dist/commands/tools/shared/provider-reachability.js +358 -0
  145. package/dist/commands/tools/shared/sync-evidence.d.ts +57 -0
  146. package/dist/commands/tools/shared/sync-evidence.d.ts.map +1 -0
  147. package/dist/commands/tools/shared/sync-evidence.js +147 -0
  148. package/dist/commands/tools/update/index.d.ts +0 -4
  149. package/dist/commands/tools/update/index.d.ts.map +1 -1
  150. package/dist/commands/tools/update/index.js +22 -40
  151. package/dist/commands/tools/update/update-tools.d.ts.map +1 -1
  152. package/dist/commands/tools/update/update-tools.js +23 -8
  153. package/dist/config/json.d.ts +36 -0
  154. package/dist/config/json.d.ts.map +1 -1
  155. package/dist/config/json.js +135 -3
  156. package/dist/drift/index.d.ts +2 -0
  157. package/dist/drift/index.d.ts.map +1 -1
  158. package/dist/drift/index.js +1 -0
  159. package/dist/drift/skill-view-diagnostic.d.ts +197 -0
  160. package/dist/drift/skill-view-diagnostic.d.ts.map +1 -0
  161. package/dist/drift/skill-view-diagnostic.js +343 -0
  162. package/dist/validation/skills.d.ts +1 -0
  163. package/dist/validation/skills.d.ts.map +1 -1
  164. package/dist/validation/skills.js +181 -19
  165. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "oatVersion": "0.2.63"
3
+ "oatVersion": "0.2.65"
4
4
  }
@@ -307,6 +307,57 @@ application-process restart requirement, or proof of visibility. No advice is
307
307
  emitted for current/no-op, planned-only, failed, missing, inactive, or
308
308
  unsupported materialization.
309
309
 
310
+ Every pack lifecycle outcome (`install`, `update`, `remove`, and the aggregate
311
+ init path) and every pack inventory surface (`oat tools list`, `oat tools
312
+ info`, `oat status`, `oat doctor`) carries per-provider reachability evidence
313
+ in its JSON, derived from the same config-aware registry the sync engine uses:
314
+ activation, content capability, projection, materialization, catalog-refresh
315
+ visibility, and recovery guidance. Human output names the provider on its own
316
+ line and on any provider-attributed diagnostic. Reachability is never inferred
317
+ from the presence of a provider directory on disk.
318
+
319
+ The four inventory surfaces agree on managed user-scope roles. `list` and
320
+ `info` resolve the same provider surface as `status` and `doctor`, so an
321
+ active Codex or Cursor adapter that supplies managed roles suppresses the
322
+ unmaterialized-user-agent report on all four rather than only two.
323
+
324
+ Each provider state maps to exactly one row below. Pack evidence status and
325
+ the lifecycle exit code derive from the **severity** column, never from the
326
+ code name, so adding a code later cannot silently change an exit code.
327
+
328
+ | Provider state (per provider, scope, content kind) | Diagnostic code | Severity | Pack evidence status | Lifecycle outcome / exit code |
329
+ | ---------------------------------------------------------------------- | --------------------------------------- | --------- | -------------------- | ------------------------------------------------ |
330
+ | Active, supported, projection and materialization succeeded | none | -- | `ok` | `complete` / 0 |
331
+ | Explicitly disabled in sync config for this scope | `provider-inactive` | `info` | `ok` | `complete` / 0 |
332
+ | Active but the content kind is unsupported by the adapter | `provider-unsupported` | `info` | `ok` | `complete` / 0 |
333
+ | Active, supported, no projection exists (never synced or sync skipped) | `provider-materialization-missing` | `warning` | `partial` | `complete` / 0 (install succeeded; sync advised) |
334
+ | Active, supported, the sync operation for this asset failed | `provider-materialization-failed` | `error` | `partial` | `partial` / 1 |
335
+ | Active, projected, no sourced refresh contract for the host | `visibility-unknown` | `info` | `ok` | `complete` / 0 |
336
+ | Active, projected, host catalog needs a refresh or a restart | `refresh-required` / `restart-required` | `info` | `ok` | `complete` / 0 |
337
+ | Read-only inventory (`list`, `info`, `status`, `doctor`): no sync ran | registry-derived codes only | as above | as above | not applicable |
338
+ | Auto-sync not run (disabled or skipped) after a lifecycle operation | none; `providerSync.status: 'not-run'` | -- | `ok` | `complete` / 0 |
339
+
340
+ Rows with `info` severity are visible in JSON and in the human provider line
341
+ but do not turn `ok` into `partial`. A provider that was never detected and
342
+ never configured is not reported per pack: its inactive state is still carried
343
+ on the evidence row, but emitting a diagnostic for every registered provider on
344
+ every pack would bury the actionable rows. `unknown` visibility is reported as
345
+ unknown; it never claims reachability and never fails an otherwise successful
346
+ install. A read-only inventory surface ran no sync, so it never reports
347
+ `provider-materialization-failed`.
348
+
349
+ The three visibility codes — `visibility-unknown`, `refresh-required`, and
350
+ `restart-required` — are lifecycle-only for the same reason. They require an
351
+ established projection, and a read-only surface never establishes one: it
352
+ observed no sync, so it reports materialization as a non-claim rather than
353
+ asserting the provider view exists. For an active provider that supports the
354
+ content kind, the registered catalog state remains readable in the row's
355
+ `visibility` field on every surface; only the diagnostics are withheld. Run
356
+ `oat tools install`, `update`, or `remove` to see them emitted. An inactive or
357
+ unsupported row reports `not-applicable` visibility instead, matching its
358
+ `not-applicable` projection: catalog advice about a provider that cannot
359
+ receive the content would read as a step to act on.
360
+
310
361
  Repository templates under `.oat/templates/` are **owner-owned seeds**. OAT
311
362
  compares a source-backed seed with its bundled default: a byte-equivalent copy
312
363
  is reported as current, while an edited copy is retained and reported as a
@@ -512,8 +563,40 @@ Key behavior:
512
563
 
513
564
  - Displays name, type (skill/agent), version, bundled version, pack, scope, and status
514
565
  - Reports whether the tool is invocable (for skills) and whether an update is available
566
+ - For a skill, adds a read-only provider-view section per active provider and scope: the expected provider path, the view class, and versions where a copy makes them comparable
567
+ - Suggests the narrowest safe repair, one `oat sync --scope <concrete>` per affected scope and never `--scope all`
515
568
  - Returns exit code 1 if the tool is not found in any scope
516
569
 
570
+ An unknown name keeps the existing `Tool '<name>' not found.` wording and prints
571
+ no provider-view section, so a skill that exists but was never distributed is
572
+ never confused with a name the repository does not have.
573
+
574
+ ```text
575
+ $ oat tools info probe-skill --scope project
576
+ probe-skill
577
+ Type: skill
578
+ Version: 1.4.2
579
+ Pack: custom
580
+ Scope: project
581
+ Status: not-bundled
582
+ Provider views (project):
583
+ claude: missing-additive .claude/skills/probe-skill
584
+ Canonical skill has never been projected to this view: no manifest entry and nothing at the expected path.
585
+ cursor: inactive
586
+ Repair: oat sync --scope project
587
+ ```
588
+
589
+ The section is additive in `--json` output as `providerViews`, an array of one
590
+ entry per concrete scope where the canonical skill exists. The command reads the
591
+ manifest, the sync config, and the filesystem; it never writes, and it never
592
+ runs a sync. If the sync config or the manifest cannot be read, that scope's
593
+ section reports `unavailable` with a redacted reason and the tool detail and exit
594
+ code are unchanged; a failure reading one provider's view degrades only that row,
595
+ to `unverified` with the same redacted reason. An absent sync config is not a
596
+ failure: it resolves to the defaults and the scope is diagnosed normally. See
597
+ [Manifest and Drift](../provider-sync/manifest-and-drift.md#resolution-time-skill-view-classes)
598
+ for the view classes.
599
+
517
600
  ### `oat tools has <pack>`
518
601
 
519
602
  Purpose:
@@ -179,20 +179,65 @@ direct managed-role intent still retains the canonical agent.
179
179
 
180
180
  - `name`
181
181
  - `description`
182
- - `version`
182
+ - `metadata.version` (top-level `version` is the deprecated alias)
183
183
  - `disable-model-invocation`
184
184
  - `user-invocable`
185
185
  - `allowed-tools`
186
186
  - `oat_gateable`
187
187
 
188
- ### The `version` field is gated
188
+ ### How a skill's version is resolved
189
+
190
+ The Agent Skills specification carries a skill's version under `metadata`, so
191
+ that is where a new skill declares it:
192
+
193
+ ```yaml
194
+ metadata:
195
+ version: 1.0.0
196
+ ```
197
+
198
+ OAT resolves a version from `metadata.version` first and from the top-level
199
+ `version` field second, and it resolves it the same way everywhere it reads
200
+ one: the installed-versus-bundled comparison behind `oat tools list`,
201
+ `oat tools update`, and `oat doctor`; skill validation; and canonical role
202
+ resolution. `resolveSkillVersion` in
203
+ `packages/cli/src/commands/shared/frontmatter.ts` owns that order, so the
204
+ runtime helper and the validators cannot disagree.
205
+
206
+ The top-level `version` field remains supported as a deprecated alias. Every
207
+ bundled skill now declares `metadata.version` and carries no top-level
208
+ `version`, so `pnpm oat:validate-skills` reports no alias warnings on the
209
+ bundled tree. The alias is retained for third-party skills installed from
210
+ packs, which may still carry it; it retires on the schedule recorded in
211
+ `DR-260908-bundled-skills-declare` — the warning becomes an error in the first
212
+ release after 0.2.65 that changes the validator, and the resolver's top-level
213
+ read is removed one release after that error has produced no findings on the
214
+ bundled tree.
215
+
216
+ A skill that carries both fields with different values is a conflict. The
217
+ resolver reports the `metadata.version` value together with the conflict, and
218
+ the callers that must not guess act on it: validation reports an error rather
219
+ than silently picking one, and canonical role resolution treats the identity as
220
+ invalid. The runtime version readers still return the `metadata.version` value,
221
+ so an installed-versus-bundled comparison keeps working while the conflict is
222
+ being fixed. Carrying both with the _same_ value resolves without a conflict and
223
+ without an alias warning, because `metadata.version` wins. A bundled skill must
224
+ still carry `metadata.version` alone: the corpus sweep in
225
+ `packages/cli/src/validation/skills.test.ts` fails on any column-0 `version:`
226
+ line under `.agents/skills`, which is the only check that catches the
227
+ same-value case.
228
+
229
+ ### The version is gated
189
230
 
190
231
  Changing any canonical skill's `SKILL.md` requires bumping its frontmatter
191
- `version` in the same PR — one bump per changed skill in the final PR diff,
192
- even if the skill was edited multiple times on the branch. The rule is
193
- enforced by `pnpm run check:skill-bumps`, which runs locally (root `AGENTS.md`
194
- Definition of Done) and in CI; a changed skill whose version matches
195
- `origin/main` fails the gate.
232
+ version in the same PR — one bump per changed skill in the final PR diff,
233
+ even if the skill was edited multiple times on the branch. The gate reads the
234
+ resolved version, so it enforces the bump whether the skill declares
235
+ `metadata.version` or the top-level alias. The rule is enforced by
236
+ `pnpm run check:skill-bumps`, which runs locally (root `AGENTS.md` Definition
237
+ of Done) and in CI; a changed skill whose version matches `origin/main` fails
238
+ the gate. The deprecation warning above is deliberately not part of that gate:
239
+ `check:skill-bumps` fails on any finding it receives, so an alias warning
240
+ routed through it would fail every changed skill that still carried one.
196
241
 
197
242
  ## Practical Authoring Flow
198
243
 
@@ -84,6 +84,111 @@ An exact alias is `in_sync`; an absent alias is `missing`; and a broken,
84
84
  replaced, foreign, or otherwise unverifiable alias is `drifted`. Provider list
85
85
  and inspect output summarize collection ownership separately from copy mode.
86
86
 
87
+ ### Resolution-time skill view classes
88
+
89
+ Drift states answer "does the tracked view still match?", which presupposes a
90
+ manifest entry. A canonical skill that was never synced has no entry at all, so
91
+ `oat tools info <name>` adds a second, additive classification beside the
92
+ unchanged drift state. Provider and path identity for an untracked projection
93
+ come from the active provider set and the adapter's scope mappings, not from
94
+ the manifest.
95
+
96
+ - `missing-additive` — active, supported, no manifest entry, nothing at the expected path: the only true projection gap
97
+ - `removed` — a manifest entry exists but the provider file is gone
98
+ - `modified` — a manifest entry exists and the view no longer agrees with what the last sync recorded, or its version has fallen behind canonical. A `copy` view also reaches this class through the known limitation below, where the difference may be nothing but the generated banner
99
+ - `in-sync` — a symlinked, collection-aliased, or natively read view _is_ the canonical file; a `copy` view matches the content recorded at its last sync
100
+ - `untracked` — something exists at the expected path that no manifest entry tracks; stray detection skips provider entries whose name matches a canonical entry, so `oat status` does not report it as a stray and reports the untracked projection as `missing` instead
101
+ - `unverified` — the view's state is unknown: either a manifest entry arrived with no drift observation, or reading that one view failed and the row carries the redacted reason
102
+ - `inactive`, `unsupported`, `excluded` — no projection is expected in this scope, so none of them is reported as missing
103
+
104
+ `unsupported` and `excluded` are defensive: no shipped adapter or config
105
+ produces them today. Every shipped adapter maps skills in both scopes and the
106
+ command passes no canonical-path filter. The branches exist so a future adapter
107
+ or filter cannot be silently reported as a projection gap. `unverified` is
108
+ reachable: an unreadable provider path makes drift detection throw, and that one
109
+ view degrades to `unverified` with its reason.
110
+
111
+ A row for `inactive`, `unsupported`, or `excluded` prints neither a projection
112
+ qualifier nor a path, because no view is projected for it: naming an expected
113
+ path and a sync strategy for a file that is never produced described work that
114
+ is never going to happen.
115
+
116
+ Only `missing-additive`, `removed`, and `modified` carry a repair, and it is
117
+ always one concrete `oat sync --scope project` or `oat sync --scope user` for
118
+ the scope where the gap was observed. Versions are compared only for `copy`
119
+ views: a symlinked, collection-aliased, or natively read view is the canonical
120
+ file, so it has no second version.
121
+
122
+ If reading the sync config or the manifest fails — an invalid, unreadable, or
123
+ otherwise non-loadable `.oat/sync/config.json` or `.oat/sync/manifest.json`, for
124
+ instance — the section for that scope reports `unavailable` with the reason, and
125
+ the rest of the command is unaffected. A failure while reading one provider's
126
+ view, such as drift detection throwing on an unreadable provider path, is
127
+ narrower: only that row degrades, to `unverified` with the same redacted reason,
128
+ and the other providers keep their real rows. The
129
+ diagnostic is additive evidence, so it never changes the exit code or removes
130
+ the tool detail of a user whose sync state is already broken. A broken sync
131
+ config is one of the likeliest reasons a provider view is missing, which is
132
+ exactly what this command is run to explain, so it is reported rather than
133
+ dropped: printing no section at all would read as "no providers configured".
134
+ An absent `.oat/sync/config.json` is a different case and not a failure — it
135
+ resolves to the defaults, and the scope is diagnosed normally. Reasons are
136
+ redacted; the scope root becomes `<project>` or `~` (only at a path boundary, so
137
+ a sibling directory that merely shares the prefix is left alone), and any
138
+ absolute path outside it is replaced entirely with `<path>`, quoted or not and
139
+ whatever punctuation precedes it. A manifest `providerPath` that escapes its own
140
+ scope is redacted the same way rather than rendered in the row, and no version
141
+ is read from it: its `SKILL.md` is a file outside the tree the command was asked
142
+ about.
143
+
144
+ A drift state and a view class can legitimately disagree. Drift compares a copy
145
+ against the hash recorded at its last sync, so a copy that was never re-synced
146
+ after a canonical edit still matches its own manifest entry and reads as
147
+ `in_sync`. When the two versions differ, the view class is `modified` and the
148
+ drift state is reported unchanged beside it.
149
+
150
+ The manifest is keyed by `(canonicalPath, provider)` and never by path, so a
151
+ manifest entry can track a view somewhere other than the adapter's expected
152
+ projection path — reachable after a `providerDir` change or from a manifest
153
+ written under an older layout. Drift resolves the entry's own `providerPath`, so
154
+ in that case the row names the tracked path rather than the expected one, and
155
+ its `--json` record carries the expected path separately as
156
+ `expectedProviderPath`. The detail says which path the state describes and
157
+ whether anything exists at the expected path. A drift verdict computed for one
158
+ path is never attached to a row labelled with another: doing so reported `removed`
159
+ with "the provider file is gone from disk" against a healthy file that was
160
+ sitting at the expected path all along.
161
+
162
+ Both sides resolve their version through the same shared reader, so
163
+ `metadata.version` takes precedence over the deprecated top-level `version`
164
+ alias for a projected view exactly as it does for the canonical source; the only
165
+ extra step for a view is stripping the generated banner. When a projected
166
+ `SKILL.md` contradicts itself — a top-level `version` and a differing
167
+ `metadata.version` — or declares a version the reader cannot use at all, the
168
+ comparison is withheld rather than decided: no version is reported for that
169
+ view, and the class is left to the drift state alone. That is deliberately
170
+ conservative and has a cost, since a copy in that state could be genuinely
171
+ stale and would not be reported as such. The view's detail names the two
172
+ declared values and says the comparison was skipped, so the ambiguity is
173
+ visible rather than silently resolved. When the resolver's answer happens to
174
+ agree with canonical, nothing is withheld and the detail says so instead.
175
+
176
+ ### Known limitation: copy-strategy skill views
177
+
178
+ A `copy` skill view is reported `modified` immediately after a successful sync,
179
+ and stays that way. The engine writes an OAT-managed banner into the copied
180
+ `SKILL.md` and an `.oat-generated` sentinel beside it, and neither is accounted
181
+ for in the manifest hash, so `oat status` reports `drifted:modified` and every
182
+ later `oat sync --dry-run` plans another `update_copy`. Because no sync clears
183
+ that state, `oat tools info` prints no repair line when a `modified` copy's
184
+ version still matches canonical.
185
+
186
+ That suppression is a conservative heuristic rather than a proof: equal versions
187
+ do not establish equal bodies, so an edit to the canonical source or to the copy
188
+ that kept the version reaches the same branch, and a sync _would_ repair that
189
+ one. The class detail says so and names the concrete scope command to run if you
190
+ know either side was edited. Tracked as `BL-260908-make-copy-strategy-skill`.
191
+
87
192
  ## Stray adoption
88
193
 
89
194
  `oat init` and `oat status` can offer adoption of unmanaged provider entries into canonical `.agents`.
@@ -1,6 +1,6 @@
1
1
  {
2
- "cli": "0.2.63",
3
- "docs-config": "0.2.63",
4
- "docs-theme": "0.2.63",
5
- "docs-transforms": "0.2.63"
2
+ "cli": "0.2.65",
3
+ "docs-config": "0.2.65",
4
+ "docs-theme": "0.2.65",
5
+ "docs-transforms": "0.2.65"
6
6
  }
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: analyze
3
- version: 0.2.0
4
3
  description: Multi-angle analysis of existing artifacts, codebases, documents, or systems. Examines what you have from six analysis angles and produces structured findings with prioritized recommendations.
5
4
  argument-hint: 'target [--context path]'
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Glob, Grep, Bash, WebSearch, WebFetch, AskUserQuestion, Agent, mcp__*
7
+ metadata:
8
+ version: 0.2.1
8
9
  ---
9
10
 
10
11
  # /analyze
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: authoring-docs
3
- version: 1.0.0
4
3
  description: Use when creating, restructuring, migrating, auditing, or reviewing technical documentation for software projects. Provides evidence-first, provider-portable Markdown authoring standards.
5
4
  argument-hint: '[docs task or target path]'
6
5
  disable-model-invocation: false
7
6
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
8
7
  user-invocable: true
8
+ metadata:
9
+ version: 1.0.1
9
10
  ---
10
11
 
11
12
  # Authoring Docs
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: compare
3
- version: 0.1.1
4
3
  description: Domain-aware comparative analysis with clear recommendations. Compares options across auto-detected or user-specified dimensions and produces a qualitative assessment with a clear winner.
5
4
  argument-hint: 'item1 item2 [item3...] [--save] [--context path] [--dimensions "dim1, dim2, ..."]'
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Glob, Grep, Bash, WebSearch, WebFetch, AskUserQuestion, Agent, mcp__*
7
+ metadata:
8
+ version: 0.1.2
8
9
  ---
9
10
 
10
11
  # /compare
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: create-agnostic-skill
3
- version: 1.4.1
4
3
  description: Use when adding a reusable workflow skill for AI coding agents. Scaffolds a new .agents/skills skill using the Agent Skills open standard.
5
4
  argument-hint: '[skill-name]'
6
5
  disable-model-invocation: true
7
6
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
8
7
  user-invocable: true
8
+ metadata:
9
+ version: 1.4.3
9
10
  ---
10
11
 
11
12
  # Create Skill
@@ -98,12 +99,13 @@ For detailed guidance, see `references/skill-template.md`.
98
99
  ```markdown
99
100
  ---
100
101
  name: skill-name
101
- version: 1.0.0
102
102
  description: Use when [trigger condition]. [What it does for disambiguation].
103
103
  argument-hint: '[arg1] [--flag]'
104
104
  disable-model-invocation: true
105
105
  allowed-tools: Read, Write, Glob, Grep
106
106
  user-invocable: true
107
+ metadata:
108
+ version: 1.0.0
107
109
  ---
108
110
 
109
111
  # Skill Title
@@ -172,9 +174,10 @@ Natural language request that triggers this skill
172
174
  - `argument-hint`, `allowed-tools`, `user-invocable`, `context`, `hooks` are Claude Code specific
173
175
  - Other agents ignore unknown frontmatter fields, so it's safe to include Claude-specific fields everywhere
174
176
  - `name`: max 64 chars for cross-provider portability (Codex allows 100, but 64 is the spec limit)
175
- - `version`: include valid semver and start new skills at `1.0.0`
177
+ - `metadata.version`: include valid semver and start new skills at `1.0.0`. The Agent Skills specification puts the version under `metadata`, and OAT resolves `metadata.version` first and the top-level `version` second — `resolveSkillVersion` in `packages/cli/src/commands/shared/frontmatter.ts` owns that order, backstopped by `packages/cli/src/commands/shared/frontmatter.test.ts`
178
+ - `version` (top-level): the deprecated alias, still read when `metadata.version` is absent. Do not set both to different values: OAT reports the conflict, skill validation fails on it, and canonical role identity rejects it
176
179
  - `description`: **single line, ≤ 500 chars** (Codex enforces single-line ≤ 500 chars; spec allows 1024)
177
- - Bump `version` on future edits: patch for fixes/clarifications, minor for backward-compatible behavior additions, major for breaking workflow/interface changes
180
+ - Bump `metadata.version` on future edits: patch for fixes/clarifications, minor for backward-compatible behavior additions, major for breaking workflow/interface changes
178
181
 
179
182
  **Writing the `description` field:**
180
183
 
@@ -200,7 +203,7 @@ Create the skill at `.agents/skills/{skill-name}/SKILL.md`
200
203
  **Key requirements:**
201
204
 
202
205
  - Skill name matches directory name
203
- - New skills include `version: 1.0.0` in frontmatter
206
+ - New skills include `metadata.version: 1.0.0` in frontmatter
204
207
  - Workflow steps use "Step 1, 2, 3..." naming
205
208
  - Include both "Basic Usage" and "Conversational" example styles
206
209
  - Use imperative form for instructions
@@ -238,7 +241,7 @@ Verify:
238
241
 
239
242
  - File created at `.agents/skills/{skill-name}/SKILL.md`
240
243
  - Frontmatter syntax is valid
241
- - Frontmatter includes valid semver `version:` (new skills start at `1.0.0`)
244
+ - Frontmatter includes valid semver `metadata.version:` (new skills start at `1.0.0`)
242
245
  - Skill appears in `AGENTS.md`
243
246
  - Examples include both invocation styles
244
247
  - If the skill name starts with `oat-`, run `pnpm oat:validate-skills` and fix any findings
@@ -264,7 +267,7 @@ Provide:
264
267
 
265
268
  - **Context window is a public good**—keep skills lean, challenge every paragraph
266
269
  - Description is the trigger—include "when to use" in frontmatter, not just body
267
- - Bump `version` for edits: patch = fixes/clarifications, minor = backward-compatible additions, major = breaking changes
270
+ - Bump `metadata.version` for edits: patch = fixes/clarifications, minor = backward-compatible additions, major = breaking changes
268
271
  - Keep SKILL.md **under 500 lines / ~5,000 tokens** (spec constraint)
269
272
  - Use clear, task-based headings
270
273
  - Include working examples for both invocation styles
@@ -28,9 +28,6 @@ Adjust based on complexity—not all sections are required:
28
28
  name: skill-name
29
29
  # Required: kebab-case, max 64 chars, must match directory name
30
30
 
31
- version: 1.0.0
32
- # Required: semver. Start new skills at 1.0.0.
33
-
34
31
  description: Use when [trigger condition]. [What it does as disambiguation keywords].
35
32
  # Required: Single line, ≤ 500 chars. Lead with "when to use" — this is the routing trigger.
36
33
  # Agents load ONLY name+description at startup to decide relevance.
@@ -38,9 +35,13 @@ description: Use when [trigger condition]. [What it does as disambiguation keywo
38
35
  # === Spec-optional fields (recognized by some providers) ===
39
36
  # license: Apache-2.0
40
37
  # compatibility: Requires Node.js 18+
41
- # metadata:
42
- # author: my-org
43
- # version: "1.0"
38
+
39
+ metadata:
40
+ version: 1.0.0
41
+ # Required: semver. Start new skills at 1.0.0. The spec carries the version
42
+ # under `metadata`; a top-level `version:` is a deprecated alias that is read
43
+ # only when `metadata.version` is absent.
44
+ # author: my-org
44
45
 
45
46
  # === Claude Code / Cursor extension fields (ignored by Codex, safe to include) ===
46
47
  argument-hint: '[required-arg] [--optional-flag]'
@@ -187,9 +188,10 @@ Successful completion means:
187
188
 
188
189
  ## Versioning Guidance
189
190
 
190
- - Include `version:` in frontmatter for every skill and use semver (`MAJOR.MINOR.PATCH`).
191
+ - Include `metadata.version` in frontmatter for every skill and use semver (`MAJOR.MINOR.PATCH`).
191
192
  - Start new skills at `1.0.0`.
192
193
  - Bump patch for fixes/clarifications, minor for backward-compatible behavior additions, major for breaking workflow/interface changes.
194
+ - A top-level `version:` is the deprecated alias for the same value: it is read only when `metadata.version` is absent, and a skill that carries both with different values is reported as a conflict that validation rejects. `resolveSkillVersion` in `packages/cli/src/commands/shared/frontmatter.ts` owns that order.
193
195
 
194
196
  ## Cross-Provider Portability Notes
195
197
 
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: deep-research
3
- version: 0.2.0
4
3
  description: Comprehensive research orchestrator that classifies topics, dispatches parallel research-angle workers, and produces structured artifacts using domain-specific schemas.
5
4
  argument-hint: 'topic [--depth surface|standard|exhaustive] [--focus angle] [--context path] [output-path]'
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Glob, Grep, Bash, WebSearch, WebFetch, AskUserQuestion, Agent, mcp__*
7
+ metadata:
8
+ version: 0.2.1
8
9
  ---
9
10
 
10
11
  # /deep-research
@@ -1,9 +1,10 @@
1
1
  ---
2
2
  name: explainer-kit
3
- version: 2.1.0
4
3
  description: Use when building destination-neutral visual explainer artifacts from explicit, versioned inputs.
5
4
  user-invocable: true
6
5
  allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Agent, mcp__*
6
+ metadata:
7
+ version: 2.1.1
7
8
  ---
8
9
 
9
10
  # Explainer Kit
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-agent-instructions-analyze
3
- version: 1.12.0
4
3
  description: Run when you need to evaluate agent instruction file coverage, quality, and drift. Produces a severity-rated analysis artifact. Run before oat-agent-instructions-apply to identify what needs improvement.
5
4
  disable-model-invocation: true
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Bash(git:*), Glob, Grep, AskUserQuestion, Task
7
+ metadata:
8
+ version: 1.12.1
8
9
  ---
9
10
 
10
11
  # Agent Instructions Analysis
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-agent-instructions-apply
3
- version: 1.7.0
4
3
  description: Run when you have an agent instructions analysis artifact and want to generate or update instruction files. Creates a branch, generates files from templates, and optionally opens a PR.
5
4
  disable-model-invocation: true
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Edit, Bash(git:*), Bash(gh:*), Glob, Grep, AskUserQuestion
7
+ metadata:
8
+ version: 1.7.1
8
9
  ---
9
10
 
10
11
  # Agent Instructions Apply
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-brainstorm
3
- version: 1.3.6
4
3
  description: Use when the user explicitly invokes the `brainstorm` verb, including `/oat-brainstorm`, "let's brainstorm", "brainstorm this", "can we brainstorm X", or "help me brainstorm X". For ambiguous exploratory phrasing ("I've been thinking", "what if", "help me think through"), do NOT auto-enter; respond conversationally and offer mode only after ≥2 sustained exploratory turns. Do NOT use for review, debug, PR, status, implementation, or active-workflow questions.
5
4
  disable-model-invocation: false
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
7
+ metadata:
8
+ version: 1.3.7
8
9
  ---
9
10
 
10
11
  # Brainstorm
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-cursor-cloud-projects
3
- version: 1.1.1
4
3
  description: Use when OAT work is mentioned in a Cursor Cloud environment. Orients agents to cloud detection, repo-rooted project homes, user-first assets, CLI availability, and Cursor dispatch context without owning lifecycle execution.
5
4
  disable-model-invocation: false
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Bash, Glob, Grep
7
+ metadata:
8
+ version: 1.1.2
8
9
  ---
9
10
 
10
11
  # OAT in Cursor Cloud
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-dispatch-subagents
3
- version: 1.2.6
4
3
  description: Use when an OAT skill or workflow needs provider-neutral selection, launch, recovery, or evidence for bounded subagent work without project lifecycle policy.
5
4
  disable-model-invocation: true
6
5
  user-invocable: false
7
6
  allowed-tools: Read
7
+ metadata:
8
+ version: 1.2.7
8
9
  ---
9
10
 
10
11
  # Dispatching OAT Subagents
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: oat-docs
3
- version: 1.0.2
4
3
  description: Use when a user asks questions about OAT workflows, CLI commands, skill authoring, configuration, or project lifecycle. Answers questions by reading locally-bundled OAT documentation.
5
4
  argument-hint: '[question]'
6
5
  disable-model-invocation: false
7
6
  user-invocable: true
8
7
  allowed-tools: Read, Glob, Grep, AskUserQuestion
8
+ metadata:
9
+ version: 1.0.3
9
10
  ---
10
11
 
11
12
  # OAT Docs
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-docs-analyze
3
- version: 1.5.0
4
3
  description: Run when you need to evaluate documentation structure, navigation, and coverage against the OAT docs app contract. Produces a severity-rated analysis artifact for oat-docs-apply.
5
4
  disable-model-invocation: true
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Bash(git:*), Glob, Grep, AskUserQuestion, Task
7
+ metadata:
8
+ version: 1.5.1
8
9
  ---
9
10
 
10
11
  # Docs Analysis
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: oat-docs-apply
3
- version: 1.3.0
4
3
  description: Run when you have a docs analysis artifact and want to generate or update documentation structure and content. Creates a branch, applies approved changes, and optionally opens a PR.
5
4
  disable-model-invocation: true
6
5
  user-invocable: true
7
6
  allowed-tools: Read, Write, Edit, Bash(git:*), Bash(gh:*), Glob, Grep, AskUserQuestion
7
+ metadata:
8
+ version: 1.3.1
8
9
  ---
9
10
 
10
11
  # Docs Apply
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: oat-docs-authoring
3
- version: 1.0.0
4
3
  description: Use when authoring or restructuring targeted content inside an existing OAT/Fumadocs docs app. Preserves OAT docs navigation, generated indexes, and validation boundaries.
5
4
  argument-hint: '[docs task or target path]'
6
5
  disable-model-invocation: false
7
6
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
8
7
  user-invocable: true
8
+ metadata:
9
+ version: 1.0.1
9
10
  ---
10
11
 
11
12
  # OAT Docs Authoring
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: oat-docs-bootstrap
3
- version: 1.2.0
4
3
  description: Use when bootstrapping a new OAT docs app in a repo. Guides the user through preflight detection, richer input gathering than the raw CLI, `oat docs init` invocation with gated post-patches for open CLI gaps, build verification, post-scaffold config inspection, and an educational walkthrough. Supports Fumadocs (full path) and MkDocs (lean path with defined minimum contract).
5
4
  argument-hint: '<optional-target-dir>'
6
5
  disable-model-invocation: true
7
6
  user-invocable: true
8
7
  allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
8
+ metadata:
9
+ version: 1.2.1
9
10
  ---
10
11
 
11
12
  # Docs Bootstrap
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: oat-doctor
3
- version: 1.2.1
4
3
  description: Use when you need to diagnose your OAT setup, check for outdated skills, identify misconfigurations, or get a summary of installed tools and config. Runs health checks and recommends corrective actions.
5
4
  argument-hint: '[--summary]'
6
5
  disable-model-invocation: true
7
6
  user-invocable: true
8
7
  allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion
8
+ metadata:
9
+ version: 1.2.2
9
10
  ---
10
11
 
11
12
  # OAT Doctor