agentleFS
theyoungastronautstheyoungastronauts/polaris/skills/verify-nextjs-mui/SKILL.md

verify-nextjs-mui

Skill4 starsChanged 3 months agoMITView on GitHub

MUI-specific Next.js verification checklist — sx/Emotion SSR setup, Grid size prop.

The file

Files
SKILL.md

Skill: Verify Next.js (MUI)

Purpose

MUI-specific checklist for a Next.js + Material UI project. Run alongside verify-nextjs.md (general Next.js/React concerns) — this file only covers what MUI adds. MUI projects use Emotion, not Tailwind, so skip the Tailwind section of verify-nextjs.md.

Verification Process

Flag each as PASS, WARN, or FAIL.

1. Styling (sx + Emotion)

  • Component styling uses the sx prop (or styled()), not inline style={{}}
  • No Tailwind — no tailwind.config, postcss.config, or globals.css utility layer (MUI owns styling via Emotion)
  • Colors and spacing come from the theme (primary.main, text.secondary, spacing units), not hardcoded hex/px
  • Emotion is the only styling engine — styled-components is not mixed in

2. SSR + Theme Setup (layout.tsx)

  • AppRouterCacheProvider wraps the app with options={{ enableCssLayer: true }} so Emotion styles are injected correctly during SSR (no style flash / hydration mismatch)
  • InitColorSchemeScript is rendered (matching the theme's attribute) to prevent a light/dark flash on load
  • ThemeProvider + CssBaseline live in layout.tsx, not re-declared in nested providers

3. Components

  • MUI Grid uses the v6+ size prop (<Grid size={{ xs: 12, sm: 6 }}>), not the deprecated item + xs/sm/md props

Output

Produce a verification-report.md (same format as verify-django), adding a "MUI" section.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.