Skip to content

Commit 5e691da

Browse files
committed
fix(skills): search root directory for skills in repos like mindrally/skills
Some skill repositories (e.g., mindrally/skills) have skills directly at the root level rather than in subdirectories like skills/ or .codex/skills/. Add '.' to searchDirs to support this layout.
1 parent 9a55f64 commit 5e691da

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/api/skills/catalog/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ async function handleSkillsShInstall(body: {
433433
const repoRoot = path.join(tmpDir, topDirs[0].name);
434434

435435
// Search for each skill in common skill directories
436+
// Note: "." is for repos where skills are at root level (e.g., mindrally/skills)
436437
const searchDirs = [
438+
".",
437439
"skills",
438440
".agents/skills",
439441
".opencode/skills",
@@ -743,7 +745,8 @@ async function handleSkillsShInstallToDb(body: {
743745
}
744746

745747
const repoRoot = path.join(tmpDir, topDirs[0].name);
746-
const searchDirs = ["skills", ".agents/skills", ".opencode/skills", ".claude/skills", ".codex/skills"];
748+
// Note: "." is for repos where skills are at root level (e.g., mindrally/skills)
749+
const searchDirs = [".", "skills", ".agents/skills", ".opencode/skills", ".claude/skills", ".codex/skills"];
747750

748751
for (const skillName of skillNames) {
749752
// Check if already installed

0 commit comments

Comments
 (0)