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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dalatindustries/superpowers

v1.0.3

Published

Enhanced Obra Superpowers integration for Roo Code - pass-through NPM package that always pulls latest upstream

Downloads

444

Readme

@dalatindustries/superpowers

Enhanced Obra Superpowers integration for Roo Code

A pass-through NPM package that installs obra/superpowers with adaptive enhancements for better Claude integration.

What This Package Does

  1. Always Gets Latest - Downloads fresh copy of obra/superpowers from GitHub on every install
  2. Adaptive Enhancements - Applies improvements that work across upstream changes
  3. Zero Maintenance - No fork to maintain, updates flow through automatically
  4. Graceful Degradation - Core installation succeeds even if enhancements fail

Installation

npm install @dalatindustries/superpowers

This will:

  • Download latest obra/superpowers to ~/.roo/superpowers
  • Apply adaptive enhancements (if applicable)
  • Create automatic backups

Configuration

Add to your Roo Code configuration (.roo/config.json):

{
  "skillsDirectory": "~/.roo/superpowers/skills",
  "modesDirectory": "~/.roo/superpowers/agents",
  "commandsDirectory": "~/.roo/superpowers/commands"
}

Usage

Update to Latest

Pull the latest obra/superpowers:

npm run update

Repair Installation

If enhancements failed or installation is broken:

npm run repair

Uninstall

Remove superpowers with optional backup:

npm run uninstall

How It Works

Pass-Through Architecture

Unlike traditional NPM packages, this is a pass-through package:

Traditional Package:        Pass-Through Package:
npm install                 npm install
    ↓                           ↓
install package code        download upstream (obra/superpowers)
    ↓                           ↓
done                        apply enhancements
                                ↓
                            done

Benefits:

  • ✅ Always get latest upstream updates
  • ✅ Zero maintenance burden
  • ✅ Proper attribution to obra
  • ✅ Minimal code to maintain

Adaptive Enhancement System

Instead of fragile static patches, we use dynamic detection and injection:

# Static Patch (fragile)
patch -p1 < changes.patch  # Breaks when upstream changes

# Adaptive Enhancement (robust)
1. Detect current structure
2. Generate enhancement code
3. Inject at safe locations
4. Validate and rollback if needed

How It Adapts:

| Upstream Change | Impact | Reason | |----------------|--------|--------| | New skills added | ✅ None | Dynamic discovery | | File renamed | ⚠️ Graceful skip | Detection handles missing files | | Internals changed | ✅ None (95%) | Append-only injection | | Structure changed | ⚠️ Graceful skip | Validation with rollback | | File removed | ⚠️ Graceful skip | Core install proceeds |

Error Handling

Fail-Fast on Critical Errors:

  • Git not installed → Stop
  • Network failure → Stop
  • Repository invalid → Stop

Graceful Degradation on Enhancements:

  • Enhancement fails → Core install proceeds
  • User notified → Can retry with npm run repair
  • Automatic backups → Can always recover

What Gets Enhanced

Currently enhancing Option 1: Session Hook Improvements

  • Detects session hook location (.roo/, .codex/, root)
  • Injects skill summary display code
  • Shows Claude list of available skills on session start
  • Future-proof: Adapts to upstream structure changes

Note: Current obra/superpowers doesn't include session hooks yet, so enhancements are skipped. Core installation still works perfectly - you get all 20+ skills ready to use.

Files and Directories

~/.roo/
├── superpowers/              # Installed obra/superpowers
│   ├── skills/              # 20+ skills
│   ├── agents/              # Custom modes
│   ├── commands/            # Slash commands
│   └── .codex/              # Installation metadata
├── .backups/                # Automatic backups
│   └── superpowers-YYYYMMDD-HHMMSS/
└── .tmp/                    # Temporary clone location

Troubleshooting

Installation fails with git error

Cause: Git not installed or network issue

Fix:

# macOS
brew install git

# Verify
git --version

Enhancement fails but install succeeded

Cause: Upstream structure changed

Impact: Core superpowers work, just no enhanced features

Fix:

npm run repair  # Retry enhancements

Want to see previous installation

Backups located at: ~/.roo/.backups/superpowers-*

Restore:

# List backups
ls -la ~/.roo/.backups/

# Restore specific backup
rm -rf ~/.roo/superpowers
mv ~/.roo/.backups/superpowers-20251123-154813 ~/.roo/superpowers

Development

Testing Adaptive System

# Test 1: Fresh install
npm install

# Test 2: Update
npm run update

# Test 3: Repair
npm run repair

# Test 4: Handles upstream changes
# (Manually modify ~/.roo/superpowers structure)
npm run repair
# Should adapt or skip gracefully

Debug Mode

DEBUG=1 bash scripts/install.sh

Contributing

This is a pass-through package for obra/superpowers.

For skill contributions: Submit to obra/superpowers

For enhancement improvements: Submit PR to this repository

License

MIT License - See LICENSE

Note: This package distributes obra/superpowers, which has its own license. Check the upstream repository for details.

Credits

  • obra - Original superpowers creator and maintainer
  • Dalat Industries - NPM packaging and adaptive enhancement system

Links


Philosophy: Better to have working core superpowers without enhancements than broken installation trying to be clever.