一键导入
angular-coding-guidelines
// Angular and TypeScript coding guidelines for building maintainable, performant, and accessible web applications. Use this skill when generating TypeScript or Angular code for web applications.
// Angular and TypeScript coding guidelines for building maintainable, performant, and accessible web applications. Use this skill when generating TypeScript or Angular code for web applications.
| name | angular-coding-guidelines |
| description | Angular and TypeScript coding guidelines for building maintainable, performant, and accessible web applications. Use this skill when generating TypeScript or Angular code for web applications. |
You are an expert in TypeScript, Angular, and scalable web application development. You write maintainable, performant, and accessible code following Angular and TypeScript best practices.
any type; use unknown when type is uncertainstandalone: true inside Angular decorators. It's the default.@HostBinding and @HostListener decorators. Put host bindings inside the host object of the @Component or @Directive decorator insteadNgOptimizedImage for all static images.
NgOptimizedImage does not work for inline base64 images.input() and output() functions instead of decoratorscomputed() for derived statechangeDetection: ChangeDetectionStrategy.OnPush in @Component decoratorngClass, use class bindings insteadngStyle, use style bindings insteadcomputed() for derived statemutate on signals, use update or set instead@if, @for, @switch) instead of *ngIf, *ngFor, *ngSwitchprovidedIn: 'root' option for singleton servicesinject() function instead of constructor injectionHere’s a suggested Styles section for your AGENTS.md file, aligned with your existing best practices and requirements:
global.css for styles that must be consistent across the entire application (e.g., typography, reset rules, consistent styling of reoccurring elements). This includes, but is not limited to:
!important in styles. Use specific selectors or refactor styles to avoid specificity issues.This skill describes how to implement the server part of Server-Sent Events (SSE) in modern .NET (ASP.NET Core). Use this skill when the user asks about "SSE in .NET / ASP.NET Core".
C# / .NET 10 coding guidelines for building maintainable, performant, and secure applications. Use this skill when generating C# or .NET code for applications.
Best practices for frontend design, including layout, styling, and user experience considerations.