About nextjs-core
A skill that summarizes core Next.js App Router practices, from Server Components and Server Actions to routing, caching, and testing. It is for developers building or maintaining Next.js applications.
Key features
- 01Server Components by default
- 02Server Actions for mutations
- 03Route handlers for APIs and webhooks
- 04Loading and error boundaries
- 05Guidance on fetching, caching, and testing
Use cases
- 01Structuring an App Router application
- 02Implementing validated server-side mutations
- 03Building API routes and webhooks
- 04Reviewing data fetching and cache behavior
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bobmatnyc/ claude-mpm-skills --skill nextjs-coreAfter installing, type/nextjs-corein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
metadata.jsonreferences/authentication.mdcaching-and-rendering.mddata-fetching.mdrouting.mdserver-actions.mdtesting.mdDetails
From the project READMENext.js Core (App Router)
- Server Components by default; minimal
"use client". - Mutations in Server Actions (validate/authz; revalidate tags/paths).
- Route handlers for APIs/webhooks; add loading/error boundaries.
Anti-patterns:
- ❌ Fetch initial data in
useEffect. - ❌ Cache or revalidate too broadly.
- ❌ Client-only authz.
References: see references/ (server actions, fetching, caching, routing, auth, testing).
Comments
Markdown supported