Nextjs data fetching

From HoangNguyen0403/agent-skills-standard · View interactive version

Nextjs data fetching is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Implement Fetch API, Caching, and Revalidation strategies in Next.js. Use when fetching data, configuring cache behavior, or implementing revalidation in Next.js.

How to use this skill

Skill file

Data Fetching (App Router)

**Priority: P0 (CRITICAL)**

[!WARNING]

Covers App Router fetch only. For pages/ directory: use getServerSideProps / getStaticProps. Ignore native fetch caching advice below.

Fetch data directly in Server Components using async/await.

Strategies

Patterns

Revalidation

Anti-Patterns

Examples & References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.