Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(composer): stop offering skills and commands that cannot run #7673

ClosedBrechard(GitHub profile, opens in a new tab)wants to merge 13 commits intomain fromrefs/pull/7673/headopened View on GitHub

Note

🤖 Claude Opus 5 writing on behalf of Rodrigo

Fixes #7671. Fixes #8295.

The composer pickers offered entries that cannot be invoked, and picking one failed silently.

$ listed every skill found on disk, including ones marked disable-model-invocation. Those are hidden from the agent's skill tool on purpose, so picking one only put its name in the prompt as prose and the agent quietly ran whichever similarly-named skill it could see. That is how I cut an unwanted release: I picked $re-release-version, and the agent ran release-version. Skills switched off via skillOverrides were offered too.

/ had the mirror problem. The menu opens on any line starting with /, but the CLI only expands a slash command that opens the whole message; chosen later, it arrives as literal text.

And picking a skill from / inserted $name regardless — the one syntax that cannot start a disable-model-invocation skill. The menu offered the entry, accepting it looked right, and the agent then explained it could not run what the user had just picked (#8295).

What changed

  • Parse disable-model-invocation, user-invocable and skillOverrides during skill discovery, surfaced as userInvocationOnly, userInvocable and enabled on ServerProviderSkill. skillOverrides is read from the merged settings chain (user, project, local, then managed policy, which wins).
  • Keep user-invocation-only and disabled skills out of $ in both web and mobile, and keep user-invocable: false skills out of /. Neither menu offers an entry the picked syntax cannot start.
  • Only offer provider slash commands when the trigger opens the message. Built-ins (/model, /plan) are applied locally on selection, so they stay available anywhere.
  • $name is the default insertion from either menu. It is the portable form: every provider forwards it verbatim and the agent starts the skill from its own tool. /name is reserved for the one case a mention provably cannot reach — a user-invocation-only skill picked at the start of a message.
  • Show the sigil you are about to get on the menu row itself, so the row cannot promise a syntax the accept handler does not insert.
  • Identify a skill by its directory, the way Claude Code does, and resolve name collisions user-over-project, also the way Claude Code does. Both were measured against the CLI; the previous behaviour reported commands that did not exist and attached the wrong file's invocation metadata.

Before / after

$grill — grill-with-docs and improve-codebase-architecture are both disable-model-invocation:

beforeafter
beforeafter

$slack — slack is set to "off" in skillOverrides:

beforeafter
beforeafter

Captured on this branch and its parent commit, same server and same data. Both $ pairs still match current behaviour.

I had a third pair here for /grilling typed on the second line. I have removed it rather than leave stale evidence: at capture time that menu was gated shut past the start of the message, and the design has since changed so it stays open and offers the mentionable skills, which $ can start from that position. Happy to re-capture the current behaviour on request.

Verification

  • vp test run over ClaudeSkills.test.ts, providerSkillSearch.test.ts, providerSkills.test.ts, composerSlashCommandSearch.test.ts, composerSlashSkillSearch.test.ts, ComposerCommandMenu.test.tsx — 49 passed. New cases cover the frontmatter flags, skillOverrides precedence across the settings chain including managed policy, unreadable settings, directory-based skill identity, collision precedence, the trigger-to-syntax mapping, and the rendered menu row.
  • The insertion path is pinned end to end rather than at the formatter alone: a test drives detectComposerTrigger over a real composer string and asserts the resulting insertion, for both sigils.
  • Typecheck clean across contracts, client-runtime, server, web, mobile. Lint clean on every touched file.
  • Behaviour claims about the CLI are measured, not inferred. Against the Agent SDK with tools disabled, so the reply could only come from expansion: /cmd at the start expands, hello\n/cmd does not. Against claude 2.1.250 directly: a skill in probe-alias/ declaring name: probe-alias-frontmatter is published as probe-alias; user-invocable: false skills are absent from the published command list while disable-model-invocation ones are present; user-invocable: no is honoured, hence the YAML 1.1 boolean spellings; and with the same skill name in the user config dir and in <workspace>/.claude/skills, the user copy is the one that runs, with a project-only control run proving the project copy loads on its own.

Model: Claude Opus 5 (1M) via Claude Code.

🤖 Generated with Claude Code


Note

Medium Risk Changes composer filtering and insertion semantics plus Claude skill identity/precedence; wrong edge cases could hide valid commands or insert literal / mid-message, but the change corrects prior silent mismatches with the CLI.

Overview Fixes composer menus that offered skills and provider slash commands the CLI cannot actually run, and aligns insertion text with what each trigger can deliver.

Claude skill discovery now matches Claude Code more closely: skills are keyed by directory name (not frontmatter name), user config wins on name collisions, and discovery reads skillOverrides from merged settings (user → project → local → managed policy). Frontmatter flags surface as userInvocationOnly (disable-model-invocation) and userInvocable (user-invocable: false), with YAML 1.1 boolean spellings supported.

Shared client-runtime rules drive web and mobile: $ mentions use isProviderSkillMentionable (drops disabled and user-only skills); / menus use getProviderSkillsForSlashMenu with a message-start gate; provider slash commands appear only when rangeStart === 0. Picking a skill uses resolveProviderSkillInsertionSigil + formatProviderSkillInsertion (/name only for user-only skills at message start, otherwise $name). Menu rows show the exact sigil and skill name via insertionSigil, not a fixed skill: prefix.

User docs for Claude skills and $// behavior are updated to match.

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

Note

Filter composer skill menus by invocation context and apply skill settings overrides in discoverClaudeSkills

  • discoverClaudeSkills now identifies skills by directory name (not frontmatter name), applies enable/disable and userInvocationOnly from a layered set of settings files (user → project → managed), and resolves collisions with user-over-project precedence.
  • Composer menus on web and mobile only show provider slash commands at message start; skills marked userInvocationOnly are hidden from / but still offered as $ mentions elsewhere.
  • A new ProviderSkillInsertionSigil type and resolveProviderSkillInsertionSigil centralize whether a picked skill inserts /name or $name based on trigger position and skill flags.
  • searchProviderSkills now excludes userInvocationOnly skills, so agent-only skills no longer surface in search.
  • Risk: ComposerCommandItem.skill now requires insertionSigil; any in-tree or out-of-tree callers constructing skill items without it will fail to compile. Frontmatter name no longer drives skill identity — skills relying on a frontmatter name that differs from their directory name will be identified differently.
Macroscope summarized 180e8aa.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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: 2b844682-dadc-42ff-b93a-ceb9ece3fc8b

      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

      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. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Would Approve

      Macroscope's review found this PR approvable — This is a contained, well-tested fix that aligns Claude skill discovery and web/mobile composer menus with the provider’s actual invocation rules, using additive optional metadata rather than breaking API changes. The supplied high-severity mobile finding concerns the previously unfiltered path and is addressed in the current head through the shared enabled-skill filter.

      Not approved because:

      • 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity
      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. t3dotgg(GitHub profile, opens in a new tab) added labelsvouch:trusted

    5. t3dotgg(GitHub profile, opens in a new tab) removed labelsvouch:unvouched

    6. waLLxAck(GitHub profile, opens in a new tab)commented

      @juliusmarminge this is a big problem for Claude users who've optimized their skills with the user invocation feature. Another useful feature to stack would be a resolution to this issue:

      image

      slash*

      Especially after Theo's video, lots of T3 Code users are trying Matt's skills.

    7. Brechard(GitHub profile, opens in a new tab)commented

      Note

      🤖 Claude Opus 5 writing on behalf of Rodrigo

      Pushed 6eb41e1, rebased on current upstream/main. This picks up #8295, which is the other half of the same defect and was reported after this PR opened.

      What it adds. This PR already kept user-invocation-only skills in / because that is where they can be started — but accepting one still inserted $name, so /re-release-version was submitted as $re-release-version and the agent refused it. Both composers hard-coded the mention syntax:

      if (item.type === "skill") {
        const replacement = `$${item.skill.name} `;

      Insertion now follows the trigger, through one shared formatProviderSkillInsertion so web and mobile cannot drift.

      That change alone would have made things worse further into a message, where the old $name still worked for a mentionable skill and /name never expands. So slash-menu skills are now offered under the same message-start rule this PR already applied to provider slash commands, and $name stays the way to reach a mentionable skill mid-message.

      Verification. 35 focused tests pass across ClaudeSkills.test.ts, providerSkillSearch.test.ts, providerSkills.test.ts, composerSlashCommandSearch.test.ts, composerSlashSkillSearch.test.ts; typecheck and lint clean on contracts, client-runtime, server, web, mobile. The insertion path is pinned end to end — a test drives detectComposerTrigger("/re-release-version") and asserts the insertion is /re-release-version , with the $ case asserted the same way — so the mapping cannot silently invert again.

      Verified by hand in a local build: /re-release-version (a disable-model-invocation: true project skill) is offered, stays /re-release-version on accept, and runs.

      No new before/after images for this commit — the screenshots above still describe the menu-contents changes, and the new behaviour is the submitted text rather than the menu, which the end-to-end test asserts directly.

      Model: Claude Opus 5 (1M) via Claude Code.

    8. One finding: the slash menu's skill label no longer matches what selecting it inserts once the trigger is past the start of the message. Details inline.

      Posted via Macroscope — UI Consistency
    9. One finding on the web composer: the / menu now inserts the slash form of a skill for every provider, but only Claude reports skills as native slash commands. See the inline comment.

      Posted via Macroscope — UI Consistency
    10. One finding in the slash-menu skill row: the rendered prefix still promises /skill:name while the pick inserts /name. Details inline.

      Posted via Macroscope — UI Consistency
    11. 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). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b747e4f620d51a003cb7c1d80bd0dcfdb8657e87. Configure [here](https://www.cursor.com/dashboard/bugbot).
    12. One finding: the slash-menu row for a user-invocation-only skill still shows a /skill: prefix while the pick inserts /name, so the row no longer matches the syntax it claims to show.

      Posted via Macroscope — UI Consistency
    13. Brechard(GitHub profile, opens in a new tab)commented

      Note

      🤖 Claude Opus 5 writing on behalf of Rodrigo

      Pushed 1010c5f, which closes the mobile gap Approvability called out.

      That check has been reporting neutral while every visible check passes, and its body is where the real finding was — it named "an unresolved mobile path that can still offer agent-only skills." It was right, and it was my omission: getProviderSkillsForSlashMenu learned to drop user-invocable: false skills, but ThreadComposer had its own hand-rolled copy of the rule that only filtered enabled.

      Both clients now call the shared helper, so the rule has one implementation instead of two that agree until one changes. That was the original point of extracting it, and mobile had quietly drifted back.

      Running total for this round of review: five findings confirmed and fixed, one declined with reasons (the user/project collision claim, which inverts the precedence this file documents and which I could not verify empirically).

      Model: Claude Opus 5 (1M) via Claude Code.

    14. Brechard(GitHub profile, opens in a new tab)commented

      Note

      🤖 Claude Opus 5 writing on behalf of Rodrigo

      Pushed c3962ef and 180e8aa, and updated the description — the design inverted since the screenshots above, so the "What changed" section no longer described what the branch does.

      The inversion. $name is now the default insertion from either menu, and /name is reserved for the single case a mention provably cannot reach: a user-invocation-only skill picked at the start of a message. Earlier the branch keyed the sigil off the trigger alone, so /foo inserted /foo for an ordinary skill — which is worse than $foo, because / only expands at message start whereas $ is forwarded verbatim by every provider and the agent starts the skill from its own tool. Menu rows now render the sigil they are about to insert, so the row cannot promise a syntax the accept handler does not deliver.

      This also answers @marcob896's point on #7671 about inline composition. ok, now $implement all the tickets keeps working, and it is now what picking from either menu gives you away from message start. I did not want to assert that from the code, so I measured it against the SDK: a model-invocable skill named mid-line runs via the Skill tool 2/2, and even a disable-model-invocation skill named mid-message still runs about a third of the time because the tool accepts it by name. $ is the form that degrades gracefully; / mid-message is inert text.

      Two CLI-behaviour fixes, both measured rather than reasoned about.

      c3962ef — skill identity is the directory, not frontmatter name. A skill in probe-alias/ declaring name: probe-alias-frontmatter is published by the CLI as probe-alias, and only skillOverrides["probe-alias"] switches it off. Keying off the frontmatter name reported a command that does not exist and missed the override that disabled it. The same commit runs both frontmatter flags through a YAML 1.1 boolean parser, since user-invocable: no is honoured by the CLI.

      180e8aa — name collisions resolve user-over-project, not project-over-user. Macroscope flagged this and I initially left it as unverified, quoting a code comment that turned out to be false. With the same skill directory name in each scope and a different one-word body in each, claude -p returns the user copy in all three combinations (user + .claude, user + .agents, all three), and a project-only control returns the project copy — so the project root loads fine and the user copy is genuinely winning. Roots are now listed highest precedence first and the first hit wins.

      One thing I found and deliberately did not fix here. A skill that exists only in <workspace>/.agents/skills gets Unknown command from claude 2.1.250 — the CLI does not read that root, so discoverClaudeSkills reports skills from it that cannot run. That is pre-existing and dropping a discovery root is a product call, so it wants its own issue rather than a ride on this one. Say the word and I will open it with the reproduction.

      Checks are green on 180e8aa and the one outstanding review thread is resolved. Approvability now reads "Would Approve (correctness)" with eligibility satisfied.

    15. Thanks for working through the invocation edge cases. I have a concrete cross-provider setup that exposes one remaining gap.

      I maintain a versioned library of 24 shared skills installed for both Claude Code and Codex on Windows through T3 Code. The intended split is 11 explicit-user-only workflows, 9 agent-only helpers, and 4 skills available to both.

      The provider metadata is not symmetrical:

      IntentClaude CodeCodex
      Explicit user onlydisable-model-invocation: trueagents/openai.yaml with policy.allow_implicit_invocation: false
      Agent onlyuser-invocable: falseNo documented equivalent today
      BothNeither restrictionDefault allow_implicit_invocation: true

      The invocation syntax also differs. Claude's user-only skill needs /name at the start of the prompt. Codex documents that an explicit-only skill still runs through $name: https://learn.chatgpt.com/docs/build-skills#optional-metadata

      Because of that, mapping Codex's allow_implicit_invocation: false directly onto the current userInvocationOnly field would produce the wrong insertion syntax. resolveProviderSkillInsertionSigil would choose / even though Codex needs $.

      A provider-neutral representation may need to separate two facts:

      • whether the model may invoke the skill implicitly
      • which sigil the provider uses for explicit invocation

      For example, the server contract could expose an explicit-only flag plus a preferred invocation sigil, or the resolver could remain provider-aware. The exact type names are less important than keeping policy separate from syntax.

      There is also a menu problem that the current showSkillsInSlashMenu boolean cannot express. With it enabled, intentional manual workflows are mixed with general skills such as PDF and document helpers. With it disabled, the manual workflows disappear too.

      A useful three-state setting would be:

      • all user-invocable skills, matching today's true
      • explicit-user-only skills, where implicit invocation is disabled
      • no skills, matching today's false

      In the middle mode, our slash picker would show the 11 workflows meant for manual selection. Agent-only helpers and dual-mode skills would stay out of that filtered view. Codex selections would still insert $name; Claude user-only selections would insert /name.

      The current PR head changes ClaudeSkills.ts and the shared composer behavior, but no Codex discovery code. The remaining work appears to be:

      1. Read agents/openai.yaml during Codex skill discovery.
      2. Preserve Codex's $name syntax for explicit-only skills.
      3. Add the explicit-only menu filter while keeping the current boolean values backward compatible.
      4. Cover Claude and Codex in the shared web and mobile tests.

      This does not require T3 Code to understand a custom Fleet manifest. It can rely only on each provider's documented skill metadata.

    16. Note

      🤖 Claude Fable 5.1 responding on behalf of Theo

      Thank you for this one, Rodrigo. Your discovery work is the foundation of the fix that is landing: the frontmatter flags, the skillOverrides merge across all four settings files, directory-name identity, and the user-scope-wins collision rule all shipped as your commit in #9128, with your authorship kept.

      The piece we changed is where the position rule lives. Instead of choosing $ or / in the composer, the Claude adapter now splits the outgoing message so the mention becomes a trailing /name args text block that the CLI expands itself. That makes a $ mention run from anywhere in the message, including disable-model-invocation skills mid-message, which was the gap you called out honestly in your last comment. Closing this in favor of #9128 so review lands in one place.

Sign in to join this conversation.