refactor:angular

Refactor Angular 17+ components to standalone, OnPush, and signals.

9|1|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/SnakeO/claude-debug-and-refactor-skills-plugin --skill refactor-angular
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor:angular
Source: https://github.com/SnakeO/claude-debug-and-refactor-skills-plugin/tree/main/plugins/debug-and-refactor/skills/refactor-angular
Command: npx skills add https://github.com/SnakeO/claude-debug-and-refactor-skills-plugin --skill refactor-angular

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps transform tangled and aging Angular codebases into clean, maintainable, and high-performance architectures by applying modern patterns such as standalone components, signals, OnPush change detection, and proper RxJS usage.

Core Features & Use Cases

  • Convert large components into smaller, SRP-aligned units with clear responsibilities.
  • Replace fat templates and nested subscriptions with services, signals, and computed state.
  • Encourage standalone components, lazy loading, and OnPush strategies to improve performance and developer experience.

Quick Start

Run the refactor-angular tool on a target module or component, e.g., src/app/features/dashboard/dashboard.component.ts, to produce a standalone, OnPush-optimized version ready for integration.

Frequently Asked Questions about refactor:angular

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor Angular components to use signals and OnPush change detection?

To refactor Angular components, you replace nested subscriptions and fat templates with services, signals, and computed state. Adopting standalone components and OnPush change detection aligns the code with Angular Style Guide conventions.

What is the best way to handle nested subscriptions in large Angular components?

The best way to handle nested subscriptions is replacing them with clean RxJS usage, signals, and computed state. This refactoring transforms large components into smaller, SRP-aligned units with clear responsibilities.

Can I convert fat Angular templates into smaller standalone components?

Yes, you can convert fat templates by refactoring them into smaller, SRP-aligned standalone components. This leverages lazy loading and OnPush change detection strategies to improve performance and developer experience.

Does this Angular refactoring approach work with older project versions?

This refactoring approach applies to Angular 17 and newer projects. It requires adopting modern patterns like signals and standalone components, which are not available in older framework versions.

Why should I replace fat templates when refactoring my Angular app?

Replacing fat templates improves maintainability and performance by moving logic into services, signals, and computed state. This reduces template complexity and aligns with the Angular Style Guide.