本文へスキップ
Skillpedia
APIとサーバー(バックエンド)48k · #5280

native-data-fetching

できること

このツールは、アプリをインターネットに接続し、情報を取得または送信できるようにする手助けをします。リクエストを送る基本から、ネットワークの問題への対処、オフラインでの利用に向けたデータの保存まで扱います。

使う場面

  • ✓Webサイトやサービスからデータを取得する必要があるとき。
  • ✓インターネット接続がなくてもアプリが動く必要があるとき。
  • ✓データが正しく読み込まれないときの問題を解決したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/native-data-fetching/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/native-data-fetching/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“アプリでAPIからデータを取得するにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

データ取得に適した方法、人気のあるライブラリの使い方、さまざまなネットワーク環境でアプリを快適に動かすための設定方法を案内することで機能します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Expo Networking

You MUST use this skill for ANY networking work including API requests, data fetching, caching, or network debugging.

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use

Use this skill when:

  • Implementing API requests
  • Setting up data fetching (React Query, SWR)
  • Using Expo Router data loaders (useLoaderData, web SDK 55+)
  • Debugging network failures
  • Implementing caching strategies
  • Handling offline scenarios
  • Authentication/token management
  • Configuring API URLs and environment variables

Example Invocations

User: "How do I make API calls in React Native?" -> Use fetch, wrap with error handling

User: "Should I use React Query or SWR?" -> React Query for complex apps, SWR for simpler needs

User: "My app needs to work offline" -> Use NetInfo for status, React Query persistence for caching

User: "How do I handle authentication tokens?" -> Store in expo-secure-store, implement refresh flow

User: "API calls are slow" -> Check caching strategy, use React Query staleTime User: "How do I configure different API URLs for dev and prod?" -> Use EXPOPUBLIC env vars with .env.development and .env.production files User: "Where should I put my API key?" -> Client-safe keys: EXPOPUBLIC in .env. Secret keys: non-prefixed env vars in API routes only

User: "How do I load data for a page in Expo Router?" -> See references/expo-router-loaders.md for route-level loaders (web, SDK 55+). For native, use React Query or fetch.

Limitations

  • Use this skill only when the task clearly matches its upstream product or API scope.
  • Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
  • Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
よくある質問

「APIリクエスト」とは何ですか?

アプリがインターネット上の他のサービスに対して、情報を取得または送信するために行う依頼のことです。

ネットワークエラーへの対処が重要なのはなぜですか?

接続に失敗したときにアプリが停止したり、わかりにくいメッセージを表示したりしないようにするためです。これにより、より良い利用体験が提供できます。

「キャッシュ」とは何ですか?

一度取得した情報を一時的に保存しておくことで、次回以降はインターネットから再度取得しなくても、アプリがより速くアクセスできるようにする仕組みです。

詳細

作者による元の説明

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching, offline support, and Expo Router data loaders (`useLoaderData`).

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5280
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル