About material-ui-nextjs
An agent skill for wiring Material UI into Next.js apps, covering App Router and Pages Router setup, rendering, styles, fonts, links, and URL-driven views. It is intended for developers resolving integration issues or setting up these combinations.
Key features
- 01App Router and Pages Router setup
- 02SSR and streaming cache configuration
- 03Font and theme setup
- 04CSS layer integration
- 05Next.js Link usage
- 06URL state and Suspense guidance
Use cases
- 01Starting a Next.js app with Material UI
- 02Fixing styles rendered in the wrong location or order
- 03Combining next/font with a Material UI theme
- 04Building URL-driven views with useSearchParams
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mui/ material-ui --skill material-ui-nextjsAfter installing, type/material-ui-nextjsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdAGENTS.mdmetadata.jsonreference.mdDetails
From the project READMEMaterial UI and Next.js
Agent skill for Next.js + Material UI wiring (SSR/streaming, cache providers, fonts, layers, Link, App Router URL state). SKILL.md is the entry; AGENTS.md is the full guide.
When to apply
- New App Router or Pages Router app using
@mui/material - Styles missing, wrong order, or in
bodyinstead ofhead next/font+ThemeProvider/createTheme- Tailwind or CSS Modules + MUI (
enableCssLayer) Button+component={Link}or Next.js v16 client boundary errorsuseSearchParams/ URL-driven MUI views and Suspense boundaries
Sections in AGENTS.md
| Area | Topics |
|---|---|
| App Router | AppRouterCacheProvider, @emotion/cache, options, useSearchParams + <Suspense> |
| Pages Router | _document, _app, DocumentHeadTags, AppCacheProvider |
| Fonts | 'use client' theme, next/font, CSS variables on html |
| CSS variables | cssVariables, SSR flicker docs |
| CSS layers | enableCssLayer, Tailwind / other CSS |
| Link | Client wrapper, routing guide, examples repo |
Full guide
Read AGENTS.md for complete steps and doc links.
reference.md lists import paths and provider shape.
Comments
Markdown supported