native-data-fetching – skill Dữ liệu & Khoa học cho agent AI
Dùng khi triển khai hoặc gỡ lỗi BẤT KỲ yêu cầu mạng, lệnh gọi API hoặc việc lấy dữ liệu nào. Bao gồm fetch API, React Query, SWR, xử lý lỗi, bộ nhớ đệm, hỗ trợ offline và data loader của Expo Router (`useLoaderData`).
Cài skill native-data-fetching bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/native-data-fetching-57f57.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /native-data-fetching – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/native-data-fetching-57f57.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $native-data-fetching – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/native-data-fetching-57f57.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /native-data-fetching – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/native-data-fetching-57f57.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /native-data-fetching – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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](references/detailed-guide.md) 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 EXPO*PUBLIC* env vars with .env.development and .env.production files
User: "Where should I put my API key?"
-> Client-safe keys: EXPO*PUBLIC* 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.
Skill liên quan
- neon-object-storage – Lưu trữ đối tượng tương thích S3, phân nhánh cùng dự án Neon của bạn, giúp tệp và cơ sở…
- news-sentiment-engine – Tổng hợp tin tức RSS từ nhiều nguồn, phân tích cảm xúc bằng Claude và xuất bản tin tóm…
- nexrad-product-access – Tìm và truy cập dữ liệu NEXRAD cho trạm radar, thời điểm, sản phẩm hoặc moment Level II…
- nextjs-best-practices – Nguyên tắc App Router của Next.js. Server Components, lấy dữ liệu, các mẫu định tuyến.
- ontoly-software-graph – Dùng Software Graph xác định, máy chủ MCP và các skill của agent từ Ontoly để review…
- pangolinfo-amazon-data-research – Lập kế hoạch và thực hiện nghiên cứu chỉ đọc về sản phẩm, đánh giá, danh mục, người bán…
- pci-compliance – Rà soát luồng dữ liệu thanh toán và bằng chứng kiểm soát kỹ thuật cho đánh giá PCI trong…
- pci-dss-compliance – Triển khai các yêu cầu PCI DSS đối với dữ liệu thẻ thanh toán. Cấu hình môi trường chứa…