Agent Skills

angular-development

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

Install

npx skills add https://github.com/mindrally/skills --skill angular-development
SKILL.md

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

Related skills

vercel-react-best-practicesvercel-labs751KReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.vercel-composition-patternsvercel-labs361KReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.vercel-react-view-transitionsvercel-labs135KGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions viewpick-ui-libraryemilkowalski124KPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers