Skip to content
Back to skills

Angular Signals Migration

ASecurity

Moves Angular components to signals, signal inputs and standalone APIs one component at a time, with a build and test run after each step.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgoangularapi

Works with

  • api

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill angular-signals-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Signals Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular Signals Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-angular-signals-migration/badge)](https://www.skillsdirectory.com/skills/workspace-templates-angular-signals-migration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: angular-signals-migration
description: Moves Angular components to signals, signal inputs and standalone APIs one component at a time, with a build and test run after each step.
---

# Angular signals migration

Migrate one component per pass. Never touch a component the user did not name, apart from its direct parents when a template call site must change.

## Steps

1. Read the component, its template, its spec and every place it is used. Note which fields the template reads.
2. Make it standalone if it is not: move imports from its NgModule into the component and remove it from the module declarations (`standalone: true` is the default from v19).
3. Convert inputs: `@Input() name` becomes `name = input<string>()` or `input.required<string>()`. Convert outputs to `output<T>()`. Two-way bindings use `model<T>()`.
4. Replace `ngOnChanges` and input setters with `computed()`. Use `effect()` only for side effects outside the template, never to set another signal.
5. Convert `@ViewChild` and `@ContentChild` to `viewChild()` and `contentChild()`.
6. Update the template: read signals with `name()`, and switch to `@if`, `@for (x of xs; track x.id)` and `@switch`.
7. Keep long-lived streams (HTTP polling, websockets) as observables and bridge them with `toSignal()` at the edge. Do not convert an RxJS pipeline that uses debounce, switchMap or retry.
8. Run `ng build` and `ng test --include <spec>`. Fix before moving on.

## Rules

- Do not add `ChangeDetectionStrategy.OnPush` unless the component already passes with it.
- Keep public names the same so parent templates need only call-site updates.

## Report

Files changed, parents that needed template edits, and anything left on observables with the reason.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.