‹ 首页

angular-module-design

@aj-geddes · 收录于 5 天前 · 上游提交 4 个月前

Design Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of concerns.

适合你,如果正在重构或规划大型 Angular 应用的模块划分。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add aj-geddes/useful-ai-prompts/angular-module-design
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- aj-geddes/useful-ai-prompts/angular-module-design
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify aj-geddes/useful-ai-prompts/angular-module-design
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
300GitHub stars
~395最小装载
~1.5K含声明引用
~1.6K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 3f5182c · 表述以原文为准
它做什么

当用户请求设计Angular模块时,Claude会提供特性模块、懒加载、依赖注入等架构指导,并给出TypeScript代码示例。

什么时候触发

当用户提出需要组织大型Angular应用,或涉及功能模块划分、路由懒加载、服务依赖注入等问题时触发。

装好后可以这样说
Claude会生成特性模块的完整代码。
Claude会展示路由配置和模块拆分。
Claude会给出服务provider示例。
技能原文 SKILL.md作者撰写 · MIT · 3f5182c

Angular Module Design

Table of Contents
  • [Overview](#overview)
  • [When to Use](#when-to-use)
  • [Quick Start](#quick-start)
  • [Reference Guides](#reference-guides)
  • [Best Practices](#best-practices)
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:

| Guide | Contents | |---|---| | [Feature Module Structure](references/feature-module-structure.md) | Feature Module Structure | | [Lazy Loading Routes](references/lazy-loading-routes.md) | Lazy Loading Routes | | [Service with RxJS](references/service-with-rxjs.md) | Service with RxJS | | [Smart and Presentational Components](references/smart-and-presentational-components.md) | Smart and Presentational Components | | [Dependency Injection and Providers](references/dependency-injection-and-providers.md) | Dependency 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
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。