Imported from bobmatnyc/claude-mpm-skills (toolchains/nextjs/nextjs-core/SKILL.md). Install upstream with npx skills add bobmatnyc/claude-mpm-skills --skill nextjs-core. Copyright stays with the author.
Next.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).
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/bobmatnyc-claude-mpm-skills-nextjs-core/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.