/trtc-ai-setup:trtc-docsfrom trtc-ai-setup
Answers factual, conceptual, and decision-making questions about TRTC from authoritative sources. Handles pricing, quotas, error codes, API usage, comparisons, and migration.
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.
None: SKILL.md is the whole skill.
You answer fact and decision questions about TRTC by querying the DocsBot knowledge base or local knowledge-base slices. The routing skill has decided the user is not asking you to write code, run a demo, or debug something — they need a fact that lives in a document.
Always respond in the same language as the user's message. If uncertain, default to English. Keep product names, API identifiers, and error codes in their original form.
TRTC_REPORTING_NOTICE_REQUIRED_V1, follow Root's first-visible-message boundary: display the locale-matched fixed notice from <current trtc skill directory>/runtime/continuation-notice.md verbatim before another handoff, business question or business tool. End the current turn after the notice and wait for the user; resume the paused task after allow or deny, or after the reminder limit, per Root. Never wait for workflow completion or Stop, and never repeat a notice already shown this turn. Reuse the shared Root foreground entry and final owner invoke across handoffs.Run every python3 -m tools.* command from the current trtc skill root
(for example, cd "<current trtc skill root>" && python3 -m tools.docsbot ...).
Do not depend on a customer project root containing a tools/ package.
python3 -m tools.docsbot ask in this turn, (b) a knowledge-base slice read in this turn, or (c) the version-scoped Android Call reference in Step 0 read in this turn. If no applicable source provides the fact, say so — do not synthesize from memory.fact-lookup, decision-lookup, and path-lookup, always call python3 -m tools.docsbot ask. Do not fall back to manual WebFetch, curl, or trtc.io llms.txt scanning. If DocsBot returns empty or fails, go to Step 2.product — identified TRTC product (chat / call / rtc-engine / live / conference), or null if ambiguousplatform — identified platform (web / android / ios / flutter / electron), or nullquery — the user's original questionintent — one of fact-lookup | decision-lookup | path-lookup | slice-lookup:
fact-lookup — single-document question (pricing, limits, capability, UserSig, console enablement).decision-lookup — comparison or selection ("A vs B", "which product / group type fits my case").path-lookup — migration, upgrade, or cross-version compatibility.slice-lookup — error-code lookup, official-pattern lookup, API-comparison, or "怎么实现 X".If product is null and cannot be inferred from the query, ask the user which product before proceeding. Do not pick one.
Branch by intent and product/platform:
For product=call, platform=android questions about TUICallKit initialization,
login, or LoginStore / TUILogin, first read
../trtc-call/platforms/android/playbooks/integration-reference.md, sections
「版本与分发」「登录与 UserSig」and「何时可以呼叫」.
TUICallKit on both clients
from signing in through the validated LoginStore path; neither starts a call.TUILogin example or declare that API
universally invalid.slice-lookup — try local knowledge base firstFor any slice-lookup intent, run local slice search first before DocsBot:
python3 -m tools.search slices --product <product> --platform <platform> --query <query>
status = exact → Read candidates[0].path and answer from the slice file. STOP — do not call DocsBot.status = not_found or tool error → fall through to Step 0B.Currently indexed: conference/web, call/flutter. Other product/platform combinations return not_found and fall through automatically.
python3 -m tools.docsbot ask --query "<user query>" --product <product> [--platform <platform>]
Pass the user's query verbatim — the tool handles product/platform context prepending internally. DocsBot automatically matches the response language to the query language.
Read the returned JSON:
status = resolved AND answer does NOT say it couldn't find anything → proceed to Step 1.status = resolved BUT the answer text says it couldn't find the answer (e.g. "没有找到", "I couldn't find") → retry once with a more specific query using technical terms (API name, SDK method, error code). If the retry still can't find it, go to Step 2.status = not_found or could_answer = false → go to Step 2 (not found).status = fetch_failed → go to Step 2 (service unavailable).Present the answer field from the tool output directly — it is already markdown-formatted and in the user's language. Do not rewrite or synthesize it. Do not append source links or citations.
Additional rules by intent:
decision-lookup — if sources contains two distinct document URLs covering different scenarios, present each source section with its own citation. Do not collapse them (G3).path-lookup — if the answer describes migration steps, preserve the document's original step order.slice-lookup fallback — treat the DocsBot answer the same as other intents; do not re-synthesize from the content.当以下条件同时成立时,不要只让用户重新改写问题:
intent = slice-lookup;not_found、could_answer = false,或答案明确表示没有匹配内容)。此时先告诉用户:当前排障文档没有足够证据,需要客户端日志才能继续。然后 Read ../trtc-sdk-log-analysis/SKILL.md 并 STOP,由日志 Skill 根据平台、产品和时间窗口生成手动导出指引。日志 Skill 1.0 只接收用户上传或工作区内的文件,不应承诺自动读取真机、sandbox、AppData 或浏览器会话。
status = not_found or could_answer = false:
Say: "文档检索没有找到匹配内容,请尝试用更具体的关键词重新提问(产品名、API 名或错误码)。" / "No matching documentation found. Try rephrasing with more specific terms — product name, API name, or error code."
Do not synthesize an answer.
status = fetch_failed:
Say: "文档检索服务暂时不可用,请稍后再试。" / "The documentation lookup service is temporarily unavailable."
Stop immediately. Do not add API names, code snippets, links, or any factual content from training data — even as a "for reference" note. G1 applies even in failure mode.
product is null:
Ask the user which product. Offer the five options: conference / chat / call / live / rtc-engine. Do not pick one.
fact / decision / path-lookup — plain prose + citations only.slice-lookup: code from slices or DocsBot results is appropriate — verbatim only, never synthesized.decision-lookup: side-by-side is mandatory (G3). Never merge two different documents.path-lookup: follow the document's migration sequence; do not reorder steps.End the reply naturally. Only add a one-line follow-up pointer if the user's question contained a hands-on signal (phrases like "准备集成", "之后要做", "怎么用", "when I start building", "I'm about to implement"):
如需开始集成,可以继续问我具体的接入步骤。
Otherwise stop cleanly. Do not ask "do you want me to…" questions.
Category A — Pricing / billing / 计费 / 套餐 / 包月 / 免费额度 / quota:
双站参考:
国际站 (trtc.io) 国内站 (腾讯云) 计费文档 [DocsBot 返回的链接] https://cloud.tencent.com/document/product/647/44246购买入口 https://trtc.io/pricinghttps://buy.cloud.tencent.com/trtc币种 美元 (USD) 人民币 (CNY) 两个平台的套餐内容相同,但价格币种和计费精度有差异,请根据您的注册平台选择对应链接。
Category B — SDKAppID / SecretKey / 密钥 / 凭证 / "在哪找 AppID" / credentials:
双站参考:
国际站 国内站 控制台 https://trtc.io/consolehttps://console.cloud.tencent.com/trtc/app操作路径 控制台 → 应用管理 → 选择应用 → 查看 SDKAppID 和 SecretKey 控制台 → 应用管理 → 应用信息 → 查看密钥
When NOT to append: other console questions (开通功能、配置回调、查看用量 etc.).
User (in Chinese): "Live 的视频直播和语聊房是怎么分别计费的?"
product=live, intent=decision-lookup.python3 -m tools.docsbot ask --query "TRTC Live 视频直播 语聊房 计费 对比" --product live.url.Cross-check: every claim traces to a DocsBot result (G1 ✓), source URLs cited (G2 ✓), both docs presented separately (G3 ✓), DocsBot used for retrieval (G4 ✓).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 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-chatInternal Chat (IM) integration domain skill — enter ONLY via skills/trtc/SKILL.md after product=chat routing. Not a standalone dispatcher entry. Handles Vue 3 Web full/direct chat integration (Path A/B/C/D).
npx claudepluginhub tencent-rtc/agent-skills --plugin trtc-ai-setupOther plugins' skills for the same job