rn-typescript

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

A set of instructions for using strict TypeScript in React Native, a framework for building mobile apps with JavaScript or TypeScript. It covers typed component inputs, API data, navigation, app state, and loading or error states.

In plain words
What is it for?
Use it when adding types to React Native components, hooks, stores, APIs, or navigation. It also helps enable strict type checking and remove existing type errors.
Why use it?
It helps catch mismatched or missing data while writing code instead of discovering these problems during app use. It also provides a process for reducing use of the unsafe any type.

Skill for Claude CodeCodex

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

Good fit Use it when adding types to React Native components, hooks, stores, APIs, or navigation. It also helps enable strict type checking and remove existing type errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cmaranho/rn-agent-skills/rn-typescript
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-typescript
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-typescript

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-typescript"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-typescript.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 519 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.00519
Opus 5 $0.00028 $0.00260
Sonnet 5 $0.00011 $0.00104
Haiku 4.5 $0.00006 $0.00052

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

Security

Grade A, and why

rn-typescript 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 9d 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-typescript/SKILL.md · 52 lines

What it actually says

React Native — TypeScript

Objetivo

Garantir segurança de tipos de ponta a ponta, tornando estados inválidos irrepresentáveis.

Quando utilizar

  • Tipar props, hooks, stores, respostas de API e navegação.
  • Modelar estados de carregamento/erro/sucesso.
  • Endurecer o tsconfig ou remover any de uma base existente.

Conhecimentos necessários

  • strict mode e flags relacionadas (noImplicitAny, strictNullChecks).
  • Unions discriminadas, generics e utility types (Pick, Omit, Partial, Record).
  • unknown vs any; type guards e narrowing.
  • Inferência vs anotação explícita.

Fluxo de execução

  1. Habilite strict: true no tsconfig.
  2. Modele dados com tipos/interfaces explícitos; tipe props no parâmetro da função.
  3. Represente estados variantes com union discriminada ({ type: 'success'; data } | { type: 'error'; error }).
  4. Trate entradas externas como unknown e faça narrowing/validação antes de usar.
  5. Rode tsc --noEmit e elimine erros; sem any ou @ts-ignore.

Boas práticas

  • Prefira type para unions/props; interface para contratos extensíveis.
  • Derive tipos de fontes únicas (schemas, constantes as const) para evitar drift.
  • Torne ilegais os estados inválidos via tipos, não via checagem em runtime.
  • Exporte tipos de saída reutilizados por mappers e casos de uso.

Armadilhas comuns

  • any implícito em callbacks e respostas de API.
  • Casts (as) mascarando modelagem incorreta.
  • Enums onde uma union de strings basta.
  • React.FC (tipagem implícita de children indesejada).

Critérios de sucesso

  • tsc --noEmit sem erros; zero any/@ts-ignore injustificados.
  • Estados inválidos não compilam.
  • Autocompletar e refactors seguros em toda a base.
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. 9d ago First seen · 52 lines · 55 tokens per session scan A 68bd475e541b

Subscribe to this mod's changes

rn-typescript 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 519 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