Index of every page on this site: llms.txt
All skills
pawelbednarekpunks avatar

/angular-conventions

@9bcf004
Run it yourself

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

Use this Skill: https://skilld.dev/gh/pawelbednarekpunks/aidevbird-skills/angular-conventions

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈46 tokens for metadata: the name and description. ≈532 when used: this file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈181 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.
@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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts14d3 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    This skill provides coding conventions and best practices for modern Angular (v18+) development. It is purely informational and contains no executable code or scripts.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

Signed by skilld at 9bcf004. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago

README badge

README badge for pawelbednarekpunks/aidevbird-skills/angular-conventions