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-state-managementgit 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-state-management)<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-state-management"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-state-management/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-state-management"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-state-management.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.00054 | $0.00467 |
| Opus 5.5 | $0.00022 | $0.00187 |
| Sonnet 5.5 | $0.00011 | $0.00093 |
| Haiku 4.5 | $0.00005 | $0.00047 |
Grade A, and why
rn-state-management 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 2mo 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 — Gerenciamento de Estado
Objetivo
Manter estado previsível, com fonte única da verdade e mínimo de re-render.
Quando utilizar
- Compartilhar estado entre telas/componentes.
- Criar store/slice de domínio e ações assíncronas.
- Decidir entre estado local, contexto ou store global.
Conhecimentos necessários
- Biblioteca de estado do projeto (ex.: Zustand, Redux Toolkit, Jotai) e padrão de slices.
- Selectors e comparação rasa para evitar re-render.
- Imutabilidade; atualização de estado apenas pela API do store.
- Integração estado → caso de uso.
Fluxo de execução
- Escolha o escopo, do menor ao maior: local (
useState) → contexto → store global. - Defina o tipo do slice (estado + ações) e o
initialState. - Ações assíncronas chamam casos de uso e ramificam por resultado tipado.
- Aplique o resultado com atualização imutável; sem mutação fora da API do store.
- Consuma via selectors granulares; use comparação rasa para objetos/arrays.
Boas práticas
- Stores pequenas e por domínio; componha por slices.
- Selector no ponto de uso; nunca selecione o store inteiro.
- Estado derivado calculado com memo/selector, não duplicado.
- Reset explícito para
initialState.
Armadilhas comuns
- Mutar estado diretamente.
- Guardar no global o que é local; estado duplicado/derivado.
- Chamar repositório/HTTP direto do store (use caso de uso).
- Re-render em excesso ao selecionar objetos instáveis sem comparação rasa.
Critérios de sucesso
- Fonte única da verdade; sem estado duplicado.
- Re-renders limitados ao que mudou.
- Ações assíncronas com loading/erro/sucesso tratados.
- Store coberto por testes.
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.
- 2mo ago First seen · 53 lines · 54 tokens per session scan A 2a4428769fdf
rn-state-management is a skill published in the GitHub repository cmaranho/rn-agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 54 tokens to every session and 467 once invoked, about $0.0002 per session on Opus 5.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.
rn-state-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rn-state-managementcmaranho/rn-agent-skills | Skill | 2 | 4mo ago | MIT | A | 54 | Claude Code, Codex |
| agent-spec-mobile-react-nativeruvnet/ruflo | Skill | 81k | yesterday | MIT | A | 22 | Claude Code |
| expo-native-uiexpo/skills | Skill | 4.1k | yesterday | MIT | A | 63 | Claude Code, Codex |
| expo-brownfieldexpo/skills | Skill | 4.1k | yesterday | MIT | A | 70 | Claude Code, Codex |
| react-native-testingcallstack/react-native-testing-library | Skill | 3.4k | yesterday | MIT | A | 134 | Claude Code, Codex |
| truesheet-usagelodev09/react-native-true-sheet | Skill | 2.1k | yesterday | MIT | A | 171 | Claude Code, Codex |
| vercel-react-native-skillsfcakyon/claude-codex-settings | Skill | 1.2k | yesterday | Apache-2.0 | A | 57 | Claude Code |