Skip to content

feat(cli): add [Skill] tag to slash command autocomplete suggestions#27440

Closed
Hariharanpugazh wants to merge 1 commit into
google-gemini:mainfrom
Hariharanpugazh:feat/skill-tag-in-autocomplete
Closed

feat(cli): add [Skill] tag to slash command autocomplete suggestions#27440
Hariharanpugazh wants to merge 1 commit into
google-gemini:mainfrom
Hariharanpugazh:feat/skill-tag-in-autocomplete

Conversation

@Hariharanpugazh

Copy link
Copy Markdown

Summary

Adds a [Skill] tag to skill-backed slash commands in the / autocomplete menu, mirroring the existing [MCP] and [Agent] visual treatment. Makes it immediately obvious which entries in the menu are user-installed skills vs. built-in commands.

Before:

my-skill                      Activate my skill
help                          Show help

After:

my-skill [Skill]              Activate my skill
help                          Show help

Context

The original feature request asked for two things:

  1. Manual skill activation via /skill-name
  2. Skills appearing in the / autocomplete menu (with descriptions)

While digging into the codebase I found that both behaviors were already implemented by SkillCommandLoader (introduced in #21758, with follow-ups in #21942 and #25327). Skills already appear in the menu and /skill-name already activates them via the existing activate_skill tool.

What was missing was the small but useful visual cue: skills had no [Skill] suffix in the suggestion list, unlike MCP prompts ([MCP]) and agents ([Agent]), so they were visually indistinguishable from built-in commands. This PR closes that gap.

If maintainers agree the issue is otherwise complete, this PR can be the final piece before closing #21165.

Changes

  • packages/cli/src/ui/components/SuggestionsDisplay.tsx — add [CommandKind.SKILL]: ' [Skill]' to the COMMAND_KIND_SUFFIX map.
  • packages/cli/src/ui/components/SuggestionsDisplay.test.tsx — new snapshot test mirroring the existing [MCP] test.
  • packages/cli/src/ui/components/__snapshots__/SuggestionsDisplay.test.tsx.snap — generated snapshot for the new test.

Net change: +30 lines, 1 line of production logic.

Testing

  • New snapshot test passes.
  • All 8 existing SkillCommandLoader tests still pass.
  • eslint clean on the modified files.
  • tsc --noEmit clean for the cli package.

Related

Refs #21165

Adds a [Skill] suffix to skill-backed slash commands in the autocomplete suggestion menu, mirroring the existing [MCP] and [Agent] tags. Makes it easy to distinguish skills from built-in commands at a glance.

Refs google-gemini#21165
@Hariharanpugazh Hariharanpugazh requested a review from a team as a code owner May 25, 2026 19:05
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a visual improvement to the CLI slash command autocomplete menu. By adding a [Skill] suffix to skill-backed commands, it aligns the UI with existing patterns used for MCP prompts and agents, making it easier for users to identify the source of available commands.

Highlights

  • Visual UI Enhancement: Added a [Skill] tag to slash command autocomplete suggestions to improve visual distinction between user-installed skills and built-in commands.
  • Testing: Added a new snapshot test to verify the correct rendering of the [Skill] tag in the UI.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@google-cla

google-cla Bot commented May 25, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for displaying a [Skill] tag next to skill commands in the suggestions UI. It updates the COMMAND_KIND_SUFFIX mapping in SuggestionsDisplay.tsx, adds a corresponding unit test in SuggestionsDisplay.test.tsx, and updates the test snapshots. I have no feedback to provide as there are no review comments to address.

@Hariharanpugazh

Copy link
Copy Markdown
Author

@googlebot I signed it!

@gemini-cli

gemini-cli Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Hi there! Thank you for your interest in contributing to Gemini CLI.

To ensure we maintain high code quality and focus on our prioritized roadmap, we only guarantee review and consideration of pull requests for issues that are explicitly labeled as 'help wanted'.

This PR will be closed in 7 days if it remains without that designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding.

@github-actions github-actions Bot added the size/s A small PR label Jun 2, 2026
@gemini-cli

gemini-cli Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This pull request is being closed as it has been open for 14 days without a 'help wanted' designation. We encourage you to find and contribute to existing 'help wanted' issues in our backlog! Thank you for your understanding.

@gemini-cli gemini-cli Bot closed this Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant