Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guidelines for using modern Angular APIs (signals, inject, control flow)
.claude/skills/mgechev-angular-modern-apis/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -23% | 0% |
This skill describes the mandatory coding standards for Angular components in our codebase.
All Angular components must follow these rules:
input() and output() instead of @Input() and @Output() decoratorsinject() for DI — Use inject() function instead of constructor parameter injection@if, @for, @switch instead of *ngIf, *ngFor, *ngSwitchtypescriptimport { Component, input, output } from '@angular/core'; @Component({ ... }) export class UserProfileComponent { name = input.required<string>(); age = input(0); saved = output<void>(); }
typescriptimport { Component, inject } from '@angular/core'; import { UserService } from './user.service'; @Component({ ... }) export class UserProfileComponent { private userService = inject(UserService); }
html@if (user()) { <h1>{{ user().name }}</h1> } @else { <p>No user found</p> } @for (item of items(); track item.id) { <li>{{ item.name }}</li> }
Other measured skills in the registry, with their headline benchmark lift.