Skip to content

[code-infra] Bundle agent skills in @mui/material - #49966

Draft
Janpot wants to merge 18 commits into
mui:masterfrom
Janpot:code-infra/bundle-skills
Draft

Janpot wants to merge 18 commits into
mui:masterfrom
Janpot:code-infra/bundle-skills

Conversation

@Janpot

@Janpot Janpot commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Moves skills/ to packages/mui-material/skills/, so the build copies it into @mui/material at skills/, and npx skills experimental_sync (vercel-labs/skills#2323) can link the skill that matches the installed version.

  • skills.sh.json points npx skills add mui/material-ui at the new folder.
  • metadata.internal: true on material-ui-review, so npx skills add stops offering it to users.
  • Updates links in AGENTS.md and the docs; adds the distribution channels and authoring guidelines to the skills README.md.

Both marketplaces from #49747 (Claude Code and Codex) now install @mui/material from npm, so the plugin is the released package instead of the default branch. The plugin manifests move to packages/mui-material/.claude-plugin/ and .codex-plugin/, and the build publishes them with the package version. The Coding agents page now says the skills ship in @mui/material. The Claude Code npm install is tested in mui/base-ui#6417. The Codex one is untested: its docs don't say where the plugin root is for an npm source.

Suggestions for the skill content, for maintainers to pick up:

  • Link to the bundled docs (node_modules/@mui/material/docs/material-ui/…) instead of mui.com/…md, so links match the installed version and work offline.
  • material-ui-nextjs and material-ui-tailwind are setup workflows: keep them, as numbered steps.
  • material-ui-styling and material-ui-theming mostly restate the customization docs. That content fits the docs better; keep at most a short workflow.
  • Put the content in SKILL.md (details in references/). Today SKILL.md is an index into a per-skill AGENTS.md, which costs agents an extra read; README.md and metadata.json repeat the frontmatter.
  • Drop the hard-coded v9 range: the bundled skill always matches the installed version, and out-of-band installs can read the version from package.json.

Accepted trade-offs

  • The marketplaces download the whole package to get the skills: in return, users get the released skills rather than the default branch.
  • npx skills add still installs from the default branch: it has no npm source.

GamerDubz and others added 12 commits November 10, 2026 09:24
Bring Codex and Claude marketplace manifests up to listing quality with
long descriptions, brand assets, website URL, capabilities, prompts, and
a consistent 0.1.1 version.

Co-authored-by: GamerDubz <GamerDubz@users.noreply.github.com>
Register mui-mcp (npx -y @mui/mcp@latest) in the plugin root .mcp.json,
Claude and Codex plugin manifests, and the Claude marketplace entry so
the skills marketplace is a full plugin with MCP, not skills-only.
Drop skills/.mcp.json and strip mcpServers plus MCP mentions from the
plugin and marketplace manifests while MCP retirement is considered.
Document Material UI agent skills installation after Installation, with
an agent-selector code block for Claude Code, Codex, and other agents.
The <codeblock> parser only accepts a single non-whitespace token as
the tab title, so multi-word labels like "Claude Code" and "Other agents"
were dropped and those tabs never rendered.
Copy each skills/<name>/ folder into the published package so tools like
`skills experimental_sync` can link the skill that matches the installed
version. Document distribution channels and authoring guidelines in
skills/README.md.
@code-infra-dashboard

code-infra-dashboard Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

No regressions in 32 benchmarks · precise to ±8.1% (±16.3% at worst) · ran 4m 37s · details


Check out the code infra dashboard for more information about this PR.

Janpot and others added 6 commits December 3, 2026 16:41
Move skills/ to packages/mui-material/skills/ so the build copies it as is,
without a staging step. skills.sh.json points the skills CLI there, and
metadata.internal keeps the review skill out of `npx skills add mui/material-ui`.
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
Both marketplaces install @mui/material from npm, so the plugin is the
released package instead of the default branch. The plugin manifests move to
the package root and the build publishes them with the package version.
The Codex install is untested.
…-infra/bundle-skills

# Conflicts:
#	.agents/plugins/marketplace.json
#	.claude-plugin/marketplace.json
#	docs/data/material/getting-started/coding-agents/coding-agents.md
#	docs/data/material/pages.ts
#	docs/translations/translations.json

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants