Token导航 LogoToken导航

Agent Skill · 研究检索

angular-signals(Angular signals 搜索)

angular-signals 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

angular-signals 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 69,087。

总安装 220周安装 9GitHub Stars 公开资料未说明下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:angular-signals(Angular signals 搜索)
来源仓库:https://github.com/simon-jarillo/prueba-skills
仓库路径:skills/angular-signals
安装命令:
npx skills add simon-jarillo/prueba-skills --skill "angular-signals"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add simon-jarillo/prueba-skills --skill "angular-signals"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

angular-signals 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。它支持基于任务场景或来源线索进行信息聚合与筛选,适用于研究类工作流。

通过 npx skills add simon-jarillo/prueba-skills --skill "angular-signals" 命令安装。安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/angular-signals

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add simon-jarillo/prueba-skills --skill "angular-signals";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

angular-signals 怎么安装?

在终端执行 npx skills add simon-jarillo/prueba-skills --skill "angular-signals"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

angular-signals 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

angular-signals 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

angular-signals 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

angular-signals 用的人多吗?

公开数据是累计安装 220 次,近一周安装 9 次,下载 71 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

angular-signals 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
angular-signals

Angular signals 搜索 · 本页

220—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
angular-signals
description
Reactive state management with Angular Signals including signal(), computed(), linkedSignal(), effect(), and RxJS interop. Use when managing component state, creating derived values, handling side effects, or converting between signals and observables in Angular 16+.

Angular Signals

Reactive state management with Angular's signal primitives for fine-grained reactivity.

Basic Signals

Writable Signals

import { Component, signal } from '@angular/core';

@Component({
  selector: 'app-counter',
  template: `
    <p>Count: {{ count() }}</p>
    <button (click)="increment()">+1</button>
    <button (click)="decrement()">-1</button>
    <button (click)="reset()">Reset</button>
  `
})
export class CounterComponent {
  count = signal(0);
  
  increment() {
    // Update with new value
    this.count.set(this.count() + 1);
    
    // Or use update function
    this.count.update(value => value + 1);
  }
  
  decrement() {
    this.count.update(value => value - 1);
  }
  
  reset() {
    this.count.set(0);
  }
}

Signal with Objects

import { signal } from '@angular/core';

interface User {
  id: number;
  name: string;
  email: string;
}

export class UserComponent {
  user = signal<User>({
    id: 1,
    name: 'John Doe',
    email: ' [email protected] '
  });
  
  updateName(name: string) {
    // Create new object (immutable update)
    this.user.update(user => ({
      ...user,
      name
    }));
  }
  
  updateEmail(email: string) {
    this.user.update(user => ({ ...user, email }));
  }
}

Signal with Arrays

import { signal } from '@angular/core';

export class TodosComponent {
  todos = signal<string[]>([]);
  
  addTodo(text: string) {
    this.todos.update(todos => [...todos, text]);
  }
  
  removeTodo(index: number) {
    this.todos.update(todos => 
      todos.filter((_, i) => i !== index)
    );
  }
  
  clearTodos() {
    this.todos.set([]);
  }
}

Computed Signals

Basic Computed

import { Component, signal, computed } from '@angular/core';

@Component({
  selector: 'app-cart',
  template: `
    <p>Items: {{ itemCount() }}</p>
    <p>Total: {{ total() | currency }}</p>
    <p>Average: {{ average() | currency }}</p>
  `
})
export class CartComponent {
  items = signal([
    { name: 'Item 1', price: 10.99 },
    { name: 'Item 2', price: 24.99 },
    { name: 'Item 3', price: 15.50 }
  ]);
  
  itemCount = computed(() => this.items().length);
  
  total = computed(() => 
    this.items().reduce((sum, item) => sum + item.price, 0)
  );
  
  average = computed(() => 
    this.itemCount() > 0 ? this.total() / this.itemCount() : 0
  );
}

Chained Computed Signals

import { signal, computed } from '@angular/core';

export class FilterComponent {
  items = signal(['Apple', 'Banana', 'Cherry', 'Date']);
  searchTerm = signal('');
  sortOrder = signal<'asc' | 'desc'>('asc');
  
  // First computed: filter
  filteredItems = computed(() => {
    const term = this.searchTerm().toLowerCase();
    return this.items().filter(item => 
      item.toLowerCase().includes(term)
    );
  });
  
  // Second computed: sort (depends on filteredItems)
  sortedItems = computed(() => {
    const items = [...this.filteredItems()];
    return this.sortOrder() === 'asc'
      ? items.sort()
      : items.sort().reverse();
  });
}

Computed with Complex Logic

import { signal, computed } from '@angular/core';

interface Task {
  id: number;
  title: string;
  completed: boolean;
  priority: 'low' | 'medium' | 'high';
}

