
nextjs-data-fetching
Provides Next.js App Router data fetching patterns including SWR
by giuseppe-trisciuoglioFree
Description
This agent skill provides patterns for fetching data in a Next.js app that uses the App Router. It covers fetching on the server inside Server Components, and it explains when to use a Server Component and when a Client Component is the better fit. For client-side work it covers SWR and React Query, including how to set up caching on the client. It also covers parallel data fetching, so independent requests run at the same time instead of one after another. The skill covers Incremental Static Regeneration, with time-based revalidation and on-demand revalidation, and it shows how to handle loading and error states with loading and error boundaries. Forms can be built with Server Actions, and the skill covers that as well. The skill is meant for an AI coding agent working in a Next.js codebase, and it is one of several skills in the developer-kit repository by giuseppe-trisciuoglio, which has about 371 stars on GitHub. Deployment questions, such as Docker and CI/CD, belong to a separate skill in the same kit.…
Highlights
- Fetch data in Server Components with the App Router
- Choose between Server and Client Components
- Set up SWR or React Query for client caching
- Run independent requests in parallel
- Configure ISR and on-demand revalidation
Ratings & Reviews
No ratings yet
Be the first to rate nextjs-data-fetching.
People also visit

nextjs-app-router
Provides patterns and code examples for building Next.js 16+ applications

nextjs-deployment
Provides comprehensive patterns for deploying Next.js applications to production

cc-skill-frontend-patterns
Frontend development patterns for React, Next.js, state management
nextjs-data-fetching FAQ
Which Next.js router does it cover?
It covers the App Router, including Server Components and Server Actions.
Does it cover client-side caching?
Yes. It shows how to use SWR and React Query for client-side caching.
Does it cover revalidation?
Yes. It covers Incremental Static Regeneration, time-based revalidation and on-demand revalidation.
How do I install it?
Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill nextjs-data-fetching.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best nextjs-data-fetching alternatives?
Popular alternatives to nextjs-data-fetching include next-cache-components, nextjs-app-router and nextjs-deployment. See all nextjs-data-fetching alternatives


















