From f0d37e48c70e69e0e0d25c42d08405af601ffa82 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Wed, 4 Mar 2026 14:59:29 -0800 Subject: [PATCH] Fix command-source API for unified skills directory structure Co-Authored-By: Claude Opus 4.6 --- api/command-source/[id].js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/command-source/[id].js b/api/command-source/[id].js index 4a74caaf6..5ed6de8c3 100644 --- a/api/command-source/[id].js +++ b/api/command-source/[id].js @@ -9,8 +9,7 @@ const PROJECT_ROOT = join(__dirname, "../.."); export default function handler(req, res) { try { const { id } = req.query; - const sourceDir = join(PROJECT_ROOT, "source"); - const commandPath = join(sourceDir, "commands", `${id}.md`); + const commandPath = join(PROJECT_ROOT, "source", "skills", id, "SKILL.md"); if (!existsSync(commandPath)) { return res.status(404).json({ error: "Command not found" });