@@ -167,14 +167,15 @@ const discoverSkills = Effect.fnUntraced(function* (
167167 discovery : Discovery . Interface ,
168168 fsys : AppFileSystem . Interface ,
169169 global : Global . Interface ,
170+ disableExternalSkills : boolean ,
170171 disableClaudeCodeSkills : boolean ,
171172 directory : string ,
172173 worktree : string ,
173174) {
174175 const state : ScanState = { matches : new Set ( ) , dirs : new Set ( ) }
175176
176177 const externalDirs : string [ ] = [ ]
177- if ( ! Flag . OPENCODE_DISABLE_EXTERNAL_SKILLS ) {
178+ if ( ! disableExternalSkills ) {
178179 if ( ! disableClaudeCodeSkills ) externalDirs . push ( CLAUDE_EXTERNAL_DIR )
179180 externalDirs . push ( AGENTS_EXTERNAL_DIR )
180181
@@ -245,15 +246,16 @@ export const layer = Layer.effect(
245246const flags = yield * RuntimeFlags . Service
246247 const discovered = yield * InstanceState . make (
247248 Effect . fn ( "Skill.discovery" ) ( function * ( ctx ) {
248- return yield * discoverSkills (
249- config ,
250- discovery ,
251- fsys ,
252- global ,
253- flags . disableClaudeCodeSkills ,
254- ctx . directory ,
255- ctx . worktree ,
256- )
249+ return yield * discoverSkills (
250+ config ,
251+ discovery ,
252+ fsys ,
253+ global ,
254+ flags . disableExternalSkills ,
255+ flags . disableClaudeCodeSkills ,
256+ ctx . directory ,
257+ ctx . worktree ,
258+ )
257259 } ) ,
258260 )
259261 const state = yield * InstanceState . make (
0 commit comments