-
Notifications
You must be signed in to change notification settings - Fork 13k
feat: invoke Agent Skills via slash commands #21760
Description
What would you like to be added?
Enable the ability to invoke Agent Skills directly via slash commands (e.g., /<skill-name>). This should also support passing optional arguments that are then submitted as a follow-up prompt to the Gemini model (e.g., /<skill-name> hello world).
Additionally, for these explicit client-initiated skill activations, the CLI should bypass user confirmation prompts if the policy engine returns an ASK_USER decision, treating the slash command as implicit user consent.
Why is this needed?
Users want a faster way to trigger specific skills without relying on the model to select them or navigating through the /skills menu. Supporting follow-up prompts allows for a more streamlined "trigger and query" workflow. Bypassing confirmation for these explicit commands reduces friction for power users.
Additional context
This issue is being created retroactively to track the implementation provided in PR #21758.