angular-component 是做什麼的?
建立符合 Angular v20+ 最佳實務的現代獨立元件。適用於構建具有基於信號的輸入/輸出、OnPush 變更檢測、宿主綁定、內容投影和生命週期鉤子的 UI 元件。觸發情境包括:創建元件、重構基於類別的輸入為信號、添加宿主綁定,或實現可存取的互動式元件。
建立符合 Angular v20+ 最佳實務的現代獨立元件。適用於構建具有基於信號的輸入/輸出、OnPush 變更檢測、宿主綁定、內容投影和生命週期鉤子的 UI 元件。觸發情境包括:創建元件、重構基於類別的輸入為信號、添加宿主綁定,或實現可存取的互動式元件。
此技能幫助開發者使用 Angular 最佳實務(v20+)建立現代獨立元件。它專注於基於信號的輸入/輸出、OnPush 變更檢測、宿主綁定、內容投影和生命週期鉤子。支援平台包括 Claude Code、Cursor 與 Codex。透過遵循 SKILL.md 文件中的指示,AI 可自動產生符合規範的 Angular 元件,減少手動樣板程式碼,並確保一致性。此技能特別適合用於建立可重複使用的 UI 元件、重構舊有類別式輸入為信號,以及實作無障礙的互動式元件。
npx skills add https://github.com/analogjs/angular-skills/tree/main/skills/angular-componentInstalled? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →
建立符合 Angular v20+ 最佳實務的現代獨立元件。適用於構建具有基於信號的輸入/輸出、OnPush 變更檢測、宿主綁定、內容投影和生命週期鉤子的 UI 元件。觸發情境包括:創建元件、重構基於類別的輸入為信號、添加宿主綁定,或實現可存取的互動式元件。
This repo contains 9 individual skills — each has its own dedicated page.
Implement dependency injection in Angular v20+ using inject(), injection tokens, and provider configuration. Use for service architecture, providing dependencies at different levels, creating injectable tokens, and managing singleton vs scoped services. Triggers on service creation, configuring providers, using injection tokens, or understanding DI hierarchy.
Create custom directives in Angular v20+ for DOM manipulation and behavior extension. Use for attribute directives that modify element behavior/appearance, structural directives for portals/overlays, and host directives for composition. Triggers on creating reusable DOM behaviors, extending element functionality, or composing behaviors across components. Note - use native @if/@for/@switch for control flow, not custom structural directives.
Build signal-based forms in Angular v21+ using the new Signal Forms API. Use for form creation with automatic two-way binding, schema-based validation, field state management, and dynamic forms. Triggers on form implementation, adding validation, creating multi-step forms, or building forms with conditional fields. Signal Forms are experimental but recommended for new Angular projects. Don't use for template-driven forms without signals or third-party form libraries like Formly or ngx-formly.
Implement HTTP data fetching in Angular v20+ using resource(), httpResource(), and HttpClient. Use for API calls, data loading with signals, request/response handling, and interceptors. Triggers on data fetching, API integration, loading states, error handling, or converting Observable-based HTTP to signal-based patterns.
Implement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, protected routes, route-based data loading, and nested routing. Triggers on route configuration, adding authentication guards, implementing lazy loading, or reading route parameters with signals.
Implement signal-based reactive state management in Angular v20+. Use for creating reactive state with signal(), derived state with computed(), dependent state with linkedSignal(), and side effects with effect(). Triggers on state management questions, converting from BehaviorSubject/Observable patterns to signals, or implementing reactive data flows.
Implement server-side rendering and hydration in Angular v20+ using @angular/ssr. Use for SSR setup, hydration strategies, prerendering static pages, and handling browser-only APIs. Triggers on SSR configuration, fixing hydration mismatches, prerendering routes, or making code SSR-compatible.
Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns. Use for testing components with signals, OnPush change detection, services with inject(), and HTTP interactions. Triggers on test creation, testing signal-based components, mocking dependencies, or setting up test infrastructure. Don't use for E2E testing with Cypress or Playwright, or for testing non-Angular JavaScript/TypeScript code.
Use Angular CLI and development tools effectively in Angular v20+ projects. Use for project setup, code generation, building, testing, and configuration. Triggers on creating new projects, generating components/services/modules, configuring builds, running tests, or optimizing production builds. Don't use for Nx workspace commands, custom Webpack configurations, or non-Angular CLI build systems like Vite standalone or esbuild direct usage.
Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.
The agent engineering platform.
Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Extracts and analyzes competitors' ads from ad libraries (Facebook, LinkedIn, etc.) to understand what messaging, problems, and creative approaches are working. Helps inspire and improve your own ad campaigns.
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors