android-testing
Skill3 starsChanged 7 months agoMITView on GitHub
Android testing strategy skill for unit, integration, UI, screenshot, contract, macrobenchmark, and baseline profile planning. Use this when users ask what to test, how much to test, or how to reduce flaky test suites.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- piyushverma0/android-agent-skillstheir own version, first seen Mar 14, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- piyushverma0/android-agent-skills★ 15same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- android-engineering-skillSkill
- android-architectureSkill
- android-code-reviewSkill
- android-composeSkill
- android-debuggingSkill
- android-gradle-buildSkill
- android-kotlin-concurrencySkill
- android-performanceSkill
- android-release-engineeringSkill
- android-securitySkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
add characterization tests before deep refactor
- Distinctive: line 55
if UI churn is high:
- Distinctive: line 56
use focused behavior tests, avoid brittle screenshot overuse
- Distinctive: line 57
if visual fidelity is contractual:
- Distinctive: line 58
add disciplined screenshot review workflow
- Very specific: line 62
Use measurable gates and label each pass | at-risk | fail:
- Distinctive: line 69
If coverage and flake baselines are missing, return a measurement-first stabilization plan.
- Distinctive: line 78
Never normalize persistent flaky failures as expected behavior.
- Distinctive: line 88
If confidence is medium/low:
- Very specific: line 97
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
- Very specific: line 102
Follow the global section order from ../../AGENTS.md:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Define risk-weighted Android testing strategy that maximizes confidence under cost, speed, and maintainability constraints.
Scope and authority
This skill is lead authority for verification depth, confidence strategy, and flakiness controls.
Supporting interactions:
- defer production ship/no-ship to
android-release-engineering - align boundary-sensitive coverage with
android-architecture - coordinate runtime/perf validation with
android-performance
When to use
- defining test strategy for new modules/features
- recovering from flaky CI suites
- selecting minimum viable coverage under deadlines
- hardening refactor and migration confidence
Decision engine workflow
- Identify business-critical and failure-prone journeys.
- Classify risk by impact, probability, and detectability.
- Allocate test depth per layer by ROI.
- Design deterministic data and environment controls.
- Stage rollout and gate criteria by release risk.
Branching decision tree
Branch A: delivery context
deadline-critical:- prioritize high-risk integration and contract tests
- defer lower-value UI coverage with explicit follow-up date
stability-critical:- increase integration and failure-path depth
- tighten flaky-test budget and quarantine policy
Branch B: architecture maturity
legacy-coupled:- add characterization tests before deep refactor
modular and bounded:- bias toward fast unit + boundary-focused integration tests
Branch C: UI strategy
- if UI churn is high:
- use focused behavior tests, avoid brittle screenshot overuse
- if visual fidelity is contractual:
- add disciplined screenshot review workflow
Quantitative gates
Use measurable gates and label each pass | at-risk | fail:
- critical-flow coverage gate (required behavior paths covered)
- flaky-rate gate (suite-level instability budget)
- execution-time gate (CI viability budget)
- regression-detection gate (failure-path and contract-test coverage on high-risk boundaries)
If coverage and flake baselines are missing, return a measurement-first stabilization plan.
Tradeoff realism
Accept "imperfect but justified" decisions when explicit:
- temporary test debt is acceptable with owner, deadline, and risk cap
- selective retries may be acceptable while fixing root-cause flakiness
Never normalize persistent flaky failures as expected behavior.
Uncertainty protocol
Always report confidence:
High(>= 0.80)Medium(0.60-0.79)Low(< 0.60)
If confidence is medium/low:
- state assumptions and unknowns
- provide at least one lower-risk fallback
- request minimum extra evidence (failure stats, flaky rate, risk incidents)
- escalate to
android-release-engineeringwhen unresolved risk affects go/no-go
Cross-skill handoff payload
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
Set requesting_skill to android-testing.
Output contract
Follow the global section order from ../../AGENTS.md:
Context and constraintsDecision and rationaleAlternatives consideredTradeoffsRisks and mitigationsConfidence and unknownsCross-skill impactsNext implementation steps
Also include:
Test pyramid recommendationTest boundaries by layerWhat not to testFlakiness risks and controlsPerformance test additions
Anti-pattern detection
- excessive UI tests for risks coverable at lower layers
- tests asserting implementation details over behavior/contracts
- nondeterministic test inputs (time/network/randomness)
- missing failure-path coverage on high-impact journeys
Related resources
templates/test-strategy.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

