Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cursor): discover symlinked skills as package boundaries #9420

MergedEzraBuild(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9420/headmerged by juliusmarminge View on GitHub

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

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes (not applicable)
  • I included a video for animation/interaction changes (not applicable)

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.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Approved at 5e919d7

      Macroscope's review found this PR approvable — This is a narrowly scoped Cursor skill-discovery bug fix that recognizes externally symlinked packages without traversing their target trees. Existing cycle and scan-budget protections remain in place, and a regression test covers both discovery and the traversal boundary.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. Melv1C(GitHub profile, opens in a new tab) approved these changes

    4. Audit verification on September 4, 2026: reproduced the Cursor symlink failure on latest fetched main 5a433244. The exact scanner from this PR passes the same fresh-directory reproduction and all 3 focused Cursor skills tests integrated with that main revision. The external package is discovered without walking its descendants.

      I reviewed the complete two-file diff and all paginated reviews, comments, check runs, and status contexts at 5e919d72. Current checks pass or are explicitly skipped; there are no unresolved review threads. This is a narrow correctness fix within the requested merge scope. The OpenCode portion of #2736 is not established by these Cursor tests.

      Audit and verification: GPT 6 Astra via Codex in T3 Code.

    5. juliusmarminge merged this087cfb8

    6. juliusmarminge closed this

Sign in to join this conversation.