Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)280k · #136

angular-developer

Skill này làm gì

Agent này giúp bạn viết code cho framework Angular. Nó có thể tạo dự án mới, component, service và đưa ra lời khuyên về cách tổ chức code.

Khi nào nên dùng

  • ✓Khi bắt đầu một dự án Angular mới.
  • ✓Khi tạo một component hoặc service mới.
  • ✓Khi bạn cần trợ giúp về các thực hành tốt nhất của Angular.

Liên kết skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/angular-developer/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/angular-developer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một dự án Angular mới tên “my-app” với phiên bản mới nhất.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hiểu các lệnh Angular CLI và các thực hành phát triển tốt nhất. Khi bạn yêu cầu điều gì, nó tạo code cần thiết hoặc giải thích cách làm, theo quy tắc của Angular.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Angular Developer Guidelines

When to Activate

  • Working in any Angular project or codebase
  • Creating or scaffolding a new Angular project, application, or library
  • Generating components, services, directives, pipes, guards, or resolvers
  • Implementing reactivity with Angular Signals, linkedSignal, or resource
  • Working with Angular forms (signal forms, reactive forms, or template-driven)
  • Setting up dependency injection, routing, lazy loading, or route guards
  • Adding accessibility (ARIA), animations, or component styling
  • Writing or debugging Angular-specific tests (unit, component harness, E2E)
  • Configuring Angular CLI tooling or the Angular MCP server
  1. Always analyze the project's Angular version before providing guidance, as best practices and available features can vary significantly between versions. If creating a new project with Angular CLI, do not specify a version unless prompted by the user.

  2. When generating code, follow Angular's style guide and best practices for maintainability and performance. Use the Angular CLI for scaffolding components, services, directives, pipes, and routes to ensure consistency.

  3. Once you finish generating code, run ng build to ensure there are no build errors. If there are errors, analyze the error messages and fix them before proceeding. Do not skip this step, as it is critical for ensuring the generated code is correct and functional.

Creating New Projects

If no guidelines are provided by the user, use these defaults when creating a new Angular project:

  1. Use the latest stable version of Angular unless the user specifies otherwise.
  2. Prefer Signal Forms for new projects only when the target Angular version supports them. Find out more.

Execution Rules for ng new: When asked to create a new Angular project, you must determine the correct execution command by following these strict steps:

Step 1: Check for an explicit user version.

  • IF the user requests a specific version (e.g., Angular 15), bypass local installations and strictly use npx.
  • Command: npx @angular/cli@<requested_version> new <project-name>

Step 2: Check for an existing Angular installation.

  • IF no specific version is requested, run ng version in the terminal to check if the Angular CLI is already installed on the system.
  • IF the command succeeds and returns an installed version, use the local/global installation directly.
  • Command: ng new <project-name>

Step 3: Fallback to Latest.

  • IF no specific version is requested AND the ng version command fails (indicating no Angular installation exists), you must use npx to fetch the latest version.
  • Command: npx @angular/cli@latest new <project-name>

Components

When working with Angular components, consult the following references based on the task:

  • Fundamentals: Anatomy, metadata, core concepts, and template control flow (@if, @for, @switch). Read components.md
  • Inputs: Signal-based inputs, transforms, and model inputs. Read inputs.md
  • Outputs: Signal-based outputs and custom event best practices. Read outputs.md
  • Host Elements: Host bindings and attribute injection. Read host-elements.md

If you require deeper documentation not found in the references above, read the documentation at https://angular.dev/guide/components.

Reactivity and Data Management

When managing state and data reactivity, use Angular Signals and consult the following references:

  • Signals Overview: Core signal concepts (signal, computed), reactive contexts, and untracked. Read signals-overview.md
  • Dependent State (linkedSignal): Creating writable state linked to source signals. Read linked-signal.md
  • Async Reactivity (resource): Fetching asynchronous data directly into signal state. Read resource.md
  • Side Effects (effect): Logging, third-party DOM manipulation (afterRenderEffect), and when NOT to use effects. Read effects.md

Forms

In most cases for new apps, prefer signal forms. When making a forms decision, analyze the project and consider the following guidelines:

  • If the application version supports Signal Forms and this is a new form, prefer signal forms.

…

Câu hỏi thường gặp

Agent biết dùng phiên bản Angular nào?

Nó kiểm tra xem bạn có yêu cầu một phiên bản cụ thể không. Nếu không, nó dùng phiên bản đã cài trên máy tính của bạn hoặc phiên bản mới nhất có sẵn.

“Signals” trong Angular là gì?

Signals là cách hiện đại để quản lý dữ liệu thay đổi theo thời gian, giúp code hiệu quả hơn và dễ hiểu hơn.

Agent có viết test cho code của tôi không?

Có, nó có thể giúp viết test để đảm bảo code Angular của bạn hoạt động đúng.

Chi tiết

Mô tả gốc của tác giả

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

repo: affaan-m/ECC

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#136
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự