Skip to content
Skills Library
Programming · Building & coding

angular-conventions

/angular-conventions

Modern Angular (v18+) coding standards — signals, standalone, OnPush, inject(), built-in control flow. Use when writing, refactoring or reviewing Angular code.

Licence
MIT
Last repository change
08.11.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content31 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Modern Angular (v18+) coding standards — signals, standalone, OnPush, inject(), built-in control flow. Use when writing, refactoring or reviewing Angular code.

Original author description

Modern Angular (v18+) coding standards — signals, standalone, OnPush, inject(), built-in control flow. Use when writing, refactoring or reviewing Angular code.

How it works

SKILL.md has no level-two headings · 48 lines, 264 words

SKILL.md preview
---
name: angular-conventions
description: Modern Angular (v18+) coding standards — signals, standalone, OnPush, inject(), built-in control flow. Use when writing, refactoring or reviewing Angular code.
---

# Angular Conventions

Project rules (lint config, existing patterns) override these.

Components:
- Standalone (default since v19 — don't write `standalone: true`). Always `ChangeDetectionStrategy.OnPush`.
- Import only the pipes/directives used, never `CommonModule`.
- Host bindings in `host: {}` metadata, not `@HostBinding`/`@HostListener`.
- Template-only members `protected`; internals `#private`.

Signals:
- `input()`, `input.required()`, `output()`, `model()` — no `@Input`/`@Output`, no `Signal` suffix, no aliases.
- State `signal()`, derived `computed()`, writable derived `linkedSignal()`.
- Update with `set`/`update` returning new objects/arrays — never mutate.
- `effect()` only for real side effects (DOM libs, analytics), never to copy state between signals.

DI:
- `readonly #api: ApiService = inject(ApiService);` — empty or no constructor.
- Stateless services `providedIn: 'root'`; config through typed `InjectionToken<T>`.

Templates:
- `@if`, `@for`, `@switch` only. Every `@for` has `track item.id` (`$index` only for primitives); add `@empty` where a list can be empty.
- No method calls in bindings (`{{ total() }}` of a `computed` is fine, `{{ calcTotal() }}` is not) — use `computed()` or a pure pipe.
- `[class.x]`/`[style.x]` instead of `ngClass`/`ngStyle`.

Types and errors:
- No `any`. External data is `unknown`, narrowed by a type guard or schema (Zod/Valibot).
- No silent `catchError(() => of(null))` — log and expose an error state. No `console.log`.

```typescript
@Component({
  selector: 'app-user-card',
  templateUrl: './user-card.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
  host: { '[class.active]': 'active()', '(click)': 'select.emit(user().id)' },
})
export class UserCardComponent {
  readonly user = input.required<User>();
  readonly active = input(false);
  readonly select = output<string>();
  readonly #format: NameFormatter = inject(NameFormatter);
  protected readonly name = computed(() => this.#format.full(this.user()));
}
```

Tests: `*.spec.ts` next to the file; test inputs, outputs and user interaction, not private details.

Versions

RepositoryScoreLicence
This page · pawelbednarekpunks/aidevbird-skills96MIT
aratkruglik/claude-sdlc100MIT

Database snapshot: 13.11.2026 · package version ccf5f847dae8 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100angular-components
    Build standalone Angular components with Signals inputs, OnPush change detection, Control Flow, and Smart/Dumb patterns. Use when building standalone Angular components, implementing @if/@for control flow, applying OnPush change detection, or implementing Signals in Angular components.
  • 100angular-idioms
    Angular (19+) architecture: signals, standalone components, DI, OnPush change detection, and RxJS integration. Use when developing or refactoring Angular web apps. Pair with typescript-idioms.
  • 100angular-modernize
    Modernise an Angular application step by step: version-by-version upgrades with ng update, standalone components, signals and the new control flow, inject() function, typed reactive forms, OnPush change detection, and removal of deprecated modules, each through official…
  • 90angular-architecture
    Use this skill when the user says 'Angular structure', 'Angular architecture', 'Angular folder', 'Angular standalone', 'Angular signals', 'Angular clean arch', 'Angular feature', 'Angular project layout', 'NgModule vs standalone', or when structuring an Angular application…
  • 100fe-angular
    Writes and reviews Angular 22 components, templates and services - signals, built-in control flow, zoneless and OnPush defaults, SSR and hydration, NgOptimizedImage, router accessibility, DomSanitizer - for fast, accessible apps. Use when editing a .component.ts or…
  • 100ng-implementation
    Angular 21+ implementation and review rules (standalone, signals, DI, forms). Use when writing or changing Angular code.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.