linktogo/maggie/rxjs

Claude Code and agent skill by linktogo/maggie

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use RxJS in Angular without leaks or nested subscriptions

Install

npx vskill@latest install linktogo/maggie/rxjs

SKILL.md

The same SKILL.md was published earlier as linktogo/maggie/rxjs.

Angular RxJS

RxJS is powerful and easy to misuse. The two recurring failures are leaked subscriptions and manually nesting subscribes.

Rules

  • Prefer the async pipe in templates — it subscribes and unsubscribes for you.

When you must subscribe in the class, tear down with takeUntilDestroyed() or a Subject completed in ngOnDestroy.

  • Never nest subscribe inside subscribe. Compose with flattening operators:

switchMap (cancel the previous — search/typeahead), concatMap (queue in order), mergeMap (parallel), exhaustMap (ignore while busy — submit buttons).

  • Keep side effects in tap, transformations in map. A subscribe callback

should be the end of the line, not where logic lives.

  • Handle errors inside the stream with catchError and return a safe fallback so

one failure doesn't kill the observable.

  • Share expensive/multicast sources with `shareReplay({ bufferSize: 1,

refCount: true })` instead of subscribing multiple times.

Anti-patterns

  • this.a$.subscribe(a => this.b$.subscribe(...)) — use switchMap.
  • Subscribing in a component and never unsubscribing.
  • Doing HTTP in a map (it must be an inner observable via switchMap, not a

synchronous transform).

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/linktogo/maggie/rxjs/badge)](https://verified-skill.com/skills/linktogo/maggie/rxjs)

Something wrong with this skill or its page? Tell us.