rn-architecture

rn-architecture is a skill for Claude Code, Codex from cmaranho/rn-agent-skills. It costs 55 tokens per session (1,164 once invoked), scanned A, original, MIT.

A set of rules for structuring React Native apps with Clean Architecture, a way to keep user-interface code, business decisions, and data access in separate layers.

In plain words
What is it for?
Use it when creating or refactoring features, choosing where logic belongs, defining repositories and use cases, or connecting data to screens through hooks.
Why use it?
It prevents business logic and API calls from being tangled into screens. This makes data flow easier to follow and each layer easier to test.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or refactoring features, choosing where logic belongs, defining repositories and use cases, or connecting data to screens through hooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cmaranho/rn-agent-skills/rn-architecture
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 cmaranho/rn-agent-skills --skill rn-architecture
Clone the repo
git clone --depth 1 https://github.com/cmaranho/rn-agent-skills

Made for: Claude Code, Codex.

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 rn-architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-architecture"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,164 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.00055 $0.01164
Opus 5 $0.00028 $0.00582
Sonnet 5 $0.00011 $0.00233
Haiku 4.5 $0.00006 $0.00116

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

Security

Grade A, and why

rn-architecture 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/rn-architecture/SKILL.md · 105 lines

How it starts

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

React Native — Arquitetura

Objetivo

Aplicar uma arquitetura em camadas, testável e escalável para features React Native, com fluxo de dados previsível da fonte de dados à UI.

Quando utilizar

  • Criar um módulo ou feature novo.
  • Decidir onde colocar lógica (UI, estado, caso de uso, dados).
  • Refatorar código com regra de negócio na UI ou chamada de API no componente.

Conhecimentos necessários

  • Clean Architecture e a regra de dependência (dependências apontam para dentro).
  • Padrões Repository, Use Case e Mapper/Helper.
  • Injeção de dependência simples (construtor/factory).
  • Diferença entre transformação de shape (mapper) e cálculo/estado (helper).

Fluxo de execução

  1. Modele o contrato de dados: DTOs de entrada/saída e models de domínio.
  2. Implemente o repositório: encapsula IO/HTTP e retorna resultado tipado (sucesso/erro), sem lançar exceção crua.
  3. Implemente o caso de uso: orquestra repositório + mappers/helpers e retorna estado tipado ({ type: 'SUCCESS' | 'ERROR' }).
  4. Exponha estado via store/hook que consome o caso de uso (nunca o repositório direto).
  5. Conecte a UI por um hook de tela (use-*-screen); mantenha a tela fina.
  6. Escreva testes por camada.
Tela → hook de tela → estado → caso de uso → repositório → cliente HTTP
                                   ↘ mappers / helpers ↗

Estrutura de pastas

Reflita as camadas na organização física. Os nomes são convenção — adapte ao seu projeto, preservando os papéis. Separe código de domínio (modules/) de código compartilhado (common/).

Módulo / feature

modules/{module}/
├── dtos/            ← contratos de dados da API (request/response)
├── models/          ← models de domínio
├── repositories/    ← acesso a dados/IO; retorna resultado tipado (sem exceção crua)
├── use-cases/       ← orquestra repositório + mappers/helpers (obrigatório)
├── mappers/         ← transformação de shape (DTO ↔ Model ↔ Request) — puro
├── helpers/         ← cálculos e transformações imutáveis de estado — puro
├── stores/          ← estado do módulo (slices por domínio)
├── hooks/           ← hooks de tela (use-*-screen) e reutilizáveis do módulo
├── ui/              ← componentes de UI do módulo (tokens/tema)
├── factories/       ← montagem/registro de telas e dependências
├── screens/         ← telas finas
└── index.ts         ← barrel público (API do módulo)

Read the full file on GitHub · 105 lines

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 · 105 lines · 55 tokens per session scan A 61a6795d9870

Subscribe to this mod's changes

rn-architecture is a skill published in the GitHub repository cmaranho/rn-agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 1,164 once invoked, about $0.0003 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

agent-spec-mobile-react-native

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.

ruvnet/ruflo · 22 tokens

expo-native-ui

Framework (OSS). Build beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols, media, visual effects, gradients, storage, and responsive layout. For routing and navigation, use the expo-router skill; for motion and animation, use the expo-animation skill.

expo/skills · 67 tokens

expo-web-to-native

Framework (OSS). Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Next.js/Vite/CRA React codebase to React Native, reuse web code on native incrementally, or asks how web idioms (the DOM, CSS, React Router, localStorage…

expo/skills · 111 tokens

expo-brownfield

Framework (OSS). Integrate Expo and React Native into an existing native iOS or Android app. Use for brownfield, embedding a React Native screen in SwiftUI/UIKit or Kotlin, or AAR/XCFramework packaging. Covers isolated and integrated approaches. For building or distributing a purely native app with EAS, use…

expo/skills · 74 tokens

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

building-ui

Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.

Intelligent-Internet/ii-agent · 30 tokens