diff --git a/src/components/PromptInput/PromptInputFooterSuggestions.tsx b/src/components/PromptInput/PromptInputFooterSuggestions.tsx
index 0728e5255..7a5d70260 100644
--- a/src/components/PromptInput/PromptInputFooterSuggestions.tsx
+++ b/src/components/PromptInput/PromptInputFooterSuggestions.tsx
@@ -163,7 +163,11 @@ const SuggestionItemRow = memo(function SuggestionItemRow({
{paddedDisplayText}
- {tagText ? {tagText} : null}
+ {tagText ? (
+
+ {tagText}
+
+ ) : null}
{
+ switch (source) {
+ case 'projectSettings':
+ case 'localSettings':
+ return { label: 'local', color: 'yellow' }
+ case 'userSettings':
+ return { label: 'global', color: 'cyan' }
+ case 'policySettings':
+ return { label: 'managed', color: 'magenta' }
+ default:
+ return undefined
+ }
+ }
+
const renderSkill = (skill: SkillCommand) => {
const estimatedTokens = estimateSkillFrontmatterTokens(skill)
const tokenDisplay = `~${formatTokens(estimatedTokens)}`
@@ -146,10 +162,14 @@ export function SkillsMenu({ onExit, commands }: Props): React.ReactNode {
skill.source === 'plugin'
? skill.pluginInfo?.pluginManifest.name
: undefined
+ const scopeTag = getScopeTag(skill.source as SkillSource)
return (
{getCommandName(skill)}
+ {scopeTag && (
+ [{scopeTag.label}]
+ )}
{pluginName ? ` · ${pluginName}` : ''} · {tokenDisplay} description
tokens
@@ -187,7 +207,9 @@ export function SkillsMenu({ onExit, commands }: Props): React.ReactNode {
>
{renderSkillGroup('projectSettings')}
+ {renderSkillGroup('localSettings')}
{renderSkillGroup('userSettings')}
+ {renderSkillGroup('flagSettings')}
{renderSkillGroup('policySettings')}
{renderSkillGroup('plugin')}
{renderSkillGroup('mcp')}
diff --git a/src/utils/suggestions/commandSuggestions.ts b/src/utils/suggestions/commandSuggestions.ts
index 4a90db550..293f63998 100644
--- a/src/utils/suggestions/commandSuggestions.ts
+++ b/src/utils/suggestions/commandSuggestions.ts
@@ -271,6 +271,15 @@ function createCommandSuggestionItem(
const aliasText = matchedAlias ? ` (${matchedAlias})` : ''
const isWorkflow = cmd.type === 'prompt' && cmd.kind === 'workflow'
+
+ // Show "local" tag for project-scoped prompt commands
+ const scopeTag =
+ cmd.type === 'prompt' &&
+ !isWorkflow &&
+ (cmd.source === 'projectSettings' || cmd.source === 'localSettings')
+ ? 'local'
+ : undefined
+
const fullDescription =
(isWorkflow ? cmd.description : formatDescriptionWithSource(cmd)) +
(cmd.type === 'prompt' && cmd.argNames?.length
@@ -280,7 +289,7 @@ function createCommandSuggestionItem(
return {
id: getCommandId(cmd),
displayText: `/${commandName}${aliasText}`,
- tag: isWorkflow ? 'workflow' : undefined,
+ tag: isWorkflow ? 'workflow' : scopeTag,
description: fullDescription,
metadata: cmd,
}