@open-agent-toolkit/cli 0.0.68 → 0.0.69

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.
@@ -21,6 +21,7 @@ Skill behavior is defined by frontmatter plus the process contract in each `SKIL
21
21
  - Keep prerequisites and expected artifacts concrete.
22
22
  - Spell out blocked vs allowed activities for state-advancing skills.
23
23
  - Define user-facing progress indicators for longer workflows.
24
+ - Define a pre-work capability and authorization gate for skills that delegate to subagents, workers, or reviewers.
24
25
  - Keep output obligations explicit so downstream skills and users know what changed.
25
26
 
26
27
  ## Contract components
@@ -28,6 +29,7 @@ Skill behavior is defined by frontmatter plus the process contract in each `SKIL
28
29
  - Mode assertion (purpose, blocked/allowed activities)
29
30
  - Preconditions and required artifacts
30
31
  - User-facing progress indicator expectations
32
+ - Delegation capability detection and fallback behavior, when the skill dispatches helper agents
31
33
  - Output obligations
32
34
  - Escalation/guardrail behavior
33
35
 
@@ -59,6 +61,21 @@ Skill behavior is defined by frontmatter plus the process contract in each `SKIL
59
61
  - Use `create-agnostic-skill` when you want a reusable workflow skill that is not OAT-specific.
60
62
  - Use existing lifecycle skills as examples for progress banners, prerequisites, and artifact updates.
61
63
 
64
+ ## Delegation-Capable Skills
65
+
66
+ Skills that dispatch subagents, workers, reviewers, or fresh-context helper sessions need a capability model before work starts. Do not assume delegation is available, and do not silently downgrade just because the runtime needs user authorization.
67
+
68
+ At minimum, the skill contract should:
69
+
70
+ - Probe whether the host can dispatch the required helper role(s).
71
+ - Distinguish `available`, `authorization required`, and `not resolved`.
72
+ - Ask once at skill start when authorization is required, with the approval scope stated clearly.
73
+ - Lock the selected tier for the run unless the user explicitly changes execution mode.
74
+ - Stop before side effects if delegation is required for correctness and authorization remains unresolved.
75
+ - Document the fallback path and any quality or independence tradeoff.
76
+
77
+ Use `create-agnostic-skill` or `create-oat-skill` as the starting point; both include the current delegation guidance and optional capability-detection template.
78
+
62
79
  ## Reading project state
63
80
 
64
81
  Skills that need fields from the active project's `state.md` (e.g. `phase`, `phaseStatus`, `workflowMode`, `docsUpdated`, `lastCommit`) MUST query the CLI instead of hand-parsing YAML with `grep`/`awk`.
@@ -1,6 +1,6 @@
1
1
  {
2
- "cli": "0.0.68",
3
- "docs-config": "0.0.68",
4
- "docs-theme": "0.0.68",
5
- "docs-transforms": "0.0.68"
2
+ "cli": "0.0.69",
3
+ "docs-config": "0.0.69",
4
+ "docs-theme": "0.0.69",
5
+ "docs-transforms": "0.0.69"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: create-agnostic-skill
3
- version: 1.2.1
3
+ version: 1.3.0
4
4
  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
5
  argument-hint: '[skill-name]'
6
6
  disable-model-invocation: true
@@ -60,6 +60,7 @@ If not provided in arguments, ask for:
60
60
  - **Model invocation**: Should the agent be able to invoke this automatically? (default: no)
61
61
  - **User invocable**: (Claude Code only) Should this appear in the `/` menu? (default: yes)
62
62
  - **Tool restrictions**: (Claude Code only) Which tools should the skill be allowed to use?
63
+ - **Delegation**: Will the skill dispatch subagents or require a fresh-context worker/reviewer? If yes, define the capability probe, authorization gate, fallback tier, and approval scope.
63
64
  - **Supporting files**: Does the skill need templates, scripts, or reference files?
64
65
 
65
66
  ### Step 2: Apply Progressive Disclosure
@@ -295,9 +296,62 @@ Do **not** hard-code a specific Codex question tool name in skill prose unless t
295
296
 
296
297
  **When NOT to:**
297
298
 
298
- - Autonomous/subagent skills — use argument defaults or flags to drive decisions instead of prompting mid-execution
299
+ - Long-running autonomous skills after work has started resolve required decisions in a pre-work gate, then lock the choice for the run
299
300
  - Questions with open-ended answers — just ask conversationally in the skill prose
300
301
 
302
+ ### Delegation and Subagent Capability
303
+
304
+ Skills that dispatch subagents, reviewers, workers, or fresh-context helper sessions must define a pre-work capability model. Do not let generated skills assume delegation is available, silently downgrade because authorization is required, or ask repeated approval questions mid-run.
305
+
306
+ **When to include this section:**
307
+
308
+ - The skill uses provider subagents, task workers, reviewers, or multi-agent execution
309
+ - The skill's quality depends on fresh context or isolated review/implementation
310
+ - The skill has a fallback mode when delegation is unavailable
311
+
312
+ **Required guidance for delegation-capable skills:**
313
+
314
+ 1. **Probe before work starts.** Check whether the host can dispatch the needed worker/reviewer and whether dispatch requires user authorization.
315
+ 2. **Separate capability states.** Report `available`, `authorization required`, or `not resolved`; do not treat authorization-required as unavailable.
316
+ 3. **Ask once when authorization is required.** Use a concise question that names the delegation scope for the run. Approval should cover the stated worker roles and phases; a decline should select the documented fallback.
317
+ 4. **Lock the tier.** Once selected, keep the execution mode for the run unless the user explicitly changes it.
318
+ 5. **Fail closed before side effects.** If delegation is required for correctness and authorization is unresolved, stop before edits, writes, external side effects, or long-running work.
319
+ 6. **Document fallback behavior.** If inline or single-agent execution is acceptable, explain when it applies. If it changes quality, artifact freshness, or review independence, say so.
320
+
321
+ **Portable provider wording:**
322
+
323
+ - Claude Code: use Task/subagent dispatch when available; if the skill benefits from structured prompts, include `AskUserQuestion` in `allowed-tools`.
324
+ - Cursor: use the provider's explicit agent invocation or natural-language agent handoff when supported.
325
+ - Codex: use multi-agent spawning when available; if the host requires explicit user authorization before spawning, ask before falling back.
326
+ - Fallback: use inline/single-agent execution only when the user declines delegation or the runtime truly cannot dispatch the required agent.
327
+
328
+ **Good pre-work pattern:**
329
+
330
+ ```markdown
331
+ ### Step 0.5: Capability Detection
332
+
333
+ Before edits, writes, external side effects, or long-running work, detect whether the required helper agents are available.
334
+
335
+ - Available without authorization → Tier 1: delegated execution.
336
+ - Authorization required → ask once: "Authorize `{worker/reviewer}` delegation for this run?"
337
+ - Approved → Tier 1.
338
+ - Declined → Tier 2: documented fallback.
339
+ - Not resolved / unsupported → Tier 2: documented fallback.
340
+
341
+ Report:
342
+
343
+ `Selected: Tier {1|2} — {Delegated|Fallback}; Reason: {available|authorized|user declined delegation|dispatch unavailable|required role unresolved}`
344
+
345
+ Lock the selected tier for the run.
346
+ ```
347
+
348
+ **Anti-patterns:**
349
+
350
+ - Selecting inline fallback just because the user did not pre-mention subagents, when the skill itself requires delegation and authorization can be requested
351
+ - Asking for authorization after implementation or review has already started
352
+ - Re-asking for each phase when the first approval explicitly covered the run
353
+ - Hiding fallback quality differences from the user
354
+
301
355
  ### Progress Feedback
302
356
 
303
357
  For multi-step skills, print brief progress updates so the user knows what's happening:
@@ -13,11 +13,12 @@ Adjust based on complexity—not all sections are required:
13
13
  5. **Arguments** - Parameters parsed from `$ARGUMENTS`
14
14
  6. **Prerequisites** - Required setup or context (if applicable)
15
15
  7. **Workflow/Steps** - Numbered steps using "Step 1, 2, 3..." naming
16
- 8. **Quality Standards** - Checklist format for docs skills (if applicable)
17
- 9. **Examples** - Both "Basic Usage" and "Conversational" styles
18
- 10. **Reference** - Links to relevant documentation
19
- 11. **Troubleshooting** - Common issues and solutions
20
- 12. **Success Criteria** - Checklist of completion conditions
16
+ 8. **Capability Detection** - Required before work starts if the skill dispatches subagents/workers/reviewers
17
+ 9. **Quality Standards** - Checklist format for docs skills (if applicable)
18
+ 10. **Examples** - Both "Basic Usage" and "Conversational" styles
19
+ 11. **Reference** - Links to relevant documentation
20
+ 12. **Troubleshooting** - Common issues and solutions
21
+ 13. **Success Criteria** - Checklist of completion conditions
21
22
 
22
23
  ## Annotated Template
23
24
 
@@ -87,6 +88,24 @@ Parse from `$ARGUMENTS`:
87
88
 
88
89
  ## Workflow
89
90
 
91
+ <!-- Include this Step 0.5 only if the skill dispatches subagents, workers, reviewers, or fresh-context helpers. -->
92
+
93
+ ### Step 0.5: Capability Detection
94
+
95
+ Before edits, writes, external side effects, or long-running work, detect whether required helper agents are available.
96
+
97
+ - Available without authorization → Tier 1: delegated execution.
98
+ - Authorization required → ask once: "Authorize `{worker/reviewer}` delegation for this run?"
99
+ - Approved → Tier 1.
100
+ - Declined → Tier 2: documented fallback.
101
+ - Not resolved / unsupported → Tier 2: documented fallback.
102
+
103
+ Report the selected tier and reason before starting work:
104
+
105
+ `Selected: Tier {1|2} — {Delegated|Fallback}; Reason: {available|authorized|user declined delegation|dispatch unavailable|required role unresolved}`
106
+
107
+ Lock the selected tier for the run unless the user explicitly changes it.
108
+
90
109
  ### Step 1: First Step Title
91
110
 
92
111
  Clear instructions in imperative form. Tell the agent what to do.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-agent-toolkit/cli",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "private": false,
5
5
  "description": "Open Agent Toolkit CLI",
6
6
  "homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/cli",
@@ -33,7 +33,7 @@
33
33
  "ora": "^9.0.0",
34
34
  "yaml": "2.8.2",
35
35
  "zod": "^3.25.76",
36
- "@open-agent-toolkit/control-plane": "0.0.68"
36
+ "@open-agent-toolkit/control-plane": "0.0.69"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.10.0",