feat(slash-commands): type/source indicators, skill invocation & argument hints#5696
Open
Drilmo wants to merge 3 commits intoKilo-Org:mainfrom
Open
feat(slash-commands): type/source indicators, skill invocation & argument hints#5696Drilmo wants to merge 3 commits intoKilo-Org:mainfrom
Drilmo wants to merge 3 commits intoKilo-Org:mainfrom
Conversation
…nd argument hints Enhance the slash command menu with visual type badges, source labels, skill discovery/invocation via "/", type-colored input highlights, and argument-hint ghost text from SKILL.md frontmatter.
🦋 Changeset detectedLatest commit: 6420739 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Summary
Enhances the "/" slash command menu with rich visual metadata, adds skills to the command list, and introduces argument hint ghost text for skills.
Features
Type badges
Each command in the dropdown shows a color-coded badge indicating its type:
command— built-in commands (newtask, condense, etc.)mode— mode switching (code, architect, etc.)workflow— workflow rules (.kilo/rules)skill— installed skills (SKILL.md based)Source labels
Non-built-in items show their origin (
project,global,org) to help disambiguate items with similar names.Type-colored input highlights
When a slash command is typed in the input field, the highlight color matches its type:
Skills in "/" menu
Installed skills are now discoverable and invocable directly from the slash command dropdown. Selecting a skill reads its SKILL.md and injects the content as
<explicit_instructions>(same pattern as workflows).Argument hint ghost text
Skills with an
argument-hintfield in their SKILL.md frontmatter (from the Agent Skills specification) display usage hints as faded ghost text after the command. The hint disappears when the user starts typing arguments, and yields to FIM autocomplete when active.Changed files
src/shared/skills.tsargumentHint?toSkillMetadatasrc/services/skills/SkillsManager.tsargument-hintfrom SKILL.md frontmattersrc/core/slash-commands/kilo.tsparseKiloSlashCommandssrc/core/task/Task.tsSkillsManagerto slash command parsersrc/core/webview/webviewMessageHandler.tswebview-ui/src/context/ExtensionStateContext.tsxskillsstate +skillsDatamessage handlerwebview-ui/src/utils/slash-commands.tsSlashCommandType,SlashCommandSource,SkillInfo,findSlashCommand(), skills parameter to all functionswebview-ui/src/components/chat/SlashCommandMenu.tsxwebview-ui/src/components/chat/ChatTextArea.tsxwebview-ui/src/kilocode.cssTest plan
argument-hintfrontmatter and verify ghost text appears after the commandpnpm run check-typespasses (22/22)pnpm run lintpasses (18/18, 0 warnings)pnpm vitest runpasses (515 files, 7831 tests)