Mono-repository for the MUI organization with code that can be public.
See https://github.com/mui/mui-private for code that needs to be private.
You can read the Infra documentation here.
- URL: frontend-public.mui.com
- Source:
/apps/code-infra-dashboard/ - Hosting: https://dashboard.render.com/web/srv-d5fq2j0gjchc73e9st5g
- Docs
- URL: mui-internal.netlify.app
- Source:
/docs/ - Hosting: https://app.netlify.com/projects/mui-internal/overview
- Docs
- Website for MUI internal packages, for example, hosts docs-infra. This is equivalent to https://backoffice.mui.com/ but for public logic.
- Source:
/packages/docs-infra/ - Docs
- Source:
/packages/code-infra/ - Docs
This repo ships agent skills under skills/ (for example, mui-triage). Install them into a repo's agent skills directory with the skills CLI:
npx skills add mui/mui-public --skill mui-triageNotes:
- Omit
--skill <name>to install every skill this repo ships. - Add
-gto install into the global agent directory, or--copywhere symlinks aren't supported (for example, Windows). When a coding agent is detected, the install runs non-interactively.
To refresh installed skills later (npx skills add copies the content into your repo):
npx skills updateIn Claude Code, you can install them as a plugin instead, which tracks master without copying files into your repo. Run this inside the repo where you want the skills:
claude plugin marketplace add mui/mui-public
claude plugin install code-infra@mui-public --scope localThe skills are then available as /code-infra:<skill> (for example, /code-infra:mui-renovate-triage). They're enabled only for you and only in that repo: --scope local records this in .claude/settings.local.json, which isn't committed. Use --scope user to enable them in every repo instead. To stay on the latest master, enable auto-update for the mui-public marketplace under /plugin → Marketplaces, or run claude plugin update code-infra@mui-public.
To enable the skills for everyone who works in a repo, use --scope project, which writes to the committed .claude/settings.json. Also add the marketplace there, so Claude Code knows where to install the plugin from for teammates who haven't added it:
{
"extraKnownMarketplaces": {
"mui-public": {
"source": { "source": "github", "repo": "mui/mui-public" }
}
},
"enabledPlugins": {
"code-infra@mui-public": true
}
}Use mui-renovate-triage to fetch a deterministic snapshot of open Renovate PRs and review them one at a time. For each PR, it shows a summary and link, asks whether to merge or continue when CI passes, and runs mui-renovate-fix when CI fails. Follow-up requests continue through the original snapshot without a persistent queue. Request read-only review to skip fixes.
Use mui-renovate-fix when you want to implement a dependency-related fix or migration identified during triage, such as an API adaptation, peer dependency mismatch, or reproducible failure caused by an update. It picks the best adaptation first, then opens a source-only draft PR when that fix works with both dependency versions. Otherwise, it updates a single-dependency Renovate PR or extracts the culprit bump and adaptation from a grouped PR into a new draft PR. You can also invoke it directly with a Renovate PR URL; it diagnoses the issue first.
For example, ask the agent to "Use mui-renovate-triage to review the open Renovate PRs", then respond with "merge" or "continue" as it presents each passing PR. Visual approval alone, external-service failures, and unrelated flaky tests do not call for a dependency fix.
The reusable Dependabot fix workflow (GitHub Agentic Workflows) clears the open Dependabot security alerts that dependency-update tooling leaves open, typically vulnerable transitive dependencies. Per package, an agent picks the least invasive fix the dependency policy allows. It batches the fixes within current major versions into one PR and gives each major-version fix its own, and reports in an issue the alerts that need a decision. Alerts that are deliberately left unfixed should be dismissed, so it stops proposing them.
Repositories call its compiled dependabot-fix-workflow.lock.yml on their own schedule, like mui-public does daily, and it runs against the calling repository. Each repository running it needs:
- The four
ANTHROPIC_*repository variables the Claude workflows use, with the Anthropic federation rule accepting the repository's default-branch OIDC subject. - The Code Infra - Auditor GitHub App installed.
- A
code-infra-auditorenvironment, restricted to the default branch, with the App'sCODE_INFRA_AUDITOR_CLIENT_IDandCODE_INFRA_AUDITOR_PRIVATE_KEYas environment secrets. The caller passes both undersecrets:: a reusable workflow gets no secret the caller doesn't pass. - An exemption for
refs/heads/code-infra-auditor/*in any ruleset that restricts branch creation.
After editing the workflow, recompile it with gh aw compile dependabot-fix-workflow.
The reusable Ahrefs audit workflow fixes what the Ahrefs Site Audit crawl of a repository's site reports. A step before the agent reads the crawl's issues with the Ahrefs API, keeps the pages the repository builds, and re-checks link targets; the agent then fixes the source, typically a shared template. It opens a pull request per Ahrefs issue category (links, redirects and external pages together), and later runs add their fixes to those while they're open.
Repositories call its compiled ahrefs-audit-workflow.lock.yml with their Site Audit project_id and the site paths they build (include_paths, exclude_paths). It needs the same setup as the Dependabot fix workflow, plus an AHREFS_API_KEY secret in the code-infra-auditor environment, which the caller passes along. Each run costs about 550 Ahrefs API units. After editing it, recompile it with gh aw compile ahrefs-audit-workflow.
Steps:
- Checkout latest master
- Run
pnpm release:prepare - Run
pnpm release:version - Open PR with the changes
Steps:
- Merge versioning PR
- Checkout release commit on master
- Run
pnpm release:prepare - Run
pnpm release:publish