angular-directives-pipes
БесплатноБез исполняемых скриптовНе проверенBuild custom Angular attribute directives, HostDirectives, and pure pipes. Use for Angular directive or pipe implementation, including custom attribute…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Directives & Pipes
Priority: P2 (MEDIUM)
Principles
- Composition: Use hostDirectives: [TooltipDirective] on
@Componentor@Directivedecorators to compose behaviors without inheritance. Expose inputs/outputs via hostDirectives: [{ directive: TooltipDirective, inputs: ['text'] }]. - Pure Pipes: Decorate with
@Pipe({ name: 'truncate', standalone: true, pure: true }). Implement PipeTransform withtransform(value: string, limit = 50)method. Pipes must pure: true (default) to cache results by input reference — Angular only re-runs them when reference changes. ** not set pure: false** unless handling Observables/Arrays that mutate. - Directive Logic: Encapsulate reusable DOM manipulation or behavioral logic in standalone: true Directives (e.g., selector: '[appHighlight]'). Inject ElementRef/Renderer2 for DOM access.
Guidelines
- Signal Inputs: Directives and Pipes support signal inputs.
- Standalone: All Pipes and Directives must standalone. ** not declare in NgModule**; import directly in component imports array. Use ng generate directive to scaffold.
Anti-Patterns
- No @HostBinding/@HostListener: Use host: {} object in
@Directivedecorator — not with @HostBinding or @HostListener (e.g., '(mouseenter)': 'show()', '[attr.aria-label]': 'text()') — these decorators deprecated patterns. - No impure pipes for static transforms: Keep
pure: true(default); useasyncpipe for Observables. - No structural directives for conditionals: Use native
@if/@for/@switchblock syntax.
References
Установить angular-directives-pipes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл angular-directives-pipes?
Build custom Angular attribute directives, HostDirectives, and pure pipes. Use for Angular directive or pipe implementation, including custom attribute directives; defer React/CSS middleware and unrelated framework work.
Как установить скилл angular-directives-pipes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл angular-directives-pipes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic