fix(cursor): populate $ picker from filesystem skills #8770
main fromrefs/pull/8770/head·opened View on GitHubWhat 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.
Note
Populate $ picker with filesystem-discovered Cursor skills#
- Adds
discoverCursorSkillseffect that scans predefined user roots (~/.cursor/skills,~/.claude/skills,~/.agents/skills,~/.omp/agent/skills) and project roots (.cursor/skills,.claude/skills,.agents/skillsunder cwd) forSKILL.mdfiles - Adds
parseSkillFrontmatterutil to extractnameanddescriptionfrom YAML frontmatter; falls back to directory name when frontmatter is missing or malformed - Skills are keyed by name in a
Mapso later roots override earlier collisions; results are sorted by name withenabled=trueand scope set per root - Threads the discovered skills array into
buildCursorProviderSnapshotand all branches ofcheckCursorProviderStatus(disabled provider returnsskills: []) - Risk:
checkCursorProviderStatusnow performs filesystem reads on every status check; unreadable directories or malformed frontmatter are silently skipped, so a corruptSKILL.mdwill not surface as an error
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ 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 }101310181019+ const skills = yield* discoverCursorSkills({ cwd: process.cwd() });Skills scan uses process cwd#
Medium Severity
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 12e5f186bbfabbdecf2f901c70d879cc587f742c. Configure [here](https://www.cursor.com/dashboard/bugbot).checkCursorProviderStatusdiscovers skills fromprocess.cwd()instead of the server workspace cwd that Claude and Grok thread fromServerConfig. The process is never chdir'd to that workspace, so an explicit serve cwd leaves project.cursor/.agents/.claudeskills out of the$picker while the agent still runs in that workspace.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).+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!
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.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.

Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
446f5f2a-d09a-4ccd-bc4f-47b18ecaa6b3You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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.