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 skills add cmaranho/rn-agent-skills --skill rn-test-generationgit clone --depth 1 https://github.com/cmaranho/rn-agent-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/cmaranho/rn-agent-skills/rn-test-generation)<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-test-generation"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-test-generation/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.
<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-test-generation"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-test-generation.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00049 | $0.00435 |
| Opus 5 | $0.00024 | $0.00217 |
| Sonnet 5 | $0.00010 | $0.00087 |
| Haiku 4.5 | $0.00005 | $0.00044 |
Grade A, and why
rn-test-generation 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 10d 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.
What it actually says
React Native — Geração de Testes
Objetivo
Produzir testes significativos para código existente, cobrindo comportamento e bordas.
Quando utilizar
- Código novo ou legado sem cobertura.
- Completar lacunas antes de refatorar.
- Adicionar testes exigidos por regra (repositório, hook, mapper, helper, util, UI).
Conhecimentos necessários
- Padrões de teste do projeto (ver skill
rn-testing). - Identificação de casos: caminhos, ramos, bordas e erros.
- Estratégia de mocks e isolamento por camada.
- Queries de acessibilidade para UI.
Fluxo de execução
- Leia a unidade e liste comportamentos observáveis e ramos.
- Enumere casos: sucesso, erro e borda (
null/undefined/vazio/limite). - Monte mocks das dependências (rede, store, navegação, nativo) antes dos imports.
- Escreva 3–5 testes focados por arquivo em Arrange/Act/Assert ("should").
- Rode, verifique a cobertura dos ramos relevantes e ajuste.
Boas práticas
- Teste comportamento observável, não implementação.
- Um assert conceitual por teste; nomes descritivos.
- Reutilize fixtures/factories de dados de teste.
- Prefira poucos testes de alto valor a muitos triviais.
Armadilhas comuns
- Gerar testes que só espelham a implementação.
- Cobertura alta sem asserts significativos.
- Esquecer ramos de erro e bordas.
- Mocks frágeis acoplados a detalhes internos.
Critérios de sucesso
- Ramos e bordas relevantes cobertos.
- Testes falham quando o comportamento quebra.
- Suíte verde, determinística e sustentável.
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.
- 10d ago First seen · 52 lines · 49 tokens per session scan A 8218e60b72a4
rn-test-generation is a skill published in the GitHub repository cmaranho/rn-agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 49 tokens to every session and 435 once invoked, about $0.0002 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.
Other skills, from other repositories
android-unit-test
Guide for writing and converting Chromium Android unit tests across host Robolectric (chromejunittests) and on-device (chromepublicunittestapk) suites.
react-native-testing
Write tests using React Native Testing Library (RNTL) v13 and v14 (@testing-library/react-native). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React…
flutter-add-widget-test
Implement a component-level test using WidgetTester to verify UI rendering and user interactions (tapping, scrolling, entering text). Use when validating that a specific widget displays correct data and responds to events as expected.
mobiai-android-testing
Use when writing or running tests in an Android project — unit tests, UI tests, choosing the right framework and patterns.
mobiai-ios-testing
Use when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.
maui-unit-testing
Add MAUI app tests around ViewModels, services, platform abstractions, and unit/integration/device boundaries. USE FOR: xUnit, avoiding MauiProgram.CreateMauiApp in unit tests, fakes/mocks, injectable Essentials interfaces, PlatformNotSupportedException, navigation/data services, AppProjectReference, device-test…