AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Rn Api Integration

skill-cmaranho-rn-agent-skills-rn-api-integration · by cmaranho

Integra apps React Native com APIs HTTP — cliente tipado, mapeamento de erros, resultado tipado, cache e camada de repositório. Use ao consumir endpoints, tratar respostas/erros de rede ou modelar acesso a dados.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-cmaranho-rn-agent-skills-rn-api-integration

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-cmaranho-rn-agent-skills-rn-api-integration)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Rn Api Integration? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

React Native — Integração com APIs

Objetivo

Consumir APIs de forma tipada e resiliente, isolando IO da regra de negócio.

Quando utilizar

  • Adicionar chamada a um endpoint.
  • Tratar status codes, erros de rede e offline.
  • Modelar DTOs, mappers e repositórios.

Conhecimentos necessários

  • Cliente HTTP (ex.: fetch/Axios) e interceptors (auth, retry).
  • Mapeamento de status code → erro de domínio tipado.
  • Padrão Repository e resultado tipado (sucesso/erro).
  • Cache/estado de servidor (ex.: React Query) quando aplicável.

Fluxo de execução

  1. Defina DTOs de request/response e o model de domínio.
  2. Implemente a chamada no repositório; mapeie cada status code relevante.
  3. Retorne resultado tipado ({ ok, data } | { ok: false, error } ou Either); não lance exceção crua.
  4. Normalize DTO → model com mapper puro.
  5. Consuma via caso de uso; trate loading/erro/sucesso no estado.

Boas práticas

  • Auth/refresh e headers comuns em interceptor central.
  • Timeout, cancelamento (AbortController) e retry idempotente.
  • Erros de domínio tipados carregam contexto.
  • Nunca vaze a resposta crua do cliente para a UI.

Armadilhas comuns

  • Chamada de API direto no componente/hook de tela.
  • Tratar só o caminho feliz; ignorar 4xx/5xx/offline.
  • any em respostas; ausência de validação de payload.
  • Segredos no cliente ou em log.

Critérios de sucesso

  • Toda resposta e erro mapeados e tipados.
  • Falhas de rede tratadas com estado de erro e recuperação.
  • Camada de dados testada (sucesso e erro).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.