Skip to content

Skills fail to load on Windows due to Expand-Archive using PowerShell 5.1 instead of configured pwsh shell #29957

Closed as not planned

Description

@turkeryildirim

Description

Even with "shell": "pwsh" configured, skill loading uses Windows PowerShell 5.1's Expand-Archive, which fails with CouldNotAutoloadMatchingModule. Skill files already exist on disk at ~/.opencode/skills/kotlin/ so the ZIP extraction step should be skipped or should respect the shell config.

power shell 7.6.2 is installed.

`→ Skill "kotlin"
Expand-Archive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
At line:1 char:50

  • ... lobal:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Litera ...
  •                                                ~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Expand-Archive:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CouldNotAutoloadMatchingModule`

Plugins

No response

OpenCode version

1.15.12

Steps to reproduce

unzip below file to ~/.opencode/skills
kotlin.zip

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

powershell 7.6.2

Activity

  1. github-actions commented on May 30, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct (e.g. the skills ZIP already exists and extraction should be skipped entirely), please clarify that in your report.

  2. turkeryildirim commented on May 30, 2026

    @turkeryildirim
    Author

    additional test: blank project with simple readme.md file. i gave one simple prompt : "read the readme file" no extra skills/agents are registered.

    error:
    ✱ Glob "README*"
    Expand-Archive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module co
    uld not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
    At line:1 char:50

    • ... lobal:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Litera ...
    •                                                ~~~~~~~~~~~~~~
      
      • CategoryInfo : ObjectNotFound: (Expand-Archive:String) [], CommandNotFoundException
      • FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
  3. github-actions commented on Jul 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions