Repository navigation
Conversation
…lision
npx resolves a bare package name from node_modules/.bin and then PATH
before it will consult the registry, so on a host with any unrelated
executable named `skills` on PATH, `npx --yes skills add ...` silently
handed Orca's arguments to that other program. The failure surfaced as
`skills: error: Unknown option: --global`, which reads like an Orca bug.
--yes only suppresses the install prompt; it does not force registry
resolution. Only a version spec does.
Adds SKILLS_CLI_PACKAGE_SPEC ('skills@latest') and routes every generated
command through it: the shared install/update arg builders, the headless
update runner, and the terminal-fallback command. The two regexes that
re-parse a generated command now tolerate the spec, and the docs commands
users copy are pinned the same way.
The npm package publishes a `skills` bin matching its own name, so the
spec alone resolves the intended binary.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
The fix is correct and complete: pinning skills@latest makes npx treat the argument as a package to fetch rather than a name to resolve against PATH, closing the #18687 collision.
SKILLS_CLI_PACKAGE_SPEC = 'skills@latest'— new shared constant used as the leading argv token by every command builder, so a future bare-name revert is a one-token drift the regression test catches.- Builders + headless runner —
buildAgentFeatureSkillInstallArgs/buildAgentFeatureSkillUpdateArgs,buildTargetedSkillUpdateCommand, andSkillUpdateRunnerall now emit the spec; I traced every runnable call site (CLIbuildNpxSkillsArgs, the renderer re-export,linear-agent-skill-update-command.ts) and all flow through the shared constants. CliSkillRuntimeSetupregexes — the two re-parsers now acceptskills(?:@\S+)?; correct, and@is not inWINDOWS_BATCH_UNSAFE_CHARACTERS, so the cmd.exe rail and WSL login-shell path carry it unchanged (asserted by tests).- Test updates — literal-string expectations tightened rather than loosened, and the new regression test fails if any builder reverts to a bare name.
ℹ️ @latest re-binds installs to the registry and couples Orca to the skills CLI's flag surface
This is the one real trade to weigh, and it's a product decision rather than a defect — the code is correct as written. The skills package is a third-party CLI whose flags Orca hardcodes (add, update, --global, --project, --skill, --agent, -y), and @latest means an upstream release can rename a flag and break Orca's install/update flows with no Orca change. It also reintroduces a registry metadata check on every run, so a fully-offline host that previously succeeded by reusing an npm-globally-installed skills will now fail. The author already surfaced this and offered an exact pin ([email protected]) with a renovate-style bump, which removes both risks at the cost of a manual version bump.
Technical details
# `@latest` vs an exact pin
## Affected sites
- `src/shared/agent-feature-install-commands.ts:9` — `SKILLS_CLI_PACKAGE_SPEC = 'skills@latest'`; the single source every builder and runner consumes.
## Required outcome
- Maintainers should consciously decide whether the offline-host regression and upstream flag-coupling are acceptable, or whether an exact pin with a scheduled bump is preferred.
## Open questions for the human (optional)
- Is there an air-gapped/offline install story for skills that a registry check would break?
- Does the team want a renovate-style dependency bump for `skills` (exact pin), or is floating `latest` acceptable?ℹ️ Nitpicks
docs/reference/headless-linux-server.md:880,908anddocs/site/content/docs/cli/reference.mdx:299still describe the resolved command asnpx skills add <repo> .../npx skills update <names...>— e.g. "This resolves the samenpx skills add <repo> --skill <name> ...command Settings would show you." That claim is now slightly inaccurate since Settings emitsskills@latest. These are prose with placeholders (not runnable commands), so it's cosmetic, but they assert an exact match that no longer holds.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughSkill installation and update commands now use Merge Risk: ⚪ Minimal · up to Skills install and update guidance now consistently names the intended npm package version tag. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 26 files. (2 skipped: 2 unsupported.)
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. Comment |
The prose asserted an exact match with the command Settings emits, which now carries the pinned package spec.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
The follow-up commit addresses the prior review's nitpick by correcting the docs prose that asserted an exact match with the command Settings emits. Every flagged spot now carries the pinned skills@latest spec.
docs/reference/headless-linux-server.md— the three prose spots (npx skills add ... --global,npx skills add <repo> --skill <name> ...,npx skills update <names...>) now readnpx skills@latest ..., matching what Settings actually emits.docs/site/content/docs/cli/reference.mdx— the "shell out to the same ... commands Settings uses" line now readsnpx skills@latest.
This fully resolves the ℹ️ Nitpicks from the prior review. The remaining bare npx skills add references in the docs are frontmatter search keywords and generic prose that describe the conceptual action rather than asserting a byte-for-byte match with Orca's generated command, so leaving them is the documented intent.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Thanks for tracking this down so precisely, @AntonioKL. The If you still hit the colliding binary on the latest build, please comment or reopen and we'll take another look. |

