/revyl-cli:revyl-test [ios|android|web] [what to check]from Revyl CLI
Builds and validates changes on a Revyl cloud device for iOS, Android, or web. Reuses existing preview builds when available, otherwise builds after confirmation, then reports evidence.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Check the change in this workspace on a Revyl cloud device and report evidence.
Read the user's arguments: Claude Code appends them to this skill as
ARGUMENTS: (/revyl-cli:revyl-test [ios|android|web] [what to check]), and in
Codex they follow $revyl-test in the message. Arguments are hints, not
authorization to guess.
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).This plugin bundles Revyl's hosted revyl-workspace MCP tools. Use them first
for looking up builds and for device work: list_apps, list_builds,
get_build, start_device_session, device_instruction,
device_validation, get_device_step, screenshot, list_device_sessions,
and stop_device_session. They return the screenshot as an image you can see,
wait for a starting device, and confirm a stop. Keep the CLI for what needs this
workspace (building, uploading, the dev loop, and project config) and for any
hosted tool that is missing, needs sign-in, or fails.
Claude Code can list a plugin's MCP tools by name only, as deferred tools. Load
the ones you need with one ToolSearch call before the first of them, such as
select:mcp__plugin_revyl-cli_revyl-workspace__list_builds,mcp__plugin_revyl-cli_revyl-workspace__start_device_session;
a deferred tool is available once loaded. If the hosted tools need sign-in,
mention it once (Claude Code: /mcp and Authenticate on
plugin:revyl-cli:revyl-workspace; Codex: codex mcp login revyl-workspace)
and carry on with the CLI. Never use start_device_session for a session the
CLI started. If the hosted tools can't see a session the CLI returned, the two
sign-ins point at different accounts or organizations: say so instead of
starting another device.
.revyl/config.yaml, its build
profiles, and the platform. If none applies, offer revyl-setup and stop.git diff, git diff --cached, and the commits on this branch). Name the
screens and behaviors the change touches.HEAD SHA (git rev-parse HEAD), the branch, whether the working
tree has uncommitted changes to the app, and whether HEAD is pushed
(git rev-parse @{u} equals HEAD). When gh is available, read the open
pull request for the branch with gh pr view --json number,headRefName,headRefOid."$LAUNCHER" github status --json in the
app directory, project.status == "enabled". The session-start context may
already say so.A build is usable only if it was built from exactly the code under test. Uncommitted app changes rule out every existing build: skip to step 3.
HEAD is pushed, has a pull request,
and pull-request builds are on, the Revyl GitHub App builds each push. Call
hosted list_builds with the app's app_id and the pull request's head
branch, and take the build whose commit_sha equals the full HEAD SHA.
Follow one that is queued or running with get_build (its id,
wait_seconds 45), calling again while it runs, for up to 20 minutes or the
limit the user gave, and tell the user it's still building every few
minutes. Use it once ready_for_device_session is true. A failed build
carries failure_reason: report it and go to step 3 instead of retrying.list_builds with the app_id and the branch, then without
the branch, taking a build whose commit_sha equals the full HEAD SHA.
Use a match whose source is pull_request or remote_build as it is:
those record a commit only when they were built from it. Confirm an
upload match, and search when the hosted tools aren't available, with
"$LAUNCHER" build list --app <app-id> --branch <branch> --limit 100 --json,
matching the full SHA exactly against metadata.scm_head_sha (CI uploads),
metadata.commit_sha (cloud builds that record it),
metadata.source_metadata.commit_sha, or metadata.git.commit. Skip any
build whose metadata.git.dirty is true before reading any of these: it was
made from uncommitted edits, and its commit fields name only the commit it
started from. Follow has_next with --page 2, --page 3,
and so on, and when the branch finds no match, repeat without --branch
(every branch): a CI upload can record another branch name, such as HEAD
from a detached checkout. Without the hosted tools this is also how to find
a finished preview build; a preview still building isn't listed until it
uploads.metadata.source revyl_build) from this plugin's pinned CLI
record none. One this conversation started (its metadata.build_job_id is
the job you started) from the current HEAD while the app had no
uncommitted changes, and from a profile with no Git source, was built
from HEAD's files: use it as this commit and say why. Never call any other such build a
different commit; say its commit is unknown and let step 3 offer it.When HEAD is pushed with a pull request but pull-request builds aren't on,
say that revyl-setup can turn them on so later pushes come with a build, and
continue without waiting for a preview that can't come.
Ask one question, then start nothing until the user says yes:
If the arguments already named the platform and what to check and the user typed this command, still ask this one question; never more than one.
Claude Code: hand this step to the revyl-verifier agent from this
plugin (revyl-cli:revyl-verifier), and keep this conversation free. Its prompt
must start with one authorization line naming exactly what the user approved,
then the details:
Authorized: <platform> device check of <app> at <full SHA>, using <build ID and source | a new cloud build of profile <profile>>, on the organization's device time; stop everything you start.
Launcher: <absolute launcher path>
App directory: <path>
App ID: <app-id>
Check: <the behaviors to verify, one per line>
Codex: spawn one subagent with that same prompt and the instructions below, and have it return only the evidence block. If you can't spawn one, run the steps yourself.
The steps, wherever they run:
"$LAUNCHER" build --build-profile <profile> --platform <platform> --detach --json
from the app directory, then "$LAUNCHER" build status <job-id> --json
until it succeeds; its build_version_id is the build to start. Expo and
React Native development clients use the hot-reload loop, which loads this
workspace's JavaScript through Metro and starts its own session:
"$LAUNCHER" dev --build-profile <profile> --platform <platform> --detach --json --no-open.dev returned. Otherwise call hosted
start_device_session with platform and the build_id (web also needs
the app's app_id), or
"$LAUNCHER" device start --build-version-id <build-id> --json when the
hosted tool isn't available. Give the user viewer_url at once.atlas_search is available, look
up the changed screen to plan how to reach it. Drive with
device_instruction, one plain-language step per call, and check each
behavior with device_validation. A result still running is followed
with get_device_step, never sent again; a session still starting is
called again with the same session_id. Capture the screen with
screenshot and look at each image before describing it. Without the
hosted tools, use "$LAUNCHER" device instruction "<step>" -s <session-id> --json,
"$LAUNCHER" device validation "<statement>" -s <session-id> --json, and
"$LAUNCHER" device screenshot -s <session-id> --out <file> --json, then
open each file. A false or missing verdict is a failed check.stop_device_session, "$LAUNCHER" device stop -s <session-id> --json,
or "$LAUNCHER" dev stop <context> --json. Cleanup runs after a failure
too. A stop is finished only when its result says stopped: true.
Otherwise check list_device_sessions or "$LAUNCHER" device list --json;
while the session is still listed, wait about ten seconds and stop it once
more, then report it as ended or still stopping. Retry once, never more.Return one evidence block:
Revyl check: <passed | failed | not run>
Commit: <full SHA> Platform: <platform>
Build: <build ID> (<pull-request preview | CI upload | cloud build | local upload>)
Session: <session ID> (stopped | still stopping)
- <behavior>: <passed | failed> - <reason>
Screenshots: <what each shows>
Offer to post it on the pull request; never post it, share a session, or publish screenshots without a yes. Report any Revyl problem that got in the way.
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.Other plugins' skills for the same job