whop

Installation
SKILL.md

Whop

Pick the right Whop skill for the user's goal, after checking what the project already has. Every whop-* skill is optional: when one isn't installed, use the docs page in its row instead.

Inspect the project first

Look before asking. These answers decide which skill applies and how its code must look.

  1. Language and Whop packages. package.json and the lockfile (@whop/sdk, @whop/elements-react, @whop/elements), requirements.txt or pyproject.toml (whop-sdk), Gemfile (whop_sdk). Note the installed @whop/sdk version: node_modules/@whop/sdk/package.json.
  2. Old Whop code. The @whop/api package, @whop/sdk below 2.0, a client built from a Whop class instead of WhopClient, calls on plans or companies, company_id, or api/v2 URLs mean the code predates the current API. Fix that first with whop-migrate; don't add new code on top.
  3. Another processor. stripe, @stripe/, paddle, lemonsqueezy and the like. Only move it to Whop if the user asks (whop-migrate).
  4. Framework and server boundary. Where server code runs (API routes, server actions, a backend folder), so keys and webhook handlers go there.
  5. Environment. Env var names (WHOP_API_KEY, WHOP_WEBHOOK_SECRET, WHOP_ENVIRONMENT) and whether the client targets sandbox (WhopEnvironment.Sandbox, sandbox-api.whop.com) or production. Read names, never print values.
  6. Existing Whop code. Search for WhopClient, unwrapWebhook, purchase_url, checkAccess and webhooks/whop routes. Extend what's there rather than adding a second client or handler.

The installed SDK is the source of truth for names on that version: node_modules/@whop/sdk/reference.md documents every method. It is long, so search it for the method you need (grep -n "checkAccess") instead of reading it whole. Your memory of the Whop API is likely out of date; prefer the docs and the installed types.

Rules

Installs
2
Repository
whopio/skills
GitHub Stars
1
First Seen
9 days ago