Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
dd79a23
[code-infra] Add Claude Code and Codex plugin marketplaces for the Ma…
GamerDubz Nov 10, 2026
8300c91
Merge branch 'master' into feat/claude-plugin-marketplace
GamerDubz Nov 10, 2026
c54c36e
[code-infra] Enrich Material UI agent plugin listing metadata
GamerDubz Nov 10, 2026
0da55e0
[code-infra] Describe the agent skills marketplace for any coding agent
GamerDubz Nov 11, 2026
3775e02
[code-infra] Wire the official mui-mcp server into the agent plugin
GamerDubz Nov 17, 2026
6806e71
[code-infra] Remove MCP from the agent skills marketplace
GamerDubz Nov 24, 2026
7d217c3
[docs] Add Coding Agents getting-started page
GamerDubz Nov 24, 2026
ad56b24
[docs] Use single-word codeblock tab titles on Coding Agents page
GamerDubz Nov 24, 2026
94815ac
[docs] Use Claude CLI commands on Coding Agents page
GamerDubz Nov 24, 2026
ee798ed
[docs-infra] Fail on invalid codeblock tab titles
GamerDubz Nov 24, 2026
33ded2b
Merge branch 'master' into feat/claude-plugin-marketplace
GamerDubz Nov 24, 2026
8a4def9
[code-infra] Bundle agent skills in @mui/material
Janpot Dec 3, 2026
fdc2e60
Author skills in the package, hide internal skills
Janpot Dec 3, 2026
79cfcac
[code-infra] Drop strict, skills and version from plugin manifests
GamerDubz Dec 3, 2026
2f76732
Apply suggestion from @Janpot
Janpot Dec 4, 2026
c29ac65
Merge remote-tracking branch 'refs/remotes/upstream/pr-49747' into co…
Janpot Dec 4, 2026
ce24e8a
Install the plugins from @mui/material on npm
Janpot Dec 4, 2026
ed65c64
Merge remote-tracking branch 'refs/remotes/upstream/master' into code…
Janpot Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{
"name": "material-ui",
"source": {
"source": "local",
"path": "./skills"
"source": "npm",
"package": "@mui/material"
},
"policy": {
"installation": "AVAILABLE",
Expand Down
2 changes: 2 additions & 0 deletions .agents/skills/material-ui-review/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: material-ui-review
description: 'Review the current diff for regressions, correctness bugs, tests, simplifications, and docs issues, scaling depth to a low/medium/high/xhigh/max effort level. Use ONLY when explicitly requested by name: the user runs /material-ui-review, writes $material-ui-review, or asks for "the Material UI review skill". Do NOT use for general review requests such as "review my changes", "review this diff/branch/PR", or after finishing an implementation — handle those without this skill unless the user names it. Pass --comment to post a top-level PR comment, --comment inline for inline PR comments, or --fix to apply findings.'
metadata:
internal: true
---

# Material UI Review
Expand Down
5 changes: 4 additions & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"name": "material-ui",
"displayName": "Material UI",
"description": "Material UI agent skills for styling (sx, styled, theme overrides, global CSS), theming and design tokens (createTheme, colorSchemes, CSS variables), Next.js App/Pages Router integration, and Tailwind CSS v4/v3 interoperability. Use when building or customizing @mui/material UI.",
"source": "./skills",
"source": {
"source": "npm",
"package": "@mui/material"
},
"author": {
"name": "MUI",
"url": "https://mui.com"
Expand Down
2 changes: 2 additions & 0 deletions .claude/skills/material-ui-review/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: material-ui-review
description: 'Review the current diff for regressions, correctness bugs, tests, simplifications, and docs issues, scaling depth to a low/medium/high/xhigh/max effort level. Use ONLY when explicitly requested by name: the user runs /material-ui-review, writes $material-ui-review, or asks for "the Material UI review skill". Do NOT use for general review requests such as "review my changes", "review this diff/branch/PR", or after finishing an implementation — handle those without this skill unless the user names it. Pass --comment to post a top-level PR comment, --comment inline for inline PR comments, or --fix to apply findings.'
metadata:
internal: true
---

# Material UI Review
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
/examples/**/.cache/
/packages/mui-codemod/lib/
/packages/mui-material/published-docs/
/packages/mui-material/published-claude-plugin/
/packages/mui-material/published-codex-plugin/
/packages/mui-envinfo/*.tgz
/packages/mui-icons-material/src/*.js
/test/bundling/fixtures/*/yarn.lock
Expand Down
12 changes: 6 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ import { Button } from '@mui/material'; // Avoid in packages

Packaged guidance for common integration topics lives under `skills/`. Each skill is a self-contained directory:

| Skill | Focus |
| :--------------------------------------------------------------------- | :---------------------------------------------------------- |
| [skills/material-ui-styling](./skills/material-ui-styling/AGENTS.md) | `sx`, `styled()`, theme overrides, slots, global CSS |
| [skills/material-ui-theming](./skills/material-ui-theming/AGENTS.md) | `createTheme`, design tokens, `colorSchemes`, CSS variables |
| [skills/material-ui-nextjs](./skills/material-ui-nextjs/AGENTS.md) | App/Pages Router, Emotion cache, `next/font`, `Link`, SSR |
| [skills/material-ui-tailwind](./skills/material-ui-tailwind/AGENTS.md) | Tailwind v4 `@layer`, `enableCssLayer`, v3 interop |
| Skill | Focus |
| :------------------------------------------------------------------------------------ | :---------------------------------------------------------- |
| [material-ui-styling](./packages/mui-material/skills/material-ui-styling/AGENTS.md) | `sx`, `styled()`, theme overrides, slots, global CSS |
| [material-ui-theming](./packages/mui-material/skills/material-ui-theming/AGENTS.md) | `createTheme`, design tokens, `colorSchemes`, CSS variables |
| [material-ui-nextjs](./packages/mui-material/skills/material-ui-nextjs/AGENTS.md) | App/Pages Router, Emotion cache, `next/font`, `Link`, SSR |
| [material-ui-tailwind](./packages/mui-material/skills/material-ui-tailwind/AGENTS.md) | Tailwind v4 `@layer`, `enableCssLayer`, v3 interop |

Read the relevant `AGENTS.md` when helping users with those topics.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If this is your first time encountering CSS variables, you should check out [the
:::

:::success
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-theming) to give your AI coding assistant full context on CSS theme variables, `theme.vars`, and SSR flicker prevention.
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-theming) to give your AI coding assistant full context on CSS theme variables, `theme.vars`, and SSR flicker prevention.
:::

## Introduction
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<p class="description">Material UI comes with two palette modes: light (the default) and dark.</p>

:::success
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-theming) to give your AI coding assistant full context on dark mode, color schemes, and SSR behavior.
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-theming) to give your AI coding assistant full context on dark mode, color schemes, and SSR behavior.
:::

