What Changed#
Cursor skill discovery (CursorSkills.ts, added in #9180) canonicalizes each directory and skips any whose resolved path falls outside the scanned root. A skill installed as a symlink into a config repo, for example ~/.cursor/skills/my-skill -> ~/config-repo/agents/skills/my-skill, resolved outside the root and was silently dropped. The $ picker stayed empty and $my-skill was never rewritten to Cursor's native /my-skill.
This treats an escaping symlink as a package boundary: read that directory's own SKILL.md under the link name, but never walk the target tree. The visited set still prevents loops and the existing entry and byte budgets still bound the scan. Nothing outside the root is ever traversed.
One new test symlinks a skill from an outside directory into .cursor/skills, asserts it is discovered under the link path, asserts a nested SKILL.md below the target is not discovered, and asserts the probe reports success.
Why#
Fixes the remaining case in #2736, as reported in the 2026-09-03 comment there. Claude's scanner already follows these symlinks and the Antigravity scanner ships a test for the same behavior, so Cursor was the odd one out on the same machine.
UI Changes#
None.
Checklist#
Validation#
vp test run apps/server/src/provider/Layers/CursorProvider.test.ts
vp lint and vp fmt --check on the two changed files
vp run --filter t3 typecheck
Model: Claude Fable 5.1. Harness: Claude Code.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes