Perform your Angular migrations stress-free with full guidance!
Professional Angular migration companion tool for version upgrades, Nx monorepo refactoring, and technical debt assessment
AI-powered migration auto-fix + Angular schematics (experimental)
π¬π§ English | π«π· FranΓ§ais
A complete Angular migration analysis (AST) AND AI-assisted migration tool for:
- π Angular Migrations β Plan migrations 17β18, 18β19, 19β20, 20β21 with precise estimates
- π’ Nx Monorepo β Analyze multi-app/lib workspaces with per-target breakdown
- π Technical Debt β Identify deprecated APIs, anti-patterns, modernization opportunities
- π° Workload Estimation β Calculate time (days/hours/minutes) by priority and risk level
- π¨ Code Modernization β Detect Signals, Control Flow, Standalone Components opportunities
Perfect for technical teams and tech leads planning Angular upgrades or refactoring.
πΈ See the result | π€ AI Auto-Fix
Unlike simple regex scanners or manual audits:
- β 88% AST Coverage β Context-aware detection eliminates false positives (ignores comments, strings, migrated code)
- β
Cross-File Intelligence β Connects TypeScript β HTML templates (detects
@Component+<router-outlet>patterns) - β Production-Ready β 748 tests passing, TypeScript strict mode, optimized batch processing
- β Time Savings β Auto workload calculation + Gantt timeline = instant migration roadmap
- β Zero Dependencies β Pure AST analysis with ts-morph + @angular/compiler (no external APIs)
# Navigate to your project
cd path-to-my-project # (if local install)
# Install
npm install -D @silvestv/migration-planificator
npm install -g @silvestv/migration-planificator
# Run directly
npx @silvestv/migration-planificator
npx @silvestv/migration-planificator --project-path=path-to-my-project--scanner=<mode> ast | regex | both [default: ast]
--project-path=<path> Path to Angular project [default: .]
--rules=<versions> 18 | [18,19] | all [default: all]# Scan current directory (AST, all rules)
npx @silvestv/migration-planificator
# Comparative scan on Nx workspace
npx @silvestv/migration-planificator --scanner=both --project-path=/workspace/my-app
# Only Angular 17β18 rules
npx @silvestv/migration-planificator --rules=18
# Multiple versions
npx @silvestv/migration-planificator --rules=[18,19,20]open output/index.html # macOS/Linux
start output/index.html # Windows5 HTML files generated in output/ :
- Overview β Project summary, global stats, apps/libs cards
- Workload β Charts (pie, bar, doughnut), Gantt timeline, hierarchy tree, real-time editing, filters
- Migration Guide β Step-by-step checklist per rule
- Rules Overview β All 119 rules with detection status
- Delta (both mode) β AST vs Regex comparison, divergence analysis
Generate structured prompts for AI agents (Claude CLI / Gemini CLI -> not recommended) to automatically migrate your code.
Recommended: Claude Code Opus 4 (CLI) with a small-to-medium repository (< 500 files impacted). Experimental β review all agent changes before merging.
- An IDE (VSCode / WebStorm)
- Claude Code (recommended) OR Gemini CLI
- Note: migrating a rule costs a certain number of tokens!
- project > ./output/workload-planner.html
- Open the page in your browser
- On a migration rule, click the AI FIX button: it copies to clipboard
- Open a terminal in the project to migrate
- Paste the clipboard command such as:
npx @silvestv/migration-planificator fix --rule=RULE_KEYOR from another repo with
npx @silvestv/migration-planificator fix --rule=RULE_KEY --project-path=/path/to/project- Execute: prompt generation
Note: "RULE_KEY" values are visible at the bottom of rule "details" modals.
| Option | Description | Default |
|---|---|---|
--rule=RULE_KEY |
Migration rule to fix (required) | β |
--project-path=PATH |
Path to Angular project | . |
--branch=BRANCH |
Base branch | master |
-y |
Skip precondition confirmation | false |
--skip-validation |
Skip build & tests in prompt | false |
4 files in output/ai/migration/{version}/{rule}-prompts/ :
| File | Purpose |
|---|---|
constitution.md |
Absolute agent rules (safety, quality, imports) |
context.md |
Rule description + all occurrences (file:line) |
ledger.json |
Migration tracking (schematic, iterations, blame) |
file-prompt.md |
Complete 7-phase instructions for the agent |
cd /path/to/project && claude # or gemini
> Execute output/ai/migration/19/signal_inputs-prompts/file-prompt.md (example)The agent will: check preconditions β create branch β propose plan β implement β validate (AST + build + tests) β commit & push.
119 rules across 4 versions:
| Migration | Mandatory | Recommended | Optional | Total |
|---|---|---|---|---|
| 17β18 | 8 | 17 | 0 | 25 |
| 18β19 | 15 | 13 | 9 | 37 |
| 19β20 | 6 | 7 | 5 | 18 |
| 20β21 | 21 | 6 | 12 | 39 |
Categories: environment β’ imports β’ api β’ routing β’ template β’ test β’ ssr β’ reactive β’ signals β’ config
Risk Levels: π΄ Critical β’ π High β’ π‘ Medium β’ π’ Low
100% local processing. No telemetry, no external APIs, no data leaves your machine. See SECURITY.md
- π Report a Bug
- β¨ Request a Feature
- β Ask a Question
- π§ victor.silvestre.dev@gmail.com
Β© 2025 Victor SILVESTRE β Apache License 2.0. Free for commercial use. See LICENSE.
Built with ts-morph, @angular/compiler, TailwindCSS, Chart.js
π§ Contact β’ π¦ NPM Package

