detox

detox is a skill for Claude Code from aks-builds/quality-skills. It costs 127 tokens per session (2,801 once invoked), scanned A, original, MIT.

A guide to Detox, a testing framework for checking React Native apps from a user's point of view on iOS and Android simulators or devices. React Native is a framework for building mobile apps with JavaScript or TypeScript.

In plain words
What is it for?
Use it to configure Detox, write tests for React Native screens and actions, diagnose unstable tests, and run the tests in continuous integration.
Why use it?
It helps make mobile end-to-end tests more repeatable by accounting for when the app is busy or ready for interaction.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the quality-skills plugin — 57 skills shipped together

Good fit Use it to configure Detox, write tests for React Native screens and actions, diagnose unstable tests, and run the tests in continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aks-builds/quality-skills/detox
Install

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.

Any agent
npx skills add aks-builds/quality-skills --skill detox
Clone the repo
git clone --depth 1 https://github.com/aks-builds/quality-skills

Made for: Claude Code.

Or install quality-skills, the plugin that ships this one along with the rest of its 57 skills.

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 detox

README.md
[![agentmods](https://agentmods.dev/badge/skills/aks-builds/quality-skills/detox/github.svg)](https://agentmods.dev/skills/aks-builds/quality-skills/detox)
Your own site
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/detox"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/detox/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 detox

Your own site · 80×15
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/detox"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/detox.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,801 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.
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.00127 $0.02801
Opus 5 $0.00063 $0.01401
Sonnet 5 $0.00025 $0.00560
Haiku 4.5 $0.00013 $0.00280

Measured 12d ago against content hash dc657871e6b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

detox 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 12d 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.

skills/detox/SKILL.md · 282 lines

How it starts

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

Detox

You are an expert in Detox — the Wix-maintained gray-box E2E testing framework specifically designed for React Native apps. Your goal is to help engineers set up Detox, write deterministic tests that leverage Detox's sync/idle awareness, and integrate with CI. Don't fabricate matcher names, action signatures, or .detoxrc keys. When uncertain, point the reader to wix.github.io/Detox.

Initial Assessment

Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:

  • Is the app actually React Native? — Detox is RN-specific. For native apps, recommend Espresso (Android) / XCUITest (iOS) / Appium.
  • RN version — Detox supports modern RN; very old RN versions (pre-0.60) need older Detox versions.
  • Platforms — iOS and Android. Both supported with one test codebase.
  • Builds — Detox needs a release-style build of the app; debug builds work for local but are slower.
  • CI host — iOS tests need macOS; Android tests need a Linux/macOS with emulator. Real-device CI requires a cloud farm.

If the file does not exist, ask: RN version, platforms in scope, simulator/emulator only or real device, and CI provider.


Why Detox

  • Gray-box — Detox knows when the RN app's bridge is idle, JS thread is busy, animations are running. No flaky waits.
  • JS-native test code — Jest as the runner; tests look like other JS tests.
  • Built for React Native — knows about the RN bridge, JS task queue, async storage, fetches.
  • Same test code for iOS and Android — IDs unify selection.

When not to use Detox:

  • Native apps (no RN) → Espresso / XCUITest / Appium.
  • Cross-platform but not RN (Flutter, native + RN mixed) → Appium / Maestro.
  • Team wants a YAML-only experience → Maestro.

Project setup

Install Detox in an RN project:

npm install --save-dev detox
npx detox init

This generates .detoxrc.js, e2e/ folder, and a Jest config.

Apps need:

  1. testID props on React Native components — Detox's primary locator.
  2. A release-style build configured in .detoxrc.js per platform.
  3. For iOS, a .app artifact built with Detox-compatible flags.
  4. For Android, a release/debug APK built with Detox's instrumentation.

Read the full file on GitHub · 282 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. 12d ago First seen · 282 lines · 127 tokens per session scan A dc657871e6b6

Subscribe to this mod's changes

detox is a skill published in the GitHub repository aks-builds/quality-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 127 tokens to every session and 2,801 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

shaft-accessibility-testing

Use when testing web or mobile accessibility for WCAG conformance, keyboard and focus behavior, semantics, errors, or user impact.

ShaftHQ/SHAFT_ENGINE · 31 tokens

automated-e2e-testing

A workflow for turning manual web-app test cases into Playwright end-to-end tests and running them. End-to-end tests check a complete user flow through the website.

fishzjp/qa-skills · 112 tokens

qa

A complete software-testing workflow that moves from understanding a requirement through strategy, test cases, review, execution, bug analysis, regression testing, and a report.

fishzjp/qa-skills · 99 tokens

execute

Run the generated Playwright tests and summarize pass/fail results. Use when the user wants to run the tests produced by /verefi:implement, check whether a test plan's acceptance criteria are met, or debug failing Verefi-generated tests.

philchen00/verefi · 51 tokens

xcode-testing-workflow

Guide Swift Testing, XCTest, XCUITest, XCUIAutomation-oriented mechanics, code coverage, xctestplan matrices, accessibility-verification follow-through, test filtering, retries, diagnostics, and test-specific fallback work in existing Xcode-managed projects and workspaces. Use when Xcode-aware execution is needed and…

gaelic-ghost/socket · 81 tokens

appium-python-expert

Specialist skill for mobile E2E testing with Appium 2.x + Python (pytest) for Android and iOS. Use this skill whenever the user asks about: setting up Appium with Python, writing mobile test cases, configuring Android/iOS drivers (UIAutomator2, XCUITest), implementing Page Object Model for mobile, running tests with…

jmr85/e2e-agent-skills · 158 tokens