Individual skill
compose-ui-testing-patterns
Use when writing or reviewing Jetpack Compose UI tests, screenshot tests or baseline-recording evidence, previews, semantics assertions, fake image loading, keyboard input, focus assertions, interaction state (hover/pressed/focused), or tests for plain state-driven UI composables.
skills/compose-ui-testing-patterns/SKILL.md
Source commit d83f6e289a07a55026e610c797672f22eff3f022
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,145
- Repository last updated
- Nov 5, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- android Repository topic
- compose-multiplatform Repository topic
- coroutines Repository topic
- jetpack-compose Repository topic
- kotlin Repository topic
- kotlin-multiplatform Repository topic
- skills Repository topic
- design Derived category
- writing Derived category
- testing Derived category
- design-interface Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 7,434 bytesreferences/interaction-state.mddoc · 1,413 bytes
Read excerpt
# Compose: UI testing patterns
## Core principle
Test the smallest UI contract that proves the behavior. Prefer plain state-driven UI tests with callbacks. Add integration only when lifecycle, navigation, DI, or platform behavior is the thing under test.
## Procedure
1. State the behavior and test concern the task asks you to prove.
2. Inspect the existing test against that concern and choose the smallest
sufficient seam from the table below.
3. Keep focused edits within the requested test concern. Do not move test-only
helpers into production or broaden production APIs unless that production
boundary is itself under test.