Logo von Dot Ui Angular Standards

Dot Ui Angular Standards

Organisation
dotCMS
dot-ui-angular-standards

dotCMS-Angular-Codierungsstandards für den core-web-Nx-Workspace. Verwenden Sie diesen Skill für JEDE Frontend-Arbeit unter core-web/ – zum Schreiben oder Bearbeiten einer Komponente, eines Service, Stores, einer Direktive, Pipe, Guard, Vorlage, SCSS-Datei oder Jest-Spezifikation, zum Prüfen eines Frontend-Diffs, zum Anlegen einer neuen UI oder zur Beantwortung der Frage „Wie machen wir X in Angular in diesem Repo?“. Verwenden Sie ihn auch, sobald eines der folgenden Elemente vorkommt: `standalone: true`, `changeDetection`, `ChangeDetectionStrategy`, `ng new`/`ng generate`/`ng serve`/`ng build`/`ng test`, `angular.json`, Karma, `@ngneat/spectator`, `npm run`/`yarn` innerhalb von core-web, ein Inline-`template:` oder `styles:` in einem Decorator, `*ngIf`/`*ngFor`, `ngClass`/`ngStyle`, `@Input()`/`@Output()`-Decorator, `@HostBinding`/`@HostListener`, `destroy$`/`takeUntil`, Constructor Injection, `dot-icon`, PrimeIcons oder „ein Icon hinzufügen“. Dieser Skill HAT VORRANG vor den allgemeinen Angular- und Angular-CLI-Empfehlungen des mitgelieferten Skills `angular-developer`, wenn die Arbeit in diesem Repository stattfindet.

Add to TypingMind

Übersicht

HerausgeberdotCMS
Repositorycore
Skill-Namedot-ui-angular-standards
Sterne
971
Forks
487
Mitgelieferte Dateien
Nur Anweisungen
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von dotCMS auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Dot Ui Angular Standards in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/dotCMS/core/tree/main/.claude/skills/dot-ui-angular-standards
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dotCMS/core.git /tmp/core
mkdir -p .claude/skills
cp -r /tmp/core/.claude/skills/dot-ui-angular-standards .claude/skills/dot-ui-angular-standards
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Dot Ui Angular Standards in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Dot Ui Angular Standards automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Dot Ui Angular Standards nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

dotCMS Angular Standards (core-web)

Precedence. This skill overrides the vendored angular-developer skill for all work in this repository. That skill is upstream, generic Angular guidance: it assumes ng CLI, angular.json, Karma, and a greenfield app. None of those apply here. Where the two disagree, this skill wins. Use angular-developer only for framework concepts it explains better (signals semantics, DI resolution, routing APIs) — never for its tooling, project-creation, or standalone/changeDetection advice.

That skill is vendored byte-for-byte from upstream Angular and must never be hand-edited — new dotCMS rules belong here instead. See .agents/skills/angular-developer/PROVENANCE.md for its upstream source and re-sync procedure.

Source of truth

docs/frontend/ANGULAR_STANDARDS.md is the single source of truth for Angular work in this repository. Read it before writing or reviewing Angular code.

It has siblings — load the one your task needs, or docs/frontend/README.md (the index) if you are unsure:

TaskDoc
Component structure, file layout, data flowCOMPONENT_ARCHITECTURE.md
Feature state — NgRx Signal Store, rxMethod, patchStateSTATE_MANAGEMENT.md
Tailwind, PrimeNG theme, BEM, SCSSSTYLING_STANDARDS.md
Strict types, as const, # privateTYPESCRIPT_STANDARDS.md
Writing tests — Spectator, Jest, byTestIdTESTING_FRONTEND.md
Reviewing tests — violation checklistTESTING_REVIEW_RULES.md
GlobalStore breadcrumb trailBREADCRUMBS.md

This file is deliberately not a copy of it. It carries only:

  1. the trigger (so it fires automatically when you touch frontend code),
  2. the precedence declaration over the vendored angular-developer skill, and
  3. the rules where upstream actively tells you to do the wrong thing here, so the correction is in front of you at the moment you would otherwise follow upstream.

Everything else — full rationale, examples, and the rules upstream already gets right — lives in the doc. If this file and the doc ever disagree, the doc wins and this file is the bug. When a standard changes, change it in the doc; only touch this file if the change is one upstream contradicts.

Workspace facts

  • Nx monorepo rooted at core-web/. There is no angular.json — the workspace is driven by nx.json.
  • Angular 22.x, PrimeNG 21.x, Tailwind 4.x, NgRx Signals 21.x, Jest 30, TypeScript 6, Node 22.22.3+.
  • Package manager: pnpm (see packageManager in core-web/package.json).
  • core-web/package.json is the source of truth for versions. Read it; never hardcode or assume a patch version.

Non-negotiables

1. Never write standalone: true

Standalone is the Angular default. The property is forbidden in decorators here. Remove it when you see it in a file you are already editing.

2. Never set changeDetection on a new component

OnPush is the framework default as of Angular v22 (docs), so an explicit ChangeDetectionStrategy.OnPush is redundant noise.

