/revyl-cli:revyl-githubfrom Revyl CLI
Manages Revyl's GitHub integration: checks connection status, connects the app, configures pull-request builds in .revyl/config.yaml, publishes config, waits for preview builds, and retriggers with @revyl comments.
Ships in Revyl CLI. 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.
The Revyl GitHub App builds each pull request from a build profile (or picks up the build CI uploads), proves the change on a device, and reports back on the pull request. This skill reads its state, sets it up with the user's agreement, and uses the builds it produces.
Run every Revyl command through this plugin's pinned launcher, never revyl
from PATH or another installed CLI. Resolve it from this skill's own
directory:
${CLAUDE_SKILL_DIR}.SKILL.md; use its absolute parent
directory. If the Claude Code value above isn't an absolute path, use this
rule instead.The launcher is ../../scripts/launch-revyl from that directory on POSIX and
../../scripts/launch-revyl.cmd on Windows. Shell variables don't persist
between tool calls in either host, so write the resolved absolute path into
each command; below, "$LAUNCHER" stands for it. Run each command from the app
directory (the one holding .revyl/config.yaml), never from the plugin's own
folder: the CLI reads the current directory's Git branch, commit, and config,
so a command run inside the plugin resolves the wrong build or project. The
launcher detects the host itself; never set REVYL_PLUGIN_HOST. If a command
needs sign-in, run "$LAUNCHER" auth login and hand the user its approval
link. Never print or ask for credentials.
Never open a browser or claim one opened. Give each sign-in, viewer, or report URL to the user as soon as you have it:
https:// URL on its own line.[Open the Revyl device](URL).Run every command in this skill from the directory that owns
.revyl/config.yaml. For a nested project in a monorepo you may instead pass
-C <dir>, and then pass the same -C <dir> to every later command,
including the ones that validate and publish the config, so they all read that
project:
"$LAUNCHER" github status --json
| Field | Meaning |
|---|---|
connected | The organization has the Revyl GitHub App installed. |
repository.access_granted | That installation can see this checkout's origin repository. |
project.status | enabled, not_published, disabled, not_configured, or invalid for this project. |
project.authority | manual (published with the CLI) or git_default_branch (follows the default branch). |
project.next_action | For not_published, the exact commands that publish it. |
project_error | Why project is missing, when it isn't a missing grant. |
Report the state in one or two sentences and the single next step it implies.
When connected is false, ask: "Connect the Revyl GitHub App so pull requests
get Revyl builds and device proof?" Only after a yes, run
"$LAUNCHER" github connect --no-open --no-wait --json and give the user its
install_url (the link is bound to the active Revyl organization). If they
don't own the GitHub organization, GitHub sends an owner an install request
instead. When they say it's done, check github status --json again. Never
issue the link without a yes, and never more than once per request.
When repository.access_granted is false, connecting again doesn't help: the
user adds this repository to the Revyl GitHub App installation's repository
access on GitHub. Say exactly that, then check again when they're done.
Pull-request automation lives under pr_review in .revyl/config.yaml. Read
the existing block before changing it. Revyl building from a profile:
pr_review:
enabled: true
review_triggers:
paths:
- "apps/mobile/**"
- "!apps/mobile/**/*.md"
build:
kind: revyl
profile: preview
proof_of_changes:
enabled: true
harness:
kind: revyl
build.kind: revyl needs profile to name a declared build profile with a
phone or web recipe; revyl-build-config sets one up. To use CI's builds
instead, kind: ci_upload_to_revyl with app_ids per platform (see
revyl-build-ci-upload); profile isn't allowed with it.review_triggers.paths are repository-root globs; a quoted "!glob"
excludes. A pull request triggers when a changed file matches an inclusion
and no exclusion. Without paths, a nested project triggers on its own
directory and a root project on every path. Other trigger fields depend on
the pinned CLI; check config validate before relying on one.proof_of_changes.harness.kind is revyl, capy, cursor, or devin;
revyl-proof-automation covers the options.strict_ci_check.build: true makes a failed Revyl build fail the pull
request's check.Validate after every edit:
"$LAUNCHER" config validate --json
Ask before publishing; it changes what every pull request in the repository
gets. Read project.authority from github status --json before offering a
way to publish, and offer only the way it allows.
revyl github setup does the whole step: it connects GitHub if needed,
completes the project's pr_review block, binds the apps that build mode
needs, updates .revyl/config.yaml when necessary, and publishes. It needs
an interactive terminal, so an agent's shell can't run it: with a yes, ask
the user to run "<absolute launcher path>" github setup in their own
terminal from the app directory, with the resolved launcher path written
out, since a plugin-only install has no revyl on PATH.project.authority manual, or a project not published yet
(project.status not_published, whose project.next_action names the
same step), a finished and validated file and a yes let you run
"$LAUNCHER" config push to publish it.git_default_branch, Revyl follows the file on the default branch,
and config push refuses: commit the validated file on the pull request
instead and say it takes effect when it merges there.
config push --force publishes once without changing that, and the next
default-branch change replaces it, so offer it only when the user asks to
publish before merging.Once published from the CLI or by the user's terminal, github status --json
should show project.status enabled. A Git-managed change shows up there
only after it merges to the default branch; until then, report it as
committed and waiting for that merge, not as failed.
With project.status enabled, a push to a pull request gets a build of its
head commit when the push matches the project's triggers: a change outside
review_triggers.paths (or the project's own directory, without paths)
gets none. To wait for it and test it:
gh pr view <n> --json headRefName,headRefOid,
or git rev-parse HEAD once pushed), and check the pull request's changed
files (gh pr diff <n> --name-only) against those triggers. When none
match, say no preview build will come and offer revyl-test to build it
instead of waiting.list_builds with the app's app_id and the head branch; take the
build whose commit_sha equals the full SHA. While it is queued or
running, call get_build with its id and wait_seconds 45 again, up to
20 minutes or the limit the user gave, telling the user it's still
building every few minutes. It's ready when ready_for_device_session is
true; a failed build carries failure_reason. When list_builds has no
build of the SHA, check again every minute or so within the same limit."$LAUNCHER" build list --app <app-id> --branch <branch> --limit 100 --json
every minute or so, within the same limit, for a version whose
metadata.scm_head_sha equals the SHA; a build still running isn't listed
until it finishes.revyl-test (or revyl-proof for the whole pull
request). Testing uses device time, so those commands ask first.When the limit passes with no build, stop waiting: say what was searched,
that the push may not have triggered a build, and offer revyl-test to build
the commit or "$LAUNCHER" github status --json to check the project.
People retrigger Revyl from a pull request comment: @revyl rerun or
@revyl retry, optionally followed by ios, android, or web and extra
guidance for the proof agent. Posting a comment is a visible action on
GitHub: suggest the comment text, and post it with gh pr comment only when
the user asks you to.
When the app also builds in CI, a change to how CI builds it belongs in the
same pull request as the matching Revyl recipe change; revyl-ci-sync has
the pattern.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub revylai/revyl-cli --plugin revyl-cli17 skills in this plugin
/revyl-buildBuild this workspace's app on a Revyl cloud runner, or upload an artifact already built, and return the Revyl build ID, after one confirmation that it uses the organization's build minutes./revyl-build-ci-uploadAdd a Revyl upload step to the CI job that already builds the app (GitHub Actions, GitLab CI, Buildkite, or another runner) so each commit and pull request has a Revyl build tied to its exact commit, without building twice. Also covers uploading EAS or other hosted artifacts by URL and registering web preview deployments. Use when wiring CI builds into Revyl./revyl-build-configWrite or fix the build recipes in a Revyl project's .revyl/config.yaml - build profiles per platform, simulator and emulator artifacts, framework recipes for native iOS, native Android, Expo, React Native, Flutter, and web, secrets for private dependencies, and caches. Use when setting up Revyl builds, adding a platform or profile, or when a Revyl cloud build fails on its configuration./revyl-ci-syncKeep a repo's Revyl remote build mirrored with its CI pipeline - update both in the same PR and debug drift between them./revyl-cli-auth-bypassSet up test-only auth bypass for Revyl runs across Web, Expo, React Native, native iOS, native Android, and Flutter apps./revyl-deviceStart one Revyl cloud device (or browser) on a chosen app build and hand back the viewer link, after one confirmation that it uses the organization's device time.Other plugins' skills for the same job