Frameworki
Angular components
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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
fe-angularangular9 regułładowane zawsze: 78 tokenów; przy użyciu: 1152 tokeny; w referencjach na żądanie: 2088 tokenów.
Instalacja
init instaluje ten skill, gdy projekt używa: angular. Wybierz agenta, aby zobaczyć, gdzie trafią jego pliki.
npx github:dawidolko/frontend-skills init Ten sposób nie był jeszcze testowany. npx i pnpm dlx są przetestowane; jeśli ten zawiedzie, użyj jednego z nich.
Bez --agents polecenie init rozpoznaje agentów po tym, co projekt już ma, a gdy nie znajdzie żadnego, pyta:
Po czym init rozpoznaje każdego z agentów (17)
| Agent | Rozpoznawany po |
|---|---|
| Claude Code | CLAUDE.md .claude CLAUDE.local.md |
| OpenAI Codex | .codex AGENTS.override.md |
| Cursor | .cursor .cursorrules |
| GitHub Copilot | .github/copilot-instructions.md .github/instructions .github/skills .github/prompts |
| Gemini CLI | GEMINI.md .gemini |
| Antigravity CLI | .agents/rules .agent/rules |
| Devin / Windsurf | .devin .windsurf .windsurfrules |
| OpenCode | opencode.json opencode.jsonc .opencode |
| Cline | .clinerules .cline |
| Zed | .rules .zed |
| JetBrains Junie | .junie |
| Kiro | .kiro |
| Augment | .augment .augment-guidelines |
| Trae | .trae |
| Continue | .continue |
| Amazon Q Developer | .amazonq |
| Aider | .aider.conf.yml CONVENTIONS.md |
Gdzie trafia fe-angular dla: Claude Code
.claude/skills/fe-angular/SKILL.mdskill.claude/skills/fe-angular/references/angular.mdskill.claude/rules/fe-angular.mdplik regułCLAUDE.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
paths:
- "**/*.component.ts"
- "**/*.component.html"
- "**/*.service.ts"
- "**/app.config.ts"
- "**/*.routes.ts"
---
# Angular components (frontend-skills)
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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.claude/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: OpenAI Codex
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
OpenAI Codex nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: Cursor
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskill.cursor/rules/fe-angular.mdcplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
description: 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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
globs: **/*.component.ts, **/*.component.html, **/*.service.ts, **/app.config.ts, **/*.routes.ts
alwaysApply: false
---
# Angular components (frontend-skills)
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.agents/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: GitHub Copilot
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskill.github/instructions/fe-angular.instructions.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
applyTo: "**/*.component.ts,**/*.component.html,**/*.service.ts,**/app.config.ts,**/*.routes.ts"
description: "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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code."
---
# Angular components (frontend-skills)
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.agents/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Gemini CLI
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillGEMINI.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Gemini CLI: Gemini CLI was replaced by Antigravity CLI for unpaid tiers on 2026-06-18; choose "antigravity" too if you use it.
Gemini CLI nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: Antigravity CLI
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskill.agents/rules/fe-angular.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
trigger: glob
globs: "**/*.component.ts, **/*.component.html, **/*.service.ts, **/app.config.ts, **/*.routes.ts"
description: "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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code."
---
# Angular components (frontend-skills)
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.agents/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Devin / Windsurf
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskill.devin/rules/fe-angular.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Devin / Windsurf: Devin CLI also reads .cursor/rules; with Cursor chosen too, the CLI sees both rule files of a skill.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
trigger: glob
globs: "**/*.component.ts,**/*.component.html,**/*.service.ts,**/app.config.ts,**/*.routes.ts"
---
# Angular components (frontend-skills)
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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.agents/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: OpenCode
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
OpenCode nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: Cline
.claude/skills/fe-angular/SKILL.mdskill.claude/skills/fe-angular/references/angular.mdskill.clinerules/fe-angular.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Cline: If .clinerules is a single file rather than a folder, Cline rule files are not written; skills still are.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
paths:
- "**/*.component.ts"
- "**/*.component.html"
- "**/*.service.ts"
- "**/app.config.ts"
- "**/*.routes.ts"
---
# Angular components (frontend-skills)
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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.claude/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Zed
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillCLAUDE.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zed: Zed reads only the first instruction file of its list; the block is placed in that file.
Zed nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: JetBrains Junie
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
JetBrains Junie: Junie reads .agents/skills only in a trusted project.
JetBrains Junie nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: Kiro
.kiro/skills/fe-angular/SKILL.mdskill.kiro/skills/fe-angular/references/angular.mdskill.kiro/steering/fe-angular.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
inclusion: fileMatch
fileMatchPattern: ["**/*.component.ts", "**/*.component.html", "**/*.service.ts", "**/app.config.ts", "**/*.routes.ts"]
---
# Angular components (frontend-skills)
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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code.
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.kiro/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Augment
.agents/skills/fe-angular/SKILL.mdskill.agents/skills/fe-angular/references/angular.mdskillAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Augment nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.Gdzie trafia fe-angular dla: Trae
.trae/skills/fe-angular/SKILL.mdskill.trae/skills/fe-angular/references/angular.mdskill.trae/rules/fe-angular.mdplik regułAGENTS.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Trae: Trae reads AGENTS.md only after it is enabled in its settings.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
description: "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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code."
globs: **/*.component.ts,**/*.component.html,**/*.service.ts,**/app.config.ts,**/*.routes.ts
alwaysApply: false
---
# Angular components (frontend-skills)
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.trae/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Continue
.frontend-skills/skills/fe-angular/SKILL.mdskill.frontend-skills/skills/fe-angular/references/angular.mdskill.continue/rules/fe-angular.mdplik reguł
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
---
name: "Angular components"
description: "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 .component.html, migrating from *ngIf or NgModules, or asked to review Angular code."
globs: ["**/*.component.ts", "**/*.component.html", "**/*.service.ts", "**/app.config.ts", "**/*.routes.ts"]
alwaysApply: false
---
# Angular components (frontend-skills)
- Use `@if`, `@for` and `@switch`; `*ngIf`, `*ngFor` and `NgSwitch` are deprecated since v20 (angular/control-flow).
- `@for` tracks a unique field (`track item.id`), not the object (angular/for-track-id).
- Two-way binding is `[(value)]`, never `([value])` (angular/banana-in-box).
- Derive state with `computed()` or `linkedSignal()`; `effect()` only syncs with the outside world (angular/computed-not-effect).
- Change signals with `set()` and `update()` and new values; never mutate their contents.
- Static images use `ngSrc` with `width` and `height` (or `fill`), the LCP image `priority` (angular/ng-optimized-image).
- `routerLinkActive` links set `ariaCurrentWhenActive="page"` (angular/router-aria-current); move focus to the main heading after navigation.
- With SSR, no direct `window`, `document` or `localStorage`; inject `DOCUMENT` or use `afterNextRender()` (angular/ssr-browser-globals).
- Write `<tbody>` in every table (angular/table-tbody).
- Never pass data to `bypassSecurityTrust*`; bind `[innerHTML]` and let Angular sanitize (angular/no-bypass-security-trust).
- Interactive elements are native `<button>` and `<a>`, also as component hosts (`button[appButton]`) (a11y/no-click-on-static).
Before larger changes, read the full skill: `.frontend-skills/skills/fe-angular/SKILL.md`. Explain any rule id with `npx github:dawidolko/frontend-skills explain <id>`.Gdzie trafia fe-angular dla: Amazon Q Developer
.frontend-skills/skills/fe-angular/SKILL.mdskill.frontend-skills/skills/fe-angular/references/angular.mdskill.amazonq/rules/frontend-skills.mdblok instrukcji
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Amazon Q Developer: Amazon Q Developer IDE plugins reach end of support on 2027-04-30; AWS points to Kiro.
Amazon Q Developer nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
### Skills
- `fe-angular` (Angular components): when editing `**/*.component.ts`, `**/*.component.html`, `**/*.service.ts`, `**/app.config.ts`, `**/*.routes.ts`, first read `.frontend-skills/skills/fe-angular/SKILL.md`.Gdzie trafia fe-angular dla: Aider
.frontend-skills/skills/fe-angular/SKILL.mdskill.frontend-skills/skills/fe-angular/references/angular.mdskillCONVENTIONS.mdblok instrukcji.aider.conf.ymlkonfiguracja
Dla każdego agenta także: .frontend-skills/profile.json, .frontend-skills/lessons.md i .frontend-skills/install.json.
Aider nie ma plików reguł zawężonych do typów plików; czyta skille i blok instrukcji.
Zaplanowane przez sam instalator dla przykładowego projektu React z repozytorium.
## Front-end work (frontend-skills)
- Before front-end work, read `.frontend-skills/profile.json` (the stack) and `.frontend-skills/lessons.md` (confirmed conventions of this project; they win over any skill).
- Use the installed `fe-*` skill that matches the files you edit.
- After changing UI code, run `npx github:dawidolko/frontend-skills audit --changed --json` and fix findings at `serious` and above; `explain <rule id>` gives the reason, the source and the fix.
- Name rule ids (such as `a11y/img-alt`) in reviews and commit messages.
### Skills
- `fe-angular` (Angular components): when editing `**/*.component.ts`, `**/*.component.html`, `**/*.service.ts`, `**/app.config.ts`, `**/*.routes.ts`, first read `.frontend-skills/skills/fe-angular/SKILL.md`.Jak go używać
Po instalacji agent sam ładuje skill, gdy zadanie pasuje do jego opisu. Możesz też poprosić o niego własnymi słowami, na przykład:
A żeby sprawdzić i poprawić pracę:
- Użyj skilla fe-angular na tym pliku.
- Uruchom audyt front-endu na moich zmianach i popraw wszystko, co poważne.
- Wyjaśnij angular/control-flow i popraw to tutaj.
Reguły, których uczy
angular/control-flowTemplates use the built-in @if, @for and @switch blocks, not the *ngIf, *ngFor and *ngSwitch directives deprecated in v20.
angular/for-track-idAn @for block tracks a stable unique field of the item (track item.id), not the item object itself.
angular/ng-optimized-imageStatic images in Angular templates use NgOptimizedImage (ngSrc with width and height, or fill), not a plain src.
angular/router-aria-currentA routerLinkActive link also sets ariaCurrentWhenActive, so the current page is announced, not only styled.
angular/table-tbodyTable rows in Angular templates sit inside an explicit tbody (or thead/tfoot); the browser inserts one and hydration fails.
angular/banana-in-boxTwo-way binding is written [(prop)], brackets outside; ([prop]) silently binds an event named [prop] instead.
angular/computed-not-effectDerive state with computed() (or linkedSignal()); never copy one signal into another inside effect().
angular/ssr-browser-globalsCode that runs on the server never touches window, document, navigator or localStorage directly; use DI or afterNextRender.
angular/no-bypass-security-trustDomSanitizer bypassSecurityTrust* calls never receive user or server data; each one is a reviewed exception.
Skrót reguł
Ta część jest kopiowana do zawężonego pliku reguł każdego agenta, więc musi być zrozumiała sama w sobie:
- Use
@if,@forand@switch;*ngIf,*ngForandNgSwitchare deprecated since v20 (angular/control-flow). @fortracks a unique field (track item.id), not the object (angular/for-track-id).- Two-way binding is
[(value)], never([value])(angular/banana-in-box). - Derive state with
computed()orlinkedSignal();effect()only syncs with the outside world (angular/computed-not-effect). - Change signals with
set()andupdate()and new values; never mutate their contents. - Static images use
ngSrcwithwidthandheight(orfill), the LCP imagepriority(angular/ng-optimized-image). routerLinkActivelinks setariaCurrentWhenActive="page"(angular/router-aria-current); move focus to the main heading after navigation.- With SSR, no direct
window,documentorlocalStorage; injectDOCUMENTor useafterNextRender()(angular/ssr-browser-globals). - Write
<tbody>in every table (angular/table-tbody). - Never pass data to
bypassSecurityTrust*; bind[innerHTML]and let Angular sanitize (angular/no-bypass-security-trust). - Interactive elements are native
<button>and<a>, also as component hosts (button[appButton]) (a11y/no-click-on-static).
Kroki, które wykonuje agent
- Read the
@angular/coremajor frompackage.json. On v20+ components are standalone by default, on v21+ zoneless, on v22+OnPush: do not writestandalone: trueorchangeDetection: OnPushin new code. - Components:
input(),input.required(),output(),model()instead of@Input/@Output;inject()instead of constructor parameters;host: {}instead of@HostBinding/@HostListener;[class.x]and[style.x]instead ofNgClass/NgStyle. - State: a service holds a private
signal()and exposesasReadonly()andcomputed()views. Reads withhttpResource()orresource(); writes withHttpClientmethods. - Routes lazy-load features with
loadComponentandloadChildren. Below-the-fold widgets go in@defer (on viewport)with a sized@placeholder; never defer what is visible on first paint. - SSR: declare
RenderModeper route inapp.routes.server.ts; never prerender per-user pages; keep auth requests out of the transfer cache. - Accessibility: the CDK (
cdkTrapFocus,LiveAnnouncer,FocusMonitor) or@angular/ariafor widgets instead of hand-written keyboard code.
Jak agent sprawdza swoją pracę
npx github:dawidolko/frontend-skills audit --changedreads*.component.htmltemplates: deprecated directives, identity tracking, plain<img src>, missingariaCurrentWhenActive, rows without<tbody>, reversed two-way bindings. Inline templates in.tsfiles are not read yet; review them by hand.- Run
ng lintwith angular-eslint (template accessibility rules,prefer-control-flow,no-uncalled-signals) andng build; in development watch the console for hydration (NG05xx) and image warnings. - Search
.tsfiles foreffect(,bypassSecurityTrustand, with SSR,window.,document.andlocalStorage.
Sprawdzane audytem
Testy statyczne tych reguł działają w audit; to prawdziwa sesja na przykładowym projekcie:
audit: liczby według wagi, każda reguła z pierwszym miejscem, kod wyjścia.Pliki referencyjne
references/angular.md2088 tokenów