v4-to-v5-migration

Installation
SKILL.md

TRTC Web SDK v4 → v5 Migration Skill

Overview

This skill automates the migration of TRTC Web SDK code from v4 (trtc-js-sdk) to v5 (trtc-sdk-v5). It analyzes the user's existing v4 codebase, identifies all v4 API patterns, and performs a systematic, safe migration following the official migration guide.

Architecture Change Summary

  • v4: Client + Stream separated model — TRTC.createClient() for signaling, TRTC.createStream() for media.
  • v5: Unified TRTC instance — TRTC.create() single instance handles everything.

Workflow

CRITICAL: Follow these steps IN ORDER. Do NOT skip steps.

Step 1: Scan — Discover v4 Code

Search the user's codebase to find all files containing v4 SDK patterns.

Related skills

More from tencent-rtc/tencent-rtc-skills

Installs
3
GitHub Stars
5
First Seen
Apr 29, 2026