Skip to content

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

@turkeryildirim

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions