Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/skydoves/android-testing-skills/extracting-test-artifactsnpx skills add skydoves/android-testing-skills --skill extracting-test-artifactsgit clone --depth 1 https://github.com/skydoves/android-testing-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/skydoves/android-testing-skills/extracting-test-artifacts)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/extracting-test-artifacts"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/extracting-test-artifacts.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00273 | $0.04603 |
| Opus 5 | $0.00137 | $0.02302 |
| Sonnet 5 | $0.00055 | $0.00921 |
| Haiku 4.5 | $0.00027 | $0.00460 |
Grade B, and why
extracting-test-artifacts scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
Caveat: your app runs as `u0_aXX`, not `shell`, so the app cannot read shell-written files unless you `chmod 0644` and the parent is world-readable. `/data/local/tmp/` itself is `0771`, so be deliberate when pushing file How it starts
The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Extracting Test Artifacts — adb pull / push and run-as
This skill covers moving files between host and device, the path permission rules that decide whether a pull succeeds, and the androidx.test:services TestStorage API for routing per-test artefacts. Capture-on-failure orchestration (when to pull what) lives in ../../automation/scripting-adb-for-ci/SKILL.md.
When to use this skill
- A test produces artefacts (screenshots, JSON, captured DBs) that need to land on CI as build outputs.
adb pull /data/data/com.example/databases/main.dbfails with "Permission denied"; the developer doesn't knowrun-asexists.- A binary file (PNG, MP4, SQLite DB) arrives on the host with mangled bytes — the missing
exec-outis the fix. - A push of a large APK or test data file is slow; the developer wants the modern compression flags (
-z brotli). - The test app writes screenshots to
/sdcard/Android/data/com.example/files/screenshots/and the developer wants to know whether that's pullable on API 30+ (it is, when the package owns it). - The team is migrating from "write to /sdcard, pull on the host" to the modern AndroidX
TestStorageAPI.
When NOT to use this skill
- Capturing the screenshot or video that becomes the artefact. Use
../../capture/capturing-screenshots-and-screenrecord/SKILL.md. - Capturing logs to extract. Use
../../observability/extracting-logs-with-logcat/SKILL.md. - Installing or uninstalling APKs. Use
../../apps/installing-and-managing-apps/SKILL.md. - Driving the device (taps, key events). Use
../../control/injecting-input-and-state/SKILL.md. - The whole CI orchestration (when to pull, retries, parallelisation). Use
../../automation/scripting-adb-for-ci/SKILL.md.
Prerequisites
adb get-statereturnsdevice. See../../devices/connecting-to-devices/SKILL.md.- For
run-as: the target APK must beandroid:debuggable="true"in its merged manifest (the defaultdebugbuild variant). - For
-z brotli/zstd: platform-tools 30+ on the host and adbd ≥ Android 11 on the device. - For
TestStorage:androidx.test:servicesand the-e useTestStorageService trueargument toam instrument.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 325 lines · 273 tokens per session scan B 1498190442c7
extracting-test-artifacts is a skill published in the GitHub repository skydoves/android-testing-skills (317 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 273 tokens to every session and 4,603 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
orca-emulator-android
Control an Android emulator / device from inside Orca using the orca CLI. Use for listing/booting AVDs, taps, swipes, typing, hardware buttons (incl. Back and Recents), rotation, app install/launch, runtime permissions, the accessibility tree, and logcat — driving a real adb-connected device or emulator.…
android-tombstone-symbolication
Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…
dogfood
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.
winapp-maui
Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.
android-pentest
安卓应用渗透测试 — APK分析、Hook、自动化测试、运行态驱动、签名恢复、抓包分析.
react-native-ease-refactor
Scan for Animated/Reanimated code and migrate to EaseView.