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/composing-semantics-matchersnpx skills add skydoves/android-testing-skills --skill composing-semantics-matchersgit 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/composing-semantics-matchers)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/composing-semantics-matchers"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/composing-semantics-matchers.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.00240 | $0.03282 |
| Opus 5 | $0.00120 | $0.01641 |
| Sonnet 5 | $0.00048 | $0.00656 |
| Haiku 4.5 | $0.00024 | $0.00328 |
Grade A, and why
composing-semantics-matchers 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 5d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Composing Semantics Matchers — One Matcher, One Error
A SemanticsMatcher is a description string plus a (SemanticsNode) -> Boolean predicate (SemanticsMatcher.kt:26). Compose ships with a rich filter library and three combinators (and, or, not) that produce a single matcher whose error message lists every clause. This skill picks the right factory, composes precise predicates, and replaces brittle assertion chains.
When to use this skill
- The developer wants to find "an enabled Button with text Submit" or any node matching multiple constraints.
- The developer asks how to combine
hasTextandhasClickAction, or how to negate a matcher withnot. - The developer needs to filter by a custom
SemanticsPropertyKey(e.g. a domain-specific role) usingexpectValue/keyIsDefined. - The developer asks about hierarchical matchers like
hasParent,hasAnyAncestor,hasAnyChild,hasAnySibling,hasAnyDescendant. - A test chains multiple
assertIs*calls and the developer wants a single, declarative predicate.
When NOT to use this skill
- The query is "find by tag/text/content description only" — use
../finding-nodes-by-tag-text-content/SKILL.md. - The right node exists but only as a relative — use
../traversing-the-semantics-tree/SKILL.md. - The matcher is fine; only the assertions need rework — see
../../assertions/asserting-node-state-and-text/SKILL.md.
Prerequisites
androidx.compose.ui:ui-teston the test classpath. See../../setup/configuring-test-dependencies/SKILL.mdif unresolved.- Comfort with
Modifier.semantics { … }in production code. Custom keys must be set viaModifier.semantics { customKey = value }to be matchable from tests.
Workflow
-
1. Build matchers from the prebuilt filter library. Every prebuilt matcher lives in
commonMain/.../Filters.kt. Group by signal:Signal Matchers File:line Enabled / disabled isEnabled(),isNotEnabled()Filters.kt:38-47Toggle (Switch, Checkbox) isToggleable(),isOn(),isOff()Filters.kt:54-70Selection (Tab, RadioButton) isSelectable(),isSelected(),isNotSelected()Filters.kt:77-93Focus isFocusable(),isNotFocusable(),isFocused(),isNotFocused()Filters.kt:100-122Click action hasClickAction(),hasNoClickAction()Filters.kt:129-136Scroll action hasScrollAction(),hasNoScrollAction(),hasScrollToIndexAction(),hasScrollToKeyAction(),hasScrollToNodeAction()Filters.kt:143-425Text actions (TextField) hasSetTextAction(),hasInsertTextAtCursorAction(),hasPerformImeAction(),hasImeAction(ImeAction)Filters.kt:365-392Focus action hasRequestFocusAction()Filters.kt:399Content description hasContentDescription(value, substring, ignoreCase),hasContentDescriptionExactly(vararg)Filters.kt:165-212Text hasText(text, substring, ignoreCase),hasTextExactly(vararg, includeEditableText=true)Filters.kt:229-293A11y / state metadata hasStateDescription,hasProgressBarRangeInfo,isHeading,isDialog,isPopup,isHiddenFromAccessibility,isEditable,isRootFilters.kt:301-439Test tag hasTestTag(testTag)Filters.kt:326-327Hierarchical hasParent(matcher),hasAnyChild(matcher),hasAnySibling(matcher),hasAnyAncestor(matcher),hasAnyDescendant(matcher)Filters.kt:446-530
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.
- 5d ago First seen · 205 lines · 240 tokens per session scan A dea52b582e69
composing-semantics-matchers is a skill published in the GitHub repository skydoves/android-testing-skills (318 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 240 tokens to every session and 3,282 once invoked, about $0.0012 per session on Opus 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.
Other skills, from other repositories
android-ui-journey-testing
XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.
android_ui_verification
Automated end-to-end UI testing and verification on an Android Emulator using ADB.
test-t3-mobile
Launch and test T3 Code Mobile on an iOS Simulator or Android Emulator against disposable local T3 environments, including Metro and dev-client reuse, native rebuild decisions, per-client pairing, seeded projects, semantic UI control, screenshots, and iOS serve-sim streaming. Use after mobile UI or native changes…
run-integration-tests
Build, pack, and run .NET MAUI integration tests locally. Validates templates, samples, and end-to-end scenarios using the local workload.
agent-device-evidence
Records iOS/Android native MP4 evidence for test/repro flows extracted from an Expensify GitHub PR or issue. Use when the user asks to "record the flow for PR.
solopi-ai
通过 SoloPi 的机器可读 CLI 编译和执行 AI 验证计划,管理签名端侧 ExecuTorch 决策模型、持久设备池、无人值守任务、安卓设备、应用、动作、配置、用例步骤与交互录制、回放及性能历史、动态 Agent、批量与重复执行、性能监控、压力测试和证据。适用于需求/AC 到 Result Judge 三态结论、cloud/on-device 决策切换、模型发布门禁,以及 generation 租约的多设备 CI 执行。.