whop-communities
Installation
SKILL.md
Whop Communities
Whop chat renders inside your own product through the chat elements, authenticated by a short-lived token your server mints for the signed-in user. The same chat, forum and course data is also reachable from your backend through @whop/sdk.
Before you start
- Inspect the project first. Note the installed
@whop/sdkversion (node_modules/@whop/sdk/package.json;whop-sdkin Python,whop_sdkin Ruby), the framework, and whether the client targets sandbox or production. On@whop/apior@whop/sdkbelow 2.0, upgrade first (whop-migrate). If a name here doesn't compile, search the installednode_modules/@whop/sdk/reference.mdfor it and trust that over this skill. - Fetch
https://docs.whop.com/developer/guides/chat/quickstart.mdandhttps://docs.whop.com/developer/communities/overview.md. If they disagree with this skill, follow the docs and tell the user (see references/skill-feedback.md). Read the changelog (https://docs.whop.com/developer/api/versioning.md) only when you pin or upgrade a version, or a response doesn't match this skill or the docs. - Create an account API key in the developer dashboard and keep it on the server as
WHOP_API_KEY. Set up the client withwhop-api. Without that skill: install@whop/sdkand createnew WhopClient({ token: process.env.WHOP_API_KEY, environment: WhopEnvironment.Sandbox })in server-only code, droppingenvironmentfor production (https://docs.whop.com/developer/quickstart.md). - Find your account ID (
biz_...) in the dashboard URL:whop.com/dashboard/biz_XXXXXXXXX/. - Decide how users authenticate: account-scoped tokens (your app has its own users; no Whop sign-in) or OAuth (users sign in to Whop). Most products want account-scoped tokens.
- Other
whop-*skills named here are optional. When one isn't installed, use the matching guide linked fromhttps://docs.whop.com/developer/start.mdinstead.