Skip to content

Install Orca's skills with one click on every setup screen - #31918

Merged
Jinwoo-H merged 112 commits into
mainfrom
jinwoo/bundled-skill-install-surfaces
Oct 23, 2026
Merged

Jinwoo-H merged 112 commits into
mainfrom
jinwoo/bundled-skill-install-surfaces

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 39 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2505 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1783 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​722
Prod 84 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2898 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1756 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1142

ELI5

Every screen in Orca that sets up an agent skill (onboarding, Settings > Orchestration, Browser, CLI, Computer Use, Linear, the mobile emulator, feature tips) used to open a small terminal with an npx skills add ... command for you to run. Now each one has an Install button. One click and Orca copies its own skill files into place, then says what happened.

What Changed

Before: clicking Install opened an inline terminal pre-filled with npx [email protected] add https://github.com/stablyai/orca/tree/<sha> --skill .... You pressed Enter and watched npx download the skills from GitHub, which needs Node, network access and Git. On Windows/WSL the command was wrapped in PowerShell/wsl.exe escaping. If it failed, the screen showed only an exit code.

After: Install runs Orca's own installer, the same one the Update skills dialog uses (stacked PRs below):

  1. It plans the named skills on the machine that owns the project: this Mac/PC, or the paired Orca server / SSH host over RPC. Each screen resolves that machine once, from the workspace's owner, for both Install and Re-check. It never installs on this machine for a remote workspace, and shows nothing while the owner hasn't loaded.
  2. It runs exactly that plan (identified by its digest).
  3. It shows a one-line result, e.g. Installed, or Installed · 1 left alone: You've changed this copy. Problems show Needs attention with Retry. A server that is too old for the installer shows "Update Orca on the server to install its skills." instead of falling back to npx. An SSH host with no Orca server yet shows "Connect to this SSH host to install its skills."

Results are kept per machine, so switching workspaces never shows another host's result. A copy you edited, or a different skill using the same name, is left alone and named in the result line.

The button and result line follow the plan:

  • Only adds the skill for agents that lack it: Install for Cursor (or Install for 2 more agents); result Installed for Cursor.
  • Only updates existing copies: Update; result Updated.
  • Both: Update; result Updated · Installed for Cursor.
  • Nothing to do: Installed. If Orca can't write a needed folder, or another install is running there, it shows Needs attention with Retry instead, never Installed.
  • Replace with Orca's copy shows when the only thing left is a copy Orca may replace. Clicking it plans the replacement then, checking every file in that copy; a copy Orca can't fully read ends in Needs attention and is never replaced. Replace keeps a backup, the same as the Update dialog.

Also changed:

  • WSL projects keep main's flow. Until WSL runs as an Orca server host (the WSL-host work behind ORCA_INTERNAL_WSL_HOSTS), a legacy WSL project's setup screens still show the inline terminal with the same npx skills add command as main, through the CLI Settings runtime choice or the project's distro. The code kept for that is marked COMPAT(wsl-bridge) so it can be deleted with the WSL bridge.
  • Removed for everything else: the npx terminal installers for non-WSL setup, the Windows shell-override wrapper that only served them, and their now-unused UI strings. OnboardingInlineCommandTerminal stays for gh auth login, the Zcode CLI and the WSL flow. The skills/ folder stays, so npx skills add stablyai/orca still works for people outside Orca.
  • Telemetry: the terminal events (onboarding_feature_setup_terminal_opened/_interacted) now fire only from the WSL terminal flow. onboarding_feature_setup_run, which nothing emitted before, now fires from the onboarding/feature-wall Install, with skill_install_result (installed | needs_attention | update_server | connect_host | failed). Nothing identifying is sent.

Why

The terminal flow depended on npx, the network and GitHub's API, and it handed users a shell command to debug. The installer from the lower PRs already decides everything in one place (plan → execute → summarize). Reusing it means setup screens, the Update dialog and orca skills install cannot disagree about what "installed" means or which machine it applies to.

Alternatives considered:

Linked Issue

Stack: #31662 (core) → #31688 (local switch) → #31867 (remote) → this PR.

Visual Proof

Onboarding "Give agents Orca skills", before → after Install (Computer Use deselected to avoid the macOS permission prompt):

(screenshot removed: contained real product data)
(screenshot removed: contained real product data)

Settings > Orchestration, not installed → Install:

(screenshot removed: contained real product data)
(screenshot removed: contained real product data)

Settings > Browser with a hand-edited ~/.claude/skills/orca-cli. Update installs the shared copy and leaves the edited one alone, naming it. Because the only thing left is that replaceable copy, the button becomes "Replace with Orca's copy". Replace moves the edited copy to .orca-skill-backups/ (the same rule as the Update dialog) and leaves only Re-check:

(screenshot removed: contained real product data)
(screenshot removed: contained real product data)
(screenshot removed: contained real product data)

