rxjs-next-migration
Skill này làm gì
Skill này hướng dẫn agent AI chuyển một dự án RxJS 7 sang phiên bản RxJS Next theo các giai đoạn có rà soát. Skill dành cho lập trình viên duy trì ứng dụng và thư viện xây dựng trên RxJS.
Khi nào nên dùng
- ✓Khi bạn muốn lên kế hoạch chuyển một ứng dụng hoặc thư viện từ RxJS 7 sang RxJS Next.
- ✓Khi bạn cần một đường nền kiểm thử xanh trước khi thay đổi bất kỳ mã RxJS nào.
- ✓Khi công cụ chuyển đổi tự động tạo ra thay đổi cần rà soát cẩn thận.
Liên kết skill
https://github.com/ReactiveX/rxjs/blob/master/.agents/skills/rxjs-next-migration/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể giúp tôi lên kế hoạch chuyển ứng dụng RxJS 7 của chúng tôi sang RxJS Next, bắt đầu từ một đường nền kiểm thử không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent làm theo các giai đoạn theo thứ tự, ghi lại đường nền kiểm thử đạt, chỉ dùng công cụ chuyển đổi cho các viết lại có giới hạn, rồi đối chiếu kết quả với kiểm thử.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
RxJS 7 to RxJS Next migration
Treat this as reviewed project work, not a codemod run. The objective is an intentional RxJS Next contract backed by the project's own build and behavior evidence. A transformed file, a clean diff, or one passing test is not proof that the migration is complete.
Work through all eight stages in order. Re-enter an earlier stage whenever new evidence changes scope, coverage, or lifecycle intent. Keep the developer involved at every explicit pause.
Non-negotiable rules
- Read and obey repository-local instructions before acting. Protect existing work and stay within the authorized repository and paths.
- Establish the RxJS 7 baseline before changing dependencies or source.
- Never infer platform sharing versus producer-per-direct-subscription behavior from syntax, filenames, operator names, or a currently passing output.
- Use the installed engine's versioned registry and schemas as authority. Do not reconstruct capability mappings from this Skill or from memory.
- Run the deterministic engine without writes first. A refusal is a successful safety outcome, not permission to improvise a mechanical rewrite.
- Preserve the project's test framework by default. Select a framework adapter only when the developer asked for that separate conversion.
- Do not weaken, skip, delete, or replace a behavioral expectation merely to make the migrated suite green.
- Do not add RxJS 7 compatibility shims, string-named platform methods, local substitute operators, or runtime generators unless the developer separately authorizes that product work.
- Keep changes in small coherent batches. Review and verify each batch before widening the scope.
- Do not call a migration complete while a required command is unknown, unapproved, skipped, or red without an explicitly accepted blocker.
Working record
Create or locate a checked-in migration contract manifest and a concise
human-readable report. Use the schema exported by the installed
@rxjs/migrate; schema validity and migration readiness are separate checks.
Use assets/migration-report.md for the report.
For every migration unit, preserve source locations and record:
- its current RxJS 7 behavioral claim;
- the target lifecycle selected by the developer;
- its evidence classification and supporting tests;
- approval state, diagnostics, and any intentional divergence; and
- verification or a named blocker.
Stage 1: Establish authority and scope
- Locate repository instructions, package and workspace metadata, lockfiles, CI configuration, RxJS versions, build/test commands, and current working tree state.
- Identify the repository root, migration boundary, permitted writes, package manager, network policy, and candidate verification commands.
- Record the installed
@rxjs/migrateversion and canonical Skill digest. If the installed Skill does not match its package, stop and synchronize it before trusting these instructions. - State the proposed read, write, dependency, and command scope before broad changes.
Pause for the developer if the target repository or allowed scope is unclear, existing changes overlap the migration, or destructive, networked, external, or broader actions require new authority.
Exit only when the scope, allowed writes, package manager, and candidate gates are recorded.
Stage 2: Assess usage, lifecycle risk, and coverage
Inventory installed RxJS versions and import forms, then locate Observable construction, custom producers, Subjects, subscription ownership, repeated subscriptions, retry/refresh/cache paths, schedulers and timing, test helpers, interop inputs, cancellation, teardown, and error handling. Include direct and transitive operator usage.
For each lifecycle-sensitive path, link exact source evidence and mark it as:
- covered by an existing baseline;
- requiring a characterization test;
- explicitly unsupported; or
- an uncovered risk the developer accepts.
Produce a risk and coverage report before proposing rewrites. Read references/assessment-and-contract.md for the inventory and characterization protocol.
Exit only when every in-scope lifecycle-sensitive use has one recorded coverage disposition. Missing coverage is not evidence that behavior is safe.
Stage 3: Establish the green RxJS 7 baseline
Run the agreed build, type, lint, unit, integration, and behavior checks against the un
Câu hỏi thường gặp
Skill có chỉ chạy codemod không?
Không. Skill cho biết một diff sạch hay một kiểm thử đạt không phải là bằng chứng việc chuyển đổi đã hoàn tất.
Có sửa kiểm thử để chúng đạt không?
Không. Skill yêu cầu không làm yếu hoặc xóa các kiểm thử hành vi chỉ để việc chuyển đổi qua được.
Nhà phát triển có còn tham gia không?
Có. Skill có các điểm tạm dừng rõ ràng để nhà phát triển rà soát các quyết định.
Chi tiết
Mô tả gốc của tác giả
Migrate an RxJS 7 application, library, or test suite to RxJS Next through an agent-led workflow that establishes a green behavioral baseline, makes Observable lifecycle choices explicit, uses @rxjs/migrate only for bounded fixture-proved rewrites, repairs without weakening evidence, and records a versioned migration contract. Use for repository assessment, migration planning or execution, lifecycle review, TestScheduler conversion, or migration closeout.
repo: ReactiveX/rxjs
Độ phổ biến
- Sao GitHub
- 32k
- Vị trí xếp hạng
- #9151
- Giấy phép
- Apache-2.0
- Cập nhật
- 8/8/2026
Bình luận
- …
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.