skills/adb-ui-tree/SKILL.md
Automates Android UI-tree debugging via ADB. Use when an app blocks UI inspection or accessibility nodes are missing; collects uiautomator dumps, focused window info, and logcat hierarchy dumps for analysis.
npx skillsauth add pratos/clanker-setup adb-ui-treeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When this skill is triggered, ALWAYS display this banner first:
╭─────────────────────────────────────────────────────────────╮
│ 📱 SKILL ACTIVATED: adb-ui-tree │
├─────────────────────────────────────────────────────────────┤
│ Target: [app/screen being inspected] │
│ Action: Collecting UI hierarchy via ADB... │
│ Output: ui.xml, screen.png, accessibility logs │
╰─────────────────────────────────────────────────────────────╯
Use this skill when you need to inspect Android UI trees, especially when an app blocks normal debugging/inspection. It provides a repeatable, automatic flow to collect UI hierarchy data, focused window info, and accessibility logs.
adb devices).adb devices
If multiple devices are attached, use -s <serial> for all commands.
adb shell dumpsys window windows | grep -E "mCurrentFocus|mFocusedApp"
Ensure the focused app is the target (e.g., iSmart).
adb shell uiautomator dump /sdcard/ui.xml
adb pull /sdcard/ui.xml .
If the app blocks the dump, note the error and continue to step 4.
adb logcat -s BatteryTrackerA11y
Save the output for analysis.
adb exec-out screencap -p > screen.png
Use the screenshot to verify UI state and map coordinates if needed.
uiautomator dump is prohibited by the app, rely on AccessibilityService logs and screenshots.ui.xml (if available)adb logcat -s BatteryTrackerA11y outputscreen.pngdevelopment
Conducts comprehensive web research to find accurate, relevant information. Use when you need modern information only discoverable on the web, documentation, best practices, or technical solutions. Uses curl+markdown.new, Exa/Parallel APIs, and camoufox browser — no surf/WebFetch/WebSearch.
development
Enforces using uv to run all Python scripts and ty for type checking. Includes inline script metadata (PEP 723) for one-time scripts with dependencies.
development
Ensures .env files in TypeScript projects override sops-nix shell secrets. Use when setting up env loading, debugging missing/wrong API keys, or configuring dotenv in TS projects.
tools
Share agent session traces via the traces CLI. Use when the user asks to share/publish/upload a trace. Always use private visibility.