[FEATURE]: VS Code, render slash-command & skill invocations as pills instead of inline text (mid-message `/` trigger + collapsed transcript turn)
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Current behavior
Skill/slash invocations are treated as raw inline text instead of compact references like @-mentions. Two symptoms:
- The
/picker only fires at the start of a message. Mid-sentence/does nothing, becauseSLASH_PATTERNis anchored to position 0 — unlikeAT_PATTERN((?:^|\s)), which also fires after whitespace. - Sending a
/skilldumps its whole body into my turn. The server expands the skill'sSKILL.mdinto the message parts (prompt.ts), replacing the compact/reviewI briefly see (optimistic render) with a wall of text. Correct for feeding the model, but my transcript turn should stay a compact reference.
The request
Both of the above symptoms reduce to one idea: a skill invocation should render as a pill (display decoupled from payload), like @-mentions and the attachment pills (see relationship to #12831 below).
Example in Copilot VSCode of pill-styled skill with description hoverable:
Example in Claude Code of a skill picker loaded mid-sentence:
Proposed behavior
- Trigger mid-message — widen
SLASH_PATTERNto/(?:^|\s)\/(\S*)$/. Note the submit path is also start-anchored (/^\/(\S+)/) and dispatches the command as the whole message viasendCommand(name, args), so recognizing a mid-message command on submit is a second change, not just the picker regex. - Pill in the composer — on selection, insert a styled token instead of the current plain-text
/${cmd.name}; reuse the@-mention insertion/rendering path (useFileMention.ts). - Pill in the transcript — render a sent skill turn as a collapsed
/review+ expandable body. Blocker: the non-subtask path builds the turn purely from the expanded template (prompt.ts) and persists no command marker — name/args survive only inCommand.Event.Executedtelemetry — so origin metadata must be persisted on the turn first. The subtask card andskilltool already carry it — this makes the default-agent path consistent.
Scope: apply pills to skill/template-backed commands (surfaced via fromSkill, source: "skill"). Leave pure action commands (/new, /models, /compact) — which clear the input and run locally (client-action branch) — as-is.
Why
Parity with the @-mention / attachment-pill UX (#12831), a cleaner transcript, and the ability to reference a skill mid-sentence — and, depending on the open question below, to compose multiple skills in one message. It also removes an existing inconsistency: subagent-routed skills (subtask card) and model-invoked skills (skill tool) already display compactly; only a user-typed /skill on the default agent inlines the whole body.
Relationship to #12831
Same "pill, not inline bloat" principle as #12831, applied to executable /-command/skill invocations. Filing separately because it's post-send transcript rendering plus a server-side metadata/dispatch change, not the composer attachment-pill work already in flight.
Open extra thought / question: should a mid-message skill pill expand inline, or ride as a separate part (like the skill tool) so multiple skills can chain in one message?
@ehudc
There is a bug when using the command.
For example, when using /skill1 (e.g., /impeccable).
It loads all the files of the skill to the prompts, which is incorrect (it load all files to the prompt eg: 1000 lines with is insane).
It should keep the same format.
This happened with all command and with all kilo versions.
I don't know if it's incorrect or unintended or actually intended. That's why this is a feature request instead of a bug. I clarified the description to explicitly separate current behavior from requested.
@ehudc It should load the skills and the command like the cli behaviour, load it and run it without showing it in the prompt
Not sure I understand, I don't use the cli to know what that looks like. But regardless, the request sounds extremely similar: stop loading the entire skill in the prompt. I go further to point out how it appears in other tools, for example in one as a pill in-line, which is how I've seen it done to enable multiple skill references in a single message.
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please reopen it or create a fresh new one.