Upgrades an Angular app from 15.x to 16.x, handling ngcc removal, View Engine library compatibility, SSR/TransferState changes, dynamic component creation, router typing, and build output changes.
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 15.x to Angular 16.x using a controlled major-hop process.
This hop is a hard compatibility boundary because Angular 16 removes ngcc. Projects on Angular 16 and later no longer support View Engine libraries.
Before upgrading to Angular 16, run:
skills/angular/upgrades/libraries/angular-ngcc-view-engine-removal-v16/SKILL.md
Use it to detect:
ngcc scripts__ivy_ngcc__metadata.jsonIf a critical View Engine-only library is detected, return FAIL_BLOCK_NEXT_HOP.
package.jsonzone.js versionangular.jsontsconfig.jsontsconfig.app.jsontsconfig.spec.jsonpostinstall scriptsngcc references__ivy_ngcc__ referencesrenderModuleFactoryrenderModulerenderApplicationTransferStateComponentFactoryResolverViewContainerRef.createComponentEnvironmentInjector.runInContextReflectiveInjectorInjector.createentryComponentsANALYZE_FOR_ENTRY_COMPONENTSmoduleIdRendererType2.stylesQueryList.filterBrowserModule.withServerTransitionAPP_IDAngular 16 supports Node.js v16 and v18.
Block the upgrade when Node.js is not supported.
Angular 16 supports TypeScript 4.9.3 or later.
Angular 16 supports Zone.js 0.13.x or later.
Run:
ng update @angular/core@16 @angular/cli@16
If the local CLI is unreliable, use:
npx @angular/cli@16 update @angular/core@16 @angular/cli@16
If the project uses Angular Material, update to v16 after Angular core and CLI succeed.
ng update @angular/material@16
or:
npx @angular/cli@16 update @angular/material@16
Do not upgrade Material beyond v16 in this hop.
Remove ngcc scripts only after confirming all Angular libraries are Ivy-compatible.
Gate behavior:
FAIL_BLOCK_NEXT_HOPFAIL_BLOCK_NEXT_HOPngcc script still required = FAIL_BLOCK_NEXT_HOPReview code that handles router events and update assumptions around RouterEvent and NavigationSkipped.
Flatten nested style arrays to a flat string array where required.
Review router and location tests that rely on mocked platform location behavior.
Import ApplicationConfig from @angular/core.
Replace renderModuleFactory with renderModule.
Import XhrFactory from @angular/common.
Replace with APP_ID where multiple apps require unique app IDs.
Replace with runInInjectionContext where applicable.
Use ViewContainerRef.createComponent without factory resolver where possible.
Update renderApplication usage to the Angular 16 signature.
Remove deprecated server platform config usage.
Remove moduleId from @Component and @Directive.
Import TransferState, makeStateKey, and StateKey from @angular/core.
Remove both from active metadata.
Review stricter typing for template outlet context objects.
Review custom build tooling for ES2022-compatible distributed output.
Remove EventManager.addGlobalEventListener usage.
Remove BrowserTransferStateModule.
Replace with Injector.create.
Review type-guard narrowing behavior.
ngcc as a workaround.ngcc is not required.entryComponents and ANALYZE_FOR_ENTRY_COMPONENTS are removed.Run only existing commands:
npm run buildnpm run testnpm run lintnpm run e2eng build --configuration productionnpm run build:ssrnpm run serve:ssrnpm run prerenderUse FAIL_BLOCK_NEXT_HOP when:
TransferState imports are unresolvedBrowserTransferStateModule remainsComponentFactoryResolver migration is unresolvedReflectiveInjector remainsANALYZE_FOR_ENTRY_COMPONENTS remainsentryComponents remains in active metadatangTemplateOutletContext typing errors remainEventManager.addGlobalEventListener remainsAPP_IDsngcc is not required.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
angular-upgrade, major-hop, ngcc-removal, view-engine, migration
/ngautopilot-angular:angular--upgrade--hops--angular-15-to-16from 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.