angular-component

Generate Angular standalone components with signal-based inputs and outputs.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/bluehands/Carbon-Aware-Scheduler --skill angular-component-bluehands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/bluehands/Carbon-Aware-Scheduler/tree/main/source/frontend/.agents/skills/angular-component
Command: npx skills add https://github.com/bluehands/Carbon-Aware-Scheduler --skill angular-component-bluehands

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of modern, standalone Angular components, ensuring adherence to the latest best practices and improving UI development efficiency.

Core Features & Use Cases

  • Standalone Components: Generates components that are self-contained and don't require an NgModule.
  • Signal-Based Inputs/Outputs: Utilizes Angular's new signal API for reactive data flow.
  • OnPush Change Detection: Optimizes performance by using ChangeDetectionStrategy.OnPush.
  • Host Bindings: Manages host element attributes, classes, and listeners declaratively.
  • Content Projection: Supports flexible content composition using <ng-content>.
  • Accessibility: Enforces accessibility standards (AXE, WCAG AA, keyboard navigation, focus indicators).
  • Template Syntax: Promotes the use of native control flow (@if, @for, @switch).

Quick Start

Generate a new Angular standalone component named 'UserProfile' with input properties for 'name' and 'email', and an output event for 'save'.

Frequently Asked Questions about angular-component

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

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

Build Angular standalone components by generating self-contained elements that utilize the new signal API for reactive data flow, eliminating the need for NgModules. This approach ensures modern, efficient UI development.

What is the best way to optimize Angular component performance using OnPush change detection?

Optimize Angular component performance by applying ChangeDetectionStrategy.OnPush. This ensures the framework checks the component's subtree only when its inputs change or events fire, reducing unnecessary render cycles.

How do I use native control flow syntax like @if and @for in Angular templates?

Use native control flow syntax like @if, @for, and @switch directly in Angular templates to handle conditional rendering and loops. This replaces structural directives and streamlines template logic.

Can I enforce accessibility standards like WCAG AA when creating Angular UI components?

Enforce accessibility standards like WCAG AA when creating Angular UI components by incorporating keyboard navigation, focus indicators, and AXE-compliant attributes. This ensures generated components are usable and accessible.

Does Angular content projection with ng-content work for flexible component composition?

Angular content projection with ng-content works for flexible component composition by allowing you to inject external content into designated slots. This creates highly reusable and adaptable UI elements.

How do I manage host element attributes and listeners declaratively in Angular?

Manage host element attributes, classes, and listeners declaratively in Angular by using host bindings. This keeps element configuration directly linked to the component's logic without manual DOM manipulation.