angular-components
БесплатноБез исполняемых скриптовНе проверенBuild standalone Angular components with Signals inputs, OnPush change detection, Control Flow, and Smart/Dumb patterns. Use when building standalone Angular…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Angular Components
Priority: P0 (CRITICAL)
Standalone & Structure
- Standalone:
standalone: true. Import all deps inimportsarray. No NgModule. (Angular 20+: standalone default.) - Smart/Dumb Split: Smart (Container) → inject services, manage state. Presentational (Dumb) → accept inputs and emit events via outputs only; no service dependencies.
- Host Bindings: Define in
host: { }on@Component(e.g.,'[class.active]': 'isActive()') — never use @HostBinding/@HostListener. - View Encapsulation: Default
Emulated. UseNonecarefully.
Signals & Change Detection
- OnPush: ALWAYS use
ChangeDetectionStrategy.OnPush. No exceptions. - Signal Inputs:
input.required<T>()orinput<T>()not@Input(). Access as functions:{{ userId() }}. UsebooleanAttribute/numberAttributetransforms. - Signal Outputs:
output<T>()(v17.3+) not@Output() EventEmitter. Two-way binding:model(). - State:
signal()local,computed()derived,effect()side effects only. - Cleanup:
toSignal()(auto-unsubscribes),takeUntilDestroyed(), orDestroyRef. Neversubscribe()without cleanup.
Control Flow
- Use
@if (condition),@for (item of items; track item.id),@switch,@empty { }instead of*ngIf/*ngFor(new control flow syntax, Angular 17+).
Anti-Patterns
- No default CD: OnPush only — default re-checks every component every event.
- No functions in templates:
{{ calculate() }}re-evaluates every cycle →computed()instead. - No manual subscribe:
asyncpipe ortoSignal. Neversubscribe()without cleanup. - No ElementRef mutation: Directives or Renderer2.
- No class inheritance: Compose with Directives and Services.
References
Установить angular-components в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл angular-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.
Как установить скилл angular-components?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл angular-components запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic