Repository navigation
feat(skills): convert the remaining bundled skills to hybrid stubs - #9607
Merged
brennanb2025 merged 2 commits intoJul 20, 2026
Conversation
Roll out the hybrid discovery-stub pattern (first shipped for orca-cli in #9238) to the other seven bundled skills: computer-use, linear-tickets, orca-emulator, orca-emulator-android, orca-linear, orca-per-workspace-env, and orchestration. Each installable SKILL.md becomes a thin stub — a safe CLI resolver, an `orca skills get <topic>` pointer, and a bounded read-only fallback for pre-guide binaries — while the version-matched command reference now lives only in the Orca binary (embedded guide table, served by `orca skills get`). The distributed files can no longer drift from the binary that runs the commands. - generator: STUB_TOPICS now lists all eight canonical topics; each stub body lives in skill-stubs/<topic>.md and the projection reuses the guide's own frontmatter, so every routing/description surface is byte-identical. The embedded full guides (bundled-skill-guides.ts) are untouched. - manifest regenerated: each converted skill's releaseRevision bumps +1 as an append-only snapshot (orca-cli stays at 33). Existing fat installs classify `outdated` and get the targeted `npx skills update` nudge with no in-app writes. - tests: command-guidance assertions for computer-use, orca-linear, and orchestration repointed to their guide sources (their home now), plus per-topic stub-projection + safety coverage. Per notes/skill-freshness-design.md this completes the fat->stub migration across all bundled skills. The E.3 pointer-compliance spike and E.5 RC window flagged on #9238 still apply; allowed-tools frontmatter is intentionally not added yet (frontmatter kept byte-identical to guides).
Contributor
Author
|
Review follow-up pushed in commit d576af3. Meaningful fixes:
Manual Electron validation:
Verification:
The broad pnpm test run was not usable on the local unsupported Node 26 runtime; the repo requires Node 24. Unrelated renderer tests failed because Node disabled localStorage without localstorage-file, and daemon, SSH, and WSL suites timed out. Focused coverage and supported CI are the authoritative checks here. |
brennanb2025
merged commit Jul 20, 2026
f6fa71f
into
brennanb2025/orca-cli-hybrid-stub
19 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Rolls the hybrid discovery-stub pattern — first shipped for
orca-cliin #9238 — out to the remaining seven bundled skills:computer-use,linear-tickets,orca-emulator,orca-emulator-android,orca-linear,orca-per-workspace-env, andorchestration.Each installable
SKILL.mdbecomes a thin discovery stub — a safe CLI resolver, anorca skills get <topic>pointer, and a bounded read-only fallback for pre-guide binaries. The version-sensitive command reference now lives only in the Orca binary (the embedded guide table, served byorca skills get), so the distributed files can no longer drift from the binary that actually runs the commands — the root cause the thin-stub plan targets.Stacked on #9238 (which introduces the generator mechanism). With this, all eight bundled skills are hybrid stubs.
What changed
skill-stubs/<topic>.md(7 new) — body-only hybrid stubs. Each keeps the safe CLI resolver (ORCA_CLI_COMMAND → orca-dev → orca-ide → orca, never bareorcaon Linux/GNOME screen reader), a topic-tailored intro + triggers, theORCA skills get <topic>pointer, a "don't guess subcommands" warning, and a bounded read-only fallback for old binaries. Linear stubs retain the untrusted-source boundary;linear-ticketsnotes it is the legacy alias fororca-linear.config/scripts/generate-bundled-skill-guides.mjs—STUB_TOPICSnow lists all eight canonical topics. The projection is still<guide frontmatter block> + <stub body>, so every routing/description surface stays byte-identical. The embedded full guides (bundled-skill-guides.ts) are untouched.skills/<topic>/SKILL.md(7 regenerated) — thinned to stubs (e.g.orca-per-workspace-env730 → 79 lines,orchestration254 → 83).resources/skills/current-manifest.json+snapshot-registry.json— regenerated: each converted skill'sreleaseRevisionbumps +1 as an append-only snapshot (orca-clistays at 33).release-mapping.jsonbyte-identical (tolerated prefix). Existing fat installs now classifyoutdatedand get the targetednpx skills updatenudge — no in-app writes.computer-use,orca-linear, andorchestrationrepointed to their guide sources (their home now the projection is thin), plus per-topic stub-projection + safety coverage (resolver survives, no bareorca, old-binary fallback, frontmatter unchanged). Theorca-clitest's cross-guide worktree-id check repointed to the orchestration/emulator guide sources.Verification
✅
verify:bundled-skill-guides+verify:skill-bundle-manifestgates pass.✅ Unit tests green: bundled-guides generator, manifest generator (incl. git-tree identity, post-commit), and all four skill-guidance suites — 64 passed / 1 skipped (the skip is a pre-existing
.skip).✅ oxlint + oxfmt clean on all changed files.
✅ Live CLI (built from this branch):
orca skills get <topic>still serves the full version-matched guide from the embedded table for every topic, while the on-disk installed file is the thin stub:skills getSKILL.mdNone of the served guides contain the
discovery stubmarker (they are full guides); every installed file does. Example —orca skills get orchestrationserves# Orca Inter-Agent Orchestration(full body) while the installed file is the# Orca Orchestrationstub.✅
orca skills listshows all eight topics with unchanged descriptions (routing/discovery surface byte-identical).Not in scope / gates still ahead
Per
notes/skill-freshness-design.md, the gates flagged on #9238 still apply before promoting broadly:orca-cli(verdict: pass); the same spike shape extends naturally to these topics.allowed-toolsfrontmatter — intentionally not added (frontmatter kept byte-identical to guides).