OpenTagViewer: Skill for Claude Code

.claude/skills/watch-gradle-tests/SKILL.md

watch-gradle-tests is a skill for Claude Code from parawanderer/OpenTagViewer. It costs 45 tokens per session (1,451 once invoked), scanned A, original, MIT.

A workflow for watching a long-running Gradle Android instrumented-test run, where tests execute on an emulator or device.

In plain words
What is it for?
Use it when running :app:testEmulatorDebugAndroidTest or :app:connectedDebugAndroidTest in the background.
Why use it?
Long test runs are easy to misread when monitored with hand-written log searches. This workflow reports failures, stalled output, completion, and the final verdict.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions AGENTS.md.

This is parawanderer/OpenTagViewer's own configuration. It tells Claude Code how to work on OpenTagViewer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenTagViewer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to parawanderer/OpenTagViewer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/parawanderer/OpenTagViewer/main/.claude/skills/watch-gradle-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/parawanderer/OpenTagViewer

Made for: Claude Code.

Wrote 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.

agentmods badge for watch-gradle-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/parawanderer/opentagviewer/watch-gradle-tests/github.svg)](https://agentmods.dev/skills/parawanderer/opentagviewer/watch-gradle-tests)
Your own site
<a href="https://agentmods.dev/skills/parawanderer/opentagviewer/watch-gradle-tests"><img src="https://agentmods.dev/badge/skills/parawanderer/opentagviewer/watch-gradle-tests/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.

agentmods 80×15 button for watch-gradle-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/parawanderer/opentagviewer/watch-gradle-tests"><img src="https://agentmods.dev/badge/skills/parawanderer/opentagviewer/watch-gradle-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 61
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01451
Opus 5.5 $0.00018 $0.00580
Sonnet 5.5 $0.00009 $0.00290
Haiku 4.5 $0.00005 $0.00145

Measured 1mo ago against content hash ba7d807f1868, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

watch-gradle-tests scanned grade A with 0 findings 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (watch_tests.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/watch-gradle-tests/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Watching a test run to a verdict

The emulator suite takes upwards of ten minutes, so it gets backgrounded, so something has to report on it. Do not write that something fresh each time. Use the script.

# 1. Start the run, redirected to a file.
./gradlew :app:testEmulatorDebugAndroidTest --console=plain > tmp/run.log 2>&1

# 2. Prove the watcher sees the log before trusting it. One command, always.
python .claude/skills/watch-gradle-tests/watch_tests.py tmp/run.log --once

# 3. Arm a Monitor on the same script with no --once.
python .claude/skills/watch-gradle-tests/watch_tests.py tmp/run.log

Each line it prints is one event: FAILED <Class>.<method> as each failure appears, STALLED … if the log stops growing, and FINISHED + VERDICT at the end.

Give every run its own log file

Reusing one name races the watcher against the run that is starting. Arm a Monitor while the previous run's log is still on disk and it reads that — matches its BUILD line, prints its verdict, and reports a finished run that has not started. The XML age in VERDICT is the only hint, and "2 min old" looks perfectly current.

That cost a wrong conclusion here: a stale verdict was read as the new run's, its crash trace pointed at a line number the fix had already moved, and the obvious inference — "the APK did not rebuild" — was wrong twice over.

log=tmp/run-$(date +%H%M%S).log
./gradlew :app:testEmulatorDebugAndroidTest --console=plain > "$log" 2>&1 &
python .claude/skills/watch-gradle-tests/watch_tests.py "$log"

Never wrap --once in your own sleep loop

That is the shape step 3 exists to replace, and it looks close enough to right to pass review:

# WRONG - and this exact loop cost 1h22m
for i in $(seq 1 110); do
  grep -qE "BUILD SUCCESSFUL|BUILD FAILED" tmp/run.log && { ...--once; break; }
  sleep 20
done

It waits for a terminal line and nothing else, so it is blind to the run stopping without one — which is the failure worth catching. A suite hung 25 minutes on a single test produced no new output and no verdict, so the loop sat silent, then hit its own limit and exited 0 with no output at all: indistinguishable from success. Meanwhile watch mode would have said STALLED no output for 8 min, at 424/687 seventeen minutes earlier.

Read the full file on GitHub · 116 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 1mo ago Changed · +42 lines ba7d807f1868
  2. 2mo ago First seen · 74 lines · 45 tokens per session scan A fb96bae6f1ed

Subscribe to this mod's changes

watch-gradle-tests is a skill published in the GitHub repository parawanderer/OpenTagViewer (450 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 1,451 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

android-ui-journey-testing

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

sickn33/agentic-awesome-skills · 27 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 82 tokens

argent-test-ui-flow

Autonomously test an app UI (iOS or Android) by running interact-screenshot-verify loops using argent MCP tools. Use when testing UI flows, verifying login works, testing navigation, running UI test scenarios, manual QA steps, visible UI changes, or visual behavior.

software-mansion/argent · 61 tokens

mobile-automation

Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.

mobile-next/mobile-mcp · 58 tokens

startup-qa-bot-getting-started

A guided first conversation for a product-checking assistant. It helps define a safe test environment and choose an initial check, such as following a sign-up flow or comparing two versions.

makecindy/cindy · 45 tokens

startup-qa-bot-ops

A working procedure for checking a product in a clearly separated test environment. It maintains a page map, records observations, compares known page lists, and reports reproducible problems.

makecindy/cindy · 46 tokens