/tpk:integratefrom tpk
Wire the TesterPayKit SDK into an existing app so it captures tester sessions and bug reports (shake-to-report, floating feedback button, post-crash dialog) and posts them to a TPK project — fail-safe, never blocking or crashing the host. Supports four SDK variants: Flutter (pub.dev `testerpaykit`, by default with `moinsen_runapp`), Expo / React Native (`@testerpaykit/expo`), Web / TypeScript — React, Next.js, Vite (`@testerpaykit/react` + `@testerpaykit/sdk`) — and native Swift for iOS/macOS (`TesterPayKit` Swift Package with the built-in SwiftUI tester experience; early access). Trigger when the user says "integrate TesterPayKit", "add TPK to this app", "wire up TPK", "set up shake-to-report", or asks how to use a TPK project they created — in a Flutter, Expo, React-Native, web, or native Apple codebase. Detects the platform, then follows the matching reference file. Run after `bootstrap` so the project UUID exists.
Ships in tpk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Goal: an existing app starts capturing tester sessions and bug reports and posting them to the user's TPK project — without TPK ever being able to crash or block the host app. The exact deps, file template, and wiring differ per SDK; this skill detects the platform and hands off to the right reference.
Run these checks from the app root and load only the matching file:
# Flutter?
test -f pubspec.yaml && echo "FLUTTER"
# Expo / React Native? (package.json has an `expo` dependency)
test -f package.json && node -e "process.exit(require('./package.json').dependencies?.expo?0:1)" \
&& echo "EXPO"
# Web / TypeScript? (web bundler present, NO expo)
test -f package.json && node -e "const p=require('./package.json');const d={...p.dependencies,...p.devDependencies};process.exit(!d.expo&&(d.next||d.vite||d['react-scripts'])?0:1)" \
&& echo "WEB"
# Native Swift? (SwiftPM or Xcode project, no Flutter/RN layer)
{ test -f Package.swift || ls *.xcodeproj *.xcworkspace >/dev/null 2>&1; } \
&& ! test -f pubspec.yaml && ! test -f package.json && echo "SWIFT"
| Detected | Read |
|---|---|
pubspec.yaml present | references/flutter.md |
package.json with an expo dep (or app.json / app.config.*) | references/expo.md |
package.json with next / vite / react-scripts and no expo | references/web.md |
Package.swift or *.xcodeproj / *.xcworkspace, no Flutter/RN layer | references/swift.md |
| ambiguous or none of the above | ask the user which target (Flutter / Expo / Web / Swift), then read that reference |
Then follow that reference end-to-end — it has the platform-correct package names, the fail-safe bridge/init template, the mount/wiring, the tester-onboarding path, and the verification commands.
Whatever the reference says, these must hold — they are the reason the integration is safe to ship:
--dart-define=<APP>_TPK=true
(Flutter), EXPO_PUBLIC_TPK_ENABLED (Expo),
NEXT_PUBLIC_TPK_ENABLED / VITE_TPK_ENABLED (Web), a DEBUG
compilation condition or env gate (Swift). A store/prod release
without the flag ships the SDK inert: no capture, no API contact.bootstrap. Never invent it. If the
user doesn't have one, run the bootstrap skill first.{projectId, code} for a token; dev/CI can hardcode a code to skip
the in-app screen.tpk payout-rule list / bootstrap step 6).trackScreenView('<screen>') on route
changes, or testers get underpaid.tpk project set-origins) or the browser blocks every
call with CORS. See references/web.md.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/bootstrapBootstrap a brand-new TesterPayKit project end-to-end from inside a Claude Code session — log in the coordinator account (device-auth via browser), create the project (capturing its UUID), create a payout rule so testers actually earn money, and emit the env-var lines the host app needs. Trigger when the user says "set up TPK for this project", "create a TPK project", "bootstrap TesterPayKit", "onboard this app to TesterPayKit", or asks how to wire a fresh app into TPK. This is the canonical "first-touch" skill — runs once per host app. For an already-bootstrapped project the user wants the `status` or `integrate` skill instead.
/cli-installInstall the `tpk` TesterPayKit CLI globally from pub.dev so it is on PATH and usable from any directory. Trigger when the user says "install tpk", "install TesterPayKit CLI", "set up tpk", "global tpk", or asks how to make `tpk` reachable from any terminal. Also trigger on `command not found: tpk`. Installs the `tpk_cli` package (the `tpk` CLI, plus `tpk_mcp`, a local read-only MCP server).
/connectConnect this Claude Code setup to the remote TesterPayKit MCP server so Claude can order tests with real human testers and read their results. Trigger when the user says "connect TesterPayKit", "tpk connect", "set up the TPK MCP", "order a test with real testers", "get real testers on this", or when the `testerpaykit` MCP server shows as failed / 401 / not connected. Also covers how a test order works and the money rule.
npx claudepluginhub moinsen-dev/testerpaykit --plugin tpk