/tpk:fix-next-bugfrom tpk
Close the agentic feedback→fix loop: pick the highest-priority open bug for the current project from TesterPayKit, fetch the LLM-ready context blob via the tpk CLI, propose + implement a fix, and mark the bug fixed so the tester gets a retest notification. Trigger when the user says "fix the next bug", "fix next TPK bug", "claude, was hat der Tester gemeldet — bau den Fix", "wir haben einen neuen Bug-Report", or asks Claude to handle the latest tester feedback. This is the core differentiator vs. plain feedback widgets — real testers report, Claude fixes, the tester verifies.
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.
None: SKILL.md is the whole skill.
Goal: from "shake-to-report submitted by a tester" to "verified fix + tester notified for retest" in one Claude Code turn, with the tester's full context fed to the model as structured data — not screenshot+gut-feel.
tpk CLI on PATH (which tpk returns a path). If missing, run the
cli-install skill first.tpk --json whoami returns a coordinator). If not, run
tpk login. Cite the bootstrap skill if the user has no project
yet.Discover the project bundle-id.
Read the host's pubspec.yaml / Info.plist / build.gradle
to recover the bundle identifier. If multiple projects could
match, ask the user which one. Cache the answer in .tpk/ (next
to .git/) so future runs don't re-ask.
Fetch open bugs.
tpk --json bug list \
--bundle-id <bundle-id> \
--status submitted \
--limit 20
Sort by severity (critical > high > medium > low) and then by
createdAt (oldest-first, so the user clears the queue, not just
the latest).
If the result has zero bugs, surface: "No open bugs for this project — queue is clean." Stop. Don't fabricate work.
Pick the top bug, claim it, load context.
Mark it as picked up so it leaves the submitted queue:
tpk bug status <top-bug-id> --to accepted
(Allowed --to values: draft, submitted, underReview, accepted,
duplicate, rejected, fixed, verified.)
Then fetch the LLM-ready blob:
tpk --json bug context <top-bug-id> > /tmp/tpk-bug.json
Read /tmp/tpk-bug.json. Key fields to anchor on:
bug.title / bug.description — what the tester typedbug.currentScreen — where they were when it happenedbug.severity, bug.frequency, bug.affectedFeaturerepro.fromBreadcrumbs — last ~20 actions, each with
{t, action, screen, widget}. The widget names map directly
into the host's source if it uses TPK's TesterTaskRelevant
annotations; otherwise grep for the widget name.device.platform, device.osVersion, device.model — to know
whether this is a platform-specific bugapp.buildMode / app.environment — debug vs release, local vs prodagentHint — one-paragraph templated summary; always quote
this verbatim to the user so they can sanity-check your
interpretation.Propose the fix. Use the bug-context to:
currentScreen, last breadcrumb widget, affectedFeature)Implement and verify.
flutter analyze (or the host project's equivalent).Mark fixed → tester gets the retest. Once the fix is verified locally, close the loop server-side:
tpk bug fix <bug-id> --version <version-where-it-ships>
--version is required (e.g. "1.4.2" — read it from pubspec.yaml).
This is a feature, not bookkeeping: it flips the bug to fixed,
creates a retest assignment, and notifies the reporting tester
("your bug was fixed — please verify"), feeding the tester's
verify/reward chain. Optionally hand the retest to a specific
tester with --tester <uuid|code>.
If the bug turns out to be invalid instead, close it without a
retest: tpk bug status <bug-id> --to rejected (or
--to duplicate).
Hand back. Print a short summary:
Bug #ABC123 — "<title>"
Hypothesis: <one-line>
Edited: lib/features/x/y.dart (+12 -3). flutter analyze: clean.
Marked fixed in <version> → tester notified for retest.
Next: review the diff + `git commit`, ship the build the version
refers to.
bug fix --version only records where it ships.bug context, surface that to the user and ask. Hallucinated repro
steps poison the loop.When this skill is used 50+ times against the same project, the
breadcrumb→source-file mapping becomes a learnable pattern. A future
iteration should cache "widget X lives in file Y line N" in .tpk/
so subsequent invocations skip the grep step.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub moinsen-dev/testerpaykit --plugin tpk8 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.
/guideInteractive getting-started course for TesterPayKit: teaches a new developer or app owner how the system works, one short lesson at a time, with small hands-on steps in their own setup, check questions and saved progress they can resume later. Trigger when the user says "tpk guide", "explain TesterPayKit", "how does TPK work", "I'm new to TesterPayKit", "onboard me", "teach me TPK", "Einstieg", "erklär mir TesterPayKit", "TPK-Kurs", "weiter mit dem Kurs", "wo war ich im Guide", or asks for a tour of the platform. Read-only by default: it never spends money and never changes TPK state without an explicit yes.
/integrateWire 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.
/liveSee and drive the developer's own app on a real device from this Claude Code session, and keep a checklist of what testers should test. Trigger when the user says "look at my phone", "schau aufs Handy", "what does the screen show", "I sent you a note from the app", "tap X on my device", "walk through the app", "what should testers test", "make a checklist", "Checkliste", "how did the checklist go", or wants to switch on the live link in a Flutter, Expo, Web or Swift app. Needs the testerpaykit MCP server (see /tpk:connect) and SDK 1.2.0 or newer.