Skip to main content
Install Superpowers on OpenCode using the plugin system and native skill discovery. OpenCode loads plugins at startup and discovers skills from ~/.config/opencode/skills/.

Prerequisites

  • OpenCode.ai installed
  • Git installed
  • Terminal access (Bash, PowerShell, Command Prompt, or Git Bash)

Quick Install

The fastest way is to tell OpenCode:
Clone https://github.com/obra/superpowers to ~/.config/opencode/superpowers, then create directory ~/.config/opencode/plugins, then symlink ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js to ~/.config/opencode/plugins/superpowers.js, then symlink ~/.config/opencode/superpowers/skills to ~/.config/opencode/skills/superpowers, then restart opencode.
OpenCode will execute these steps automatically.

Manual Installation

For manual control, follow these platform-specific instructions:
1

Clone Superpowers

Install or update Superpowers:
if [ -d ~/.config/opencode/superpowers ]; then
  cd ~/.config/opencode/superpowers && git pull
else
  git clone https://github.com/obra/superpowers.git ~/.config/opencode/superpowers
fi
2

Create Directories

Ensure plugin and skill directories exist:
mkdir -p ~/.config/opencode/plugins ~/.config/opencode/skills
3

Create Plugin Symlink

Register the Superpowers plugin:
rm -f ~/.config/opencode/plugins/superpowers.js
ln -s ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js ~/.config/opencode/plugins/superpowers.js
4

Create Skills Symlink

Make skills discoverable:
rm -rf ~/.config/opencode/skills/superpowers
ln -s ~/.config/opencode/superpowers/skills ~/.config/opencode/skills/superpowers
5

Restart OpenCode

Restart OpenCode to load the plugin and discover skills.
6

Verify Installation

Check both symlinks:
ls -l ~/.config/opencode/plugins/superpowers.js
ls -l ~/.config/opencode/skills/superpowers
Both should show symlinks pointing to the superpowers directory.Ask OpenCode:
Do you have superpowers?

How It Works

Superpowers integrates with OpenCode through two mechanisms:

Plugin System

The plugin (~/.config/opencode/plugins/superpowers.js) uses OpenCode’s experimental.chat.system.transform hook to inject the “using-superpowers” skill content into every chat request. This ensures Superpowers workflows are always active.

Native Skill Discovery

OpenCode discovers skills from:
  1. Project skills (.opencode/skills/) - Highest priority
  2. Personal skills (~/.config/opencode/skills/)
  3. Superpowers skills (~/.config/opencode/skills/superpowers/) - via symlink
Use OpenCode’s native skill tool to list and load skills.

Using Skills

1

List Available Skills

use skill tool to list skills
This shows all discovered skills including Superpowers.
2

Load a Specific Skill

use skill tool to load superpowers/brainstorming
Explicitly load a skill by its path.
3

Automatic Activation

Skills activate automatically based on context:
Help me design a new feature for user authentication
The agent should automatically load the brainstorming skill.

Tool Mapping

Superpowers skills written for Claude Code are automatically adapted for OpenCode:
  • TodoWriteupdate_plan (OpenCode’s planning tool)
  • Task with subagents@mention system (OpenCode’s agent mentions)
  • Skill tool → OpenCode’s native skill tool
  • File operations → Native OpenCode tools
The plugin bootstrap provides these mapping instructions automatically.

Creating Personal Skills

1

Create Skill Directory

mkdir -p ~/.config/opencode/skills/my-skill
2

Write Skill File

Create ~/.config/opencode/skills/my-skill/SKILL.md:
---
name: my-skill
description: Use when [condition] - [what it does]
---

# My Skill

[Your skill instructions here]
3

Restart OpenCode

Restart to discover the new skill.

Creating Project Skills

Add project-specific skills in your repository:
mkdir -p .opencode/skills/my-project-skill
Create .opencode/skills/my-project-skill/SKILL.md with the same structure as personal skills. Skill Priority: Project skills override personal skills, which override Superpowers skills.

Updating

Update to the latest version:
cd ~/.config/opencode/superpowers
git pull
Restart OpenCode to load updates.

Troubleshooting

Symptom: Superpowers context not injectedSolutions:
  • Check plugin exists: ls ~/.config/opencode/superpowers/.opencode/plugins/superpowers.js
  • Verify symlink: ls -l ~/.config/opencode/plugins/superpowers.js
  • Check logs: opencode run "test" --print-logs --log-level DEBUG
  • Look for “superpowers” in log output
  • Ensure OpenCode version supports experimental.chat.system.transform hook
Symptom: Cannot load Superpowers skillsSolutions:
  • Verify skills symlink: ls -l ~/.config/opencode/skills/superpowers
  • Should point to ~/.config/opencode/superpowers/skills/
  • Use skill tool to list available skills
  • Check SKILL.md files have valid YAML frontmatter
  • Restart OpenCode after creating symlinks
Symptom: Plugin fails to load with module errorSolutions:
  • Git Bash ln -sf copies files instead of creating symlinks
  • Use mklink with cmd //c instead (see Git Bash instructions)
  • Run git config --global core.symlinks true and re-clone
Symptom: “Cannot create a file when that file already exists”Solutions:
  • Remove existing symlinks first (step 3 in installation)
  • Manually delete: del %USERPROFILE%\.config\opencode\plugins\superpowers.js
  • Then retry symlink creation
Symptom: Agent doesn’t mention SuperpowersSolutions:
  • Verify using-superpowers skill exists: ls ~/.config/opencode/superpowers/skills/using-superpowers/SKILL.md
  • Check plugin loaded in OpenCode logs
  • Restart OpenCode after plugin installation
  • Test: ask “what superpowers do you have?”

Testing Your Installation

Verify everything works:
# Check plugin loads
opencode run --print-logs "hello" 2>&1 | grep -i superpowers

# Check skills are discoverable
opencode run "use skill tool to list all skills" 2>&1 | grep -i superpowers

# Check bootstrap injection
opencode run "what superpowers do you have?"
The agent should mention having Superpowers and list skills from the superpowers/ namespace.

Uninstalling

Remove the symlinks:
rm ~/.config/opencode/plugins/superpowers.js
rm ~/.config/opencode/skills/superpowers
Windows (PowerShell):
Remove-Item "$env:USERPROFILE\.config\opencode\plugins\superpowers.js"
Remove-Item "$env:USERPROFILE\.config\opencode\skills\superpowers"
Optionally delete the clone:
rm -rf ~/.config/opencode/superpowers
Windows (PowerShell):
Remove-Item -Recurse -Force "$env:USERPROFILE\.config\opencode\superpowers"

Next Steps

Quick Start

Learn the Superpowers workflow

Skills Reference

Browse all available skills

Writing Skills

Create custom skills

Troubleshooting

Common issues and solutions