/hotswan:hotswanfrom Compose HotSwan
Hot reloads Jetpack Compose apps and verifies UI changes on screen using the `hotswan` CLI. Supports Android, desktop, and iOS targets with screenshot comparison and diagnostics.
Ships in Compose HotSwan. 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.
hotswan pushes code changes into the running app in seconds and tells you whether they reached the
screen. Use it instead of rebuilding and reinstalling. Add --json to any command for exactly one
compact JSON object on stdout (watch prints one per reload): ok, exitCode, and on failure message
and remedy. warnings lists edits a live reload could not carry.
The first command in a project reads the Gradle build once and can take a minute or more on a large
project; give it a long timeout (run hotswan doctor first). Later commands take about a second plus
the compile.
If hotswan is not installed, or hotswan doctor reports that no module applies the HotSwan plugin,
follow the hotswan-setup skill first.
hotswan status (exit 0) or start it with hotswan run.hotswan reload --json (optionally name the edited files: hotswan reload path/to/File.kt --json).ok: true, outcome: APPLIED and screen.changed: true: the edit is live. Look at
screen.images.compare (before | after | diff) or screen.images.zoom (the changed region; both
absolute paths) to check it visually; screen.textAdded / screen.textRemoved list text that changed.screen.changed: false: the reload worked but the current screen did not change. Navigate to the
screen that uses the edited code (see below) and look again with hotswan screenshot. It is only
evidence when screen.compared is true and screen.beforeCapturedBeforePush is not false.outcome: NO_CHANGES: no file changed since the last reload. If you did edit, name the file:
hotswan reload path/to/File.kt.outcome: NO_CODE_CHANGE: the compiled code did not change (a comment edit, or the app already has
it). If the screen still looks old, the app is out of date: hotswan run.outcome: COMPILE_ERROR: fix errors[] (file, line, message) and reload again.outcome: RESTART_REQUIRED (exit 4) or APP_CRASHED, or warnings about resource/manifest edits:
hotswan reload --restart rebuilds, relaunches and walks back to the same screen (outcome
RESTARTED). Trust its screen result only when restart.returned is true.outcome: NOT_RELOADABLE (exit 4) with a warning that a module "does not apply HotSwan": run the command
in remedy (hotswan setup --apply --module <path>), then hotswan run. For resource or build edits,
use hotswan reload --restart.outcome: NOT_RELOADABLE (exit 4) with notReloadable (each a declaration and its reason): the edit
changed code HotSwan leaves out of a hot reload, such as a generic function, so the app still runs the
installed version. Run hotswan reload --restart (or hotswan run) to see it. Until then, later reloads
apply and warn "still running the installed code of ..."; that is the same edit, not a new failure.outcome: NOTHING_APPLIED or NOT_RENDERED (exit 5): the edit did not reach the screen; read message.message and remedy; report points to an issue-ready report.md.hotswan ui tree: the screen as an indented outline (#id Role "text" [click,scroll] @x,y).hotswan ui tap "Settings": tap by visible text; also tag=…, desc=…, #id or @x,y.hotswan ui type "Search" "coffee": type into a field (hotswan ui type "text" if there is one field).hotswan ui scroll --down, hotswan ui scroll-to "Privacy policy" (scrolls until it is visible).hotswan ui wait "Loaded" --timeout 10s, hotswan ui back.--shot to an action to save a screenshot after it settles.ui action is recorded. hotswan journey save <name> keeps the path to the current
screen; hotswan journey run <name> (or hotswan run --journey <name>) walks it again after a restart.hotswan screenshot: saves a PNG (720px wide by default) and prints its path; read the image to see it.hotswan doctor: checks Java, adb, the device, the Gradle plugin, the running app and versions.hotswan logs (HotSwan and warning lines from the app), hotswan logs --crash.hotswan report: the last failed reload or build as Markdown for a bug report (compile errors are
your code's and write no report).0 ok · 1 failed (compile error, refused push, crash) · 2 usage · 3 not ready (no device, app, or plugin) · 4 restart required · 5 the edit did not reach the screen · 6 not found (a selector, a journey or its next step, nothing moved, a wait timed out).
After you change build files (including hotswan setup), run hotswan run before the next reload.
Resource value edits (res/values/*.xml), manifest and build file edits are not hot reloaded live; use
hotswan reload --restart (it walks back to the screen) or hotswan run. The screen check, ui and status are Android-only; screenshot
also works on a booted iOS simulator (--target ios).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hot-reload, compose, live-reload, ui-testing, android-development
npx claudepluginhub skydoves/compose-hotswan --plugin hotswan2 skills in this plugin
Other plugins' skills for the same job