onekeyhq/app-monorepo/1k-ui-verify
- community
Checking that the SKILL.md file is still in the repository.
Drive OneKey desktop or mobile apps to verify real visual and interactive behavior using CDP/Playwright or agent-device. Use for UI 验证 or screenshot confirmation.
Install
npx vskill@latest install onekeyhq/app-monorepo/1k-ui-verifySKILL.md
UI Verification (Desktop CDP + RN agent-device)
Drive the running OneKey app to confirm a UI change instead of guessing from code. Pick the backend by the platform under test — never assume one tool covers all.
Decision: which backend?
| Platform under test | Backend | Why | |
|---|---|---|---|
| Desktop (Electron) | CDP 9222 + playwright-core | Renderer is Chromium; already enabled in dev. See electron-cdp.md | |
| iOS / Android (native RN) | agent-device | Real simulator/emulator/device, RN component tree. See agent-device-rn.md | |
| Web / Extension | Out of scope here | Use plain Playwright/Puppeteer against the dev URL |
playwright-core (^1.50.0) is already a root dependency — no install needed for desktop. agent-device is an external CLI/MCP — see its rule file for setup.
Workflow
Always anchor to `testID` props, never brittle text/CSS selectors. Add a testID to the component first if one is missing (search grep -rn 'testID' packages/kit/src/views/<area>).
Desktop quick recipe (CDP 9222)
Prereq: yarn app:desktop running — its dev:main launches Electron with --remote-debugging-port=9222 --remote-debugging-address=127.0.0.1.
The script connects to the main window (the page with [data-testid^="tab-modal"]), captures a screenshot, optionally clicks a testID, and prints any console errors. Full pattern, console capture, and pitfalls (DevTools closed, finding the right window): electron-cdp.md.
RN quick recipe (agent-device)
testID works on iOS (click/is visible/get attrs with id="...") even though snapshot looks empty. Gotcha: the dev CPU/RAM/fps perf-overlay is a full-screen window that swallows taps over its HUD box — if a click prints "Tapped" but nothing changes, disable the overlay or get attrs
click <x y>on a clear spot. Command isclick, nottap. Full details, the proven
edit→reload→verify workflow, and pitfalls: agent-device-rn.md.
Prefer the MCP integration so the agent calls these directly.
Regression scenario series
Reproducible freeze/regression scenarios live in one root runner: scenarios/regression.mjs. Each scenario declares a backend (cdp for desktop/web, agent-device for RN) and the cdp backend is parameterized by port, so web reuses it (no slow per-run Playwright launch — connect over CDP to an already-running Chrome).
The gift-storm-rn scenario's selectors (tab labels, testIDs) are mirrored from desktop and marked VERIFY — confirm against agent-device snapshot --json on a live device before relying on it.
Related Skills
/verify— generic "run the app and confirm a change" harness (this skill is the OneKey-specific how)/run— launch/screenshot the app/1k-dev-commands— default RN DevSession workflow, desktop launch, and direct native rebuild commands/1k-cross-platform— platform-specific behavior to verify separately
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skillshare/skills/1k-ui-verify/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/onekeyhq/app-monorepo/1k-ui-verify)