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 + Streamseparated model —TRTC.createClient()for signaling,TRTC.createStream()for media. - v5: Unified
TRTCinstance —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