/stackwise:mobile-qa-expertfrom stackwise
Builds and debugs mobile automation suites for Appium 2.x (UiAutomator2/XCUITest), AWS Device Farm, BrowserStack, and Maestro. Handles OTP login, cert pinning, Play Integrity, and flaky real-device runs.
Ships in stackwise. 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.
Read when SKILL.md points to them.
Turns Claude into a senior mobile automation engineer who ships suites that pass on real cloud devices, not just on the emulator that wrote them.
testID/accessibility labels; request them from the app team before resorting to coordinates.[email protected] plus the driver (appium driver install uiautomator2 / xcuitest) at a version compatible with your Appium major. Start with --base-path / and match the client path. Write W3C capabilities (appium: prefixed). Verify: start the server, run appium driver list --installed, and open one session against the emulator; fix all reported issues and re-run until clean.mobile: clickGesture pattern (see references/opaque-ui-strategies.md). After every asserted state, save screenshot + page-source XML as the evidence bundle. Verify: run the suite locally; fix all reported issues and re-run until clean (zero failures, evidence artifacts present).Load detailed guidance only when the task needs it:
| Topic | Reference | Load When |
|---|---|---|
| Appium 2.x install, drivers, capabilities, local emulator loop | references/appium-setup.md | Setting up or debugging an Appium server/driver/capabilities, emulator-first development |
| AWS Device Farm & BrowserStack real-device runs | references/device-farm-cloud.md | Packaging for a device cloud, writing a testspec.yml, cloud run fails that pass locally |
| Locating/tapping elements in RN, Flutter, or WebView trees | references/opaque-ui-strategies.md | element.click() no-ops, clickable=false everywhere, missing testIDs, coordinate taps |
| Unattended login, email OTP over IMAP, session reuse | references/auth-flows-unattended.md | Automating a login/OTP wall, secrets handling, suite structure around auth |
| Maestro YAML smoke flows | references/maestro-smoke.md | Adding quick smoke coverage, choosing Maestro vs Appium, writing/running flows |
Tap by text bounds when the tree is opaque (RN/Flutter - the touch handler lives on an unlabeled parent, so element.click() silently no-ops):
import re
def tap_text(driver, text):
src = driver.page_source # read LIVE source every time; never cache
m = re.search(rf'text="{re.escape(text)}"[^>]*bounds="\[(\d+),(\d+)\]\[(\d+),(\d+)\]"', src)
x1, y1, x2, y2 = map(int, m.groups())
driver.execute_script("mobile: clickGesture", {"x": (x1 + x2) // 2, "y": (y1 + y2) // 2})
Evidence bundle after every asserted state - screenshot + hierarchy XML is what QA reviews:
def capture(driver, outdir, name):
driver.save_screenshot(f"{outdir}/{name}.png")
with open(f"{outdir}/{name}.xml", "w") as f:
f.write(driver.page_source)
Login once, reuse the session - terminating the app keeps auth state; clearing app data destroys it:
driver.terminate_app(APP_ID) # session survives
driver.activate_app(APP_ID) # still logged in - safe reset between tests
# driver.reset() / clearing app data => logged out; never use mid-suite
W3C capabilities, Appium 2.x style - every non-standard key needs the appium: prefix:
caps = {
"platformName": "Android",
"appium:automationName": "UiAutomator2",
"appium:app": os.environ["APP_PATH"],
"appium:noReset": True, # preserve login between sessions
"appium:newCommandTimeout": 300,
}
appium. The binary on PATH is an Appium 1.x CLI wrapper with no driver subcommands. In the testspec, npm install -g [email protected] to shadow it, install a compatible uiautomator2 driver, and start with --base-path / matching the client path.clickable=false and element.click() no-ops silently. Verify the post-tap state changed; fall back to bounds-center mobile: clickGesture from live page source.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
appium, mobile-testing, device-farm, browserstack, maestro, ui-automation
npx claudepluginhub aarvion-ai/stackwise-skills --plugin stackwise16 skills in this plugin
/docker-expertUse when working with Dockerfile, docker-compose.yml, .dockerignore, or multi-stage builds. Build, debug, secure, and optimize Docker 27+ images and Docker Compose services./engineering-rulesUse when writing, modifying, or reviewing code in any language or framework. Applies to every code task in this repo and every code sample inside a skill: new features, bug fixes, refactors, generated snippets, tests, scripts, docs with code. Enforces the seven repo-wide rules: reusable code, maintainable structure, top-notch readability, no AI slop, dead code removal, why-only comments, no em dashes. Invoke for implementing changes, self-reviewing a diff, cleaning up generated code, writing reference examples, or reviewing a PR./fastapi-expert