Skip to content

Global skills are not loaded #6292

Closed
Closed

Description

@NimaAra

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

Activity

  1. github-actions commented on Dec 28, 2025

    @github-actions
    Contributor

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

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

  2. OpeOginni commented on Dec 28, 2025

    @OpeOginni
    Contributor

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

  3. NimaAra commented on Dec 28, 2025

    @NimaAra
    Author

    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
    ...
    
    
  4. OpeOginni commented on Dec 28, 2025

    @OpeOginni
    Contributor

    What did you set as the OPENCODE_CONFIG_DIR ?

  5. NimaAra commented on Dec 28, 2025

    @NimaAra
    Author

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

  6. OpeOginni commented on Dec 28, 2025

    @OpeOginni
    Contributor

    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 ?

  7. NimaAra commented on Dec 28, 2025

    @NimaAra
    Author

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions