Claude-skill-registry adb
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/adb" ~/.claude/skills/majiayu000-claude-skill-registry-adb && rm -rf "$T"
manifest:
skills/data/adb/SKILL.mdsource content
Android ADB
Important: Use Scripts First
ALWAYS prefer the scripts in
over raw scripts/
commands. Scripts are
located in the adb
scripts/ subdirectory of this skill's folder. They provide
features that raw commands do not, such as:
- Automatic circular masking for Wear OS screenshots
- Device wake-up before capture
- Clipboard integration on macOS
- Sensible default filenames and error handling
When to read the script source: If a script doesn't do exactly what you need, or fails due to missing dependencies, read the script source. The scripts encode solutions to edge cases and platform quirks that may not be obvious—use them as reference when building similar functionality.
Quick Start
Target specific devices using the
ANDROID_SERIAL environment variable if
multiple devices are connected.
Highest-Value Commands
-
Screenshot (auto-masks circular Wear OS displays):
scripts/adb-screenshot -
Wear OS Tile Debugging Workflow:
-> output gives INDEXscripts/adb-tile-add com.example/.MyTileServicescripts/adb-tile-show INDEX -
Inspect Wear OS Data Layer:
scripts/wearableservice-capabilitiesscripts/wearableservice-nodes -
Package Information:
scripts/packagename tiles PACKAGE_NAMEscripts/packagename services PACKAGE_NAME -
Device Info:
scripts/adb-device-properties -
Discover Activities:
(find launcher, TV, settings activities)scripts/adb-activities
Script Index
See
references/command-index.md for detailed usage.
Device Basics
: List connected devices.scripts/adb-devices
: Show key device properties (model, manufacturer, etc.).scripts/adb-device-properties
: Get the device API level (SDK version).scripts/adb-api-level
/scripts/adb-keyevent-wakeup
: Wake up or put device to sleep.sleep
Media Capture
: Take a screenshot. Always use this instead of rawscripts/adb-screenshot
. Features: auto-detects square Wear OS displays and applies circular mask, wakes device before capture, copies to macOS clipboard, generates timestamped filenames by default.adb shell screencap
: Record the screen to a file.scripts/adb-screenrecord
Tile Management (Wear OS)
: Add a tile component for debugging.scripts/adb-tile-add
: Show an added tile.scripts/adb-tile-show
: Remove a tile.scripts/adb-tile-remove
: List currently added tiles.scripts/adb-tiles
Activity Discovery
: List activities tagged by category (Launcher, Home, TV/Leanback, Settings). Usescripts/adb-activities
,--launcher-only
,--tv-only
to filter. Add--settings-only
to include system apps.--all
Package Operations
: Comprehensive package tool (uninstall, launch, stop, clear-cache).scripts/packagename
: Show logcat filtered for a specific package.scripts/adb-logcat-package
: List tiles declared in an APK file.scripts/apk-tiles
Wear OS Data Layer
: Dump advertised capabilities.scripts/wearableservice-capabilities
: List connected nodes.scripts/wearableservice-nodes
: List data items.scripts/wearableservice-items
Display & Demo Mode
/scripts/adb-demo-on
: Toggle Android demo mode (clean status bar).off
/scripts/adb-fontscale-default
: Change font size.large
: Toggle dark/light theme.scripts/adb-settings-theme
/scripts/adb-touches-on
: Show/hide taps on screen.off
Safety Notes
- Debug Broadcasts: Tile management relies on Wear OS debug broadcasts
(
) which may not work on production builds without developer options or specific system images.com.google.android.wearable.app.DEBUG_SURFACE - USB Debugging: Requires
authorization.adb - Destructive Actions: Scripts like
oradb-tile-remove
modify device state.packagename uninstall