Repository navigation
feat: run Agent Skills as /<skill-name> slash commands - #275
Merged
setoelkahfi merged 1 commit intoNov 17, 2026
Merged
setoelkahfi merged 1 commit into
setoelkahfi merged 1 commit into
Conversation
There was a problem hiding this comment.
This change enables Agent Skills to be invoked as slash commands (/<skill-name> [task]) in both the ACP and TUI clients. The command list now includes skills (unless their names clash with built-in or custom commands), and /help documents the new usage. The implementation introduces a shared slash_prompt function for skill activation, ensures the command list descriptions are concise, and adds comprehensive tests for both the prompt formatting and ACP integration. Previous review points appear addressed, with new tests verifying the feature end-to-end.
Automated review by siGit Code Review · commit ad7fb48 · see the review dashboard
setoelkahfi
force-pushed
the
feature/skill-slash-commands
branch
from
November 7, 2026 09:32
ad7fb48 to
04e4124
Compare
paydii
approved these changes
Nov 7, 2026
setoelkahfi
force-pushed
the
feature/skill-slash-commands
branch
from
November 7, 2026 11:26
04e4124 to
ff610b7
Compare
setoelkahfi
force-pushed
the
feature/skill-slash-commands
branch
from
November 7, 2026 12:31
ff610b7 to
9155d12
Compare
foodandtravel
approved these changes
Nov 12, 2026
An unrecognized slash word fell back to custom commands only, so a skill could not be invoked as /name, and Zed never learned about skills. skills::slash_prompt looks a skill up by name and returns its activation text (shared with the skill tool via render_activation), plus the task when one follows the name. The ACP and TUI Unknown arms try custom commands first, then skills, then report an unknown command. The ACP command list now includes each skill with a "task (optional)" hint and a description cut to one line of about 100 characters. A skill named like a built-in or custom command is skipped with a warning, as custom commands already are. /help mentions /<skill-name>. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
setoelkahfi
force-pushed
the
feature/skill-slash-commands
branch
from
November 17, 2026 09:10
9155d12 to
e33fd32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A skill couldn't be run as
/name, and Zed never heard about skills. Unrecognized slash words only fell back to custom commands.skills::slash_prompt(name, argument)returns the skill's activation text, plusTask: <argument>when a task follows. The formatting is shared with theskilltool throughrender_activation.Unknownarms try custom commands, then skills, then report an unknown command.task (optional)hint and a description cut to one line of about 100 characters. A skill named like a built-in or custom command is skipped with a warning, as custom commands already are./helpmentions/<skill-name>.Test plan:
slash_prompt.acp_skill_commandsputs a skill under an isolated config dir, checks it appears inavailable_commands_update, and checks that/that-skill do xsends a turn whose request contains the skill body and the task.cargo fmt -- --check,cargo clippy --tests -- -D warningsandcargo test --lockedpass.Third PR of the stack. Base is
feature/account-commands-system-status.