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

ai-dev-setup

v1.0.10

Published

One command to scaffold optimized AI coding assistant rules for Claude Code, Cursor, and more

Readme

ai-dev-setup

npm version License: MIT Node ≥ 18

One command wires your project for structured AI-assisted development.

npx ai-dev-setup init

What it does:

  • Installs a phase-gated workflow engine (Superpowers) so the AI scopes and plans before coding
  • Binds specialist roles (Agency Agents) per task — backend architect, QA tester, security engineer, and more
  • Generates a project memory layer (.ai/, docs/) shared across every session, teammate, and subagent
  • Works in Claude Code and Cursor — no per-session configuration after init

Prerequisites

  • Node.js 18+
  • git on PATH (required for the vendor step)
  • bash on PATH (required when the Cursor platform is selected for the vendor step)

Quick Start

1. Run in your project root:

npx ai-dev-setup init

The CLI detects your stack, writes the scaffold, then clones Superpowers and Agency Agents into vendor/. Takes 1–2 min on first run.

2. Commit the scaffold — vendor/ is gitignored by default:

git add . && git commit -m "chore: add ai-dev-setup scaffold"

3. Open in your IDE and start working:

  • Claude Code — run /kickoff to scope a feature, /implement to execute with specialist roles bound, /review before merge
  • Cursor — ask about any feature or bug in plain language; the right workflow skill and specialist role activate automatically

How it works

Superpowers is a phase-gated workflow engine. It provides slash commands (/kickoff → /implement → /review → /ship) that stop the AI from jumping straight to code — it scopes goals, lists risks, and produces an ordered task plan first.

Agency Agents are specialist role definitions. Each file (backend-architect, qa-tester, security-engineer, etc.) tells the AI which concerns take priority. When bound to a task, the AI thinks as that specialist rather than a generic assistant.

They work together: Superpowers drives the phases. Agency locks the specialist per task. Both are vendored under vendor/ and wired automatically after init — no per-session setup needed.


What gets generated

.ai/                    # Engineering rules, workflow, agent roles
docs/                   # Architecture, conventions, API patterns, security
CLAUDE.md               # Claude Code: stack identity + wiring
.claude/                # Settings, slash commands, skills, agent definitions
.cursorrules            # Cursor: always-on routing
.cursor/rules/          # Workflow, review, agent specialist rules
.cursor-plugin/         # Cursor: Superpowers plugin path wiring
vendor/superpowers/     # Superpowers engine (gitignored)
vendor/agency-agents/   # Agency Agents (gitignored)

Fill in docs/ARCHITECTURE.md and skim .ai/rules.md to tune conventions for your project.


Team workflow

The recommended path: commit the scaffold, keep vendor/ out of git.

Maintainer (one time):

npx ai-dev-setup init --yes --skip-vendor
git add . && git commit -m "chore: add ai-dev-setup scaffold"

| Path | Purpose | |------|---------| | vendor/superpowers/ | Superpowers (filtered copy; skills/**/*.ts(x) stripped to prevent consumer TS compile errors) | | vendor/agency-agents/ | Agency Agents (shallow clone) | | .cursor-plugin/plugin.json | Points at vendor/superpowers/ (Cursor) | | .claude/skills/ | Superpowers skills (Claude Code) | | .claude/agents/ | Agency agent files, project-local | | .cursor/rules/agency-*.mdc | Agency specialist rules (Cursor) |

Teammates (after git clone):

npx ai-dev-setup init --vendor-only --platforms=claude,cursor

Pin upstream refs for reproducible installs:

npx ai-dev-setup init --vendor-only --superpowers-ref=v5.0.7 --agency-ref=main

Or add a package.json script to keep pins in one place:

"scripts": {
  "vendor:ai": "ai-dev-setup init --vendor-only --platforms=claude,cursor --superpowers-ref=v5.0.7 --agency-ref=main"
}

Note: npm install does not populate vendor/. Always run init --vendor-only (or npm run vendor:ai) explicitly after clone.

During vendoring, ai-dev-setup removes raw TypeScript files under vendor/superpowers/skills (for example *.ts / *.tsx examples that may reference upstream-only path aliases) so your project's tsc does not attempt to compile them.


CLI reference

| Flag | Meaning | |------|---------| | -y, --yes | Non-interactive full init | | -f, --force | Overwrite templates and refresh vendor | | --skip-vendor | Templates only | | --vendor-only | Vendor step only; no template writes | | --superpowers-ref=REF | Branch/tag for Superpowers (default: main) | | --agency-ref=REF | Branch/tag for Agency (default: main) | | --stack=a,b | Merge stack keys with auto-detect | | --platforms=a,b | claude, cursor (default: both) | | -h, --help | Help | | -v, --version | Version |


Platforms & stacks

| Platform | What you get | |----------|-------------| | claude | CLAUDE.md, .claude/ — skills, agents, slash commands | | cursor | .cursorrules, .cursor/rules/ — routing, agency specialist rules |

Auto-detected stacks: ts, react, nextjs, node, nestjs, python, go, flutter. Override or extend with --stack=ts,react.


Troubleshooting

| Problem | Fix | |---------|-----| | vendor/ missing after clone | npx ai-dev-setup init --vendor-only | | git is required / clone errors | Install Git; check network; use valid refs | | bash is required | Git Bash / WSL, or --platforms=claude | | Invalid git ref | Use only safe branch/tag characters (see --superpowers-ref / --agency-ref) | | Cannot use --skip-vendor with --vendor-only | Pick one mode | | npm install did not create vendor/ | Expected. Run init --vendor-only or npm run vendor:ai | | TypeScript errors from vendor/superpowers/skills/*.ts in consumer repo | Upgrade ai-dev-setup, then run npx ai-dev-setup init --vendor-only --force | | Stale or broken vendor/ | init --vendor-only --force with pinned refs | | Manual clone needed | git clone --depth 1 -b main https://github.com/obra/superpowers.git vendor/superpowers | | Huge repo if committing vendor/ | Use Team workflow above instead | | Updates needed | Re-run init --yes --force or init --vendor-only --force with pinned refs |


Security

This package has no postinstall script — the vendor step is always explicit. Git refs are validated (letters, digits, and . _ / - only — no spaces or shell metacharacters) before being passed to git clone.


Contributing

git clone <repo> && cd ai-dev-setup
npm test
node bin/ai-dev-setup.js --help

Feature specs live in specs/.


License

MIT — see LICENSE.