一键导入
angular
Common rules for Angular code development. These guidelines apply to components, services, modules, dependency injection, and reactive patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Common rules for Angular code development. These guidelines apply to components, services, modules, dependency injection, and reactive patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Post-task checklist that runs after every agent task that makes essential changes to code, documentation, scripts, or configuration. Covers version bumping, release-notes update, and commit-text proposal. Applied automatically — the agent does not need to be asked.
REST API skill that provides naming conventions and best practices for REST API development.
Common rules for TypeScript code development. These guidelines apply to interfaces, types, error handling, async patterns, dependency injection, and module structure.
TDD-based workflow for fixing bugs and defects. Use when investigating, reproducing, and resolving reported issues or unexpected behavior.
Common rules for code development that apply across all project types (libraries, CLI tools, services, etc.). Covers development workflow, requirements clarity, bug-fix workflow, logging, coding style, testing discipline, version management, and commit conventions.
Workflow for implementing new features and processing issues. Use when adding new functionality, implementing requirements, or processing feature requests.
| name | angular |
| description | Common rules for Angular code development. These guidelines apply to components, services, modules, dependency injection, and reactive patterns. |
| metadata | {"author":"vsirotin","version":"1.4"} |
Read first the common-development and typescript skills, as they contain rules that apply to Angular development as well.
Follow the Angular coding style guide as the primary reference for Angular-specific conventions. The key areas it covers:
.ts, .html, and .css/.scss files; .spec.ts suffix for tests..component, .service, .directive, .pipe, .guard, .resolver.src/; bootstrap in src/main.ts; organize by feature area (not by type such as components/, services/); group related files in the same directory.inject() function rather than constructor parameter injection.computed()); use protected for template-only members; mark Angular-initialized properties readonly; prefer [class]/[style] bindings over NgClass/NgStyle; name event handlers after their action; keep lifecycle hooks simple by delegating to named methods; implement lifecycle interfaces (OnInit, OnDestroy, etc.).computed() and linkedSignal() for all derived state.effect() only for side effects and for syncing to non-signal APIs (e.g. writing to localStorage, calling a third-party imperative API).effect() to propagate state between signals — use computed() instead.ChangeDetectionStrategy.OnPush by default on all components.ChangeDetectorRef.markForCheck() only when mutation cannot be avoided.NgZone.runOutsideAngular() to avoid unnecessary change detection cycles.