Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/skydoves/android-testing-skillsnpx agentmods add skills/skydoves/android-testing-skills/extracting-test-artifactsWrote 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.00273 | $0.04603 |
| Opus 5.5 | $0.00109 | $0.01841 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 273 tokens to every session and 4,603 once invoked, about $0.0011 per session on Opus 5.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.
extracting-test-artifacts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| extracting-test-artifactsskydoves/android-testing-skills | Skill | 351 | 6mo ago | Apache-2.0 | B | 273 | Claude Code, Codex |
| orca-emulator-androidstablyai/orca | Skill | 147k | today | MIT | A | 102 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 56 | Claude Code |
| android-tombstone-symbolicationdotnet/skills | Skill | 6.4k | today | MIT | A | 176 | Claude Code |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |
| winapp-mauimicrosoft/winappCli | Skill | 1.4k | today | MIT | A | 68 | Claude Code |
| flutter-devMiniMax-AI/skills | Skill | 14k | 20d ago | MIT | A | 83 | Claude Code |