linktogo/maggie/rxjs
Claude Code and agent skill by linktogo/maggie
- community
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/rxjsSKILL.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
asyncpipe 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
subscribeinsidesubscribe. 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 inmap. Asubscribecallback
should be the end of the line, not where logic lives.
- Handle errors inside the stream with
catchErrorand 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(...))— useswitchMap.- Subscribing in a component and never unsubscribing.
- Doing HTTP in a
map(it must be an inner observable viaswitchMap, 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
- SKILL.md in the repositoryCheckingskills/angular/rxjs/SKILL.md
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
[](https://verified-skill.com/skills/linktogo/maggie/rxjs)