export class TasksComponent {
  tasks = signal<Task[]>([]);
  filter = signal<'all' | 'active' | 'completed'>('all');
  
  filteredTasks = computed(() => {
    const tasks = this.tasks();
    const filter = this.filter();
    
    switch (filter) {
      case 'active':
        return tasks.filter(t => !t.completed);
      case 'completed':
        return tasks.filter(t => t.completed);
      default:
        return tasks;
    }
  });
  
  taskStats = computed(() => {
    const tasks = this.tasks();
    return {
      total: tasks.length,
      completed: tasks.filter(t => t.completed).length,
      active: tasks.filter(t => !t.completed).length,
      highPriority: tasks.filter(t => t.priority === 'high').length
    };
  });
}

Linked Signals (Angular 19+)

Basic Linked Signal

import { Component, signal, linkedSignal } from '@angular/core';

@Component({
  selector: 'app-user-editor',
  template: `
    <input [value]="originalName()" (input)="updateOriginal($event)" />
    <input [value]="editedName()" (input)="updateEdited($event)" />
    <button (click)="reset()">Reset</button>
  `
})
export class UserEditorComponent {
  originalName = signal('John Doe');
  
  // editedName is linked to originalName
  // When originalName changes, editedName updates
  editedName = linkedSignal(() => this.originalName());
  
  updateOriginal(event: Event) {
    const input = event.target as HTMLInputElement;
    this.originalName.set(input.value);
  }
  
  updateEdited(event: Event) {
    const input = event.target as HTMLInputElement;
    this.editedName.set(input.value);
  }
  
  reset() {
    // Reset editedName to match originalName
    this.editedName.set(this.originalName());
  }
}

Linked Signal with Transform

import { signal, linkedSignal } from '@angular/core';

export class TemperatureComponent {
  celsius = signal(0);
  
  // Fahrenheit is linked to celsius but transformed
  fahrenheit = linkedSignal({
    source: () => this.celsius(),
    computation: (celsius) => (celsius * 9/5) + 32
  });
  
  updateCelsius(value: number) {
    this.celsius.set(value);
    // fahrenheit automatically updates
  }
  
  updateFahrenheit(value: number) {
    // Can still set fahrenheit directly
    this.fahrenheit.set(value);
    // But celsius doesn't update automatically
  }
}

Effects

Basic Effect

import { Component, signal, effect } from '@angular/core';

@Component({
  selector: 'app-logger',
  template: `
    <input [value]="searchTerm()" (input)="updateSearch($event)" />
  `
})
export class LoggerComponent {
  searchTerm = signal('');
  
  constructor() {
    // Effect runs whenever searchTerm changes
    effect(() => {
      console.log('Search term changed:', this.searchTerm());
    });
  }
  
  updateSearch(event: Event) {
    const input = event.target as HTMLInputElement;
    this.searchTerm.set(input.value);
  }
}

Effect with Cleanup

import { Component, signal, effect } from '@angular/core';

@Component({
  selector: 'app-timer',
  template: `
    <p>{{ count() }}</p>
    <button (click)="toggleTimer()">
      {{ isRunning() ? 'Stop' : 'Start' }}
    </button>
  `
})
export class TimerComponent {
  count = signal(0);
  isRunning = signal(false);
  
  constructor() {
    effect((onCleanup) => {
      if (this.isRunning()) {
        const interval = setInterval(() => {
          this.count.update(c => c + 1);
        }, 1000);
        
        // Cleanup function
        onCleanup(() => {
          clearInterval(interval);
        });
      }
    });
  }
  
  toggleTimer() {
    this.isRunning.update(running => !running);
  }
}

Effect with Dependencies

import { effect, signal } from '@angular/core';

export class DataSyncComponent {
  userId = signal(1);
  refreshFlag = signal(0);
  
  constructor() {
    // Effect depends on both userId and refreshFlag
    effect(() => {
      const id = this.userId();
      const flag = this.refreshFlag(); // Track this too
      
      console.log(`Fetching data for user ${id} (refresh: ${flag})`);
      // Fetch user data
    });
  }
  
  refresh() {
    // Trigger effect without changing userId
    this.refreshFlag.update(f => f + 1);
  }
}

RxJS Interop

toSignal - Observable to Signal

