angular-patterns

Describe and implement reusable Angular frontend patterns for BIM apps.

6|2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/bitcoin-is-money/bim-app --skill angular-patterns-bitcoin-is-money
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-patterns
Source: https://github.com/bitcoin-is-money/bim-app/tree/main/.claude/skills/angular-patterns
Command: npx skills add https://github.com/bitcoin-is-money/bim-app --skill angular-patterns-bitcoin-is-money

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes Angular frontend patterns across BIM apps to ensure consistent architecture and faster delivery.

Core Features & Use Cases

  • Directory Structure guidance for apps/front/src/app with components, interceptor, layout, mocks, model, pages, pipes, services, assets/i18n, environments.
  • Naming Conventions: recommended class names, file names, selectors for pages, components, pipes, and services.
  • Service Architecture: HTTP + State pattern, e.g., AuthHttpService for API calls and AuthService for state management; use standalone components, dependency injection via inject().
  • Signals and Component Pattern: Use Signals for state and inject() pattern for dependencies; create modern Angular patterns with lazy routing and inline guards.
  • Routing and Guards: sample routes, guards for auth and guest checks.
  • HTTP Error Handling and i18n: interceptor architecture and translation integration.
  • Model Layer: interfaces, value objects, and error types to align APIs with frontend models.
  • Mock Backend: mock interceptor structure for testing in development.
  • App Config: library usage and integration with translation loader and UI libraries.
  • New Page & Component Checklists: steps to add new pages or components following the architecture.

Quick Start

Apply these patterns when scaffolding new Angular frontend features in apps/front to ensure consistency and maintainability.

Frequently Asked Questions about angular-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure an Angular frontend for BIM apps?

Structure Angular BIM frontends by organizing the src/app directory into dedicated folders for components, interceptors, layouts, mocks, models, pages, pipes, and services. This separation ensures consistent architecture, scalable state management, and faster feature delivery across the application.

What is the best way to manage state and HTTP requests in Angular?

Manage state and HTTP requests in Angular by separating concerns into distinct classes: use an HttpService for API calls and a separate AuthService for state management. Apply the inject() pattern for dependency injection and use Signals to handle reactive state, ensuring a clean, modern service architecture.

How do I implement routing and auth guards in Angular standalone components?

Implement routing and auth guards in Angular standalone components by using lazy loading routes with inline guards. This pattern handles authentication and guest checks directly within the route configuration, securing pages without requiring separate guard files or complex nested modules.

How do I handle HTTP errors and i18n in an Angular app?

Handle HTTP errors and i18n in an Angular app by using an interceptor architecture for global error management and integrating a translation loader. This setup centralizes error handling and language translations, ensuring consistent user feedback and multi-language support across the frontend.

How do I add a new page or component following standard Angular conventions?

Add a new page or component following standard Angular conventions by using provided checklists that outline steps for directory placement, naming conventions, file names, and selectors. This ensures every new feature aligns with the established standalone component, service, and routing patterns.

Can I use a mock backend for testing during Angular frontend development?

Yes, you can use a mock backend for testing during Angular frontend development by creating a mock interceptor structure. This approach intercepts HTTP requests during development, returning mock data to allow frontend testing and iteration independently of the actual backend API.