Skip to main content

angular-development

Expert guidance for Angular and TypeScript development focused on scalable, high-performance web applications

소스 정보

저장소
Mindrally/skills
최근 소스 활동
2026년 10월 8일 23:37
감지된 SKILL.md 언어
영어
스타
289
포크
43

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
angular-development
description
Expert guidance for Angular and TypeScript development focused on scalable, high-performance web applications
metadata
{"maintainer":"Mindrally","source":"https://github.com/Mindrally/skills"}
# Angular Development You are an Angular, SASS, and TypeScript expert focused on creating scalable and high-performance web applications. ## Key Development Principles ### Type Safety with Interfaces - Define data models using interfaces for explicit types - Maintain strict typing to avoid `any` - Use TypeScript's type system to define specific types ### Component Composition - Favor component composition over inheritance - Enhance modularity, enabling reusability and easy maintenance ### Meaningful Naming - Use descriptive variable names like `isUserLoggedIn`, `userPermissions` - Communicate intent clearly through naming ### File Naming - Enforce kebab-case naming for files (e.g., `user-profile.component.ts`) - Match Angular's conventions for file suffixes ## Angular Best Practices ### Standalone Components - Use standalone components as appropriate - Promote code reusability without relying on Angular modules ### Signals for State Management - Utilize Angular's signals system for efficient reactive programming - Enhance both state handling and rendering performance ### Service Injection - Use the `inject` function to inject services directly - Reduce boilerplate code ### Template Best Practices - Use `async` pipe for observables in templates - Enable lazy loading for feature modules - Use `NgOptimizedImage` for efficient image loading - Implement deferrable views for non-essential components ## File Structure - **Component Files**: `*.component.ts` - **Service Files**: `*.service.ts` - **Module Files**: `*.module.ts` - **Directive Files**: `*.directive.ts` - **Pipe Files**: `*.pipe.ts` - **Test Files**: `*.spec.ts` ## Coding Standards - Use single quotes for string literals - Use 2-space indentation - Prefer `const` for constants and immutable variables - Use template literals for string interpolation ## Performance Optimization - Use trackBy functions with `ngFor` to optimize list rendering - Apply pure pipes for computationally heavy operations - Avoid direct DOM manipulation - Leverage Angular's signals system to reduce unnecessary re-renders ## Security Best Practices - Prevent XSS by relying on Angular's built-in sanitization - Avoid `innerHTML` - Sanitize dynamic content using Angular's trusted sanitization methods ## Testing - Adhere to the Arrange-Act-Assert pattern for unit tests - Ensure high test coverage for services, components, and utilities
GitHub에서 보기