## Dark mode only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Material UI provides several different ways to customize a component's styles.
1. [Global CSS override](#4-global-css-override)

:::success
Use the [Material UI styling agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-styling) to give your AI coding assistant guidance on choosing between `sx`, `styled()`, theme overrides, and global CSS.
Use the [Material UI styling agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-styling) to give your AI coding assistant guidance on choosing between `sx`, `styled()`, theme overrides, and global CSS.
:::

## 1. One-off customization
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/theming/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Themes let you apply a consistent tone to your app. It allows you to **customize
To promote greater consistency between apps, light and dark theme types are available to choose from. By default, components use the light theme type.

:::success
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-theming) to give your AI coding assistant full context on `createTheme`, palette, color schemes, CSS variables, and TypeScript augmentation.
Use the [Material UI theming agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-theming) to give your AI coding assistant full context on `createTheme`, palette, color schemes, CSS variables, and TypeScript augmentation.
:::

## Theme provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p class="description">Install Material UI agent skills in your coding agent.</p>

Material UI ships agent skills for common integration topics—`material-ui-nextjs`, `material-ui-styling`, `material-ui-tailwind`, and `material-ui-theming`—in the repository's `skills/` folder.
Material UI ships agent skills for common integration topics—`material-ui-nextjs`, `material-ui-styling`, `material-ui-tailwind`, and `material-ui-theming`—in the `@mui/material` package. The plugin marketplaces install them from the latest release.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/integrations/nextjs/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<p class="description">Learn how to use Material UI with Next.js.</p>

