一键导入
angular-feature
Generates an Angular feature component (Standalone, OnPush)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates an Angular feature component (Standalone, OnPush)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | angular-feature |
| description | Generates an Angular feature component (Standalone, OnPush) |
This skill helps you generate Angular feature components following the project's standards: Standalone, OnPush change detection, and separate HTML/CSS files.
When creating a new feature component, use this template:
import { Component, ChangeDetectionStrategy, signal } from "@angular/core";
import { CommonModule } from "@angular/common";
@Component({
selector: "app-{{name}}",
standalone: true,
imports: [CommonModule],
templateUrl: "./{{name}}.component.html",
styleUrls: ["./{{name}}.component.css"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class {{Name}}Component {
// State
// Use signals for local state
constructor() {}
}
standalone: true.changeDetection: ChangeDetectionStrategy.OnPush.CommonModule and other dependencies.Generates Angular animations for smooth UI transitions and interactions
Generates Angular components with best practices and patterns
Generates an Angular dialog component extending BaseDialogComponent
Generates Angular directives for DOM manipulation and behavior enhancement
Generates Angular error boundary components for graceful error handling
Generates Angular reactive forms with validation, error handling, and state management