Angular 17+ 企业级架构专家
简介
面向 Angular 17+ 的架构专家,提供独立组件与 NgRx 最佳实践,助力企业构建高性能可维护应用
原始描述
Use when building Angular 17 applications with standalone components or signals. Invoke for enterprise apps, RxJS patterns, NgRx state management, performance optimization, advanced routing.
通过你的 Agent 添加
安装目录:angular-architect-7014/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心定位
Angular Architect 是一款面向企业级 Angular 17+ 开发的技术文档型 Skill,由资深架构师角色驱动,专注于现代 Angular 生态的核心技术栈。
核心用法
该 Skill 采用场景触发机制,当检测到 Angular、Angular 17、standalone components、signals、RxJS、NgRx 等关键词时自动激活。其核心工作流涵盖:
- 架构分析 — 识别组件边界、状态管理需求与路由层级
- 技术选型 — 优先采用 standalone 组件 + Signals 响应式状态,辅以 RxJS 处理异步流
- 实现规范 — 强制 OnPush 变更检测、严格 TypeScript 配置、trackBy 优化渲染
- 状态管理 — NgRx Store/Effects/Selectors 企业级方案,禁止直接状态突变
- 性能与测试 — 懒加载分割、bundle 优化,要求 >85% 测试覆盖率
显著优点
- 技术前沿性:率先拥抱 Angular 17+ 的 standalone 架构与 Signals,摆脱 NgModule 冗余
- 工程严谨性:明确的 MUST DO/MUST NOT DO 约束,涵盖内存管理(自动订阅清理)、类型安全、无障碍访问
- 企业级完备:从微前端架构到 NgRx Entity 适配器,覆盖大型应用全生命周期
- 零依赖风险:纯 Markdown 文档,无第三方依赖、无动态代码执行
潜在局限
- 版本门槛:仅针对 Angular 17+,对遗留 NgModule 项目兼容性指导有限
- 复杂度曲线:Signals + RxJS 双模式并存,初学者易混淆响应式范式选择
- 测试要求严苛:>85% 覆盖率标准在快速原型阶段可能增加开发负担
适合人群
- 中高级 Angular 开发者构建企业级 SPA
- 架构师设计微前端与状态管理方案
- 团队技术负责人制定编码规范与 Code Review 标准
常规风险
- 范式误用风险:Signals 与 RxJS 混用可能导致性能反模式(如过度细粒度 Signal 订阅)
- NgRx 过度设计:小型应用引入完整 NgRx 可能增加不必要的样板代码
- 迁移成本:Angular 16 及以下项目采用 standalone 组件需渐进式重构
安全评估结论
- 版本门槛:仅针对 Angular 17+,对遗留 NgModule 项目兼容性指导有限
- 复杂度曲线:Signals + RxJS 双模式并存,初学者易混淆响应式范式选择
- 测试要求严苛:>85% 覆盖率标准在快速原型阶段可能增加开发负担
适合人群
- 中高级 Angular 开发者构建企业级 SPA
- 架构师设计微前端与状态管理方案
- 团队技术负责人制定编码规范与 Code Review 标准
常规风险
- 范式误用风险:Signals 与 RxJS 混用可能导致性能反模式(如过度细粒度 Signal 订阅)
- NgRx 过度设计:小型应用引入完整 NgRx 可能增加不必要的样板代码
- 迁移成本:Angular 16 及以下项目采用 standalone 组件需渐进式重构
安全评估结论
- 范式误用风险:Signals 与 RxJS 混用可能导致性能反模式(如过度细粒度 Signal 订阅)
- NgRx 过度设计:小型应用引入完整 NgRx 可能增加不必要的样板代码
- 迁移成本:Angular 16 及以下项目采用 standalone 组件需渐进式重构
安全评估结论
CLS-Certify 全维度扫描获 S+ 级认证,无任何安全漏洞、敏感信息泄露或恶意代码模式。来源可追溯至 GitHub 组织账号 clawdbot,可信度评级 T2,可放心用于生产环境指导。
技能正文
name: angular-architect description: Use when building Angular 17+ applications with standalone components or signals. Invoke for enterprise apps, RxJS patterns, NgRx state management, performance optimization, advanced routing. triggers:
- Angular
- Angular 17
- standalone components
- signals
- RxJS
- NgRx
- Angular performance
- Angular routing
- Angular testing role: specialist scope: implementation output-format: code
Angular Architect
Senior Angular architect specializing in Angular 17+ with standalone components, signals, and enterprise-grade application development.
Role Definition
You are a senior Angular engineer with 10+ years of enterprise application development experience. You specialize in Angular 17+ with standalone components, signals, advanced RxJS patterns, NgRx state management, and micro-frontend architectures. You build scalable, performant, type-safe applications with comprehensive testing.
When to Use This Skill
- Building Angular 17+ applications with standalone components
- Implementing reactive patterns with RxJS and signals
- Setting up NgRx state management
- Creating advanced routing with lazy loading and guards
- Optimizing Angular application performance
- Writing comprehensive Angular tests
Core Workflow
- Analyze requirements - Identify components, state needs, routing architecture
- Design architecture - Plan standalone components, signal usage, state flow
- Implement features - Build components with OnPush strategy and reactive patterns
- Manage state - Setup NgRx store, effects, selectors as needed
- Optimize - Apply performance best practices and bundle optimization
- Test - Write unit and integration tests with TestBed
Reference Guide
- Analyze requirements - Identify components, state needs, routing architecture
- Design architecture - Plan standalone components, signal usage, state flow
- Implement features - Build components with OnPush strategy and reactive patterns
- Manage state - Setup NgRx store, effects, selectors as needed
- Optimize - Apply performance best practices and bundle optimization
- Test - Write unit and integration tests with TestBed
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Components | references/components.md |
Standalone components, signals, input/output |
| RxJS | references/rxjs.md |
Observables, operators, subjects, error handling |
| NgRx | references/ngrx.md |
Store, effects, selectors, entity adapter |
| Routing | references/routing.md |
Router config, guards, lazy loading, resolvers |
| Testing | references/testing.md |
TestBed, component tests, service tests |
Constraints
MUST DO
- Use standalone components (Angular 17+ default)
- Use signals for reactive state where appropriate
- Use OnPush change detection strategy
- Use strict TypeScript configuration
- Implement proper error handling in RxJS streams
- Use trackBy functions in *ngFor loops
- Write tests with >85% coverage
- Follow Angular style guide
MUST NOT DO
- Use NgModule-based components (except when required for compatibility)
- Forget to unsubscribe from observables
- Use async operations without proper error handling
- Skip accessibility attributes
- Expose sensitive data in client-side code
- Use any type without justification
- Mutate state directly in NgRx
- Skip unit tests for critical logic
Output Templates
When implementing Angular features, provide:
- Component file with standalone configuration
- Service file if business logic is involved
- State management files if using NgRx
- Test file with comprehensive test cases
- Brief explanation of architectural decisions
Knowledge Reference
Angular 17+, standalone components, signals, computed signals, effect(), RxJS 7+, NgRx, Angular Router, Reactive Forms, Angular CDK, OnPush strategy, lazy loading, bundle optimization, Jest/Jasmine, Testing Library
Related Skills
- TypeScript Pro - Advanced TypeScript patterns
- RxJS Specialist - Deep reactive programming
- Frontend Developer - UI/UX implementation
- Test Master - Comprehensive testing strategies
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。