rxjs7

rxjs7 is a skill for Claude Code, Codex from Acheron-AI/angular-upgrade-kit. It costs 57 tokens per session (548 once invoked), scanned A, original, MIT.

A reference guide for moving an RxJS project from version 6 to version 7. RxJS is a JavaScript library for working with streams of changing or asynchronous data, such as HTTP results.

In plain words
What is it for?
Use it when replacing toPromise(), choosing firstValueFrom() or lastValueFrom(), updating throwError(), replacing pluck(), or fixing RxJS 7 migration issues.
Why use it?
It explains deprecated and removed APIs so an upgrade does not leave outdated Observable code or incorrect imports behind.

Skill for Claude CodeCodex

Part of the angular-upgrade-kit plugin — 3 skills, 8 commands, 8 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/acheron-ai/angular-upgrade-kit/rxjs7
Any agent
npx skills add Acheron-AI/angular-upgrade-kit --skill rxjs7
Clone the repo
git clone --depth 1 https://github.com/Acheron-AI/angular-upgrade-kit

Made for: Claude Code, Codex.

Or install angular-upgrade-kit, the plugin that ships this one along with the rest of its 3 skills, 8 commands, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rxjs7

README.md
[![agentmods](https://agentmods.dev/badge/skills/acheron-ai/angular-upgrade-kit/rxjs7.svg)](https://agentmods.dev/skills/acheron-ai/angular-upgrade-kit/rxjs7)
Your own site
<a href="https://agentmods.dev/skills/acheron-ai/angular-upgrade-kit/rxjs7"><img src="https://agentmods.dev/badge/skills/acheron-ai/angular-upgrade-kit/rxjs7.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.00548
Opus 5 $0.00028 $0.00274
Sonnet 5 $0.00011 $0.00110
Haiku 4.5 $0.00006 $0.00055

Measured 3d ago against content hash f9f451d1e135, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rxjs7 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rxjs7/SKILL.md · 88 lines

What it actually says

RxJS 6 → 7 Migration Guide

toPromise() Replacement

toPromise() is deprecated in RxJS 7. Scan all .ts files for .toPromise() calls.

// OLD (RxJS 6)
const result = await this.http.get(url).toPromise();

// NEW (RxJS 7)
import { firstValueFrom } from 'rxjs';
const result = await firstValueFrom(this.http.get(url));

When to use which

  • firstValueFrom: HTTP calls, one-shot observables (99% of cases in Angular)
  • lastValueFrom: Only when you need the LAST value before complete

Detection

grep -r "\.toPromise()" --include="*.ts" src/ projects/

Other v7 Changes

throwError

// OLD
throwError('error message');

// NEW
throwError(() => new Error('error message'));

pluck (deprecated)

// OLD
source$.pipe(pluck('prop'));

// NEW
source$.pipe(map(x => x.prop));

Subject.create (removed)

// OLD
const subject = Subject.create(observer, observable);

// NEW
const subject = new Subject();

Import paths

Import paths are unchanged for most operators. The main change is:

  • import { Observable } from 'rxjs' — still valid
  • import { map, filter } from 'rxjs/operators' — still valid
  • import { firstValueFrom, lastValueFrom } from 'rxjs' — NEW

Scheduler arguments (deprecated)

// OLD
of(1, 2, 3, asyncScheduler);

// NEW
scheduled([1, 2, 3], asyncScheduler);

Quick Scan Commands

# Count toPromise() calls
grep -rc "\.toPromise()" --include="*.ts" src/ projects/ | grep -v ":0"

# Count throwError with string
grep -rn "throwError(" --include="*.ts" src/ projects/ | grep -v "=>"

# Count pluck usage
grep -rc "pluck(" --include="*.ts" src/ projects/ | grep -v ":0"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 88 lines · 57 tokens per session scan A f9f451d1e135

Subscribe to this mod's changes

rxjs7 is a skill published in the GitHub repository Acheron-AI/angular-upgrade-kit (1 stars, last pushed 21d ago), licensed MIT. It adds 57 tokens to every session and 548 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

independent-review-loop

Independent review loop run before delivery in code work. An independent reviewer (Codex, or fresh Codex-style subagents) reads the whole PR against the approved outcome; the lead fixes in-scope functional findings and re-reviews until none remain. Its differentiator is independence and exhaustiveness — a reviewer…

DheerG/swarms · 114 tokens

writing-style

Structural pattern analysis for writing-mode review. Performs paragraph-level decomposition and pattern aggregation. Invoked by the team lead during editorial review.

DheerG/swarms · 29 tokens

audit-context

Evaluates ambient context artifacts (CLAUDE.md, memory, local skills, settings hooks) for compatibility with swarm governance. Returns a classified report so users can address interference before launching a team.

DheerG/swarms · 42 tokens

pr-check

PR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion.

rube-de/cc-skills · 67 tokens

ci-review

CI-optimized code review: multi-agent parallel review with confidence scoring and atomic GitHub PR review posting. Runs specialized review agents, scores findings, and submits a GitHub PR review via post-review.sh. Always executes post-review.sh to submit a review on every run (including zero-findings runs). Triggers…

rube-de/cc-skills · 127 tokens

council

Consult external AI council (Gemini 3.8 Flash, Codex, GLM-5.3, Kimi) for thorough reviews and consensus-driven decisions. Use ONLY when explicitly invoked with "/council" or when user says "consult the council", "invoke council", or "council review". Do NOT auto-trigger on generic phrases like "thorough review".

rube-de/cc-skills · 82 tokens