mcpField
A
angular-module-design

angular-module-design

github.com/aj-geddesDevelopment373466 installsUpdated 34w ago
Repository

About angular-module-design

A skill for structuring scalable Angular applications with feature modules, lazy loading, services, and RxJS. It is intended for developers working on large applications and includes reference guides for common architecture patterns.

Key features

  1. 01Feature module organization
  2. 02Lazy-loaded routes
  3. 03Services with RxJS
  4. 04Smart and presentational components
  5. 05Dependency injection patterns

Use cases

  1. 01Organizing a large Angular application
  2. 02Improving loading through lazy routes
  3. 03Building reactive services
  4. 04Applying dependency injection patterns

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill angular-module-design

After installing, type/angular-module-designin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
dependency-injection-and-providers.md
feature-module-structure.md
lazy-loading-routes.md
service-with-rxjs.md
smart-and-presentational-components.md
templates/
component-template.tsx

Details

From the project README

Angular Module Design

Table of Contents

Overview

Architect scalable Angular applications using feature modules, lazy loading, services, and RxJS for reactive programming patterns.

When to Use

  • Large Angular applications
  • Feature-based organization
  • Lazy loading optimization
  • Dependency injection patterns
  • Reactive state management

Quick Start

Minimal working example:

// users.module.ts
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { ReactiveFormsModule } from "@angular/forms";
import { UsersRoutingModule } from "./users-routing.module";
import { UsersListComponent } from "./components/users-list/users-list.component";
import { UserDetailComponent } from "./components/user-detail/user-detail.component";
import { UsersService } from "./services/users.service";

@NgModule({
  declarations: [UsersListComponent, UserDetailComponent],
  imports: [CommonModule, ReactiveFormsModule, UsersRoutingModule],
  providers: [UsersService],
})
export class UsersModule {}

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Feature Module StructureFeature Module Structure
Lazy Loading RoutesLazy Loading Routes
Service with RxJSService with RxJS
Smart and Presentational ComponentsSmart and Presentational Components
Dependency Injection and ProvidersDependency Injection and Providers

Best Practices

✅ DO
  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying
❌ DON'T
  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Comments

Markdown supported