fix(cursor): populate skill catalog and keep spaced names as one chip #8982
Closedmikeastock-bot(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/8982/headopened View on GitHubgithub-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
- @@ -96,4 +96,5 @@96969797 By default, the `/` menu includes skills. To keep this menu command-only, turn off **Show skills in9898 slash menu** in **Settings → General**. Skill results use the `/skill:Skill Name` label and add the99-same `$name` skill token to your message. The original skill name remains searchable. If the provider99+same `$name` skill token to your message. Skill names that contain spaces are inserted as100+`` `$"Skill Name"` `` so they stay one chip. The original skill name remains searchable. If the provider@@ -0,0 +57,21 @@57+58+function isUserInvocable(record: Record<string, unknown>): boolean {59+ const value = record["user-invocable"] ?? record.userInvocable;60+ return value !== false;61+}62+63+function parseSkillFrontmatter(contents: string): SkillFrontmatter {64+ const match = FRONTMATTER_PATTERN.exec(contents);65+ if (!match) {66+ return { kind: "missing" };67+ }68+69+ let parsed: unknown;70+ try {71+ parsed = parseYamlDocument(match[1] ?? "");72+ } catch {73+ return { kind: "malformed" };74+ }75+ if (typeof parsed !== "object" || parsed === null) {76+ return { kind: "malformed" };77+ }
- @@ -44,4 +44,8 @@4444 skill: Pick<ServerProviderSkill, "path" | "scope">,4545 ): ProviderSkillSourceKind {4646 const normalizedPath = normalizePathSeparators(skill.path);47- if (normalizedPath.includes("/.codex/plugins/") || normalizedPath.includes("/.agents/plugins/")) {47+ if (48+ normalizedPath.includes("/.codex/plugins/") ||49+ normalizedPath.includes("/.agents/plugins/") ||50+ normalizedPath.includes("/.cursor/plugins/")51+ ) {
Sign in to join this conversation.


Opened against the wrong repo; moving this to the fork.