upgrade-mdc

upgrade-mdc is a command for coding agents from Acheron-AI/angular-upgrade-kit. It costs 16 tokens per session (803 once invoked), scanned A, original, MIT.

A command that performs the Angular 15 upgrade for Angular Material's MDC implementation. It updates Angular and Material packages, runs the Material migration, and assigns different code areas to parallel workers for fixes.

In plain words
What is it for?
Use it when a project is on Angular 14 and needs the Angular 15 Material migration, including package updates, Sass changes, CSS fixes, component updates, and verification.
Why use it?
The MDC change can affect Sass themes, CSS selectors, component templates, and TypeScript code. Handling these areas separately helps organize the required fixes before building and testing.

Command

Part of the angular-upgrade-kit plugin — 3 skills, 8 commands, 8 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/acheron-ai/angular-upgrade-kit/upgrade-mdc
Clone the repo
git clone --depth 1 https://github.com/Acheron-AI/angular-upgrade-kit

Or install angular-upgrade-kit, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrade-mdc

README.md
[![agentmods](https://agentmods.dev/badge/commands/acheron-ai/angular-upgrade-kit/upgrade-mdc.svg)](https://agentmods.dev/commands/acheron-ai/angular-upgrade-kit/upgrade-mdc)
Your own site
<a href="https://agentmods.dev/commands/acheron-ai/angular-upgrade-kit/upgrade-mdc"><img src="https://agentmods.dev/badge/commands/acheron-ai/angular-upgrade-kit/upgrade-mdc.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.00803
Opus 5 $0.00008 $0.00402
Sonnet 5 $0.00003 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 4d ago against content hash 0074febe4f9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

upgrade-mdc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/upgrade-mdc.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Execute the Angular 15 Material MDC upgrade using Agent Teams with 4 parallel workers.

Read package.json to get the project name and verify current Angular version is 14. If not v14, tell user to run /upgrade-to for missing versions first.

Read angular.json to detect all project entries, libraries, and their paths.

Phase 1: Core Upgrade (main session — sequential)

  1. If monorepo: update all library peerDependencies to ^15.0.0
  2. npx ng update @angular/core@15 @angular/cli@15 --allow-dirty --force
  3. npx ng update @angular/cdk@15 @angular/material@15 --allow-dirty --force
  4. ng generate @angular/material:mdc-migration (accept all defaults)
  5. Do NOT build yet.

Phase 2: Parallel Fixes — Agent Team "mdc-upgrade"

Spawn 4 teammates. All work on DIFFERENT file types so no conflicts.

Teammate: @sass-rewriter "Rewrite Angular Material Sass theming for v15. Read the material-mdc skill file for exact new syntax. Scan for all *.scss files containing @import '@angular/material' or @import '~@angular/material'. For each found file:

  • Detect the existing primary/accent palette colors from the current theme definition
  • Rewrite from @import to @use syntax, preserving the detected colors
  • If palette cannot be detected, use Material's default indigo/pink palette and add a TODO comment Keep all custom styles below the theme include. When done, mark your task complete and message @main."

Teammate: @css-migrator "Migrate all .mat-* CSS CLASS selectors to .mat-mdc-* in SCSS files. Read the material-mdc skill file for the full mapping table. ONLY change CLASS selectors (.mat-X), NOT element selectors (mat-X). Scan all .scss files in src/ and any library source directories found in angular.json. Flag ambiguous cases in upgrade/reports/css-manual-review.md. When done, mark task complete and message @main with count of changes."

Teammate: @flex-remover "Remove all fxLayout, fxFlex, fxLayoutAlign, fxLayoutGap attributes from HTML templates. Replace with CSS flexbox equivalents (see the material-mdc skill file for mapping). Scan ALL .html files in src/ and all library source directories. When done, mark task complete and message @main with count."

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 71 lines · 16 tokens per session scan A 0074febe4f9a

Subscribe to this mod's changes

upgrade-mdc is a command published in the GitHub repository Acheron-AI/angular-upgrade-kit (1 stars, last pushed 22d ago), licensed MIT. It adds 16 tokens to every session and 803 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.