affaan-m/ECC/skills/angular-developer/SKILL.md
angular-developer
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.
- Source repository stars
- 234,327
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
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.
Not for
- Using null or undefined as initial signal form field values — use '', 0, or [] instead
- Accessing form field state flags without calling the field first: form.field.valid() — use form.field().valid()
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "skills/angular-developer"Inspect the Agent Skill "angular-developer" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/skills/angular-developer/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
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.
Working in any Angular project or codebaseCreating or scaffolding a new Angular project, application, or libraryGenerating components, services, directives, pipes, guards, or resolvers - 02
Creating New Projects
If no guidelines are provided by the user, use these defaults when creating a new Angular project:
Use the latest stable version of Angular unless the user specifies otherwise.Prefer Signal Forms for new projects only when the target Angular version supports them. Find out more.IF the user requests a specific version (e.g., Angular 15), bypass local installations and strictly use npx. - 03
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.mdInputs: Signal-based inputs, transforms, and model inputs. Read inputs.mdOutputs: Signal-based outputs and custom event best practices. Read outputs.md - 04
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.mdDependent State (linkedSignal): Creating writable state linked to source signals. Read linked-signal.mdAsync Reactivity (resource): Fetching asynchronous data directly into signal state. Read resource.md - 05
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.For older applications or existing forms, match the application's current form strategy.Signal Forms: Use signals for form state management. Read signal-forms.md
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
**IF** no specific version is requested, run `ng version` in the terminal to check if the Angular CLI is already installed on the system.Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 88/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- skills/angular-developer/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
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, orresource - 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
-
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.
-
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.
-
Once you finish generating code, run
ng buildto 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:
- Use the latest stable version of Angular unless the user specifies otherwise.
- 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 versionin 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 versioncommand fails (indicating no Angular installation exists), you must usenpxto 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, anduntracked. 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.
-
For older applications or existing forms, match the application's current form strategy.
-
Signal Forms: Use signals for form state management. Read signal-forms.md
-
Template-driven forms: Use for simple forms. Read template-driven-forms.md
-
Reactive forms: Use for complex forms. Read reactive-forms.md
Dependency Injection
When implementing dependency injection in Angular, follow these guidelines:
- Fundamentals: Overview of Dependency Injection, services, and the
inject()function. Read di-fundamentals.md - Creating and Using Services: Creating services, the
providedIn: 'root'option, and injecting into components or other services. Read creating-services.md - Defining Dependency Providers: Automatic vs manual provision,
InjectionToken,useClass,useValue,useFactory, and scopes. Read defining-providers.md - Injection Context: Where
inject()is allowed,runInInjectionContext, andassertInInjectionContext. Read injection-context.md - Hierarchical Injectors: The
EnvironmentInjectorvsElementInjector, resolution rules, modifiers (optional,skipSelf), andprovidersvsviewProviders. Read hierarchical-injectors.md
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:
- Angular Aria Components: Building headless, accessible components (Accordion, Listbox, Combobox, Menu, Tabs, Toolbar, Tree, Grid) and styling ARIA attributes. Read angular-aria.md
Routing
When implementing navigation in Angular, consult the following references:
- Define Routes: URL paths, static vs dynamic segments, wildcards, and redirects. Read define-routes.md
- Route Loading Strategies: Eager vs lazy loading, and context-aware loading. Read loading-strategies.md
- Show Routes with Outlets: Using
<router-outlet>, nested outlets, and named outlets. Read show-routes-with-outlets.md - Navigate to Routes: Declarative navigation with
RouterLinkand programmatic navigation withRouter. Read navigate-to-routes.md - Control Route Access with Guards: Implementing
CanActivate,CanMatch, and other guards for security. Read route-guards.md - Data Resolvers: Pre-fetching data before route activation with
ResolveFn. Read data-resolvers.md - Router Lifecycle and Events: Chronological order of navigation events and debugging. Read router-lifecycle.md
- Rendering Strategies: CSR, SSG (Prerendering), and SSR with hydration. Read rendering-strategies.md
- Route Transition Animations: Enabling and customizing the View Transitions API. Read route-animations.md
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:
- Using Tailwind CSS with Angular: Integrating Tailwind CSS into Angular projects. Read tailwind-css.md
- Angular Animations: Using native CSS (recommended) or the legacy DSL for dynamic effects. Read angular-animations.md
- Styling components: Best practices for component styles and encapsulation. Read component-styling.md
Testing
When writing or updating tests, consult the following references based on the task:
- Fundamentals: Best practices for unit testing, async patterns, and
TestBed. Read testing-fundamentals.md - Component Harnesses: Standard patterns for robust component interaction. Read component-harnesses.md
- Router Testing: Using
RouterTestingHarnessfor reliable navigation tests. Read router-testing.md - End-to-End (E2E) Testing: Best practices for E2E tests with Cypress or Playwright. Read e2e-testing.md
Tooling
When working with Angular tooling, consult the following references:
- Angular CLI: Creating applications, generating code (components, routes, services), serving, and building. Read cli.md
- Angular MCP Server: Available tools, configuration, and experimental features. Read mcp.md
Anti-Patterns
- Using
nullorundefinedas initial signal form field values — use'',0, or[]instead - Accessing form field state flags without calling the field first:
form.field.valid()— useform.field().valid() - Starting new forms with older form APIs when the target Angular version supports Signal Forms
- Setting
min,max,value,disabled, orreadonlyHTML attributes on[formField]inputs — define these as schema rules instead - Calling
inject()outside an injection context — userunInInjectionContextwhen needed - Using
effect()for derived state that should usecomputed() - Referencing
$parent.$indexin nested@forloops — Angular does not support$parent; uselet outerIdx = $indexinstead
Related Skills
tdd-workflow— test-driven development workflow applicable to Angular components and servicessecurity-review— security checklist for web applications including Angular-specific concernsfrontend-patterns— general frontend patterns for context on React/Next.js approaches
Alternatives
Compare before choosing
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
design-review
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
affaan-m/ECC
hexagonal-architecture
Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.
event4u-app/agent-config
playwright-architect
Use when shaping a Playwright suite — locator strategy, Page Object boundaries, fixture composition, flake-prevention architecture, CI-vs-local split — even on 'design our E2E tests'.