Chooses between Angular Signals and RxJS for state management based on Angular version, state lifetime, synchronicity, and cancellation needs.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to choose the right reactive primitive for Angular state. The goal is to avoid forcing Signals into asynchronous workflows or keeping RxJS boilerplate where simple local synchronous state is enough.
Use this skill when:
Use this decision policy:
local synchronous UI state -> Signals when Angular supports them, otherwise component property or BehaviorSubject
derived synchronous state -> computed when Angular supports it, otherwise getter, memoized value, or RxJS map
HTTP and async orchestration -> RxJS Observable
router params and form valueChanges -> RxJS Observable, optionally converted at the boundary
WebSockets and event streams -> RxJS Observable
shared feature API -> facade contract using Observables or read-only Signals by version and project style
global app state -> store, facade, or explicit state service
For Angular 2-15, do not use Signals:
readonly selectedTab$ = new BehaviorSubject<'active' | 'inactive'>('active');
For Angular 16+ where the project accepts Signals:
readonly selectedTab = signal<'active' | 'inactive'>('active');
readonly hasSelection = computed(() => this.selectedTab() === 'active');
Use RxJS for cancellable async flows:
readonly results$ = this.searchControl.valueChanges.pipe(
debounceTime(300),
distinctUntilChanged(),
switchMap((query) => this.userApi.searchUsers(query)),
);
Use interop at clear boundaries, not everywhere:
readonly user = toSignal(this.user$, { initialValue: null });
Avoid global state for trivial local UI state:
this.store.dispatch(openDropdown());
Avoid replacing async RxJS flows with signal effects by default:
effect(() => {
this.http.get(`/api/users/${this.userId()}`).subscribe();
});
Avoid recommending resource or httpResource as a stable baseline when the project has not explicitly accepted experimental APIs.
Avoid mixing Signals and Observables in the same feature without explaining ownership and conversion boundaries.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--state--signals-vs-rxjsfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job