import { Component, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { toSignal } from '@angular/core/rxjs-interop';

@Component({
  selector: 'app-users',
  template: `
    @if (users(); as userList) {
      @for (user of userList; track user.id) {
        <div>{{ user.name }}</div>
      }
    } @else {
      <p>Loading...</p>
    }
  `
})
export class UsersComponent {
  private http = inject(HttpClient);
  
  // Convert Observable to Signal
  users = toSignal(
    this.http.get<User[]>('/api/users'),
    { initialValue: [] }
  );
}

toSignal with Options

import { Component } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { interval } from 'rxjs';

@Component({
  selector: 'app-clock',
  template: `<p>{{ time() }}</p>`
})
export class ClockComponent {
  time = toSignal(interval(1000), {
    initialValue: 0,
    requireSync: false, // Don't require synchronous emission
    rejectErrors: false // Handle errors gracefully
  });
}

toObservable - Signal to Observable

import { Component, signal } from '@angular/core';
import { toObservable } from '@angular/core/rxjs-interop';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';

@Component({
  selector: 'app-search',
  template: `
    <input [value]="searchTerm()" (input)="updateSearch($event)" />
  `
})
export class SearchComponent {
  searchTerm = signal('');
  
  // Convert signal to observable for RxJS operators
  searchTerm$ = toObservable(this.searchTerm).pipe(
    debounceTime(300),
    distinctUntilChanged()
  );
  
  constructor() {
    this.searchTerm$.subscribe(term => {
      console.log('Debounced search:', term);
      // Perform search
    });
  }
  
  updateSearch(event: Event) {
    const input = event.target as HTMLInputElement;
    this.searchTerm.set(input.value);
  }
}

Signal Store Pattern

import { Injectable, signal, computed } from '@angular/core';

interface Todo {
  id: number;
  text: string;
  completed: boolean;
}

@Injectable({ providedIn: 'root' })
export class TodoStore {
  // Private state
  private todosSignal = signal<Todo[]>([]);
  private loadingSignal = signal(false);
  private filterSignal = signal<'all' | 'active' | 'completed'>('all');
  
  // Public readonly state
  todos = this.todosSignal.asReadonly();
  loading = this.loadingSignal.asReadonly();
  filter = this.filterSignal.asReadonly();
  
  // Computed values
  filteredTodos = computed(() => {
    const todos = this.todosSignal();
    const filter = this.filterSignal();
    
    switch (filter) {
      case 'active':
        return todos.filter(t => !t.completed);
      case 'completed':
        return todos.filter(t => t.completed);
      default:
        return todos;
    }
  });
  
  stats = computed(() => ({
    total: this.todosSignal().length,
    completed: this.todosSignal().filter(t => t.completed).length,
    active: this.todosSignal().filter(t => !t.completed).length
  }));
  
  // Actions
  addTodo(text: string) {
    const newTodo: Todo = {
      id: Date.now(),
      text,
      completed: false
    };
    this.todosSignal.update(todos => [...todos, newTodo]);
  }
  
  toggleTodo(id: number) {
    this.todosSignal.update(todos =>
      todos.map(todo =>
        todo.id === id ? { ...todo, completed: !todo.completed } : todo
      )
    );
  }
  
  removeTodo(id: number) {
    this.todosSignal.update(todos => todos.filter(t => t.id !== id));
  }
  
  setFilter(filter: 'all' | 'active' | 'completed') {
    this.filterSignal.set(filter);
  }
}

Best Practices

  1. Use asReadonly() to expose signals publicly from services
  2. Always update signals immutably - create new objects/arrays
  3. Prefer computed over effects when deriving values
  4. Use effects for side effects only (logging, persistence, external APIs)
  5. Keep signal updates synchronous - no async operations in update()
  6. Use linkedSignal when you need source tracking with manual overrides
  7. Convert to observables sparingly - stay in signals when possible
  8. Batch related updates to avoid unnecessary computations

Common Patterns

Loading State

interface LoadingState<T> {
  data: T | null;
  loading: boolean;
  error: string | null;
}

export class DataComponent {
  state = signal<LoadingState<User[]>>({
    data: null,
    loading: false,
    error: null
  });
  
  async loadData() {
    this.state.update(s => ({ ...s, loading: true, error: null }));
    
    try {
      const data = await fetchUsers();
      this.state.update(s => ({ ...s, data, loading: false }));
    } catch (error) {
      this.state.update(s => ({
        ...s,
        error: error.message,
        loading: false
      }));
    }
  }
}

Pagination

export class PaginatedListComponent {
  items = signal<Item[]>([]);
  page = signal(1);
  pageSize = signal(10);
  
  paginatedItems = computed(() => {
    const start = (this.page() - 1) * this.pageSize();
    const end = start + this.pageSize();
    return this.items().slice(start, end);
  });
  
  totalPages = computed(() => 
    Math.ceil(this.items().length / this.pageSize())
  );
  
  nextPage() {
    this.page.update(p => Math.min(p + 1, this.totalPages()));
  }
  
  previousPage() {
    this.page.update(p => Math.max(p - 1, 1));
  }
}

Resources

  • Angular Signals Guide: https://angular.dev/guide/signals
  • RxJS Interop: https://angular.dev/guide/signals/rxjs-interop

平台分布

Claude Code

37.73%
按下载量换算27

Codex

28.21%
按下载量换算20

github-copilot

15.97%
按下载量换算11

Gemini CLI

7.1%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills