# Compose UI Testing Patterns (agent skill)

> Compose UI Testing Patterns is an agent skill (a SKILL.md file) from chrisbanes/skills. Agents load it when writing or reviewing Jetpack Compose UI tests, screenshot tests or baseline-recording evidence, previews, semantics assertions, fake image loading, keyboard input, focus… It works with Claude Code, Codex and OpenCode and has 1,090 GitHub stars across a repository of 2 listed skills.

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

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/chrisbanes/skills |
| Skill path | skills/compose-ui-testing-patterns/SKILL.md |
| Skill name | compose-ui-testing-patterns |
| GitHub stars | 1,090 |
| Installs on skills.sh | not listed |
| License | Apache-2.0 |
| Skills in repo | 2 |
| Plugin marketplace | chrisbanes-skills |
| Official | no |
| Works with | Claude Code, Codex, OpenCode |
| Category | Testing & QA |
| Last commit | Oct 4, 2026 |

## When it triggers

- 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 tes

## Add this skill

### Claude Code

```sh
/plugin marketplace add chrisbanes/skills
/plugin install chrisbanes-skills@chrisbanes-skills
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/chrisbanes/skills.git
cp -r skills/skills/compose-ui-testing-patterns .agents/skills/compose-ui-testing-patterns   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/chrisbanes/skills.git
cp -r skills/skills/compose-ui-testing-patterns .cursor/skills/compose-ui-testing-patterns   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/chrisbanes-compose-ui-testing-patterns
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
