npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-plugin-superpower

v0.1.3

Published

Superpower plugin for OpenCode

Downloads

282

Readme

Superpower — Extensible Agent Capabilities Plugin

Superpower is an OpenCode plugin that dynamically loads agents, skills, and commands from the superpowers repository. It extends OpenCode with custom agents and capabilities without requiring code changes.

Architecture

Startup → Clone superpowers repo → Load agents → Register skills → Register commands → Ready
  • Dynamic Agent Loading: Loads agent definitions from ~/.superpowers/agents/
  • Skill Registry: Registers skills from ~/.superpowers/skills/
  • Command Templates: Registers command templates from ~/.superpowers/commands/

How It Works

On first load, Superpower clones the superpowers repository to ~/.superpowers/. It then:

  1. Scans ~/.superpowers/agents/*.md and registers agents with OpenCode
  2. Scans ~/.superpowers/skills/*/SKILL.md and registers them as skills
  3. Scans ~/.superpowers/commands/*.md and registers them as commands

The superpowers repo is cloned once and reused on subsequent runs.

Quick Start

1. Register Plugin

In .opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "./plugins/superpower/index.ts"
  ]
}

2. Use

Use any agent defined in the superpowers repository:

@<agent-name> Your task description here

For example, if the superpowers repo contains a reviewer agent:

@reviewer Review the authentication module

3. Use Skills

Skills are registered with the superpowers/ prefix:

@superpowers/reviewer Review the authentication module

4. Use Commands

Commands are available directly:

/<command-name> argument1 argument2

Agent Format

Agents are defined in Markdown files with YAML frontmatter in ~/.superpowers/agents/:

---
name: reviewer
description: Code reviewer agent that provides constructive feedback
mode: subagent
---

You are an experienced code reviewer. Your role is to:
1. Understand the code changes
2. Identify potential issues
3. Provide constructive feedback
4. Suggest improvements

Frontmatter Fields

| Field | Type | Required | Description | |-------|------|----------|-------------| | name | string | No | Agent name (defaults to filename without .md) | | description | string | No | Agent description shown in OpenCode | | mode | string | No | Agent mode: subagent, primary, or all (default: subagent) |

Skill Format

Skills are directories in ~/.superpowers/skills/ containing a SKILL.md file:

~/.superpowers/skills/
└── reviewer/
    └── SKILL.md

SKILL.md uses YAML frontmatter:

---
description: Review code changes and provide feedback
---

# Code Review Skill

You are an expert code reviewer. When invoked:
1. Read the diff or changed files
2. Analyze for bugs, security issues, performance problems
3. Check for code style consistency
4. Provide actionable feedback

Command Format

Commands are Markdown files in ~/.superpowers/commands/:

---
name: review
description: Review code changes
---

Review the following code changes:
$ARGUMENTS

The $ARGUMENTS placeholder is replaced with user input.

Configuration

No configuration required! Superpower automatically clones and loads from ~/.superpowers/.

Manual Override

If you want to use a different superpowers location, you can set the environment variable:

export SUPERPOWERS_DIR=/path/to/your/superpowers

Directory Structure

.opencode/
├── opencode.json              # Plugin registration
└── plugins/
    └── superpower/
        └── index.ts           # Plugin entry point

Troubleshooting

Superpowers not being loaded

  1. Check that ~/.superpowers/ exists
  2. Verify the directory contains agents/, skills/, and commands/ subdirectories
  3. Check that Markdown files have proper frontmatter

Agents not appearing

  1. Verify agent files are in ~/.superpowers/agents/*.md
  2. Check that frontmatter has valid mode field
  3. Ensure the Markdown body is not empty

Skills/Commands not working

  1. Verify skill directories contain SKILL.md
  2. Check command files have proper frontmatter
  3. Ensure $ARGUMENTS placeholder is used for commands that need user input

See Also