[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73NKSAHXJCDAH27G2B917SQ":3,"skill-same:01M73NKSAHXJCDAH27G2B917SQ":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M73NKSAHXJCDAH27G2B917SQ","angular-20-standalone-component",null,"Create Angular 20 standalone components using modern patterns: Signals for state management, input()\u002Foutput() functions (not decorators), @if\u002F@for\u002F@switch control flow (not *ngIf\u002F*ngFor), inject() dependency injection (not constructor), and OnPush change detection. Use this skill when scaffolding new UI components that need reactive state, form handling, or integration with services following the three-layer architecture.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fangular-20-standalone-component\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: angular-20-standalone-component\ndescription: \"Create Angular 20 standalone components using modern patterns: Signals for state management, input()\u002Foutput() functions (not decorators), @if\u002F@for\u002F@switch control flow (not *ngIf\u002F*ngFor), inject() dependency injection (not constructor), and OnPush change detection. Use this skill when scaffolding new UI components that need reactive state, form handling, or integration with services following the three-layer architecture.\"\nlicense: \"MIT\"\n---\n\n# Angular 20 Standalone Component Skill\n\nThis skill helps create Angular 20 components following modern patterns and project standards.\n\n## Core Principles\n\n### Modern Angular 20 Patterns\n- **Standalone Components**: 100% standalone, zero NgModules\n- **Signals**: Use `signal()`, `computed()`, `effect()` for state\n- **New Syntax**: `input()`, `output()`, `@if`, `@for`, `@switch`\n- **inject()**: Function-based dependency injection\n- **OnPush**: Change detection strategy for performance\n\n### Architecture Integration\n- **Presentation Layer**: Components handle UI only\n- **Service Integration**: Inject services for business logic\n- **No Direct Repository**: Never inject repositories directly\n- **Event-Driven**: Use EventBus for cross-module communication\n\n## Component Template\n\n```typescript\nimport { Component, signal, computed, effect, input, output, inject, ChangeDetectionStrategy } from '@angular\u002Fcore';\nimport { SHARED_IMPORTS } from '@shared';\nimport { YourService } from '@core\u002Fservices\u002Fyour.service';\n\n@Component({\n  selector: 'app-your-component',\n  standalone: true,\n  imports: [SHARED_IMPORTS],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    \u003Cdiv class=\"component-container\">\n      @if (loading()) {\n        \u003Cnz-spin nzSimple \u002F>\n      } @else if (hasError()) {\n        \u003Cnz-alert \n          nzType=\"error\" \n          [nzMessage]=\"errorMessage()!\"\n          nzShowIcon\n        \u002F>\n      } @else {\n        \u003Cdiv class=\"content\">\n          @for (item of items(); track item.id) {\n            \u003Capp-item-card \n              [item]=\"item\"\n              (itemChange)=\"handleItemChange($event)\"\n            \u002F>\n          } @empty {\n            \u003Cnz-empty nzNotFoundContent=\"No items found\" \u002F>\n          }\n        \u003C\u002Fdiv>\n      }\n    \u003C\u002Fdiv>\n  `,\n  styles: [`\n    .component-container {\n      padding: 24px;\n    }\n    \n    .content {\n      display: grid;\n      gap: 16px;\n    }\n  `]\n})\nexport class YourComponent {\n  \u002F\u002F ✅ Inject services with inject()\n  private yourService = inject(YourService);\n  \n  \u002F\u002F ✅ Use input() for properties (NOT @Input())\n  blueprintId = input.required\u003Cstring>();\n  readonly = input(false);\n  \n  \u002F\u002F ✅ Use output() for events (NOT @Output())\n  itemChange = output\u003CItem>();\n  \n  \u002F\u002F ✅ Use signal() for mutable state\n  loading = signal(false);\n  error = signal\u003Cstring | null>(null);\n  items = signal\u003CItem[]>([]);\n  \n  \u002F\u002F ✅ Use computed() for derived state\n  hasError = computed(() => this.error() !== null);\n  errorMessage = computed(() => this.error());\n  totalItems = computed(() => this.items().length);\n  \n  \u002F\u002F ✅ Use effect() for side effects\n  constructor() {\n    effect(() => {\n      const id = this.blueprintId();\n      console.log('Blueprint ID changed:', id);\n      this.loadItems(id);\n    });\n  }\n  \n  ngOnInit(): void {\n    this.loadItems(this.blueprintId());\n  }\n  \n  async loadItems(blueprintId: string): Promise\u003Cvoid> {\n    this.loading.set(true);\n    this.error.set(null);\n    \n    try {\n      const items = await this.yourService.getItems(blueprintId);\n      this.items.set(items);\n    } catch (err) {\n      this.error.set(err instanceof Error ? err.message : 'Unknown error');\n    } finally {\n      this.loading.set(false);\n    }\n  }\n  \n  handleItemChange(item: Item): void {\n    \u002F\u002F Update local state\n    this.items.update(items => \n      items.map(i => i.id === item.id ? item : i)\n    );\n    \n    \u002F\u002F Emit to parent\n    this.itemChange.emit(item);\n  }\n}\n```\n\n## Key Patterns\n\n### 1. Signal State Management\n\n```typescript\n\u002F\u002F Writable signals\nprivate _items = signal\u003CItem[]>([]);\n\n\u002F\u002F Read-only public access\nitems = this._items.asReadonly();\n\n\u002F\u002F Computed derived state\nfilteredItems = computed(() => \n  this._items().filter(item => item.status === 'active')\n);\n\n\u002F\u002F Update signals\nthis._items.set([...]); \u002F\u002F Replace\nthis._items.update(items => [...items, newItem]); \u002F\u002F Transform\n```\n\n### 2. Control Flow Syntax\n\n```typescript\n\u002F\u002F ✅ CORRECT: New @if syntax\n@if (condition()) {\n  \u003Cdiv>Content\u003C\u002Fdiv>\n} @else if (otherCondition()) {\n  \u003Cdiv>Other\u003C\u002Fdiv>\n} @else {\n  \u003Cdiv>Default\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ CORRECT: New @for syntax with track\n@for (item of items(); track item.id) {\n  \u003Cdiv>{{ item.name }}\u003C\u002Fdiv>\n} @empty {\n  \u003Cp>No items\u003C\u002Fp>\n}\n\n\u002F\u002F ✅ CORRECT: New @switch syntax\n@switch (status()) {\n  @case ('active') { \u003Cspan class=\"badge-success\">Active\u003C\u002Fspan> }\n  @case ('inactive') { \u003Cspan class=\"badge-danger\">Inactive\u003C\u002Fspan> }\n  @default { \u003Cspan class=\"badge-default\">Unknown\u003C\u002Fspan> }\n}\n\n\u002F\u002F ❌ WRONG: Old syntax (forbidden)\n\u003Cdiv *ngIf=\"condition\">...\u003C\u002Fdiv>\n\u003Cdiv *ngFor=\"let item of items\">...\u003C\u002Fdiv>\n\u003Cdiv [ngSwitch]=\"status\">...\u003C\u002Fdiv>\n```\n\n### 3. Input\u002FOutput Functions\n\n```typescript\n\u002F\u002F ✅ CORRECT: Use input()\u002Foutput() functions\ntask = input.required\u003CTask>();\nreadonly = input(false);\ntaskChange = output\u003CTask>();\n\n\u002F\u002F ❌ WRONG: Decorators (forbidden)\n@Input() task!: Task;\n@Output() taskChange = new EventEmitter\u003CTask>();\n```\n\n### 4. Dependency Injection\n\n```typescript\n\u002F\u002F ✅ CORRECT: Use inject()\nprivate taskService = inject(TaskService);\nprivate router = inject(Router);\nprivate destroyRef = inject(DestroyRef);\n\n\u002F\u002F ❌ WRONG: Constructor injection (forbidden)\nconstructor(\n  private taskService: TaskService,\n  private router: Router\n) {}\n```\n\n### 5. Subscriptions\n\n```typescript\nimport { takeUntilDestroyed } from '@angular\u002Fcore\u002Frxjs-interop';\n\n\u002F\u002F ✅ CORRECT: Auto-cleanup with takeUntilDestroyed\nprivate destroyRef = inject(DestroyRef);\n\nngOnInit(): void {\n  this.service.data$\n    .pipe(takeUntilDestroyed(this.destroyRef))\n    .subscribe(data => this.items.set(data));\n}\n\n\u002F\u002F ❌ WRONG: Manual subscriptions without cleanup\nngOnInit(): void {\n  this.service.data$.subscribe(data => this.items.set(data));\n}\n```\n\n## Component Types\n\n### Smart Component (Container)\n\n```typescript\n@Component({\n  selector: 'app-task-list',\n  standalone: true,\n  imports: [SHARED_IMPORTS, TaskItemComponent],\n  template: `\n    @for (task of tasks(); track task.id) {\n      \u003Capp-task-item \n        [task]=\"task\"\n        (taskChange)=\"updateTask($event)\"\n      \u002F>\n    }\n  `\n})\nexport class TaskListComponent {\n  private taskService = inject(TaskService);\n  tasks = signal\u003CTask[]>([]);\n  \n  ngOnInit(): void {\n    this.loadTasks();\n  }\n  \n  async loadTasks(): Promise\u003Cvoid> {\n    const tasks = await this.taskService.getTasks();\n    this.tasks.set(tasks);\n  }\n  \n  async updateTask(task: Task): Promise\u003Cvoid> {\n    await this.taskService.updateTask(task.id, task);\n    this.tasks.update(tasks => \n      tasks.map(t => t.id === task.id ? task : t)\n    );\n  }\n}\n```\n\n### Presentational Component (Pure)\n\n```typescript\n@Component({\n  selector: 'app-task-item',\n  standalone: true,\n  imports: [SHARED_IMPORTS],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    \u003Cnz-card>\n      \u003Ch3>{{ task().title }}\u003C\u002Fh3>\n      \u003Cp>{{ task().description }}\u003C\u002Fp>\n      \u003Cbutton nz-button (click)=\"handleComplete()\">\n        Complete\n      \u003C\u002Fbutton>\n    \u003C\u002Fnz-card>\n  `\n})\nexport class TaskItemComponent {\n  task = input.required\u003CTask>();\n  taskChange = output\u003CTask>();\n  \n  handleComplete(): void {\n    const updated = { ...this.task(), status: 'completed' };\n    this.taskChange.emit(updated);\n  }\n}\n```\n\n## Form Handling\n\n```typescript\nimport { FormBuilder, FormGroup, Validators } from '@angular\u002Fforms';\n\n@Component({\n  selector: 'app-task-form',\n  standalone: true,\n  imports: [SHARED_IMPORTS, ReactiveFormsModule],\n  template: `\n    \u003Cform nz-form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\n      \u003Cnz-form-item>\n        \u003Cnz-form-label nzRequired>Title\u003C\u002Fnz-form-label>\n        \u003Cnz-form-control nzErrorTip=\"Please enter task title\">\n          \u003Cinput nz-input formControlName=\"title\" \u002F>\n        \u003C\u002Fnz-form-control>\n      \u003C\u002Fnz-form-item>\n      \n      \u003Cbutton nz-button nzType=\"primary\" [disabled]=\"!form.valid\">\n        Submit\n      \u003C\u002Fbutton>\n    \u003C\u002Fform>\n  `\n})\nexport class TaskFormComponent {\n  private fb = inject(FormBuilder);\n  \n  form = this.fb.group({\n    title: ['', [Validators.required, Validators.maxLength(200)]],\n    description: [''],\n    status: ['pending']\n  });\n  \n  taskSubmit = output\u003CPartial\u003CTask>>();\n  \n  handleSubmit(): void {\n    if (this.form.valid) {\n      this.taskSubmit.emit(this.form.value);\n      this.form.reset();\n    }\n  }\n}\n```\n\n## Checklist\n\nWhen creating a component:\n\n- [ ] Standalone component with imports\n- [ ] Uses signal() for state\n- [ ] Uses computed() for derived state\n- [ ] Uses input()\u002Foutput() functions\n- [ ] Uses @if\u002F@for\u002F@switch syntax\n- [ ] Uses inject() for dependencies\n- [ ] OnPush change detection\n- [ ] No business logic in component\n- [ ] Proper error handling\n- [ ] Loading states\n- [ ] Empty states\n- [ ] TypeScript strict typing\n\n## References\n\n- [Angular Instructions](.github\u002Finstructions\u002Fangular.instructions.md)\n- [Signals State Management](.github\u002Finstructions\u002Fng-ng-events(GigHub)-signals-state.instructions.md)\n- [Architecture Guide](.github\u002Finstructions\u002Fng-ng-events(GigHub)-architecture.instructions.md)\n","# Angular 20 Standalone Component Skill\n\nThis skill helps create Angular 20 components following modern patterns and project standards.\n\n## Core Principles\n\n### Modern Angular 20 Patterns\n- **Standalone Components**: 100% standalone, zero NgModules\n- **Signals**: Use `signal()`, `computed()`, `effect()` for state\n- **New Syntax**: `input()`, `output()`, `@if`, `@for`, `@switch`\n- **inject()**: Function-based dependency injection\n- **OnPush**: Change detection strategy for performance\n\n### Architecture Integration\n- **Presentation Layer**: Components handle UI only\n- **Service Integration**: Inject services for business logic\n- **No Direct Repository**: Never inject repositories directly\n- **Event-Driven**: Use EventBus for cross-module communication\n\n## Component Template\n\n```typescript\nimport { Component, signal, computed, effect, input, output, inject, ChangeDetectionStrategy } from '@angular\u002Fcore';\nimport { SHARED_IMPORTS } from '@shared';\nimport { YourService } from '@core\u002Fservices\u002Fyour.service';\n\n@Component({\n  selector: 'app-your-component',\n  standalone: true,\n  imports: [SHARED_IMPORTS],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    \u003Cdiv class=\"component-container\">\n      @if (loading()) {\n        \u003Cnz-spin nzSimple \u002F>\n      } @else if (hasError()) {\n        \u003Cnz-alert \n          nzType=\"error\" \n          [nzMessage]=\"errorMessage()!\"\n          nzShowIcon\n        \u002F>\n      } @else {\n        \u003Cdiv class=\"content\">\n          @for (item of items(); track item.id) {\n            \u003Capp-item-card \n              [item]=\"item\"\n              (itemChange)=\"handleItemChange($event)\"\n            \u002F>\n          } @empty {\n            \u003Cnz-empty nzNotFoundContent=\"No items found\" \u002F>\n          }\n        \u003C\u002Fdiv>\n      }\n    \u003C\u002Fdiv>\n  `,\n  styles: [`\n    .component-container {\n      padding: 24px;\n    }\n    \n    .content {\n      display: grid;\n      gap: 16px;\n    }\n  `]\n})\nexport class YourComponent {\n  \u002F\u002F ✅ Inject services with inject()\n  private yourService = inject(YourService);\n  \n  \u002F\u002F ✅ Use input() for properties (NOT @Input())\n  blueprintId = input.required\u003Cstring>();\n  readonly = input(false);\n  \n  \u002F\u002F ✅ Use output() for events (NOT @Output())\n  itemChange = output\u003CItem>();\n  \n  \u002F\u002F ✅ Use signal() for mutable state\n  loading = signal(false);\n  error = signal\u003Cstring | null>(null);\n  items = signal\u003CItem[]>([]);\n  \n  \u002F\u002F ✅ Use computed() for derived state\n  hasError = computed(() => this.error() !== null);\n  errorMessage = computed(() => this.error());\n  totalItems = computed(() => this.items().length);\n  \n  \u002F\u002F ✅ Use effect() for side effects\n  constructor() {\n    effect(() => {\n      const id = this.blueprintId();\n      console.log('Blueprint ID changed:', id);\n      this.loadItems(id);\n    });\n  }\n  \n  ngOnInit(): void {\n    this.loadItems(this.blueprintId());\n  }\n  \n  async loadItems(blueprintId: string): Promise\u003Cvoid> {\n    this.loading.set(true);\n    this.error.set(null);\n    \n    try {\n      const items = await this.yourService.getItems(blueprintId);\n      this.items.set(items);\n    } catch (err) {\n      this.error.set(err instanceof Error ? err.message : 'Unknown error');\n    } finally {\n      this.loading.set(false);\n    }\n  }\n  \n  handleItemChange(item: Item): void {\n    \u002F\u002F Update local state\n    this.items.update(items => \n      items.map(i => i.id === item.id ? item : i)\n    );\n    \n    \u002F\u002F Emit to parent\n    this.itemChange.emit(item);\n  }\n}\n```\n\n## Key Patterns\n\n### 1. Signal State Management\n\n```typescript\n\u002F\u002F Writable signals\nprivate _items = signal\u003CItem[]>([]);\n\n\u002F\u002F Read-only public access\nitems = this._items.asReadonly();\n\n\u002F\u002F Computed derived state\nfilteredItems = computed(() => \n  this._items().filter(item => item.status === 'active')\n);\n\n\u002F\u002F Update signals\nthis._items.set([...]); \u002F\u002F Replace\nthis._items.update(items => [...items, newItem]); \u002F\u002F Transform\n```\n\n### 2. Control Flow Syntax\n\n```typescript\n\u002F\u002F ✅ CORRECT: New @if syntax\n@if (condition()) {\n  \u003Cdiv>Content\u003C\u002Fdiv>\n} @else if (otherCondition()) {\n  \u003Cdiv>Other\u003C\u002Fdiv>\n} @else {\n  \u003Cdiv>Default\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ CORRECT: New @for syntax with track\n@for (item of items(); track item.id) {\n  \u003Cdiv>{{ item.name }}\u003C\u002Fdiv>\n} @empty {\n  \u003Cp>No items\u003C\u002Fp>\n}\n\n\u002F\u002F ✅ CORRECT: New @switch syntax\n@switch (status()) {\n  @case ('active') { \u003Cspan class=\"badge-success\">Active\u003C\u002Fspan> }\n  @case ('inactive') { \u003Cspan class=\"badge-danger\">Inactive\u003C\u002Fspan> }\n  @default { \u003Cspan class=\"badge-default\">Unknown\u003C\u002Fspan> }\n}\n\n\u002F\u002F ❌ WRONG: Old syntax (forbidden)\n\u003Cdiv *ngIf=\"condition\">...\u003C\u002Fdiv>\n\u003Cdiv *ngFor=\"let item of items\">...\u003C\u002Fdiv>\n\u003Cdiv [ngSwitch]=\"status\">...\u003C\u002Fdiv>\n```\n\n### 3. Input\u002FOutput Functions\n\n```typescript\n\u002F\u002F ✅ CORRECT: Use input()\u002Foutput() functions\ntask = input.required\u003CTask>();\nreadonly = input(false);\ntaskChange = output\u003CTask>();\n\n\u002F\u002F ❌ WRONG: Decorators (forbidden)\n@Input() task!: Task;\n@Output() taskChange = new EventEmitter\u003CTask>();\n```\n\n### 4. Dependency Injection\n\n```typescript\n\u002F\u002F ✅ CORRECT: Use inject()\nprivate taskService = inject(TaskService);\nprivate router = inject(Router);\nprivate destroyRef = inject(DestroyRef);\n\n\u002F\u002F ❌ WRONG: Constructor injection (forbidden)\nconstructor(\n  private taskService: TaskService,\n  private router: Router\n) {}\n```\n\n### 5. Subscriptions\n\n```typescript\nimport { takeUntilDestroyed } from '@angular\u002Fcore\u002Frxjs-interop';\n\n\u002F\u002F ✅ CORRECT: Auto-cleanup with takeUntilDestroyed\nprivate destroyRef = inject(DestroyRef);\n\nngOnInit(): void {\n  this.service.data$\n    .pipe(takeUntilDestroyed(this.destroyRef))\n    .subscribe(data => this.items.set(data));\n}\n\n\u002F\u002F ❌ WRONG: Manual subscriptions without cleanup\nngOnInit(): void {\n  this.service.data$.subscribe(data => this.items.set(data));\n}\n```\n\n## Component Types\n\n### Smart Component (Container)\n\n```typescript\n@Component({\n  selector: 'app-task-list',\n  standalone: true,\n  imports: [SHARED_IMPORTS, TaskItemComponent],\n  template: `\n    @for (task of tasks(); track task.id) {\n      \u003Capp-task-item \n        [task]=\"task\"\n        (taskChange)=\"updateTask($event)\"\n      \u002F>\n    }\n  `\n})\nexport class TaskListComponent {\n  private taskService = inject(TaskService);\n  tasks = signal\u003CTask[]>([]);\n  \n  ngOnInit(): void {\n    this.loadTasks();\n  }\n  \n  async loadTasks(): Promise\u003Cvoid> {\n    const tasks = await this.taskService.getTasks();\n    this.tasks.set(tasks);\n  }\n  \n  async updateTask(task: Task): Promise\u003Cvoid> {\n    await this.taskService.updateTask(task.id, task);\n    this.tasks.update(tasks => \n      tasks.map(t => t.id === task.id ? task : t)\n    );\n  }\n}\n```\n\n### Presentational Component (Pure)\n\n```typescript\n@Component({\n  selector: 'app-task-item',\n  standalone: true,\n  imports: [SHARED_IMPORTS],\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  template: `\n    \u003Cnz-card>\n      \u003Ch3>{{ task().title }}\u003C\u002Fh3>\n      \u003Cp>{{ task().description }}\u003C\u002Fp>\n      \u003Cbutton nz-button (click)=\"handleComplete()\">\n        Complete\n      \u003C\u002Fbutton>\n    \u003C\u002Fnz-card>\n  `\n})\nexport class TaskItemComponent {\n  task = input.required\u003CTask>();\n  taskChange = output\u003CTask>();\n  \n  handleComplete(): void {\n    const updated = { ...this.task(), status: 'completed' };\n    this.taskChange.emit(updated);\n  }\n}\n```\n\n## Form Handling\n\n```typescript\nimport { FormBuilder, FormGroup, Validators } from '@angular\u002Fforms';\n\n@Component({\n  selector: 'app-task-form',\n  standalone: true,\n  imports: [SHARED_IMPORTS, ReactiveFormsModule],\n  template: `\n    \u003Cform nz-form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\n      \u003Cnz-form-item>\n        \u003Cnz-form-label nzRequired>Title\u003C\u002Fnz-form-label>\n        \u003Cnz-form-control nzErrorTip=\"Please enter task title\">\n          \u003Cinput nz-input formControlName=\"title\" \u002F>\n        \u003C\u002Fnz-form-control>\n      \u003C\u002Fnz-form-item>\n      \n      \u003Cbutton nz-button nzType=\"primary\" [disabled]=\"!form.valid\">\n        Submit\n      \u003C\u002Fbutton>\n    \u003C\u002Fform>\n  `\n})\nexport class TaskFormComponent {\n  private fb = inject(FormBuilder);\n  \n  form = this.fb.group({\n    title: ['', [Validators.required, Validators.maxLength(200)]],\n    description: [''],\n    status: ['pending']\n  });\n  \n  taskSubmit = output\u003CPartial\u003CTask>>();\n  \n  handleSubmit(): void {\n    if (this.form.valid) {\n      this.taskSubmit.emit(this.form.value);\n      this.form.reset();\n    }\n  }\n}\n```\n\n## Checklist\n\nWhen creating a component:\n\n- [ ] Standalone component with imports\n- [ ] Uses signal() for state\n- [ ] Uses computed() for derived state\n- [ ] Uses input()\u002Foutput() functions\n- [ ] Uses @if\u002F@for\u002F@switch syntax\n- [ ] Uses inject() for dependencies\n- [ ] OnPush change detection\n- [ ] No business logic in component\n- [ ] Proper error handling\n- [ ] Loading states\n- [ ] Empty states\n- [ ] TypeScript strict typing\n\n## References\n\n- [Angular Instructions](.github\u002Finstructions\u002Fangular.instructions.md)\n- [Signals State Management](.github\u002Finstructions\u002Fng-ng-events(GigHub)-signals-state.instructions.md)\n- [Architecture Guide](.github\u002Finstructions\u002Fng-ng-events(GigHub)-architecture.instructions.md)\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fmarketplace\u002Fangular-20-standalone-component",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill angular-20-standalone-component",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill angular-20-standalone-component",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill angular-20-standalone-component","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fangular-20-standalone-component\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"skill-report.json","REFERENCE","参考文档",32755,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fangular-20-standalone-component\u002Fskill-report.json",[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]