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

@rushy/imperium-cli

v0.7.0

Published

A package manager for agent context — install skills, reference packs, and presets for any AI agent ecosystem.

Readme

imperium

A package manager for agent context — install skills, reference packs, and presets for any AI agent ecosystem.

npm install -g @rushy/imperium-cli
imperium --help

What it does

Imperium manages skills (reusable AI agent instructions) across different agent ecosystems. It fetches skills from a GitHub registry and installs them into your project, adapting the output for whichever agent platform you use.

121 skills included — covering frontend, backend, testing, DevOps, security, content, and more.

Three layers

| Layer | Purpose | |-------|---------| | Registry | GitHub repo where skills live (skills/ directory) | | Installer | Fetches and writes skill files locally | | Adapter | Reshapes output for .claude, .github, .windsurf, .cursor, or custom folders |

Supported platforms

| Platform | Target folder | Native files generated | |----------|--------------|----------------------| | Claude Code | .claude/ | agents/*.md | | GitHub Copilot | .github/ | copilot-instructions.md, instructions/*.instructions.md | | Windsurf | .agents/ | skills/, workflows/ | | Cursor | .cursor/ | rules/*.md | | Custom | any folder | skills/ only |

Commands

imperium setup <preset>         # Scaffold a preset (.claude, .github, .windsurf, .cursor, custom)
imperium add <skills...>        # Add skills to the current project
imperium install <skills...>    # Install skills + generate native platform files
imperium download <skills...>   # Fetch skills into a target folder
imperium list                   # List all available skills in the registry
imperium search <query>         # Search for skills by name or description
imperium inspect <skill>        # Show metadata before installing
imperium update [skills...]     # Update installed skills (all if none specified)
imperium remove <skills...>     # Remove installed skills
imperium init                   # Initialize a lockfile in the current target
imperium detect                 # Detect agent folders in the current directory
imperium validate               # Validate installed skills against lockfile

Usage

Set up a project

# Scaffold for Claude Code
imperium setup .claude

# Scaffold for GitHub Copilot
imperium setup .github

# Scaffold for Cursor
imperium setup .cursor

Install skills

# Single skill
imperium add python-patterns

# Multiple skills
imperium add python-patterns frontend-patterns api-design

# Comma-separated
imperium add python-patterns,django-patterns,django-security

# Install + generate native platform files
imperium install python-patterns --target claude

# Install all skills
imperium install --all --target .claude

# From a file
imperium add --from-file skills.txt

Search and discover

imperium list
imperium search "react"
imperium search "testing"
imperium inspect python-patterns

Manage

imperium update                  # Update all installed skills
imperium update python-patterns  # Update a specific skill
imperium remove django-patterns  # Remove a skill
imperium validate                # Check installation integrity

Flags

Core

--root <path>        Custom folder root
--target <preset>    claude, github, windsurf, cursor, custom
--force              Overwrite without asking
--dry-run            Preview changes only
-y, --yes            Skip confirmations
--no-fuzzy           Disable typo correction
--verbose            Show file-by-file actions
--silent             Minimal output

Registry

--registry <url>     GitHub registry (owner/repo or full URL)
--kind <kind>        Filter by kind: skill, reference, preset

Install behavior

--overwrite          Replace existing files
--preserve           Preserve user edits
--all                Operate on all skills
--from-file <path>   Read skill names from a file

Fuzzy matching

Imperium corrects typos for commands, skills, and folder names:

$ imperium dowload test
⚠ Unknown command 'dowload'. Did you mean 'download'?

$ imperium add opneapi
⚠ 'opneapi' not found — using 'openapi' instead.

$ imperium setup .claud
⚠ '.claud' not found — using '.claude' instead.

Lockfile

Imperium tracks installations in imperium.lock.json:

{
  "version": 1,
  "preset": "claude",
  "root": ".claude",
  "packages": {
    "python-patterns": {
      "name": "python-patterns",
      "kind": "skill",
      "version": "0.0.0",
      "source": "github:RUSHYOP/imperium-cli",
      "checksum": "a1b2c3d4e5f6...",
      "installedPath": ".claude/skills/python-patterns",
      "installedAt": "2026-03-19T00:00:00.000Z",
      "lastSync": "2026-03-19T00:00:00.000Z"
    }
  }
}

Skill format

Each skill is a folder with a SKILL.md file using YAML frontmatter:

---
name: python-patterns
description: >
  Use when working on Python projects. Covers idiomatic patterns,
  project structure, and best practices.
---

# Python Patterns

Content and instructions for the AI agent...

Some skills include subfolders (references/, scripts/, evals/, templates/).

Custom registry

Point to any GitHub repo that has a skills/ directory:

imperium list --registry your-org/your-repo
imperium add my-skill --registry your-org/your-repo#dev

Architecture

src/
  bin.ts                    # Entry point (shebang)
  cli.ts                    # Commander setup, all 12 commands
  index.ts                  # Public API exports
  commands/
    setup.ts                # setup command
    install.ts              # add, download, install commands
    manage.ts               # update, remove commands
    query.ts                # list, search, inspect, detect commands
    utility.ts              # init, validate commands
  core/
    types/index.ts          # TypeScript interfaces
    registry/github.ts      # GitHub API: tree listing, fetching, search
    installer/index.ts      # File writer + lockfile integration
    lockfile/index.ts       # imperium.lock.json read/write
  adapters/index.ts         # Claude, GitHub, Windsurf, Cursor, Custom adapters
  utils/
    fuzzy.ts                # Levenshtein-based typo correction
    log.ts                  # Colored terminal output
    resolve-target.ts       # Folder detection and resolution
skills/                     # 121 skills (the registry)

License

MIT