Repository navigation
Conversation
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
src/main/skills/skill-discovery-sources.ts (1)
73-76: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winTrim this rationale comment to the guideline limit.
Lines 73-76 explain the right constraint, but they are longer than needed here. Keep only the non-obvious why in one or two lines and drop the extra detail/issue link from the inline comment.
Suggested edit
- // Why: Orca ships bundled skills in the repo-root `skills/` directory - // (e.g. skills/orchestration, skills/orca-cli). Without this source, - // those skills are invisible to discovery even though onboarding - // confirms them. See https://github.com/stablyai/orca/issues/6638. + // Why: Orca bundles built-in skills in `<repo>/skills`, so discovery + // must scan that root for agents and Settings to see them.As per coding guidelines, "When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does. Keep comments short — one or two lines, capturing only the non-obvious reason."
Source: Coding guidelines
src/main/skills/discovery.test.ts (1)
148-170: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRemove the duplicated bundled-skill test.
Lines 148-170 repeat Lines 124-146 verbatim, including the test name. That only adds maintenance cost and extra test runtime without increasing coverage.
Suggested edit
- it('discovers bundled skills in the repo-root skills/ directory', async () => { - const root = await mkdtemp(join(tmpdir(), 'orca-skills-')) - const home = join(root, 'home') - const repo = join(root, 'repo') - const bundledSkill = join(repo, 'skills', 'orchestration') - await mkdir(bundledSkill, { recursive: true }) - await writeFile( - join(bundledSkill, 'SKILL.md'), - ['---', 'name: orchestration', 'description: Multi-agent coordination.', '---', ''].join('\n') - ) - - const result = await discoverSkills({ - homeDir: home, - cwd: join(root, 'missing-cwd'), - repos: [makeRepo(repo)] - }) - - const skill = result.skills.find((entry) => entry.name === 'orchestration') - expect(skill).toBeDefined() - expect(skill?.sourceKind).toBe('repo') - expect(skill?.providers).toEqual(['claude', 'codex', 'agent-skills']) - expect(skill?.directoryPath).toBe(bundledSkill) - })
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: bf3c53c8-8917-4a74-9d99-bfd7aac33838
📥 Commits
Reviewing files that changed from the base of the PR and between a278a30 and 03121db2095d3d23dff0418965577ceebb9f937b.
📒 Files selected for processing (2)
src/main/skills/discovery.test.tssrc/main/skills/skill-discovery-sources.ts
03121db to
d1726f4
Compare
…ills Orca ships bundled skills in the repo-root `skills/` directory (orchestration, orca-cli, orca-linear, orca-emulator, computer-use) but skill discovery only scanned `.claude/skills` and `.agents/skills` at the repo level. The bundled skills were invisible to agents and the Skills settings page, even though onboarding confirmed them. Add a repo-level discovery source for `<repo>/skills` so bundled skills are discovered with claude, codex, and agent-skills provider metadata. Fixes stablyai#6639 Co-Authored-By: Claude <[email protected]> Co-authored-by: Orca <[email protected]>
d1726f4 to
8199a37
Compare
- Trim rationale comment to the guideline limit (two lines, no issue link) - Remove verbatim duplicate bundled-skill test Co-Authored-By: Claude <[email protected]> Co-authored-by: Orca <[email protected]>
|
Taking a look! |
|
Thanks for this, and for the clear write-up on #6639 — the problem you reported is real. But I'm going to close this, because discovery isn't the lever that fixes it. Orca's skill discovery is a display-only inventory: it drives badges, pickers and Settings. It never reaches a launched agent — no prompt injection, no config write, no The clearest demonstration: an agent reviewing this branch was Claude Code running inside this repo. Worth knowing too — Two side effects also pushed against landing it. The native-chat What would actually work is getting the repo's skills into a home root — e.g. symlinking Sorry to close after the work you put in — the diagnosis was sound, it's just that |
Summary
Orca ships bundled skills in the repo-root
skills/directory (orchestration,orca-cli,orca-linear,orca-emulator,computer-use) but skill discovery only scanned.claude/skillsand.agents/skillsat the repo level. The bundled skills were invisible to agents and the Skills settings page, even though onboarding confirmed them — a silent failure where the user thinks skills are installed but the agent never receives them.Fixes #6639.
Root cause
buildSkillDiscoverySources()insrc/main/skills/skill-discovery-sources.tsbuilt the list of scan roots but never included<repo>/skills— the directory where Orca's own bundled skills actually live.Changes
src/main/skills/skill-discovery-sources.ts: Added a repo-level discovery source for<repo>/skillswithclaude,codex, andagent-skillsprovider metadata.src/main/skills/discovery.test.ts: Added a test that verifies bundled skills inskills/<name>/SKILL.mdare discovered with the correct source kind and provider metadata.Verification
node_modules/.bin/vitest run src/main/skills/discovery.test.ts→ 8/8 tests pass (6 existing + 1 new + 1 pre-existing)pnpm typecheck→ passesoxlinton changed files → cleanCross-platform / compatibility notes
path.joinfor the scan root path (cross-platform safe)..claude/skillsand.agents/skillssources.claude,codex,agent-skills) matches the union of providers that can consume these bundled skills.Code review summary
path.join, no platform-specific logic.skills/directory is part of the trusted repo tree, and the existing depth/symlink guards indiscovery.tsapply.Contributor
X handle: @branben_
ELI5
Bundled skills under the repo-root
skills/folder were never discovered, so agents and Settings thought they were missing. Discovery now scans that directory too.