angular-component

Generate Angular standalone components with signal-based inputs and OnPush change detection.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/rensjaspers/agents --skill angular-component-rensjaspers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/rensjaspers/agents/tree/main/skills/angular-component
Command: npx skills add https://github.com/rensjaspers/agents --skill angular-component-rensjaspers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and refactoring of modern Angular standalone components, ensuring adherence to the latest best practices and improving code quality and maintainability.

Core Features & Use Cases

  • Standalone Component Generation: Creates new Angular components that are standalone by default.
  • Signal-Based Inputs/Outputs: Implements modern signal-based inputs and outputs for reactive programming.
  • OnPush Change Detection: Configures components to use ChangeDetectionStrategy.OnPush for performance.
  • Host Bindings: Manages host element attributes, classes, and event listeners efficiently.
  • Content Projection: Supports complex content projection patterns for reusable UI elements.
  • Accessibility: Enforces accessibility standards (WCAG AA, ARIA attributes, keyboard navigation).
  • Template Syntax: Utilizes native control flow (@if, @for, @switch) instead of directives.
  • Use Case: Generate a new Angular UserProfileCard component with signal inputs for user data, host bindings for styling, and accessibility features, ready for integration into a larger application.

Quick Start

Use the angular-component skill to create a new standalone Angular component named 'user-profile-card'.

Frequently Asked Questions about angular-component

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

FAQPage Schema
How do I build modern Angular standalone components with signal-based inputs?

To build modern Angular standalone components with signal-based inputs, generate them using v20+ best practices. This approach configures components with signal inputs and outputs for reactive programming, OnPush change detection for performance, and native template control flow syntax.

What is the best way to refactor class-based Angular inputs to signals?

The best way to refactor class-based Angular inputs to signals is by migrating them to modern signal-based equivalents. This transition updates your components to use reactive signal inputs and outputs while aligning with v20+ standards and OnPush change detection.

How do I implement accessibility and ARIA attributes in Angular UI components?

To implement accessibility and ARIA attributes in Angular UI components, enforce WCAG AA standards during generation. This includes adding proper ARIA attributes, ensuring keyboard navigation, and setting up host bindings to manage interactive element semantics efficiently.

Does Angular v20 support OnPush change detection and content projection for reusable UI elements?

Yes, Angular v20 supports OnPush change detection and content projection for reusable UI elements. Standalone components can be configured with ChangeDetectionStrategy.OnPush and utilize complex content projection patterns to create highly maintainable and performant UI architectures.

Can I use native control flow syntax like @if and @for instead of structural directives in Angular?

Yes, you can use native control flow syntax like @if and @for instead of structural directives in Angular. Modern standalone component generation utilizes @if, @for, and @switch template syntax natively, replacing older directive-based approaches for cleaner template logic.

How do I manage host bindings and event listeners efficiently in Angular components?

To manage host bindings and event listeners efficiently in Angular components, utilize the host property within the component decorator. This approach directly manages host element attributes, classes, and event listeners, streamlining component logic alongside OnPush change detection.