/trtc-ai-setup:trtc-chatfrom trtc-ai-setup
Handles Vue 3 Web full/direct chat (IM) integration for the TRTC product. Must be entered via the trtc dispatcher skill after product=chat routing. Manages phase state machine for credential collection, integration mode selection, and code generation.
Ships in trtc-ai-setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
trtc/SKILL.md 完成 §-1 prompt reporting 与路由后 Read 本文件active_flow=onboarding,slice 在 path references 内python3 -m tools.* 的 cwd 须为 skills/trtc 或 skills/trtc-chat(后者含 tools/ shim,委托到 trtc);禁止在用户项目根执行(避免项目自有 tools/ 抢占)08-state-config.md §8.1.3)13-reporting.md。体验数据只由 Root Dispatcher 与 Node Runtime 统一处理reporting.py prompt --input-stdin 处理;本 Skill 不重复调用入口命令,也不得把原文放进任何命令参数reporting.py send、send-query、send-docs-query,也不得构造 method=event 的路径节点记录。prompt --input-stdin,确定路由后调用一次 invoke;Hook/Host Stop 负责后续回合的本地暂存、提升和刷新。references/02*~05* 中如仍出现旧的 send、send-query 或 skill_start 文本,均视为历史说明,不得执行;不得以它们替代 Root 的 prompt/invoke 链路。invoke 在正常回答完成后提升;不得等待 SDKAppID、凭证或用户选择后才补报首条 Prompt。python3 -m tools.session read / write-batchpython3 -m tools.kb resolve <path> → Read 输出绝对路径(见 08-state-config.md §8.0;禁止 ../knowledge-base)。仅用于 knowledge-base 条目(chat/ slices/ docs/ 等);references/ flows/ 等 skill 自带文件直接 Read,禁止走 kb resolvepython3 -m tools.kb resolve chat/web/index.yaml证据缺失视为未执行。阻断码:BLOCKED: project_root_unresolved / session_not_initialized / phase_gate_not_satisfied / credential_missing / unsupported_platform / BLOCKED: dispatcher_bypass
未获用户输入前禁止默认 integration_mode(full/direct)或凭证。
❗ 本文件不是 dispatcher。仅允许在以下任一条件成立后进入:
| # | 条件 |
|---|---|
| 1 | 本轮已由 trtc/SKILL.md 路由至本文件(正常路径) |
| 2 | .trtc-session.yaml 存在且 product=chat 或 active_domain_skill=trtc-chat,且本轮 Agent 已先 Read ../trtc/SKILL.md 并完成其 §-1 |
若直接 Read 本文件(未经 Root):
../trtc/SKILL.md,从 §-1 重新走 session guard → 分类 → 路由IM 纯咨询(Path D):由 Root 路由至 docs/SKILL.md,不要在本文件 Step 0 偷跑 Path D。
flow_state.chat.phase 是唯一真相(.trtc-session.yaml,经 tools.session)。
| phase | 允许动作 |
|---|---|
detect | 探测 + session 初始化 + A.1 |
collect_credentials | 收集 SDKAppID / SecretKey |
collect_mode | Full / Direct |
scaffold | 脚手架 |
slices | 一轮一 slice |
done | 收尾;新功能→Path B;维护→Path C |
phase=done 时:加法 → Path B;减法/报错 → Path C。
status=active → 按 active_flow / flow_state.chat.phase 续接active_flow=onboarding 覆盖 detect…slicesstatus=completed → 承接 Path B/C/DBash python3 -m tools.kb resolve chat/web/path-d-signals.yaml → Read 输出路径,再对照用户句。
命中条件(知识咨询信号 且):
.trtc-session.yaml,或product=chat 且 flow_state.chat.phase=done / status=completed命中 → STOP 本集成流;应由 Root 已路由至 docs/SKILL.md。若尚未路由,Read ../trtc/SKILL.md §A 后进入 docs/SKILL.md。
❗ 路由至 docs/SKILL.md 后 不要再 Read path-d-signals.yaml(门禁已完成;后续见 docs/SKILL.md → 05-path-d-script.md D.1)。
READ references/01-detect-project.md + references/08-state-config.md → 找根 → 写 project_state.project_root
非 vue3 → BLOCKED: unsupported_platform
READ references/vue3.md(按需)。
cd "<当前 trtc skill 目录>"
# 无 session 时:
python3 -m tools.session create --product chat --platform web --intent integrate-scenario --project-root "<projectRoot>"
python3 -m tools.session write-batch --updates '{
"active_domain_skill": "trtc-chat",
"active_flow": "onboarding",
"project_state": {"project_root": "<projectRoot>"},
"flow_state": {"chat": {"phase": "detect", "chat_path": "A"}}
}' --expected-version <N>
已有 session → 保留 phase,仅更新必要字段。
| 优先级 | 条件 | 路径 |
|---|---|---|
| 0 | Step 0 知识咨询 | D(经 Root → docs/SKILL.md) |
| 1 | 减法/维护/报错 | C → READ flows/maintenance.md |
| 2 | phase=done + 有 tuikit 依赖 | B |
| 3 | 已依赖 tuikit-atomicx-vue3 | B |
| 4 | 新项目 / 未依赖 | A |
Path A/B:
python3 -m tools.flow enter --phase onboarding --product chat --platform web
然后 READ flows/onboarding.md → 02-path-a-script.md 或 03-path-b-script.md
禁止 enter --phase topic
Path C → READ references/04-path-c-script.md
Path D(集成流内不应到达)→ 若误达,Read docs/SKILL.md
reopen-add-feature(用 §8.5 write-batch)READ references/06-hard-rules.md + 06-a-defensive-coding.md
{projectRoot}/.trtc-session.yaml(唯一 session,经 tools.session){projectRoot}/WHAT-TO-DO-NEXT.md(A.4 交付物)skills/trtc-chat/.docs-query.yaml(Path D 正交态)本文件 §0/§1/0/1/2 > 路径脚本 > hard rules > 其他
见 references/10-references-index.md
flows/maintenance.md (opens in a new tab)flows/onboarding.md (opens in a new tab)references/01-detect-project.md (opens in a new tab)references/02-path-a-questions.md (opens in a new tab)references/02-path-a-scaffold-template.md (opens in a new tab)references/02-path-a-script.md (opens in a new tab)references/02-path-a-templates.md (opens in a new tab)references/03-path-b-script.md (opens in a new tab)references/04-path-c-script.md (opens in a new tab)references/04-uikit-redirect.md (opens in a new tab)references/05-path-d-script.md (opens in a new tab)references/05-slice-loading.md (opens in a new tab)references/06-a-defensive-coding.md (opens in a new tab)references/06-hard-rules.md (opens in a new tab)references/08-state-config.md (opens in a new tab)references/09-troubleshoot.md (opens in a new tab)references/10-references-index.md (opens in a new tab)references/11-what-to-do-next-template.md (opens in a new tab)references/12-page-composition.md (opens in a new tab)references/13-reporting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tencent-rtc/agent-skills --plugin trtc-ai-setup14 skills in this plugin
/trtcUse for TRTC/Tencent RTC requests to integrate, build, troubleshoot, compare, price, migrate, or query SDK/API/docs. Also trigger when the request omits “TRTC” but concerns audio/video, chat, calls, meetings, live, voice rooms, offline push, or AI. Route by product/platform/intent. Products: Chat/IM/TUIKit, Conference/TUIRoom/TUIRoomKit/RoomKit, Call/TUICallKit, Live/TUILiveKit, RTC Engine, TIMPush, and Conversational AI on Web/Android/iOS/HarmonyOS/Flutter/Electron. Signals: UserSig, REST API, Webhook, SDK names, errors 6206/6208/70001, or 接入、集成、搭建、音视频、视频会议、语音房、直播、 通话、群聊、实时翻译、口语陪练、AI客服、智能客服、对话式AI、离线推送、计费、套餐、错误码. TIMPush: 腾讯云 push/离线推送、registerPush、800006、APNs/FCM; route to trtc-push. SDK logs: /sdk-log、SDK 日志排障、客户端日志、日志分析、黑屏、无声、掉线; use manual log workflow.
/ai-oral-coach-skillBuild an AI English speaking coach powered by Tencent Cloud TRTC Conversational AI (voice-first).
Agent-driven — users never touch a terminal. Two paths:
Path A Quick Start — 3-screen SPA (scenario practice + sentence correction + reply suggestions + 4-dimension report)
Path B Integrate — backend inbound API + integration code, no UI generated
/trtc-ai-realtime-interpreterBuild real-time AI interpretation powered by Tencent Cloud TRTC Conversational AI (voice-first).
Designed for beginners — no coding experience required. Plain-language guidance throughout.
Two paths available:
Quick Start —— Ready-to-use Vue3 meeting room with real-time AI interpreter (for first-timers who want to see results fast)
Integrate into My System —— Add TRTC-based real-time interpretation backend capabilities to your existing project (no UI generated)
The Coding Agent drives the entire process in the chat window. Users never touch a terminal or run scripts manually.
/trtc-ai-customer-service-skillBuild AI customer service powered by Tencent Cloud TRTC Conversational AI (voice-first).
Designed for beginners — no coding experience required. Plain-language guidance throughout.
Two paths available:
Quick Start —— Ready-to-use voice agent UI + ticket dashboard (for first-timers who want to see results fast)
Integrate into My System —— Add TRTC Conversational AI backend capabilities to your existing project (no UI generated)
The Coding Agent drives the entire process in the chat window. Users never touch a terminal or run scripts manually.
/trtc-callGuides users through integrating TRTC Call (TUICallKit) into a Flutter app, a native iOS (Swift, CocoaPods) app, or a native Android (Kotlin / Java, Gradle) app — 1v1 audio/video call, group call, or embedding a call button into an existing IM chat page. Use when the user wants to add real-time calling to a Flutter, native iOS or native Android app — "接入通话", "1v1 音视频", "视频通话", "语音通话", "TUICallKit", "拨号", "呼叫", "来电", "客服外呼", "IM 聊天页加通话按钮", "integrate call", "add calling", "video call", "voice call", "ringing", "callkit".
/trtc-chat-androidAndroid Chat (IM) integration domain skill — enter ONLY via skills/trtc/SKILL.md after product=chat, platform=android routing. Not a standalone dispatcher entry. Handles Android View / Compose Chat UI integration, customization, troubleshooting, demo data creation, and capability boundary queries.
Other plugins' skills for the same job