Global skills are not loaded #3936

Closed
opened 2026-02-16 17:42:00 -05:00 by yindo · 7 comments
Owner

Originally created by @NimaAra on GitHub (Dec 28, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

As of v1.0.204, skills placed in the global config folder (set by OPENCODE_CONFIG_DIR) are not loaded. Everything else in the global config folder is working as expected e.g. agents, so I know the env var is working as expected.

Also, putting the same skills folder hierarchy in the project directory itself (under .opencode) works, so I know the skill definitions are valid.

OpenCode version

1.0.204

Steps to reproduce

Move the skills out of project folder into a global config folder (set by OPENCODE_CONFIG_DIR)
Clear the session
Prompt: What skills do you have?

Screenshot and/or share link

No response

Operating System

Windows

Terminal

Commandline

Originally created by @NimaAra on GitHub (Dec 28, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description As of v1.0.204, skills placed in the global config folder (set by `OPENCODE_CONFIG_DIR`) are not loaded. Everything else in the global config folder is working as expected e.g. agents, so I know the env var is working as expected. Also, putting the same skills folder hierarchy in the project directory itself (under `.opencode`) works, so I know the skill definitions are valid. ### OpenCode version 1.0.204 ### Steps to reproduce Move the skills out of project folder into a global config folder (set by `OPENCODE_CONFIG_DIR`) Clear the session Prompt: _What skills do you have?_ ### Screenshot and/or share link _No response_ ### Operating System Windows ### Terminal Commandline
yindo added the bug label 2026-02-16 17:42:00 -05:00
yindo closed this issue 2026-02-16 17:42:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 28, 2025):

This issue might be related to existing discussions about skill loading. Please check:

  • #6171: Inconsistency in docs for where to install skills - discusses skill installation paths and configuration directory usage

The related issue discusses documentation inconsistencies around skill installation locations, which may be connected to the loading problem you're experiencing.

@github-actions[bot] commented on GitHub (Dec 28, 2025): This issue might be related to existing discussions about skill loading. Please check: - #6171: Inconsistency in docs for where to install skills - discusses skill installation paths and configuration directory usage The related issue discusses documentation inconsistencies around skill installation locations, which may be connected to the loading problem you're experiencing.
Author
Owner

@OpeOginni commented on GitHub (Dec 28, 2025):

could you write what you get after this opencode run hello --print-logs?

@OpeOginni commented on GitHub (Dec 28, 2025): could you write what you get after this `opencode run hello --print-logs`?
Author
Owner

@NimaAra commented on GitHub (Dec 28, 2025):

Sure, here:

INFO  2025-12-28T14:51:41 +239ms service=default version=1.0.204 args=["run","hello","--print-logs"] opencode
INFO  2025-12-28T14:51:41 +0ms service=default directory=D:\GitHub\ creating instance
INFO  2025-12-28T14:51:41 +1ms service=project directory=D:\GitHub\ fromDirectory
INFO  2025-12-28T14:51:41 +38ms service=default directory=D:\GitHub\ bootstrapping
INFO  2025-12-28T14:51:41 +3ms service=config path=C:\Users\foo\.config\opencode\config.json loading
INFO  2025-12-28T14:51:41 +0ms service=config path=C:\Users\foo\.config\opencode\opencode.json loading
INFO  2025-12-28T14:51:41 +0ms service=config path=C:\Users\foo\.config\opencode\opencode.jsonc loading
INFO  2025-12-28T14:51:41 +3ms service=bun cmd=["C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin\\opencode.exe","add","@opencode-ai/plugin@1.0.204","--exact"] cwd=C:\Users\foo\.config\opencode running
INFO  2025-12-28T14:51:41 +8ms service=config path=D:\GitHub\pc\opencode\opencode.jsonc loading
INFO  2025-12-28T14:51:41 +1ms service=config path=D:\GitHub\pc\opencode\opencode.json loading
INFO  2025-12-28T14:51:41 +11ms service=bun cmd=["C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin\\opencode.exe","add","@opencode-ai/plugin@1.0.204","--exact"] cwd=D:\GitHub\opencode running
INFO  2025-12-28T14:51:41 +18ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.204
...

@NimaAra commented on GitHub (Dec 28, 2025): Sure, here: ``` INFO 2025-12-28T14:51:41 +239ms service=default version=1.0.204 args=["run","hello","--print-logs"] opencode INFO 2025-12-28T14:51:41 +0ms service=default directory=D:\GitHub\ creating instance INFO 2025-12-28T14:51:41 +1ms service=project directory=D:\GitHub\ fromDirectory INFO 2025-12-28T14:51:41 +38ms service=default directory=D:\GitHub\ bootstrapping INFO 2025-12-28T14:51:41 +3ms service=config path=C:\Users\foo\.config\opencode\config.json loading INFO 2025-12-28T14:51:41 +0ms service=config path=C:\Users\foo\.config\opencode\opencode.json loading INFO 2025-12-28T14:51:41 +0ms service=config path=C:\Users\foo\.config\opencode\opencode.jsonc loading INFO 2025-12-28T14:51:41 +3ms service=bun cmd=["C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin\\opencode.exe","add","@opencode-ai/plugin@1.0.204","--exact"] cwd=C:\Users\foo\.config\opencode running INFO 2025-12-28T14:51:41 +8ms service=config path=D:\GitHub\pc\opencode\opencode.jsonc loading INFO 2025-12-28T14:51:41 +1ms service=config path=D:\GitHub\pc\opencode\opencode.json loading INFO 2025-12-28T14:51:41 +11ms service=bun cmd=["C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin\\opencode.exe","add","@opencode-ai/plugin@1.0.204","--exact"] cwd=D:\GitHub\opencode running INFO 2025-12-28T14:51:41 +18ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.0.204 ... ```
Author
Owner

@OpeOginni commented on GitHub (Dec 28, 2025):

What did you set as the OPENCODE_CONFIG_DIR ?

@OpeOginni commented on GitHub (Dec 28, 2025): What did you set as the `OPENCODE_CONFIG_DIR` ?
Author
Owner

@NimaAra commented on GitHub (Dec 28, 2025):

It's set to D:\GitHub\My.Env\apps-pc\opencode

@NimaAra commented on GitHub (Dec 28, 2025): It's set to _D:\GitHub\My.Env\apps-pc\opencode_
Author
Owner

@OpeOginni commented on GitHub (Dec 28, 2025):

Looks like its alright in the logs, loading config from D:\GitHub\My.Env\apps-pc\opencode, only issue is if you didnt follow the right flow /skill/<name>/SKILL.md but you said it works normally.

Does it work if you add the skills to the normal opencode config at C:\Users\foo\.config\opencode ?

@OpeOginni commented on GitHub (Dec 28, 2025): Looks like its alright in the logs, loading config from `D:\GitHub\My.Env\apps-pc\opencode`, only issue is if you didnt follow the right flow `/skill/<name>/SKILL.md` but you said it works normally. Does it work if you add the skills to the normal opencode config at `C:\Users\foo\.config\opencode` ?
Author
Owner

@NimaAra commented on GitHub (Dec 28, 2025):

It turned out I had a runaway opencode.exe process, killing it fixed it. The skills are now correctly being loaded from the configured directory. Thank you for looking into it.

@NimaAra commented on GitHub (Dec 28, 2025): It turned out I had a runaway opencode.exe process, killing it fixed it. The skills are now correctly being loaded from the configured directory. Thank you for looking into it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3936