capturing-screenshots-and-screenrecord

Capture PNG screenshots and MP4 screen recordings from Android devices via ADB.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill capturing-screenshots-and-screenrecord-trancee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capturing-screenshots-and-screenrecord
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/android-testing-skills/adb/capture/capturing-screenshots-and-screenrecord
Command: npx skills add https://github.com/trancee/MeshLink-template --skill capturing-screenshots-and-screenrecord-trancee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves the difficulty of capturing reliable visual evidence and diagnostic data from Android devices during automated testing, preventing issues like corrupt image files or missing failure context.

Core Features & Use Cases

  • Visual Artifact Generation: Capture PNG screenshots and MP4 screen recordings directly from connected devices via ADB.
  • Failure Diagnostics: Implement automated capture-on-failure patterns that bundle screenshots with logcat dumps to accelerate debugging.
  • Use Case: When a CI test fails, this skill automatically triggers a screenshot and a logcat dump, providing the exact state of the device at the moment of failure for rapid root-cause analysis.

Quick Start

Use the capturing-screenshots-and-screenrecord skill to take a PNG screenshot of the connected device and save it as screen.png.

Frequently Asked Questions about capturing-screenshots-and-screenrecord

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture a screenshot from an Android device using ADB?

To capture a screenshot from an Android device using ADB, use ADB shell commands like screencap to generate a PNG file. This skill ensures binary-clean data transfer to prevent corrupt image files during automated testing.

Can I automatically capture a screen recording when an Android test fails?

Yes, you can automatically capture an MP4 screen recording when an Android test fails. This skill supports capture-on-failure patterns that bundle screenrecord outputs with logcat dumps for rapid root-cause analysis.

What is the best way to bundle device logs with screenshots for QA bug reporting?

The best way to bundle device logs with screenshots for QA bug reporting is triggering automated capture-on-failure patterns. This skill captures PNG screenshots alongside logcat dumps to provide the exact device state at failure.

Does ADB screencap work with Android scoped-storage and different API levels?

ADB screencap works with Android scoped-storage and different API levels when properly handling constraints. This skill ensures binary-clean data transfer and manages Android API-level limitations to generate reliable visual artifacts.

Why do my ADB screenshot files end up corrupt during automated test runs?

ADB screenshot files often end up corrupt during automated test runs due to improper binary data transfer. This skill resolves this by ensuring binary-clean data transfer when pulling PNG screenshots via exec-out or similar ADB commands.