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

@workos/skills

v0.2.3

Published

WorkOS Skills for AI coding agents — AuthKit, SSO, Directory Sync, RBAC, and more

Downloads

479

Readme

@workos/skills

WorkOS skills for AI coding agents. Two skills and 40 reference files covering AuthKit, SSO, Directory Sync, RBAC, Vault, Migrations, backend SDKs, and more.

Install as Claude Code Plugin

npx skills add workos/skills

Works with Claude Code, Cursor, Codex, Goose, and any agent that supports the skills.sh format.

Install as npm Package

For programmatic access to skill/reference content (e.g., from the WorkOS CLI):

npm install @workos/skills
import { getReference, getSkill } from '@workos/skills';

// Read reference content directly
const content = await getReference('workos-authkit-nextjs');

// Read a skill's SKILL.md content
const router = await getSkill('workos');

Path helpers are also available for consumers that need file paths (e.g., skill discovery):

import { getReferencePath, getSkillsDir, getSkillPath } from '@workos/skills';

const refPath = getReferencePath('workos-authkit-nextjs'); // absolute path to .md file
const skillsDir = getSkillsDir();                          // directory containing workos/ and workos-widgets/
const skillPath = getSkillPath('workos');                   // absolute path to SKILL.md

Exports

| Function | Returns | | --- | --- | | getReference(name) | Promise<string> — reference file content | | getSkill(skillName) | Promise<string> — skill SKILL.md content | | getReferencePath(name) | Absolute path to references/{name}.md | | getSkillsDir() | Absolute path to the skills/ directory | | getSkillPath(skillName) | Absolute path to skills/{skillName}/SKILL.md |

Skills

Two registered skills:

| Skill | Description | | --- | --- | | workos | Router — identifies which reference to load based on the user's task | | workos-widgets | Multi-framework widget integration with on-demand OpenAPI spec querying |

Everything else is a reference file under references/. The router dispatches to the right reference via progressive disclosure.

References

AuthKit Installation

| Reference | Description | | --- | --- | | workos-authkit-nextjs | Next.js App Router integration | | workos-authkit-react | React SPA integration | | workos-authkit-react-router | React Router v6/v7 integration | | workos-authkit-tanstack-start | TanStack Start integration | | workos-authkit-sveltekit | SvelteKit integration | | workos-authkit-vanilla-js | Vanilla JS integration | | workos-authkit-base | AuthKit architecture reference |

Backend SDK Installation

| Reference | Description | | --- | --- | | workos-node | Node.js (Express/Fastify/Hono/Koa) | | workos-python | Python (Django/Flask/FastAPI) | | workos-dotnet | .NET (ASP.NET Core) | | workos-go | Go | | workos-ruby | Ruby (Rails) | | workos-php | PHP | | workos-php-laravel | PHP Laravel | | workos-kotlin | Kotlin | | workos-elixir | Elixir |

Features

| Reference | Description | | --- | --- | | workos-sso | Single Sign-On with SAML/OIDC | | workos-directory-sync | User directory sync from IdPs | | workos-rbac | Role-based access control | | workos-vault | Encrypted data storage | | workos-events | Webhook event handling | | workos-audit-logs | Compliance audit logging | | workos-admin-portal | Self-service admin portal | | workos-mfa | Multi-factor authentication | | workos-custom-domains | Custom domain configuration | | workos-email | Email delivery configuration | | workos-integrations | Provider lookup table for 60+ IdP integrations |

Migrations

| Reference | Description | | --- | --- | | workos-migrate-auth0 | Migrate from Auth0 | | workos-migrate-firebase | Migrate from Firebase Auth | | workos-migrate-clerk | Migrate from Clerk | | workos-migrate-aws-cognito | Migrate from AWS Cognito | | workos-migrate-stytch | Migrate from Stytch | | workos-migrate-supabase-auth | Migrate from Supabase Auth | | workos-migrate-descope | Migrate from Descope | | workos-migrate-better-auth | Migrate from Better Auth | | workos-migrate-other-services | Migrate from custom auth | | workos-migrate-the-standalone-sso-api | Upgrade standalone SSO to AuthKit |

API References

| Reference | Description | | --- | --- | | workos-api-authkit | AuthKit/User Management API endpoints | | workos-api-organization | Organizations API endpoints |

Management

| Reference | Description | | --- | --- | | workos-management | CLI resource management (orgs, users, roles, webhooks, seeding) |

Development

pnpm test          # vitest
pnpm lint          # oxlint
pnpm format        # oxfmt

Eval framework

Measures whether skills improve agent-generated code. Each case runs the same prompt with and without the skill, scores both outputs, and reports the delta.

pnpm eval -- --dry-run                        # verify cases load
pnpm eval -- --no-cache                       # full run (42 cases, ~$1.70)
pnpm eval -- --no-cache --case=sso-node-basic # single case
pnpm eval -- --no-cache --fail-on-regression  # with gates

How it works

Each reference file follows the same pattern:

  1. Doc URLs — source of truth links (agent fetches these first)
  2. Gotchas — non-obvious traps the LLM gets wrong from training data
  3. Endpoints (optional) — API endpoint table for quick reference

AuthKit and backend SDK references are richer — they include step-by-step installation instructions, decision trees, verification checklists, and error recovery.

The router (workos/SKILL.md) maps user intent to the right reference file.

License

MIT