Components explicitly marked ChangeDetectionStrategy.Eager (the opt-in eager mode, renamed from Default in v22) opted in deliberately — leave them alone. Do not convert Eager to OnPush when touching a file for unrelated work.

3. Build, test, and serve through pnpm nx — never ng

There is no Angular CLI workspace here. Never yarn, never npm.

TaskCommand (run from core-web/)
Install depspnpm install
Serve the UIpnpm nx run dotcms-ui:serve
Test a projectpnpm nx run dotcms-ui:test
Build a projectpnpm nx build dotcms-ui
Scaffold codeNx generators (pnpm nx g …) — see the nx-generate skill

4. Testing is Jest 30 + @openng/spectator

  • Never @ngneat/spectator — the workspace has fully migrated (0 occurrences remain). Never Karma, never Vitest.
  • Select with byTestId and put data-testid on the elements you assert against.
  • Set inputs with spectator.setInput(). Never assign to component properties directly.
  • Mock stores in componentProviders, not providers.

5. Three files per component — .ts + .html + .scss

Inline template: and inline styles: in the decorator are forbidden. Reference the files with templateUrl and styleUrls (plural — matching docs/frontend/ANGULAR_STANDARDS.md and the dominant convention in the workspace).

6. Reuse before creating

Before creating a new component, in this order:

  1. Check dotCMS's own components — core-web/libs/ui (@dotcms/ui) and the existing feature libs.
  2. Check PrimeNG.
  3. Only then create a new component — and say in the PR why neither of the above fit.

7. Every component that renders data handles all four states

loading, empty, error, loaded — explicitly. Never leave a blank render path. If a template has no branch for a state, that state is a bug.

8. Error handling is mandatory

No silent failures. No unguarded .subscribe(). No empty catchError. Handle the error in the service with catchError, surface a user-facing error state in the component, and log the diagnostic detail.

9. Icons are Material Symbols

html
<span class="material-symbols-outlined">drag_indicator</span>

The icon name goes in the element's text content, not in the class. Fonts are self-hosted via core-web/libs/dotcms-scss/shared/_material-symbols-outlined.scss.

  • Existing PrimeIcons (pi pi-*) stay as they are — do not mass-migrate them.
  • PrimeNG's internal icons are a theming concern and out of scope.
  • Do not use the deprecated dot-icon component.

10. dotCMS-specific naming

These differ from stock Angular convention, so upstream will not tell you about them:

RuleDoDon't
Signals$mySignal ($ prefix)mySignal, mySignal$
ObservablesmyObservable$ ($ suffix)$myObservable
Selectorsdot- prefixanything else

Covered in full by the doc — read it, do not rely on this file

docs/frontend/ANGULAR_STANDARDS.md is authoritative for everything below. Upstream Angular guidance already agrees with us on these, so they are not restated here and this file must not grow a second copy of them:

  • Subscription teardown — inject(DestroyRef) + takeUntilDestroyed(); the legacy destroy$ pattern is not for new work and is not to be mass-migrated.
  • Signal Forms first — new forms use @angular/forms/signals; existing Reactive Forms stay.
  • TypeScript 6 — the transitional "ignoreDeprecations": "6.0" flag; new code must not rely on it.
  • Standard modern Angular API — input() / output() over decorators, inject() over constructor injection, @if / @for (with track) / @switch over *ngIf / *ngFor / *ngSwitch, [class.x] / [style.x] over ngClass / ngStyle, and host bindings in the host: { … } object over @HostBinding / @HostListener.

Before you finish

  • No standalone: true and no changeDetection added
  • Any Eager component you touched is still Eager
  • Three files exist for each new component; no inline template or styles
  • Loading, empty, error, and loaded paths all render something
  • Every stream is torn down with takeUntilDestroyed(destroyRef); every failure path is handled
  • Specs use @openng/spectator, byTestId, and setInput()
  • Verified with pnpm nx run <project>:test and pnpm nx run <project>:lint — not ng

Häufig gestellte Fragen

Was macht der KI-Skill Dot Ui Angular Standards?

dotCMS-Angular-Codierungsstandards für den core-web-Nx-Workspace. Verwenden Sie diesen Skill für JEDE Frontend-Arbeit unter core-web/ – zum Schreiben oder Bearbeiten einer Komponente, eines Service, Stores, einer Direktive, Pipe, Guard, Vorlage, SCSS-Datei oder Jest-Spezifikation, zum Prüfen eines Frontend-Diffs, zum Anlegen einer neuen UI oder zur Beantwortung der Frage „Wie machen wir X in Angular in diesem Repo?“. Verwenden Sie ihn auch, sobald eines der folgenden Elemente vorkommt: `standalone: true`, `changeDetection`, `ChangeDetectionStrategy`, `ng new`/`ng generate`/`ng serve`/`ng bu...

Warum Dot Ui Angular Standards in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Dot Ui Angular Standards besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Dot Ui Angular Standards in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/dotCMS/core/tree/main/.claude/skills/dot-ui-angular-standards ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Dot Ui Angular Standards nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Dot Ui Angular Standards verwenden?

So viele Sie möchten. In TypingMind können Sie Dot Ui Angular Standards mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Dot Ui Angular Standards kostenlos?

Der Skill wird von dotCMS auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