Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cursor): populate $ picker from filesystem skills #8770

ClosedSvyk(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8770/headopened View on GitHub

What Changed

Cursor provider snapshots now scan on-disk skill roots and put the result on skills, so the composer $ picker is no longer empty for driver: cursor.

New discoverCursorSkills (same shape as discoverClaudeSkills):

  • User: ~/.claude/skills, ~/.omp/agent/skills, ~/.agents/skills, ~/.cursor/skills
  • Project (when cwd is set): .agents/skills, .cursor/skills, .claude/skills
  • Flat SKILL.md + YAML frontmatter; later roots win on name; missing/malformed skipped

checkCursorProviderStatus attaches that list on ready, timeout, and error paths. Disabled stays [].

Custom Cursor-driver instances (for example an omp ACP shim) get the same snapshot, because they share this driver.

Why

Claude, Grok, and OpenCode already fill $. Cursor does not: cursor-agent has no inspect/catalog API T3 reads, and CursorProvider never scanned the filesystem.

That is pingdotgg/t3code#2736 for Cursor. Grok/OpenCode were covered later (grok inspect, OpenCode SDK). This is the Cursor half, using the same filesystem approach as Claude.

Missing directories are a no-op, so extra roots (including ~/.omp/agent/skills) do not affect a default Cursor install.

Fixes #2736

UI Changes

The existing $ picker renders provider.skills. No new chrome, layout, or animation. I did not attach a screenshot; the picker UI is unchanged and only its data source is filled.

Checklist

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

Note

Low Risk Read-only filesystem discovery added to provider snapshots; no auth, payment, or session logic changes.

Overview Cursor provider snapshots now include discovered skills so the composer $ picker is populated for the Cursor driver, matching other providers that already expose on-disk skills.

A new discoverCursorSkills module scans user and project skill roots (.cursor, .agents, .claude, and ~/.omp/agent/skills), reads each folder’s SKILL.md with YAML frontmatter, and merges results with later roots winning on name collisions. Malformed or missing entries are skipped without failing the snapshot.

checkCursorProviderStatus and buildCursorProviderSnapshot attach that list on every enabled path (ready, CLI errors, timeouts); disabled Cursor still reports skills: []. Vitests cover discovery behavior and snapshot forwarding.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 12e5f186bbfabbdecf2f901c70d879cc587f742c. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Populate $ picker with filesystem-discovered Cursor skills

  • Adds discoverCursorSkills effect that scans predefined user roots (~/.cursor/skills, ~/.claude/skills, ~/.agents/skills, ~/.omp/agent/skills) and project roots (.cursor/skills, .claude/skills, .agents/skills under cwd) for SKILL.md files
  • Adds parseSkillFrontmatter util to extract name and description from YAML frontmatter; falls back to directory name when frontmatter is missing or malformed
  • Skills are keyed by name in a Map so later roots override earlier collisions; results are sorted by name with enabled=true and scope set per root
  • Threads the discovered skills array into buildCursorProviderSnapshot and all branches of checkCursorProviderStatus (disabled provider returns skills: [])
  • Risk: checkCursorProviderStatus now performs filesystem reads on every status check; unreadable directories or malformed frontmatter are silently skipped, so a corrupt SKILL.md will not surface as an error
Macroscope summarized 12e5f18.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 446f5f2a-d09a-4ccd-bc4f-47b18ecaa6b3

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Warning

      Your free Security trial is over. An organization admin can activate Security or dismiss this notice.


      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 12e5f186bbfabbdecf2f901c70d879cc587f742c. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -1011,3 +1016,4 @@
      10111016 });
      10121017 }
      10131018
      1019+ const skills = yield* discoverCursorSkills({ cwd: process.cwd() });

      Skills scan uses process cwd

      Medium Severity

      checkCursorProviderStatus discovers skills from process.cwd() instead of the server workspace cwd that Claude and Grok thread from ServerConfig. The process is never chdir'd to that workspace, so an explicit serve cwd leaves project .cursor / .agents / .claude skills out of the $ picker while the agent still runs in that workspace.

      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 12e5f186bbfabbdecf2f901c70d879cc587f742c. Configure [here](https://www.cursor.com/dashboard/bugbot).
    4. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This adds automatic filesystem discovery and new user-facing Cursor skill entries to provider snapshots, with runtime behavior spanning user and project workspaces. An unresolved concrete issue can omit project skills when the server’s configured workspace differs from its process directory, so the change warrants human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    5. +1 from our side — we’d really benefit from this merging.

      We hit the same gap tracked in #2736 / #6581: Cursor provider cache reports zero skills while Claude/Codex populate the $ picker on the same install. Workflow skills under ~/.cursor/skills (e.g. planning, deving, preflight) are invisible in T3’s composer today.

      This PR’s approach — scanning the shared on-disk skill roots and attaching them to the Cursor snapshot — matches what we need. Scoping to user + project roots looks right; we’d be happy to verify on a nightly once this lands.

      Thanks for pushing on it!

    6. Note

      🤖 GPT-6 Astra (preview) responding on behalf of Theo

      This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened.

      Closing as superseded by merged #9180. Main now discovers Cursor skills for the requested workspace and configured account home, and converts selected skill mentions to Cursor commands. That covers the picker defect without this older scan tied to the server working directory.

Sign in to join this conversation.