We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3ae08 commit f2e65e4Copy full SHA for f2e65e4
packages/opencode/src/skill/skill.ts
@@ -81,13 +81,20 @@ export namespace Skill {
81
}
82
83
for (const dir of claudeDirs) {
84
- for await (const match of CLAUDE_SKILL_GLOB.scan({
85
- cwd: dir,
86
- absolute: true,
87
- onlyFiles: true,
88
- followSymlinks: true,
89
- dot: true,
90
- })) {
+ const matches = await Array.fromAsync(
+ CLAUDE_SKILL_GLOB.scan({
+ cwd: dir,
+ absolute: true,
+ onlyFiles: true,
+ followSymlinks: true,
+ dot: true,
91
+ }),
92
+ ).catch((error) => {
93
+ log.error("failed .claude directory scan for skills", { dir, error })
94
+ return []
95
+ })
96
+
97
+ for (const match of matches) {
98
await addSkill(match)
99
100
0 commit comments