Testing

  • I manually tested these changes locally: hidden dev app with an isolated HOME and user-data, CDP screenshots only. On disk, ~/.agents/skills/{orca-cli,orchestration} were written and ~/.claude/skills/* linked to them; the edited ~/.claude/skills/orca-cli/SKILL.md was byte-unchanged.
  • Automated tests added/updated:
    • use-bundled-skill-install.test.tsx: per-host results, a late completion lands in its own host's slot, repeated clicks, a failed probe is an error, retry.
    • AgentSkillSetupPanel.test.tsx: plan then execute with names, a paired host never installs locally, edited-copy line, changed disk → Needs attention + Retry, old server.
    • Named-install plan in runtime-bundled-skill-install.test.ts.
    • The telemetry validator.
  • Ran pnpm tc, check:code-quality:changed, oxlint, oxfmt, anti-slop, the type-aware/native plugin lints, React Doctor (changed lines), the ratchets, the localization catalogs/extraction/coverage, and the generated-catalog checks. All pass.
  • Platforms: macOS only. The WSL terminal flow is main's existing code, covered by unit tests; paired-server paths are covered by unit tests and Install and update Orca's skills on paired servers and SSH hosts #31867's real-host test, not re-run here.

Review

Fresh-eyes review done. Fixed: feature-wall Install is disabled while the agents' host is unknown, the bundled-skill-unknown error is named, and leftovers are removed.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

One planner decides what installing Orca's bundled skills does to each
target folder; execute re-plans under per-path locks and runs only a plan
whose digest still matches; a shared summary derives badge, wording and
exit code. A copy counts as Orca's untouched one only when its SKILL.md
bytes match a version some build shipped (resources/skills/released-digests.json,
generated from git history and checked add-only).

Nothing calls this yet; the npx path is unchanged.
A leave is no longer a failure: the outcome line says what happened plus
"N left alone: <reason>", and the exit code is 1 only for a failed or
changed op. Backups for every scope go to <home>/.agents/.orca-skill-backups
on the executing host, so a project Replace never writes into the repo;
moving there falls back to copy, verify, then remove across filesystems.
The app's Update skills dialog, badge, nudge and status pills now read the
bundled-skill plan and summary, and Update executes the reviewed plan's
digest. `orca skills install|update` runs the same planner in-process with
--dry-run, --force, --json and per-summary exit codes. Removes both npx
spawn sites, the freshness inventory modules and the npx round-trip CI.
…p and CLI

installedOnly now drops every location that holds nothing (keeping the shared slot
only when an existing agent link points at it), so Update never adds a skill for
another agent. The app and CLI resolve the Claude skills folder through the same
rule in localBundledSkillInput; a test asserts both plan identically.
…gent

summarizeBundledSkillPlan now returns each skill's locations, labelled by
agent (or "Shared folder") with a ~-collapsed path; the dialog shows one row
per skill that needs something, collapses up-to-date skills into one line, and
lists every location behind "Show all locations". The result reads "Updated N
skills · M left alone". Under installedOnly a Replace with no shared copy
replaces in place instead of adding one.
…nder

Split the update dialog's rows, headline and footer into components, move the Update label
next to the other plan copy, and use z.strictObject for the request schemas.
The orcad bundle rejects a literal non-ASCII character in a regex.
Drop the deleted roundtrip workflow's group from the closed-PR cancellation fixture.
…nd runs apart, never boot WSL for a background check
…tch' into jinwoo/bundled-skill-install-remote
…s on Windows

Directory links in fixtures are junctions on Windows, which need no
Developer Mode; the one file-link fixture is skipped there.
…d-skill-install-remote

# Conflicts:
#	src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
#	src/renderer/src/components/skills/skill-update-run-store.ts
#	src/renderer/src/components/status-bar/SkillUpdateStatusSegment.tsx
…d-skill-install-surfaces

# Conflicts:
#	src/renderer/src/hooks/useActiveProjectSkillRuntime.test.tsx
#	src/renderer/src/hooks/useActiveProjectSkillRuntime.ts
…install-switch

# Conflicts:
#	src/main/skills/bundled-skill-install/layouts.test.ts
#	src/main/skills/bundled-skill-install/plan.ts
#	src/main/skills/bundled-skill-install/service.ts
#	src/main/skills/bundled-skill-install/skill-home.test-support.ts
#	src/shared/bundled-skill-plan.ts
#	src/shared/bundled-skill-summary.test.ts
#	src/shared/bundled-skill-summary.ts
…tch' into jinwoo/bundled-skill-install-remote
…install-remote

# Conflicts:
#	src/main/ipc/skills.test.ts
#	src/main/ipc/skills.ts
#	src/main/runtime/runtime-bundled-skill-install.ts
#	src/preload/api/agent-skill-api.ts
#	src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.freshness.test.tsx
#	src/renderer/src/components/settings/use-settings-store-model.ts
#	src/renderer/src/components/skills/SkillFreshnessNudge.test.tsx
#	src/renderer/src/components/skills/SkillFreshnessNudge.tsx
#	src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
#	src/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsx
#	src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
#	src/renderer/src/components/skills/skill-update-run-store.ts
#	src/renderer/src/components/skills/use-reviewed-skill-plan.ts
#	src/renderer/src/components/status-bar/SkillUpdateStatusSegment.test.tsx
#	src/renderer/src/components/status-bar/SkillUpdateStatusSegment.tsx
#	src/renderer/src/hooks/useSkillFreshness.test.tsx
#	src/renderer/src/hooks/useSkillFreshness.ts
#	src/renderer/src/i18n/locales/en.json
#	src/renderer/src/i18n/locales/es.json
#	src/renderer/src/i18n/locales/fr.json
#	src/renderer/src/i18n/locales/ja.json
#	src/renderer/src/i18n/locales/ko.json
#	src/renderer/src/i18n/locales/pt.json
#	src/renderer/src/i18n/locales/zh.json
#	src/shared/bundled-skill-plan.ts
…ote' into jinwoo/bundled-skill-install-surfaces
@Jinwoo-H
Jinwoo-H changed the base branch from jinwoo/bundled-skill-install-remote to main October 23, 2026 02:50
…install-surfaces

# Conflicts:
#	src/renderer/src/components/settings/AgentSkillSetupPanel.freshness.test.tsx
#	src/renderer/src/components/settings/CliSection.test.tsx
#	src/renderer/src/components/settings/MobileEmulatorAgentControlRow.test.tsx
#	src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx
#	src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
#	src/renderer/src/hooks/useActiveProjectSkillRuntime.test.tsx
#	src/renderer/src/hooks/useActiveProjectSkillRuntime.ts
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit 6a96733 into main Oct 23, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant