No slash command · from bitfab
Cloud replay phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly
Ships in bitfab. 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.
Run only when mode is cloud.
Run replay in the customer's GitHub Actions. Use this standalone mode for 'setup cloud', 'set up cloud replay', or 'replay on GitHub'. Do not enter login or connect a repository to Bitfab. Normal replay still uses a Bitfab API key on the runner.
Cloud replay is the user's normal replay plus --cloud: every replay option works the same, the runner replays a snapshot of their working tree (changed files, plus new files git does not ignore) from the same directory, and the command prints the replay's progress and a short summary of its result (experiment ID and URL, replayed, same, changed, and errored counts, and each errored trace with its error), then exits with its exit code. Every trace's input and output are in the experiment in Bitfab; read them through the Bitfab MCP tools, as after a local replay. --cloud-full-output prints the whole result instead, and is refused on a public repository. The code ships inside the SDK, and the repository keeps one file: .github/workflows/bitfab-replay.yml, which holds only settings.
Run the installed SDK's bitfab-replay --cloud --help; if it does not list --cloud-preview, upgrade the SDK through bitfab:update first. Check that the git origin is github.com and that Node.js 18+ is on PATH as node (macOS or Linux); the Python, Ruby, and Go SDKs run their cloud helper with it. GitHub access needs no GitHub CLI: the SDK uses gh when it is logged in, otherwise GH_TOKEN or GITHUB_TOKEN, otherwise the github.com credential git stores. Without any of them, or when that account cannot read or push to the repository, a replay still runs as long as git can push and the workflow also starts on a push to a bitfab-replay/ branch (--cloud-init writes that trigger and --cloud-update adds it): the command warns that it gets no updates, prints the Actions page to watch, and returns once the branch is pushed. That run uses the workflow's BITFAB_API_KEY secret, and the user deletes the snapshot branch once it finishes. --cloud-full-output, --cloud-allow-file, and --cloud-ref still need GitHub access. When the repository still has .bitfab/cloud.json from an older SDK, the SDK says to delete it and the old workflow and run --cloud-init again; show the user the old file's settings first.
Read the existing GitHub Actions, lockfiles, replay registry, and environment-variable NAMES; never read or print secret values. Note what the replay needs beyond an install (build or code-generation steps, services, the working directory) and which environment variables it reads from secrets. For database reads, prefer database branching: it needs no database secret, but only works when every registry entry that reads the database sets dbBranch and the application takes its connection per call from the replay branch URL (getCurrentReplayBranch().databaseUrl, or the Python, Ruby, or Go equivalent); offer db-snapshot mode when either piece is missing. Do not silently give replay production side effects.
Say plainly which identity the runner uses: only the credentials in its GitHub secrets, never the user's. Local gcloud or AWS logins do not travel to the runner; when a secret is a service account, ask for its email (never the key) and, when the user's CLI is logged in, check it can read what replay reads, such as gcloud storage ls gs:// --impersonate-service-account=.
State who can start a replay: once GitHub registers the workflow, anyone with write access can dispatch it on any branch, and that run receives every secret it reads. Recommend a GitHub Environment with required reviewers (environment: bitfab-replay, set with --environment bitfab-replay), and name the tradeoff that every replay then waits for an approval. Ask only about unresolved choices (secret names, the Environment). Never ask for secret values in chat.
From the directory where replay normally runs, run the SDK's bitfab-replay --cloud-init with --secret for each environment variable the replay reads from a secret (BITFAB_API_KEY is always included), --environment when chosen, and --check "" when replay reads a bucket or service with its own credentials. It detects the runtime, package manager, install command, and replay command (for Go, the program that calls RunCloudReplayCLI), writes the workflow, and returns next: the remaining steps with the exact secret names and the page to create them on. Work through that list with the user.
Edit the workflow directly for anything detection missed, such as a build step, code generation, a monorepo install filter, or a service, and pin any added action to a commit SHA. When the user normally starts replay through a wrapper that sets environment variables, add them to the replay step's env. Every variable read from a secret stays in that env as a GitHub expression reading secrets., which is how --cloud-secrets and the runner's empty-secret check find them; a secret stored under another name is mapped directly, such as OPENAI_API_KEY reading secrets.EVAL_OPENAI_API_KEY, and a non-secret value reads vars.. When a setup step needs a credential file, write it under $RUNNER_TEMP with umask 077 and export its path through $GITHUB_ENV; do not use google-github-actions/auth or similar actions that write the key into the checked-out workspace. Do not copy deployment steps or secret values into the workflow.
For BITFAB_API_KEY, have the user create a dedicated key for the runner on the Bitfab dashboard's API keys page, in the organization that holds the registry's traces, named for what it is (such as "GitHub cloud replay"), and set it by hand. Each replay started with bitfab-replay --cloud runs as whoever started it, through a one-time token in the key_id input that only a run of that workflow, on that replay's branch, in that repository can trade for a short-lived key, which it proves with GitHub's OIDC token for the run. This secret is the key a run falls back to when no token can be passed, such as a dispatch from another workflow. Keep the key_id input, the id-token: write permission, and the push trigger with the replay job's if: condition that --cloud-init writes; a replay started through the GitHub API marks its snapshot commit [skip actions] so the push starts nothing, and the condition skips the push run an older SDK's snapshot would start, so each replay runs once. When a workflow already exists, run --cloud-update (the same command as --cloud-init) anyway: it adds a missing key_id input and id-token: write permission, removes the BITFAB_REPLAY_BITFAB_API_KEY line older SDKs wrote (it made GitHub hand the runner every secret in the repository), leaves the rest alone, and lists anything it could not place for you to add by hand. Its result also lists in oldKeySecrets any BITFAB_REPLAY_KEY_* secrets an older SDK left in the repository, each a copy of the Bitfab API key of whoever started that replay. Name them to the user and ask once whether to delete them; on yes, run --cloud-update --remove-old-key-secrets, which returns removedOldKeySecrets and lists any it could not delete with the page to delete them on. For the other secrets, when local environment files define them, ask once whether to copy them, then run bitfab-replay --cloud-secrets --env-file --dry-run, then without --dry-run. It pipes values to gh on standard input, creates a missing Environment, and without the GitHub CLI returns createByHand with the page to create them on; relay that list instead of treating it as a failure. Never hand-extract a value with grep, cut, or a shell variable. Warn before copying a value a runner cannot use, such as a localhost URL. Setting secrets needs the same explicit authorization as any other remote write.
Each replay pushes a temporary bitfab-replay/ branch. For each push-triggered workflow or deployment in reviewPushTriggers, offer to exclude those branches: branches-ignore: [bitfab-replay/] on a push trigger (or a last !bitfab-replay/ entry when it already lists branches), and git.deploymentEnabled {"bitfab-replay/**": false} in vercel.json. Ask before changing existing CI or deployments.
Validate the workflow (actionlint when available). GitHub must register it before it can be dispatched: merging it to the default branch once does that, and after that each replay runs the copy in its own snapshot, so later edits apply without merging. Do not push, merge, or change repository settings without authorization.
Verify with the replay command the user already runs. First add --cloud --cloud-preview, which pushes nothing and lists the changed and new files the snapshot would carry; review them for anything that should not leave the machine, since filename screening is not a secret scanner, and have the user gitignore it. Once the workflow is merged and secrets are set, and remote runs are authorized, run the same command with --cloud --dry-run: a real run that replays nothing but receives the secrets, stops on any empty secret, runs the --check command, and resolves the traces. Then, only when a replay is authorized, run with --cloud alone.
From an agent session always add --cloud-detach, since a replay can run for hours and a single tool call stops after about ten minutes: it prints the experiment's link and returns while the replay runs on GitHub. Once it finishes, read the results with mcp__plugin_bitfab_Bitfab__get_experiment and mcp__plugin_bitfab_Bitfab__list_experiment_traces. --cloud-status shows whether a GitHub run failed before its experiment appeared; --cloud-cancel and --cloud-cleanup stop and clean up a run. --cloud-timeout stops one replay early and keeps finished traces. --cloud-env NAME=VALUE (repeatable) sets a non-secret environment variable for one replay; secrets go in the workflow's env and --cloud-secrets. When the snapshot refuses a credential-like file the user confirms is safe to upload, such as a test certificate, --cloud-allow-file (repeatable, private repositories only) lets it in. Report separately whether the workflow is written, secrets are set, the workflow is merged, the preview was reviewed, the dry run passed, and a real replay completed.
Next:
cloud: invoke the setup-cleanup skill with mode cloud, forwarding $ARGUMENTS minus the leading mode keyword (if the user typed one).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub project-white-rabbit/bitfab-claude-plugin --plugin bitfab19 skills in this plugin
/assistantBitfab Assistant (retired)Retired. Only use when the user explicitly types the bitfab assistant command by name; it tells them the assistant has been retired. Never use it for requests about traces, datasets, labels, verdicts, replays, experiments, or improving a traced function: handle those directly with the Bitfab MCP tools/setupBitfab SetupSet up and maintain Bitfab tracing, replay registries, and cloud replay. Use for instrumenting AI/LLM code, adding observability or evaluation, tracing another workflow, changing captured inputs/outputs, re-instrumenting a function, moving side effects across trace boundaries, inspecting missing traces, explaining Bitfab, login, organization switching, session-log consent, database snapshots, templates, or read-only repo instrumentation recommendations (analyze-repo). Also use for 'setup cloud', 'set up cloud replay', or 'replay on GitHub'. Re-enter this skill for each additional function to instrument, even after earlier setup. Do not use for improving output quality, pass rates, verdicts (labeling), or experiments (the agent does those directly with the Bitfab MCP tools), or upgrading SDK/plugin versions (use bitfab:update)/setup-analyze-repoAnalyze Repo phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly/setup-approachApproach phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly/setup-cleanupCleanup phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly/setup-db-snapshotDB Snapshot phase of the Bitfab Setup flow. Invoked by the setup flow; not run directly