From 1d820229789eaad8d7d06c1721624064e95fdd4c Mon Sep 17 00:00:00 2001
From: Charlike Mike Reagent <5038030+tunnckoCore@users.noreply.github.com>
Date: Wed, 1 Apr 2026 20:58:53 +0300
Subject: [PATCH] fix: clarify nested skill labels in skills menu
---
src/components/skills/SkillsMenu.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/components/skills/SkillsMenu.tsx b/src/components/skills/SkillsMenu.tsx
index 875b8dbb..86d65cdb 100644
--- a/src/components/skills/SkillsMenu.tsx
+++ b/src/components/skills/SkillsMenu.tsx
@@ -44,6 +44,10 @@ function getSourceSubtitle(source: SkillSource, skills: SkillCommand[]): string
const hasCommandsSkills = skills.some(s => s.loadedFrom === 'commands_DEPRECATED');
return hasCommandsSkills ? `${skillsPath}, ${getDisplayPath(getSkillsPath(source, 'commands'))}` : skillsPath;
}
+function getSkillListLabel(skill: SkillCommand): string {
+ const leafName = skill.name.split(':').pop() ?? skill.name;
+ return leafName === skill.name ? skill.name : `${skill.name} - ${leafName}`;
+}
export function SkillsMenu(t0) {
const $ = _c(35);
const {
@@ -226,7 +230,7 @@ function _temp3(skill_0) {
const estimatedTokens = estimateSkillFrontmatterTokens(skill_0);
const tokenDisplay = `~${formatTokens(estimatedTokens)}`;
const pluginName = skill_0.source === "plugin" ? skill_0.pluginInfo?.pluginManifest.name : undefined;
- return {getCommandName(skill_0)}{pluginName ? ` · ${pluginName}` : ""} · {tokenDisplay} description tokens;
+ return {getSkillListLabel(skill_0)}{pluginName ? ` · ${pluginName}` : ""} · {tokenDisplay} description tokens;
}
function _temp2(a, b) {
return getCommandName(a).localeCompare(getCommandName(b));