Angular developer

From nix-community/nur-combined · View interactive version

Angular developer is an AI agent skill from the GitHub repository nix-community/nur-combined. 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

How to use this skill

Skill file

Angular Developer Guidelines

When to Activate

  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.
  1. 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.
  1. 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.

Step 2: Check for an existing Angular installation.

Step 3: Fallback to Latest.

Components

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

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:

Forms

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

Dependency Injection

When implementing dependency injection in Angular, follow these guidelines:

Angular Aria

When building accessible custom components for any of the following patterns: Accordion, Listbox, Combobox, Menu, Tabs, Toolbar, Tree, Grid, consult the following reference:

Routing

When implementing navigation in Angular, consult the following references:

If you require deeper documentation or more context, visit the official Angular Routing guide.

Styling and Animations

When implementing styling and animations in Angular, consult the following references:

Testing

When writing or updating tests, consult the following references based on the task:

Tooling

When working with Angular tooling, consult the following references:

Anti-Patterns

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.