android-screen-capture

Start Android screen mirroring using scrcpy. Displays device screen in real-time on Mac with optional console logs. Use when viewing Android screen, mirroring device, or monitoring app with logs.

16 stars

Best use case

android-screen-capture is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Start Android screen mirroring using scrcpy. Displays device screen in real-time on Mac with optional console logs. Use when viewing Android screen, mirroring device, or monitoring app with logs.

Teams using android-screen-capture should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/android-screen-capture/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/devops/android-screen-capture/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/android-screen-capture/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How android-screen-capture Compares

Feature / Agentandroid-screen-captureStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Start Android screen mirroring using scrcpy. Displays device screen in real-time on Mac with optional console logs. Use when viewing Android screen, mirroring device, or monitoring app with logs.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Android Screen Capture

## Overview

Native macOS app that mirrors an Android device screen using `scrcpy` with an integrated console for live app logs. Matches the iPhone screen capture experience with a unified interface.

## When to Use

Invoke this skill when the user:
- Asks to "start Android screen capture"
- Wants to "see their Android screen"
- Wants to "mirror their Android device"
- Mentions viewing or displaying their Android device
- Says "show me my Android phone"

## Prerequisites

- Android device connected via USB
- **USB debugging enabled** (Settings → System → Developer options → USB debugging)
- **Developer Mode enabled** (Settings → About Phone → tap Build number 7 times)
- Device authorized for debugging
- **scrcpy installed**: `brew install scrcpy`
- **ADB installed**: `brew install android-platform-tools`

## Instructions

1. Navigate to screen capture directory:
   ```bash
   cd miso/platforms/android/development/screen-capture/imp
   ```

2. Run the screen capture app:
   ```bash
   ./android_screencap.sh
   ```

3. The app will:
   - Build automatically if needed
   - Detect your connected Android device
   - Launch scrcpy for screen mirroring
   - Show a toolbar with device info and console button

## Features

- **Integrated window**: Toolbar at top with scrcpy below
- **Console toggle**: Green ">" button opens live log panel
- **Click to resize**: Click the window to toggle full/half size
- **Draggable**: Drag by toolbar, scrcpy follows
- **Live logs**: Console shows `[APP]` prefixed logs from your app via `adb logcat`

## What to Tell the User

- A dark borderless window will appear with your Android screen
- **Green ">" button** in toolbar opens the console panel with live logs
- **Click anywhere** on the window to toggle between full and half size
- **Drag the toolbar** to move the window (scrcpy follows)
- Close window or Cmd+Q to quit

## Keyboard Shortcuts (in scrcpy area)

- **⌘+f**: Toggle fullscreen
- **⌘+r**: Rotate screen
- **⌘+g**: Resize to 1:1 (pixel-perfect)
- **⌘+c**: Copy device clipboard to computer

## Taking Screenshots

```bash
./screenshot.sh output_filename.png
```

## Reading Logs (for Claude)

```bash
adb logcat -v brief -d | grep "\[APP\]" | tail -30
```

## Common Issues

**"Device not found"**:
- Check USB debugging enabled
- Accept authorization prompt on device
- Verify with: `adb devices`

**scrcpy doesn't follow when dragging**:
- Grant accessibility permissions in System Settings → Privacy & Security → Accessibility

**scrcpy not installed**:
- Install: `brew install scrcpy`

**No logs in console**:
- Ensure app uses Logger with `[APP]` prefix
- Check app is running on device

## Files

- `main.swift` - Native macOS app source
- `build.sh` - Compiles the Swift app
- `android_screencap.sh` - Builds (if needed) and launches
- `screenshot.sh` - Captures device screenshot

Related Skills

android-playstore-setup

16
from diegosouzapw/awesome-omni-skill

Complete Play Store setup - orchestrates scanning, privacy policy, version management, Fastlane, and workflows (Internal track only)

android-playstore-pipeline

16
from diegosouzapw/awesome-omni-skill

Complete end-to-end Android Play Store deployment pipeline setup in one command

android-fastlane-setup

16
from diegosouzapw/awesome-omni-skill

Setup Fastlane for Play Store deployment with supply and screengrab

android-espresso-dependencies

16
from diegosouzapw/awesome-omni-skill

Add Espresso and AndroidX Test dependencies to Android project

android-deploy-usb

16
from diegosouzapw/awesome-omni-skill

Build and deploy Android app to connected device via USB. Fast deployment (~2-5 seconds) using Gradle and ADB. Use when deploying, installing, or building Android apps to physical devices.

android-ci-tests

16
from diegosouzapw/awesome-omni-skill

Setup GitHub Actions workflow for running Android tests in CI

screenshots

16
from diegosouzapw/awesome-omni-skill

Generate marketing screenshots of your app using Playwright. Use when the user wants to create screenshots for Product Hunt, social media, landing pages, or documentation.

screenshot

16
from diegosouzapw/awesome-omni-skill

Capture screenshots of application windows

screen-reader-testing

16
from diegosouzapw/awesome-omni-skill

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology supp...

notion-knowledge-capture

16
from diegosouzapw/awesome-omni-skill

Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.

memory-capture

16
from diegosouzapw/awesome-omni-skill

Capture and organize memories, decisions, and learnings to a memories.md file. Use when you want to save context for future sessions.

android

16
from diegosouzapw/awesome-omni-skill

Build, review, and refactor Android mobile apps (Kotlin) using modern Android patterns. Use for tasks like setting up Gradle modules, Jetpack Compose UI, navigation, ViewModel/state management, networking (Retrofit/OkHttp), persistence (Room/DataStore), DI (Hilt/Koin), testing, performance, release builds, and Play Store readiness.