When to use this skill
Use this skill whenever the user wants to:
- Follow Next.js documentation topics (App Router, Pages Router, architecture, community)
- Implement Next.js routing, data fetching, caching, or deployment
- Use official APIs and configuration options from the docs
How to use this skill
- Identify the topic from the user request.
- Open the matching example file in
examples/. - Follow the official Next.js docs linked in the file.
Mapping Rules (one-to-one with https://nextjs.org/docs)
The examples/ directory mirrors the official docs structure:
examples/index.md→ https://nextjs.org/docsexamples/app/...→ https://nextjs.org/docs/app/...examples/pages/...→ https://nextjs.org/docs/pages/...examples/architecture/...→ https://nextjs.org/docs/architecture/...examples/community/...→ https://nextjs.org/docs/community/...
Path rule:
- Remove numeric prefixes from doc folders and filenames (e.g.,
01-app→app). index.mdxpages map toindex.mdinside the corresponding directory.
Resources
- Docs: https://nextjs.org/docs
Keywords
Next.js, App Router, Pages Router, routing, data fetching, caching, server components, client components, middleware, deployment, configuration