Skip to content

The design language that makes your AI harness better at design.

JavaScript

Fix command-source API for unified skills directory structure

Paul Bakausf0d37e48c70e
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" });