Upgrades an Angular app from 19.x to 20.x with explicit handling for TypeScript 5.8+, moduleResolution bundler, testing behavior, DI deprecations, router redirects, Resource API changes, template operator conflicts, ng-reflect cleanup, and SSR/module-resolution risk.
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 19.x to Angular 20.x using a controlled major-hop process.
Before upgrading from Angular 19 to Angular 20, 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 20.
skills/angular/upgrades/testing/angular-v20-testing-errors-effects-animations/SKILL.mdskills/angular/upgrades/di/angular-v20-injector-injectflags-cleanup/SKILL.mdskills/angular/upgrades/router/angular-v20-guards-redirects-route-validation/SKILL.mdskills/angular/upgrades/resources/angular-v20-resource-rxresource-migration/SKILL.mdskills/angular/upgrades/zoneless/angular-v20-zoneless-api-rename/SKILL.mdskills/angular/upgrades/templates/angular-v20-template-operator-compat/SKILL.mdskills/angular/upgrades/build/angular-v20-module-resolution-bundler/SKILL.mdskills/angular/upgrades/debug/angular-v20-ng-reflect-cleanup/SKILL.mdpackage.jsonangular.jsontsconfig.jsontsconfig.app.jsontsconfig.spec.jsonmoduleResolutionafterRenderafterEveryRenderTestBed.flushEffectsTestBed.tickprovideExperimentalCheckNoChangesForDebugprovideCheckNoChangesConfigprovideExperimentalZonelessChangeDetectionprovideZonelessChangeDetectionng-reflect-*provideNgReflectAttributesRedirectFnRedirectCommandRoute.redirectTocanMatchresourcerxResourceResourceStatusininvoidvoidTestBed.getInjectFlagsInjector.getEnvironmentInjector.getTestBed.injectAsyncPipe usage in testsPendingTasks.runPendingTasks.addDatePipeYredirectTo + canMatch route configsUse the Angular version compatibility matrix as the source of truth.
Angular 20 requires TypeScript 5.8 or later.
Run:
ng update @angular/core@20 @angular/cli@20
If local CLI is unreliable, use:
npx @angular/cli@20 update @angular/core@20 @angular/cli@20
If the project uses Angular Material, update to v20 after Angular core and CLI succeed.
ng update @angular/material@20
or:
npx @angular/cli@20 update @angular/material@20
moduleResolution: "bundler"Validate and align tsconfig inheritance to use moduleResolution: "bundler".
afterRender with afterEveryRenderUpdate render callbacks to the new API.
TestBed.flushEffects() with TestBed.tick()Update tests using effect flushing helpers.
Replace provideExperimentalCheckNoChangesForDebug with provideCheckNoChangesConfig.
ng-reflect-* dependencyAvoid tests or production logic depending on Angular debug attributes.
RedirectFn return valuesUpdate direct calls to RedirectFn to handle Observable or Promise results.
request to paramsUpdate resource usage to the params option.
request / loader to params / streamUpdate rxResource usage to the new API.
ResourceStatus enum usageRemove enum-style ResourceStatus usage.
Replace provideExperimentalZonelessChangeDetection with provideZonelessChangeDetection.
in and void conflictsRename colliding template properties or references.
Stop mutating router commands arrays.
Review animation-related test timing changes.
Review tests that expect swallowed listener errors.
anyRemove any from route guard arrays.
TestBed.get() with TestBed.inject()Update all touched tests.
InjectFlagsReplace InjectFlags with typed options or explicit handling.
ProviderToken<T> in Injector.getAvoid untyped or string-token injector usage in critical code.
Adjust tests and error handling to the new behavior.
Stop relying on the return value of PendingTasks.run.
Review suspicious Y format usage.
Review parenthesized optional chaining and nullish expressions.
redirectTo with canMatchResolve route configs that combine redirectTo and canMatch.
TestBed.get, InjectFlags, or ng-reflect-* dependencies.ModuleResolution inheritance accidentally.moduleResolution is aligned to bundler.ng-reflect-* dependence is removed.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:
moduleResolution: "bundler" is missing or overridden incorrectlyafterRender remainsTestBed.flushEffects() remainsng-reflect-*RedirectFn calls assume sync returnResourceStatus enum usage remainsin or void conflicts remainanyTestBed.get() remainsInjectFlags remainsInjector.get() remains in critical codePendingTasks.run return value is still relied uponY usage remains in critical flowsredirectTo and canMatchmoduleResolution is aligned to bundler.ng-reflect-* dependency is removed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--upgrade--hops--angular-19-to-20from ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 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.
Other plugins' skills for the same job
/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.