Skip to content

feat: run Agent Skills as /<skill-name> slash commands - #275

Merged
setoelkahfi merged 1 commit into
feature/account-commands-system-statusfrom
feature/skill-slash-commands
Nov 17, 2026
Merged

setoelkahfi merged 1 commit into
feature/account-commands-system-statusfrom
feature/skill-slash-commands

Conversation

@setoelkahfi

@setoelkahfi setoelkahfi commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

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, plus Task: <argument> when a task follows. The formatting is shared with the skill tool through render_activation.
  • The ACP and TUI Unknown arms try custom commands, 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>.

Test plan:

  • Unit test for slash_prompt.
  • acp_skill_commands puts a skill under an isolated config dir, checks it appears in available_commands_update, and checks that /that-skill do x sends a turn whose request contains the skill body and the task.
  • cargo fmt -- --check, cargo clippy --tests -- -D warnings and cargo test --locked pass.

Third PR of the stack. Base is feature/account-commands-system-status.

@setoelkahfi
setoelkahfi added this pull request to stack #277 October 29, 2026 16:37
@setoelkahfi
setoelkahfi marked this pull request as ready for review October 29, 2026 16:55
@setoelkahfi
setoelkahfi requested a review from paydii October 29, 2026 16:55
@setoelkahfi setoelkahfi self-assigned this Oct 29, 2026

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread crates/cli/src/main.rs Resolved
@setoelkahfi
setoelkahfi force-pushed the feature/skill-slash-commands branch from ad7fb48 to 04e4124 Compare November 7, 2026 09:32

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@setoelkahfi
setoelkahfi force-pushed the feature/skill-slash-commands branch from 04e4124 to ff610b7 Compare November 7, 2026 11:26

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good from my side.

@setoelkahfi
setoelkahfi force-pushed the feature/skill-slash-commands branch from ff610b7 to 9155d12 Compare November 7, 2026 12:31

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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
setoelkahfi force-pushed the feature/skill-slash-commands branch from 9155d12 to e33fd32 Compare November 17, 2026 09:10

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Ship it.

@setoelkahfi
setoelkahfi merged commit 12d61fb into development Nov 17, 2026
9 checks passed
@setoelkahfi
setoelkahfi deleted the feature/skill-slash-commands branch November 17, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants