Upgrades Angular 4.x applications to Angular 5.2.x in a single bounded major hop with dependency alignment, compatibility checks, and validation.
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.
Use this skill to upgrade an Angular 4.x application to Angular 5.2.x in one bounded major hop.
This skill upgrades only from Angular 4 to Angular 5.2. It must not continue to Angular 6 or later. The next hop must be handled by a dedicated follow-up skill.
Use this skill when:
4 -> 5 as the next step.Do not use this skill when:
For AngularJS modernization, route to:
skills/angular/migration/angularjs-to-angular-modernization-orchestrator/SKILL.md
For the next hop, route to:
skills/angular/upgrades/hops/angular-5-to-6/SKILL.md
package.jsonpackage-lock.json, yarn.lock, or pnpm-lock.yaml@angular/upgradegendirRendererOpaqueToken<template>ngOutletContextpreserveQueryParams| Area | Recommended strategy | Observations |
|---|---|---|
| Angular 4.x source | Upgrade to Angular 5.2.x only | Do not jump to a later major in this skill. |
| TypeScript | Align to 2.4.2 unless project evidence proves a stricter compatible range is required | Verify against the repo before changing. |
| RxJS | Align to ^5.5.2 | Do not force RxJS 6 syntax in this hop. |
| ngUpgrade | Move hybrid imports to @angular/upgrade/static where applicable | Preserve hybrid behavior. |
| i18n/locale | Register locale data when the app uses locale-sensitive pipes outside en-US | Do not add locale data blindly. |
If a version cannot be confirmed from the project files, mark it as verify in project.
gendir, RxJS compatibility, templates, DI tokens, renderers, router query params, and ngUpgrade imports.@angular/http unless a separate HTTP migration exists.Update Angular packages to Angular 5.2:
npm install @angular/animations@^5.2.0 @angular/common@^5.2.0 @angular/compiler@^5.2.0 @angular/compiler-cli@^5.2.0 @angular/core@^5.2.0 @angular/forms@^5.2.0 @angular/http@^5.2.0 @angular/platform-browser@^5.2.0 @angular/platform-browser-dynamic@^5.2.0 @angular/platform-server@^5.2.0 @angular/router@^5.2.0 [email protected] rxjs@^5.5.2
Register locale data only when needed:
import { registerLocaleData } from '@angular/common';
import localeEs from '@angular/common/locale/es';
registerLocaleData(localeEs);
Move ngUpgrade imports to the static package:
import { downgradeComponent, downgradeInjectable, UpgradeComponent, UpgradeModule } from '@angular/upgrade/static';
Replace preserveQueryParams with queryParamsHandling: 'preserve'.
Replace [ngOutletContext] with [ngTemplateOutletContext].
@angular/http without a dedicated HTTP migration.package.json.Read package.json first. Only run scripts that exist.
Preferred order when available:
If the repository uses Angular CLI directly and the commands exist, those can be used instead.
@angular/upgrade/static is not handled consistently.When this skill is used, return:
This skill is complete only when:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--upgrade--hops--angular-4-to-5from 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.
/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