Open Code教程(五)| Skills 之 Superpowers 安装

张开发
2026/4/22 15:05:38 15 分钟阅读

分享文章

Open Code教程(五)| Skills 之 Superpowers 安装
Open Code教程五| Skills 之 Superpowers 安装官方安装方式为什么 Windows 上用不了Windows 安装方式安装步骤更新卸载验证官方安装方式相关链接https://github.com/obra/superpowers/blob/main/.opencode/INSTALL.md// opencode.json{plugin:[superpowersgithttps://github.com/obra/superpowers.git]}重启 OpenCode 后自动安装。为什么 Windows 上用不了Bun 在 Windows 上下载 git 包时存在 SSL 证书验证问题error: UNABLE_TO_VERIFY_LEAF_SIGNATURE downloading tarball superpowersgithub:obra/superpowersmacOS/Linux 正常Windows 失败。Windows 安装方式安装步骤# 1. 克隆仓库删除旧的重新克隆Remove-Item-Path$env:USERPROFILE\.config\opencode\superpowers-Recurse-Force-ErrorAction SilentlyContinue git clone--depth 1 https://github.com/obra/superpowers.git$env:USERPROFILE\.config\opencode\superpowers# 2. 创建目录公共目录不存在才创建if(-not(Test-Path$env:USERPROFILE\.config\opencode\plugins)){New-Item-ItemType Directory-Path$env:USERPROFILE\.config\opencode\plugins|Out-Null}if(-not(Test-Path$env:USERPROFILE\.config\opencode\skills)){New-Item-ItemType Directory-Path$env:USERPROFILE\.config\opencode\skills|Out-Null}# 3. 复制插件文件直接覆盖确保最新Copy-Item-Path$env:USERPROFILE\.config\opencode\superpowers\.opencode\plugins\superpowers.js-Destination$env:USERPROFILE\.config\opencode\plugins\superpowers.js-Force# 4. 创建链接已存在则重建确保指向正确if(Test-Path$env:USERPROFILE\.config\opencode\skills\superpowers){Remove-Item-Path$env:USERPROFILE\.config\opencode\skills\superpowers-Force}New-Item-ItemType Junction-Path$env:USERPROFILE\.config\opencode\skills\superpowers-Target$env:USERPROFILE\.config\opencode\superpowers\skills|Out-Null更新cd$env:USERPROFILE\.config\opencode\superpowersgit pull卸载# 删除插件文件Remove-Item-Path$env:USERPROFILE\.config\opencode\plugins\superpowers.js-Force-ErrorAction SilentlyContinue# 删除 skills 链接Remove-Item-Path$env:USERPROFILE\.config\opencode\skills\superpowers-Force-ErrorAction SilentlyContinue# 删除仓库Remove-Item-Path$env:USERPROFILE\.config\opencode\superpowers-Recurse-Force-ErrorAction SilentlyContinue验证重启 OpenCode输入Tell me about your superpowers

更多文章