ELI5
Orca installs skills by running
npx --yes skills add ….npxlooks for a program calledskillson yourPATHfirst, and only fetches from the npm registry if it does not find one. So on a machine that has some other program namedskills, Orca was politely handing its arguments to a stranger. The error looked like Orca passing a bad flag. Adding a version to the name (skills@latest) makesnpxfetch the package we actually mean.What Changed
New
SKILLS_CLI_PACKAGE_SPEC = 'skills@latest'insrc/shared/agent-feature-install-commands.ts, used as the package argument by every path that builds the command:buildAgentFeatureSkillInstallArgs/buildAgentFeatureSkillUpdateArgs— the shared builders behind Settings, onboarding, andorca skills install|update.buildTargetedSkillUpdateCommand(src/shared/skill-freshness.ts) — the terminal-fallback command.SkillUpdateRunner(src/main/skills/skill-update-run.ts) — the headless update spawn.Two regexes in
CliSkillRuntimeSetup.tsxre-parse a command Orca generated, so they now accept the spec (skills(?:@\S+)?). The CLI help text fororca skills install|updateand the runnable commands in the CLI docs are pinned to match what Orca now runs.The rest of the diff is test expectations: these commands are asserted as literal strings in a lot of places.
Why
--yesis often misread as "always fetch". It only suppresses the install prompt. For a bare name,npxchecksnode_modules/.binand thenPATHand executes any match without consulting the registry. Only a version or tag spec makesnpxtreat the argument as a package to fetch.The reporter's host had Headlong's
skillsbinary at~/.local/bin/skills, with~/.local/binthird onPATH:and the resulting failure reads like an Orca bug:
Removing the colliding binary is not always available as a workaround — in that case Headlong invokes bare
skills promptat every agent wake, so it legitimately needs that name onPATH.More broadly: a control plane that runs
npx <bare-name>on hosts it orchestrates is trusting an unowned name in a global namespace. That is worth closing on its own, separately from this particular collision.skills@latestrather than the-p skills@latest skills …form the issue also offered: the npm package publishesbin: { skills, add-skill }, so a bin matches the package name andnpx skills@latestresolves it unambiguously. The-pform adds two tokens to a command that also has to survivecmd.exewrapping and the WSL login-shell path, for no additional guarantee here.Distinct from #13807, which is about resolving the
npxbinary to a dead version-manager shim. This one isnpxrunning correctly and then resolving the package name to the wrong program.Linked Issue
Fixes #18687
Visual Proof
N/A— no UI layout or styling change. The only user-visible difference is the command text shown in Settings /--dry-runoutput, which now readsnpx skills@latest add …. The behavior is a command-construction change, pinned by tests:npx --yes skills add …npx --yes skills@latest add …skillson PATHTesting
New regression test in
src/shared/agent-feature-install-commands.test.ts—always pins a version spec so npx cannot resolve a PATH collision— asserts the spec is shapedskills@<something>and that the first argument of every generated arg list is that spec and not the bareskills, across install/update and both scopes, plus the terminal-fallback command. It fails if any future builder reverts to a bare name.Existing tests that assert the literal command were updated rather than loosened, so the exact string a user sees stays pinned. Two array-form expectations now reference
SKILLS_CLI_PACKAGE_SPECdirectly so they cannot drift from the source.Ran on macOS:
src/shared/,src/cli/,src/main/skills/,src/main/telemetry/, and the renderer settings / skills / onboarding / sidebar suites — 1353 files, 12,772 tests, all passing, pluspnpm tcandpnpm run check:code-quality:changed. CI covers the fullpnpm testandpnpm build.Also confirmed the package identity directly rather than assuming it:
npm view skillsreports1.5.23,bin = { skills, add-skill },repository git+https://github.com/vercel-labs/skills.git.AI Disclosure
Written with Claude Code (Claude Opus 5). The call sites were traced from the shared builder outward; the fix, tests, and this description were authored in that session and reviewed by me.
Review
getSpawnArgsForWindows/cmd.exerail and the WSL login-shell path carry it unchanged; both have tests that now assert the pinned form.@is not special tocmd.exeargument parsing and the token is never free text.@latestmakesnpxre-check the registry rather than reuse a globally installed binary. See Notes — this is the real trade and it is deliberate.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
The trade, stated plainly.
@latestcosts an npm registry check that a bare name could sometimes skip by reusing an already-installedskillsonPATH— which is exactly the resolution this PR is removing, so the two cannot be had at once.npxstill caches, so the cost is a metadata check rather than a re-download, but a fully offline host that previously succeeded via a globally installedskillswill now fail. An exact pin ([email protected]) would be cacheable and fully deterministic at the cost of freezing users on a version Orca has to bump;@latestmatches what the reporter proposed and verified. Happy to switch to an exact pin with a renovate-style bump if maintainers prefer that.Not in this PR — the two follow-ons the issue raises, both worth their own change:
--version) and report the resolved path when it is not, so a future collision names itself instead of surfacing asUnknown option: --global.orca skills update <name>on a skill present in an agent home but absent from the CLI's registry reportsNo installed skills found matching: <name>with no hint thatorca skills installis the fix.Prose and search-keyword mentions of
npx skills addin the docs were left as-is; only runnable commands were pinned.Author: @AntonioKL
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)