Problem#
The composer flattened a selected skill chip into plain $name text. Provider adapters then guessed intent with a regex, so ordinary dollar-prefixed text could be treated as a skill and provider behavior differed.
Fix#
- Preserve selected skill metadata as
{ name, start, end } from web/mobile composers through durable drafts, queued sends, turn-start events, and provider requests. Timeline text stays canonical.
- Send native structured skill inputs to Codex. Claude Code, Cursor, Grok, and OpenCode receive explicitly selected skill documents with their source file for relative references.
- Validate stale, overlapping, disabled, and unknown invocations at the provider boundary. Plain dollar-prefixed text is never inferred as a skill.
- Discover provider skills once per session instead of scanning during send.
- Preserve Claude argument substitution and reject runtime-only skill fields that the fallback cannot safely emulate.
- Discover Cursor skills in the session workspace and use upstream Grok skill discovery, while honoring provider user-invocation visibility.
Verification#
- 470 focused tests across contracts, orchestration, draft/outbox persistence, skill discovery, provider adapters, and upstream Grok reliability paths.
- Contracts, server, shared, web, and mobile typechecks pass. Server reports only existing Effect suggestions.
- Focused lint, formatting, and
git diff --check pass.
Closes #6095
Closes #8758
Implements #7795.
Implemented with GPT-5.6 Codex in the T3 Code harness.
Note
Honor explicit $skill invocations across all providers and clients#
- Adds
ExplicitSkillInvocation schema to contracts and extends thread.turn.start commands, payloads, and ProviderSendTurnInput with optional skillInvocations ranges.
- Each provider adapter (Claude, Cursor, Grok, OpenCode, Codex) now discovers available skills at session start and, when
skillInvocations are present on a turn, replaces raw $skill tokens in the prompt with rendered skill document contents and explicit invocation markers. Unknown or invalid skill references fail early with ProviderAdapterValidationError.
- Web and mobile composers track explicit skill ranges in editor snapshots and draft state, persist them across offline queues, and remap offsets through text trimming and terminal-context appending before send.
- Introduces shared utilities
remapExplicitSkillInvocations and updateExplicitSkillInvocationsForTextEdit to keep ranges valid across text edits.
- Behavioral Change:
ClaudeSkills.parseSkillFrontmatter now uses schema validation and skills with user-invocable: false are excluded from discovery; CursorSkills.discoverCursorSkills scans multiple user and project roots; malformed skill frontmatter in Claude causes ProviderAdapterValidationError on sendTurn; queued thread message schema bumps to version 4.
Macroscope summarized 35bc117.
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:
0d7cda76-d742-4935-8fe9-5d009973a3f2You 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.