:::success
Use the [Material UI + Next.js agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-nextjs) to give your AI coding assistant full context on this integration, including App Router, SSR cache providers, `next/font`, and CSS layers.
Use the [Material UI + Next.js agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-nextjs) to give your AI coding assistant full context on this integration, including App Router, SSR cache providers, `next/font`, and CSS layers.
:::

## App Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ There are two steps to integrate Tailwind CSS v4 with Material UI:
The instructions below detail how to achieve this using common React frameworks.

:::success
Use the [Material UI + Tailwind CSS agent skill](https://github.com/mui/material-ui/tree/master/skills/material-ui-tailwind) to give your AI coding assistant full context on this integration, including CSS layer ordering, `enableCssLayer`, and Tailwind class overrides.
Use the [Material UI + Tailwind CSS agent skill](https://github.com/mui/material-ui/tree/master/packages/mui-material/skills/material-ui-tailwind) to give your AI coding assistant full context on this integration, including CSS layer ordering, `enableCssLayer`, and Tailwind class overrides.
:::

### Next.js App Router
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@
},
"homepage": "https://mui.com/material-ui/",
"repository": "https://github.com/mui/material-ui",
"license": "MIT",
"skills": [
"./material-ui-nextjs",
"./material-ui-styling",
"./material-ui-tailwind",
"./material-ui-theming"
]
"license": "MIT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
"nextjs",
"tailwind"
],
"skills": [
"./material-ui-nextjs",
"./material-ui-styling",
"./material-ui-tailwind",
"./material-ui-theming"
],
"skills": "./skills/",
"interface": {
"displayName": "Material UI",
"shortDescription": "Build UI with Material UI styling, theming, Next.js, and Tailwind",
Expand All @@ -44,7 +39,7 @@
"Set up Material UI with Next.js App Router and Emotion cache"
],
"brandColor": "#007FFF",
"composerIcon": "./assets/logo.svg",
"logo": "./assets/logo.svg"
"composerIcon": "./skills/assets/logo.svg",
"logo": "./skills/assets/logo.svg"
}
}
2 changes: 1 addition & 1 deletion packages/mui-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"scripts": {
"prebuild": "node ./scripts/stagePublishedDocs.mjs",
"build": "code-infra build-new --copy \"published-docs/**:docs\"",
"build": "code-infra build-new --copy \"published-docs/**:docs\" --copy \"skills/**:skills\" --copy \"published-claude-plugin/**:.claude-plugin\" --copy \"published-codex-plugin/**:.codex-plugin\"",
"release": "pnpm build && pnpm publish",
"test": "pnpm --workspace-root test:unit --project \"*:@mui/material\"",
"typescript": "tsc -p tsconfig.json",
Expand Down
17 changes: 17 additions & 0 deletions packages/mui-material/scripts/stagePublishedDocs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ const PACKAGE_ROOT = path.resolve(import.meta.dirname, '..');
const DOCS_PUBLIC = path.resolve(PACKAGE_ROOT, '../../docs/public');
const STAGE_DIR = path.join(PACKAGE_ROOT, 'published-docs');

// The package is also a Claude Code and Codex plugin: both marketplaces install it from npm, so the
// plugin is the released package. The version lets them detect updates; without it Claude Code
// reports `unknown`. Staged under names without a leading dot, which the build's copy globs skip.
const { version } = JSON.parse(await fs.readFile(path.join(PACKAGE_ROOT, 'package.json'), 'utf8'));
for (const agent of ['claude', 'codex']) {
const stageDir = path.join(PACKAGE_ROOT, `published-${agent}-plugin`);
await fs.rm(stageDir, { recursive: true, force: true });
await fs.mkdir(stageDir);
const manifest = JSON.parse(
await fs.readFile(path.join(PACKAGE_ROOT, `.${agent}-plugin/plugin.json`), 'utf8'),
);
await fs.writeFile(
path.join(stageDir, 'plugin.json'),
`${JSON.stringify({ ...manifest, version }, null, 2)}\n`,
);
}

if (!process.env.MUI_PUBLISH_DOCS) {
console.log('[stage-docs] MUI_PUBLISH_DOCS not set, skipping docs staging.');
process.exit(0);
Expand Down
37 changes: 33 additions & 4 deletions skills/README.md → packages/mui-material/skills/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Material UI agent skills

Packaged guidance for AI agents and humans. Each skill is a directory under `skills/` with this layout:
Packaged guidance for AI agents and humans. Each skill is a directory under `packages/mui-material/skills/`, which ships in `@mui/material`:

```text
skills/
packages/mui-material/skills/
├── README.md # this file
├── material-ui-styling/ # sx vs styled vs theme vs global CSS
│ ├── AGENTS.md # full guide (read for complete detail)
Expand Down Expand Up @@ -43,11 +43,40 @@

## Discovery

The root `AGENTS.md` lists each skill and links directly to `skills/<name>/AGENTS.md`. Any agent that reads `AGENTS.md` files will find the skills from there.
The root `AGENTS.md` lists each skill and links directly to each skill's `AGENTS.md`. Any agent that reads `AGENTS.md` files will find the skills from there.

Check warning on line 46 in packages/mui-material/skills/README.md

View workflow job for this annotation

GitHub Actions / test-dev (ubuntu-latest)

[vale] reported by reviewdog 🐶 Avoid using 'will'. Raw Output: {"message":"Avoid using 'will'.","location":{"path":"packages/mui-material/skills/README.md","range":{"start":{"line":46,"column":126},"end":{"line":46,"column":130}}},"severity":"WARNING","code":{"value":"Google.Will","url":"https://developers.google.com/style/tense"}}

## Distribution

This folder is the single source for every channel:

- **npm:** this folder is copied into `@mui/material` at `skills/` on build. `npx skills experimental_sync` links it from `node_modules`, so the skill matches the installed version.
- **`skills` CLI:** `npx skills add mui/material-ui` installs from the default branch (latest). The root `skills.sh.json` points it here.
- **Plugin marketplaces:** `claude plugin marketplace add mui/material-ui`, then `claude plugin install material-ui@material-ui`. Codex reads `.agents/plugins/marketplace.json`. Both install `@mui/material` from npm: the package is the plugin (manifests in `packages/mui-material/.claude-plugin/` and `.codex-plugin/`, published with the package version), so they update with releases.

## Guidelines

Use skills for:

- Multi-step workflows: migrations (run `npx @mui/codemod` first, then fix what's left), framework setup, major-version upgrades.
- Fix guides that runtime error codes link to.
- Pointing the agent to the right bundled doc for a task (`node_modules/@mui/material/docs/…`), instead of repeating its content.

Don't use skills for:

- API reference or anything version-specific: that belongs in the docs, which ship with the package. Skills installed from GitHub are the latest version, not the installed one.
- Styling guidance or styled examples.
- MCP configuration.
- Workflows for contributors to this repo (review, release): those live in `.agents/skills/`, are marked `metadata.internal: true`, and are never published.

How to write them:

- Work at any installed version: read the installed version from `package.json` first, then use that version's docs in `node_modules`.
- Link to the docs instead of copying them, so skills don't drift.
- Write the `description` around when to use the skill, so agents actually invoke it.

## Adding a skill

1. Create `skills/<kebab-case-name>/` with `AGENTS.md`, `SKILL.md`, `README.md`, `metadata.json` (optional: `reference.md`).
1. Create `<kebab-case-name>/` in this folder with `AGENTS.md`, `SKILL.md`, `README.md`, `metadata.json` (optional: `reference.md`).
2. Add an entry to the table in the root `AGENTS.md` linking to the new `AGENTS.md`.
3. List the new skill in the catalog below.

Expand Down
File renamed without changes
4 changes: 4 additions & 0 deletions skills.sh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://skills.sh/schemas/skills.sh.schema.json",
"paths": ["./packages/mui-material/skills"]
}
Loading