Fix command-source API for unified skills directory structure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-03-04 14:59:29 -08:00
co-authored by Claude Opus 4.6
parent c026a896aa
commit f0d37e48c7
+1 -2
View File
@@ -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" });