Upgrades Angular apps from 20.x to 21.x with controlled major-hop process. Handles TypeScript 5.9+, Node.js compat, zone change detection, SSR security, host binding checks, router/forms changes, dynamic component migration, and removed legacy APIs.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Upgrade an Angular application from Angular 20.x to Angular 21.x using a controlled major-hop process.
Before upgrading from Angular 20 to Angular 21, run:
skills/angular/upgrades/changelog/angular-major-changelog-risk-review/SKILL.md
If the changelog review returns FAIL_BLOCK_NEXT_HOP, do not continue to Angular 21.
skills/angular/upgrades/zone/angular-v21-zone-change-detection-root-provider/SKILL.mdskills/angular/upgrades/ssr/angular-ssr-allowed-hosts-v21-security/SKILL.mdskills/angular/upgrades/testing/angular-v21-router-zone-platformlocation-tests/SKILL.mdskills/angular/upgrades/templates/angular-v21-host-binding-typecheck/SKILL.mdskills/angular/upgrades/components/angular-v21-custom-elements-signal-inputs/SKILL.mdskills/angular/upgrades/hybrid/angular-v21-upgrade-adapter-removal/SKILL.mdskills/angular/upgrades/forms/angular-v21-formarray-directive-conflict/SKILL.mdskills/angular/upgrades/modules/angular-v21-ngmodulefactory-removal/SKILL.mdpackage.jsonangular.jsontsconfig.jsontsconfig.base.jsontsconfig.app.jsontsconfig.spec.jsonemitDeclarationOnlytypeCheckHostBindingsprovideZoneChangeDetectionignoreChangesOutsideZonemoduleIdApplicationConfigngComponentOutletContentcreateCustomElementcustomElements.defineUpgradeAdapter@angular/upgrade@angular/upgrade/staticFormArrayformArrayNgModuleFactoryRouter.lastSuccessfulNavigationallowedHoststrustProxyHeadersUse the Angular compatibility matrix as the source of truth.
Angular 21 requires TypeScript 5.9 or later.
Prefer updating to the latest Angular 21 patch:
ng update @angular/core@^21 @angular/cli@^21
If local CLI is unreliable, use:
npx @angular/cli@21 update @angular/core@^21 @angular/cli@^21
If the project uses Angular Material, update to v21 after Angular core and CLI succeed.
ng update @angular/material@^21
or:
npx @angular/cli@21 update @angular/material@^21
Review Angular custom elements using signal inputs and ensure direct property access where required.
provideZoneChangeDetectionProvide zone change detection at the application root when the app remains Zone-based.
ignoreChangesOutsideZoneRemove ignoreChangesOutsideZone from zone configuration.
Keep only default interpolation markers.
moduleIdRemove moduleId from components and directives.
ngComponentOutletContent typingUse Node[][] | undefined.
Fix host binding errors or temporarily bridge them with explicit follow-up.
ApplicationConfig import migrationImport ApplicationConfig from @angular/core.
UpgradeAdapter removalRemove UpgradeAdapter and use static upgrade APIs.
formArray directive conflictRename custom directives or inputs that conflict with Angular forms names.
NgModuleFactoryRemove dynamic module loading code that still depends on NgModuleFactory.
emitDeclarationOnlyDo not use emitDeclarationOnly in Angular compilation paths.
lastSuccessfulNavigation is now a signalUpdate reads to call it as a signal.
Configure explicit allowedHosts and validate trusted proxy headers.
UpgradeAdapter, NgModuleFactory, moduleId, or ignoreChangesOutsideZone.allowedHosts: ['*'] without infrastructure validation.allowedHosts is explicit.provideZoneChangeDetection is configured when needed.ignoreChangesOutsideZone is removed.UpgradeAdapter is removed.NgModuleFactory is removed.Router.lastSuccessfulNavigation is read correctly.Run only existing scripts:
npm run buildnpm run testnpm run lintnpm run e2eng build --configuration productionnpm run build:ssrnpm run prerendernpm run serve:ssrUse FAIL_BLOCK_NEXT_HOP when:
provideZoneChangeDetection is missing when neededignoreChangesOutsideZone remainsmoduleId remainsApplicationConfig is still imported from @angular/platform-browserngComponentOutletContent typing is unresolvedUpgradeAdapter remainsNgModuleFactory remainsemitDeclarationOnly remains in Angular compilation pathRouter.lastSuccessfulNavigation is accessed as a propertyformArray directive/input conflicts remainallowedHostsallowedHosts is explicit where used.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job
/ngautopilot-angular:angular--upgrade--hops--angular-20-to-21from ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular