From 13194fecbe575e83bd6f366e2aca1d92922ccd24 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 8 Dec 2025 16:14:30 -0500 Subject: [PATCH] fix(web): correct skill detection to look for SKILL.md instead of prompt.md The Skills page was only showing 4 skills instead of 38 because it was looking for prompt.md files instead of SKILL.md files in the skills directory. Updated the detection logic to check for SKILL.md for skills and prompt.md for agents. --- src/web-server/shared-routes.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/web-server/shared-routes.ts b/src/web-server/shared-routes.ts index fc7d768b..6c56c993 100644 --- a/src/web-server/shared-routes.ts +++ b/src/web-server/shared-routes.ts @@ -75,8 +75,9 @@ function getSharedItems(type: 'commands' | 'skills' | 'agents'): SharedItem[] { for (const entry of entries) { if (entry.isDirectory()) { - // Skill/Agent: look for prompt.md - const promptPath = path.join(sharedDir, entry.name, 'prompt.md'); + // Skill/Agent: look for SKILL.md for skills, prompt.md for agents + const markdownFile = type === 'skills' ? 'SKILL.md' : 'prompt.md'; + const promptPath = path.join(sharedDir, entry.name, markdownFile); if (fs.existsSync(promptPath)) { const content = fs.readFileSync(promptPath, 'utf8'); const description = extractDescription(content);