Not loaded · from mattpocock-skills
Automate Adapty Flows (v4 Beta) and paywall/placement config that the official CLI and public API can't reach - flow authoring, publishing, flow-type placements - by driving Adapty's internal dashboard "portal" API with a headless-capable bearer token. Use when the user wants to script Adapty flow create/edit/publish, wire flow placements, treat a flow as versioned code, verify a flow actually went live, or asks why an Adapty v4 flow renders the native fallback instead of the remote flow.
Claude Code won't load this skill
It ships in mattpocock-skills at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Adapty has three API surfaces plus one undocumented internal one. Flows (v4 Beta) live only in the internal one. Pick the surface by task; don't reach for the browser when a real API covers it.
| Surface | Base / Auth | Covers | Spec |
|---|---|---|---|
| Server-side v2 | api.adapty.io / Api-Key <secret> | profiles, grant access level (Rescue-Pass leaf), transactions, analytics export | Postman collection |
| Developer (CLI) | api-admin.adapty.io/api/v1/developer / oauth bearer | apps, products, paywalls, paywall-type placements, access-levels, segments (read-only) | none published; zod schemas in adapty npm pkg dist/lib/api-schemas.js |
| SDK read | api.adapty.io/api/v1/sdk/... / Api-Key <public> | placement variation fetch - publish verification | undocumented, stable |
| Portal (internal) | api-admin.adapty.io/api/v1/portal/{app_id}/ / dashboard bearer | flows author + publish, flow-type placements, everything the builder does | none - sniffed, fragile |
Full portal endpoint map + request shapes: portal-api.md. The four gotchas that make a v4 flow silently fall back to native: flow-gotchas.md.
bunx adapty CLI (adapty auth login once). No flows here.The dashboard authenticates portal calls with a bearer token in localStorage, not a cookie - so once extracted it works fully headless (credentials: 'omit' returns 200). The CLI's oauth token is a different realm and 401s on portal.
Extract once per session, from a logged-in app.adapty.io tab:
localStorage.getItem('adapty/token') // 40-char opaque string
Then every portal call:
Authorization: Bearer <token>
Token is session-scoped (a fox_auth_timestamp refresh mechanism exists); expect to re-extract when calls start 401ing.
The entire flow - screens, elements, props, product bindings, triggers - is one JSON document at GET/PUT in-apps/flows/{flow_id}/config/, guarded by an optimistic-lock field expected_updated_at.
GET .../config/ → commit the JSON to the repo. The flow is now a versioned artifact.expected_updated_at from the last GET.PUT .../config/.POST in-apps/flows/{flow_id}/publish/ (empty body). This is the step the builder hides behind a confirmation modal - miss it and the draft never goes live while the UI reads "Changes saved".Hit the public SDK read endpoint with the app's public key:
GET https://api.adapty.io/api/v1/sdk/in-apps/{public_key}/flow/variations/{placement_id}/{profile_hash}/
Authorization: Api-Key {public_key}.{public_secret}
adapty-sdk-version: 4.0.0
flow_version_id must change after a publish.variations array must be non-empty. Empty ⇒ the SDK maps it to zero flow.paywalls ⇒ getPaywallProducts throws noProductIDsFound ⇒ the app silently renders its native fallback. This is the single most common "why isn't my flow showing" cause.Poll it in a loop after publish; CDN propagation is a few seconds.
api-admin, or re-run the fetch-hook in portal-api.md).variations is non-empty.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
55 skills in this plugin
/app-ideaRun a new or existing consumer/AI app idea through the golden-track playbook (~/wiki/playbook/apps.md) from intake to verdict, write a verdict card, stop for the owner, and ratchet owner overrides back into the doctrine. Use when the user shares an app idea, asks "should I build X", "audit <app>", "re-score <app>", or pastes an idea in a product context. Never builds; never promotes a rule on its own./ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./aso-appstore-screenshotsGenerate high-converting App Store screenshots by analyzing your app's codebase, discovering core benefits, and creating ASO-optimized screenshot images using Nano Banana Pro.Generated from the plugin's indexed repository (necmttn/skills) — no native marketplace selected
npx claudepluginhub p/necmttn-mattpocock-skills