tweak: load claude skills first so opencode ones override

pull/6420/head
Aiden Cline 2025-12-29 23:34:29 -06:00
parent 83823959e3
commit dc32eda1e5
1 changed files with 12 additions and 12 deletions

View File

@ -66,18 +66,6 @@ export namespace Skill {
}
}
// Scan .opencode/skill/ directories
for (const dir of await Config.directories()) {
for await (const match of OPENCODE_SKILL_GLOB.scan({
cwd: dir,
absolute: true,
onlyFiles: true,
followSymlinks: true,
})) {
await addSkill(match)
}
}
// Scan .claude/skills/ directories (project-level)
const claudeDirs = await Array.fromAsync(
Filesystem.up({
@ -104,6 +92,18 @@ export namespace Skill {
}
}
// Scan .opencode/skill/ directories
for (const dir of await Config.directories()) {
for await (const match of OPENCODE_SKILL_GLOB.scan({
cwd: dir,
absolute: true,
onlyFiles: true,
followSymlinks: true,
})) {
await addSkill(match)
}
}
return skills
})