Logo van Dot Ui Angular Standards

Dot Ui Angular Standards

Organisatie
dotCMS
dot-ui-angular-standards

Angular-codeerstijlrichtlijnen van dotCMS voor de core-web Nx-werkruimte. Gebruik deze skill voor ALLE frontendwerkzaamheden onder core-web/ — bij het schrijven of bewerken van een component, service, store, directive, pipe, guard, template, SCSS-bestand of Jest-specificatie; het reviewen van een frontend-diff; het opzetten van een nieuwe UI; of het beantwoorden van de vraag "hoe doen we X in Angular in deze repo". Activeer deze skill ook zodra een van deze termen voorkomt: `standalone: true`, `changeDetection`, `ChangeDetectionStrategy`, `ng new`/`ng generate`/`ng serve`/`ng build`/`ng test`, `angular.json`, Karma, `@ngneat/spectator`, `npm run`/`yarn` binnen core-web, inline `template:` of `styles:` in een decorator, `*ngIf`/`*ngFor`, `ngClass`/`ngStyle`, `@Input()`/`@Output()`-decorators, `@HostBinding`/`@HostListener`, `destroy$`/`takeUntil`, constructorinjectie, `dot-icon`, PrimeIcons of "een pictogram toevoegen". Deze skill OVERRULET de algemene Angular- en Angular CLI-richtlijnen van de meegeleverde `angular-developer`-skill wanneer het werk binnen deze repository plaatsvindt.

Add to TypingMind

Overzicht

UitgeverdotCMS
Repositorycore
Skillnaamdot-ui-angular-standards
Sterren
971
Forks
487
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door dotCMS op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Dot Ui Angular Standards in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/dotCMS/core/tree/main/.claude/skills/dot-ui-angular-standards
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Dot Ui Angular Standards in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Dot Ui Angular Standards automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Dot Ui Angular Standards niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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

Veelgestelde vragen

Wat doet de AI-skill Dot Ui Angular Standards?

Angular-codeerstijlrichtlijnen van dotCMS voor de core-web Nx-werkruimte. Gebruik deze skill voor ALLE frontendwerkzaamheden onder core-web/ — bij het schrijven of bewerken van een component, service, store, directive, pipe, guard, template, SCSS-bestand of Jest-specificatie; het reviewen van een frontend-diff; het opzetten van een nieuwe UI; of het beantwoorden van de vraag "hoe doen we X in Angular in deze repo". Activeer deze skill ook zodra een van deze termen voorkomt: `standalone: true`, `changeDetection`, `ChangeDetectionStrategy`, `ng new`/`ng generate`/`ng serve`/`ng build`/`ng tes...

Waarom Dot Ui Angular Standards gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Dot Ui Angular Standards bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Dot Ui Angular Standards in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/dotCMS/core/tree/main/.claude/skills/dot-ui-angular-standards. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Dot Ui Angular Standards gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Dot Ui Angular Standards gebruiken?

Zoveel als je wilt. Je kunt Dot Ui Angular Standards gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Dot Ui Angular Standards gratis?

Deze skill is door dotCMS op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