/trtc-ai-setup:ai-oral-coach-skillfrom trtc-ai-setup
Builds an AI English speaking coach using Tencent Cloud TRTC Conversational AI. Provides a Quick Start SPA with scenario practice, sentence correction, and reports, or a backend integration path.
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.
This file is the Coding Agent's execution SOP. Any intent involving "build / integrate AI oral coach" — read this file first. All script calls must follow §8 Tool Whitelist and use
$SKILL_ROOTabsolute paths.
| Variable | Meaning | Source |
|---|---|---|
SKILL_ROOT | This Skill's directory (contains SKILL.md / capabilities/ / scripts/) | Absolute path of the Base directory injected by the system when loaded |
PROJECT_ROOT | User's current workspace root (Path A artifacts land here / Path B integration target) | Current workspace root |
Hard rules: ① All script/asset commands use $SKILL_ROOT absolute paths — bare relative paths forbidden. ② Substitute $SKILL_ROOT / $PROJECT_ROOT in templates with real absolute paths before execution. ③ If SKILL_ROOT cannot be found, fallback: find "$PWD" -maxdepth 4 -name SKILL.md -path '*oral-coach*' — never ask the user to move directories.
Triggers hit when the user message matches §triggers keywords, or contains "TRTC + oral coach / English speaking practice". Not applicable: Customer service / after-sales → use ai-customer-service Skill; non-TRTC ecosystems (Agora etc.) → route to corresponding Skill. Product positioning: voice-first. Text-only requests → advise the user to configure themselves. This Skill does not produce text-only artifacts.
Determine interaction_lang from the message that triggered this Skill (Chinese → zh / otherwise → en). All guidance, questions, and error messages throughout use interaction_lang; switch immediately if the user requests it mid-session. Do not fix the interaction language based on what language this file is written in.
Path A UI defaults to following interaction_lang (practice conversations fixed in English); Path B has no UI — only dialogue / comments / docs language.
Copy style (hard rules): All user-facing guidance must be beginner-friendly —
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.context --question "<exact question>"; fixed choices still use the standard option UI.python3 -c "import sys; assert sys.version_info >= (3,9), sys.version" && echo OK || echo BAD_PY
test -f "$SKILL_ROOT/capabilities/conversation-core/manifest.yaml" && echo OK || echo MISSING
test -f "$SKILL_ROOT/capabilities/conversation-core/.env" && echo HAS_ENV || echo NO_ENV
BAD_PY → tell user to install Python ≥ 3.9 (https://www.python.org/downloads/). Do not proceed until satisfied.MISSING (2nd check) → re-locate SKILL_ROOT using the find fallback from §0 and retry.NO_ENV → proceed to §5 (it creates .env from .env.example); HAS_ENV → run cd "$SKILL_ROOT" && python3 scripts/verify-credentials.py --type all first (the file may have been copied but not filled in). All ok → previously configured, can reuse, skip §5 (unless user wants to reconfigure); any failure → §5 (already-valid entries need not be refilled).Architecture note (for the Agent): All capabilities in this Skill are shipped with the repo. The core
server.pyusestry_load_capabilityfor pre-wiring — directory present = auto-mounted. Therefore Path A does not need an assembly script — just configure keys and start directly.
Use ask_followup_question single-choice:
[{"id":"path","question":"How would you like to start?","options":[
"A Quick Start — See a full speaking coach right in your browser: conversation, correction, reports. Configure 3 keys, system auto-installs default capabilities, 2-3 minutes to see results",
"B Integrate into My System — Already have your own app and just need backend capabilities. Get API contracts + integration code, no UI generated; optionally connect your own knowledge base"
],"multiSelect":false}]
A → §6;B → §7. If ask_followup_question is not available, list both paths in natural language and collect the answer — never assume for the user.
This step needs maximum beginner-friendliness. Use the "three keys" metaphor, speak plainly, only ask the user to do one thing at a time. Write target file:
$SKILL_ROOT/capabilities/conversation-core/.env(start by copying from.env.example).
Opening (say to the user):
You need 3 keys to get your coach talking. I'll walk you through them one by one:
- TRTC App Credentials — the voice channel that lets the coach "speak";
- Tencent Cloud API Key — the "front desk" that issues temporary passes (voice runs on TRTC, credentials run on Tencent Cloud, accounts sync automatically — no separate registration);
- LLM Key — the coach's "brain" that understands you, corrects you, and generates reports.
For the keys: only the SDKAppID is collected in chat. The SDKSecretKey, SecretId / SecretKey and the LLM key / URL / model are typed into .env by the user. Never ask for a secret in chat; if the user pastes one anyway, do not repeat it — ask them to put it in .env.
⚠️ Link Usage Red Line (violation = defect): The console URLs below are full URLs with tracking parameters (
utm_campaign,_channel_track_key, …). When presenting these links to users, the Agent MUST copy-paste the full URL verbatim — do not simplify, truncate, or strip query parameters. These are marketing attribution entry points; simplifying the links causes tracking data loss.
Console links (VERBATIM):
| Purpose | Chinese users (show both, China site first) | English users (show only this) |
|---|---|---|
| Key 1 · TRTC (SDKAppID + SDKSecretKey) | 国内站:https://console.cloud.tencent.com/trtc/app?utm_campaign=skill&_channel_track_key=lDTHxeje 海外站:https://console.trtc.io?utm_campaign=Agent-skills-general&_channel_track_key=tR91l0wy | https://console.trtc.io?utm_campaign=Agent-skills-general&_channel_track_key=tR91l0wy |
| Key 2 · Tencent Cloud API | 国内站:https://console.cloud.tencent.com/cam/capi?utm_term=cam%E5%AF%86%E9%92%A5-%E5%9B%BD%E5%86%85&utm_campaign=skill&_channel_track_key=hTRQ0ctd 海外站:https://console.tencentcloud.com/cam/capi?utm_term=cam%E5%AF%86%E9%92%A5&utm_campaign=skill&_channel_track_key=zb44We6s | https://console.tencentcloud.com/cam/capi?utm_term=cam%E5%AF%86%E9%92%A5&utm_campaign=skill&_channel_track_key=zb44We6s |
Never show the 国内站 links to English users. Tell Chinese users to get Key 1 and Key 2 from the same site.
Step 0 · Prepare .env. Confirm .env is git-ignored if the project is a git repo (add it to .gitignore first if not), then:
cd "$SKILL_ROOT/capabilities/conversation-core" && (test -f .env || cp .env.example .env) && chmod 600 .env
Step 1 · Collect the SDKAppID (chat).
Short-circuit: If session already has root-collected sdkappid (non-zero int, from trtc/flows/collect-sdkappid.md), do not ask — just write it.
Otherwise say (link per the table above):
Key 1 — TRTC App Credentials, the voice channel that lets the coach "speak":
- Open <Key 1 link> and sign up / log in;
- Create an RTC Engine app (supports Conversational AI — this is the coach's voice capability);
- Inside the app, find the SDKAppID (a number) and send me only the SDKAppID.
After receiving it (or on short-circuit): check it is all digits, then edit only the TRTC_SDK_APP_ID= and TRTC_REGION= lines of .env (no secrets are in the file yet). TRTC_REGION is derived, never asked: SDKAppID starting with 14 or 16 → cn, any other valid SDKAppID → intl; keep an existing value the user set explicitly. On the non-short-circuit path, after the write call python3 "<当前 trtc skill 根目录>/tools/reporting.py" capture-sdkappid --input-stdin --ide <ide> with JSON stdin containing only the explicit SDKAppID, known product / framework / skillname, source:"domain-fallback", and cwd; never include any secret. Reporting failure must not block integration.
Step 2 · User fills in the rest of .env. Give the absolute path of $SKILL_ROOT/capabilities/conversation-core/.env and ask the user to replace the placeholders below, save, and reply "done" / "填好了":
| Field(s) | What it is |
|---|---|
TRTC_SDK_SECRET_KEY | Rest of Key 1, on the same app page (Server-side Integration). ⚠️ The server-side SDKSecretKey, not the client-side STSecretKey |
TENCENT_CLOUD_SECRET_ID · TENCENT_CLOUD_SECRET_KEY | Key 2 — the "front desk" that issues temporary passes. Link per the table above, same site as Key 1 |
LLM_API_KEY · LLM_API_URL · LLM_MODEL | Key 3 — the coach's "brain". Any OpenAI-compatible provider the user already has; all three from the same provider. For OpenAI the default URL / model can stay |
If the user asks where to get an LLM key, show this table (do not pick for them):
| Provider | Model Series | Get API Key |
|---|---|---|
| OpenAI | GPT series | https://platform.openai.com/api-keys |
| Anthropic | Claude series | https://console.anthropic.com/settings/keys |
| Google AI | Gemini series | https://aistudio.google.com/apikey |
| DeepSeek | DeepSeek series | https://platform.deepseek.com/api_keys |
| Together AI | Open-source model hosting | https://api.together.ai/settings/api-keys |
| Groq | High-performance inference | https://console.groq.com/keys |
| Cohere | Enterprise AI | https://dashboard.cohere.com/api-keys |
| Mistral AI | Mistral series | https://console.mistral.ai/api-keys |
Step 3 · Verify. After the user replies, run cd "$SKILL_ROOT" && python3 scripts/verify-credentials.py --type all. Parse stdout JSON: all ok:true → say in plain language "All three keys are good"; any ok:false → list every failing item with its error / message hint, ask the user to fix it in .env and reply again, then re-run.
Reports / corrections / suggestions reuse the same
LLM_*group by default (leaveREPORT_LLM_*empty in.envto fall back); only fill inREPORT_LLM_*if you want a cheaper evaluation model.
.env;verify-credentials.py reads .env itself;.env; no cat .env / echo $SECRET;.env is chmod 600 (done in Step 0).Default artifact: 3-screen SPA (Setup → Practice → Report), replicating the
ai-oral-coach/Demo. Capabilities shipped with repo + pre-wired — no assembly script needed. Agent drives the entire process, user only sees results.
First tell the user what will be automatically set up: scenario practice / sentence correction / reply suggestions / 4-dimension report (all default adapters + built-in question bank).
Built-in UX features (shipped in the SPA — the Agent should preserve these when recreating):
Auto reply = full-duplex (server auto-detects end of speech via TurnDetectionMode=0 + user can interrupt via InterruptMode=0; for advanced learners); Think first = push-to-talk tap-to-speak / tap-when-done flow using TurnDetectionMode=1+InterruptMode=1 and manual InvokeLLM (gives beginners time to think). Default Auto reply.Coach = after each turn with a mistake, a dismissible correction flashcard pops up (text only, no voice, does not interrupt the conversation); Buddy = only the inline ✱ marker next to the bubble. Default Coach.localStorage (coach-theme), applied before paint to avoid FOUC; first visit follows OS prefers-color-scheme.Listening/Tap to speak (Auto pace) or Tap to talk/I'm done (Think-first pace).i18n.js. Language is UI-only — the speaking practice is always English (STT fixed to en, English TTS voices). New UI strings must be added to all 5 language tables.UI design standards: no emoji, colors via CSS variables, 4px spacing grid, font
Inter/SF Pro. See$SKILL_ROOT/references/design-specs.md.
| Step | Action |
|---|---|
| 1 | §5 Three keys (if NO_ENV, first cp .env.example .env then configure); chmod 600 .env after |
| 2 | Verify: cd "$SKILL_ROOT" && python3 scripts/verify-credentials.py --type all (expect ok:true) |
| 3 | Deploy UI to standalone directory: mkdir -p "$PROJECT_ROOT/ai-oral-coach-demo" && cp -R "$SKILL_ROOT"/scenarios/speaking-coach/ui/. "$PROJECT_ROOT/ai-oral-coach-demo/" |
| 4 | Start: cd "$SKILL_ROOT" && WEB_DEMO_DIR="$PROJECT_ROOT/ai-oral-coach-demo" nohup bash start.sh > /tmp/coach-start.log 2>&1 & (first launch creates venv + installs deps, 30-60s) |
| 5 | Health check: sleep 10 && curl -sS http://localhost:8000/api/v1/health (if fails, sleep 25 retry / tail -80 /tmp/coach-start.log) |
| 6 | status:ok → output entry points (see below) |
Windows note (Agent):
start.shis bash-only. On Windows PowerShell, do the equivalent natively:python -m venv .venv; install with.venv\Scripts\python.exe -m pip install -r capabilities\conversation-core\requirements.txt; launch with$env:WEB_DEMO_DIR="<...>\ai-oral-coach-demo"; $env:PYTHONIOENCODING="utf-8"; .venv\Scripts\python.exe -m uvicorn src.server:app --host 0.0.0.0 --port 8000(run fromcapabilities\conversation-core). SetPYTHONIOENCODING=utf-8— the console is cp1252 and crashes on the scripts' Chinese output otherwise.
All set! Open in your browser:
· Oral Coach http://localhost:8000
· API Docs (Swagger) http://localhost:8000/docs
· Health Check http://localhost:8000/api/v1/health
Try it: pick a scenario (optionally set reply pace / conversation mode / dark mode in More settings) → Start → speak English → see live subtitles + correction flashcards → End → view 4-dimension report.
Key rule: After Path A is running, only output the plain text hint below — never proactively trigger
ask_followup_question. Wait for the user to express the corresponding intent before following §6.2 / §6.3 / §6.4 guidance. This avoids interrupting users who just finished setup and doesn't force them into configurations they don't need.
After Path A succeeds, output this fixed text (verbatim, interaction_lang=en version; adapt for zh):
Demo is up and running! It uses the built-in question bank and your LLM — you can start practicing right away.
If you want advanced configuration later, just tell me — no need to decide now:
1. Connect your own knowledge base
Replace Setup screen content with your own teaching materials (supports Dify / Coze / custom REST API).
→ Tell me "I want to connect my knowledge base"
2. Switch STT / LLM / TTS models
Change models and parameters — including checking which combinations TRTC supports.
→ Tell me "I want to switch model config"
3. Customize the frontend/backend for deeper integration
If you've connected an external KB or switched models and want the Setup screen UI to follow,
you'll need to adapt the frontend and backend — I'll give you detailed guidance then.
→ Tell me "I want to customize the frontend/backend"
Trigger intent: User says "connect my knowledge base" / "use my own teaching materials" / "connect Dify" / "connect Coze", etc.
After triggered, use ask_followup_question to confirm the type:
[{"id":"kb","question":"Which type of knowledge base are you using?","options":[
"Dify",
"Coze",
"My own REST search API"
],"multiSelect":false}]
After selection, guide per the table below. All are .env KB_* variable additions — no code changes needed:
| Type | Guidance Steps |
|---|---|
| Dify | 1) Create/select a knowledge base in Dify and upload your teaching materials; 2) Generate an API Key (Dataset-level or App-level both work); 3) Note the Dataset ID; 4) Append to .env: KB_ADAPTER=dify + KB_DIFY_API_URL (default https://api.dify.ai/v1, change to your own domain for self-hosted) + KB_DIFY_API_KEY + KB_DIFY_DATASET_ID; 5) Note: Dify datasets using "Economy" indexing mode (common on free/default tiers) degrade to keyword matching (the code auto-falls back — works but without semantic search quality); for semantic search, select "High Quality" indexing + configure an Embedding model when creating the dataset |
| Coze | 1) Create a knowledge base in Coze and upload materials; 2) Generate an API Key; 3) Note the knowledge base ID; 4) Append to .env: KB_ADAPTER=coze + KB_COZE_API_URL (default https://api.coze.cn) + KB_COZE_API_KEY + KB_COZE_DATASET_ID |
| Custom REST API | 1) Confirm your endpoint accepts POST {query, top_k} and returns {records:[{text,source,score}]}; 2) Append to .env: KB_ADAPTER=user_custom + KB_REST_BASE_URL + KB_REST_TOKEN (if auth required) |
After configuring, unified wrap-up steps for all three types:
cd "$SKILL_ROOT" && WEB_DEMO_DIR="$PROJECT_ROOT/ai-oral-coach-demo" nohup bash start.sh > /tmp/coach-start.log 2>&1 &curl -sS -X POST http://localhost:8000/api/v1/kb/retrieve -H 'Content-Type: application/json' -d '{"query":"travel scenario, beginner level English speaking practice topic","top_k":3}' — expect non-empty recordsTrigger intent: User says "switch model" / "change STT" / "change TTS" / "use a different LLM" / "what voice models does TRTC support" / "adjust speech rate", etc.
After triggered: Attempt to load the co-repo trtc-docs Skill to answer. The path is $SKILL_ROOT/../trtc-docs (relative to the repo root containing this Skill). Check existence with test -f "$SKILL_ROOT/../trtc-docs/SKILL.md".
Agent execution rule:
- If
$SKILL_ROOT/../trtc-docs/SKILL.mdexists → read it and follow its SOP to answer the user's STT/LLM/TTS questions.- If not → directly consult the TRTC Conversational AI official docs below and answer based on them. Do not mention any internal paths or repo information.
Documentation entry points (specific values subject to docs):
| Config Type | Official Doc Link |
|---|---|
| STT (Speech-to-Text) params | https://trtc.io/document/69592?product=conversationalai |
| LLM (Language Model) params | https://trtc.io/document/68338?product=conversationalai |
| TTS (Text-to-Speech) params | https://trtc.io/document/68340?product=conversationalai |
If the user's question involves specific model provider params (e.g., OpenAI, DeepSeek, Minimax, etc.), further consult the provider-specific sub-documentation based on the above overview page.
Config reference (for the Agent to proactively inform the user; specific values subject to docs):
| Config Layer | .env Variable | Description |
|---|---|---|
| Main LLM | LLM_API_KEY / LLM_API_URL / LLM_MODEL | Real-time conversation brain, OpenAI-compatible protocol |
| Report/Correction LLM | REPORT_LLM_API_KEY / REPORT_LLM_API_URL / REPORT_LLM_MODEL | Leave empty to reuse the main LLM; can swap to a cheaper evaluation model |
| STT language | STT_LANGUAGE | e.g. en-US; oral coach is English-fixed by default |
| TTS voice | TTS_VOICE_ID | TRTC-supported VoiceId; check docs for values |
| TTS speed | TTS_SPEED | Float, 0.5–2.0; configured per level in LevelParams (beginner / intermediate / advanced) |
| VAD sensitivity | VAD_LEVEL | 0–5, 2 is recommended; too high filters English words as noise |
Security: All parameter values live only in .env — no CLI plaintext pass-through. Secrets (*_API_KEY) are filled in by the user; the Agent may write non-secret values (URL, model, voice, speed) (see §5.1).
Trigger intent: User says "customize frontend/backend" / "Setup screen follows KB" / "make UI dynamic" / "how to modify frontend", etc.
After triggered, inform the user of the following key points (don't modify code directly unless the user explicitly asks):
The current Demo Setup screen has two layers of data:
- Top-level scenario cards (Travel/Work/Daily/Free — title, description, role display): hardcoded in the frontend
i18n.js, not affected by external KB. This layer is a brand/product fixed frame — usually doesn't need changes.- Specific scenario candidates (AI opening, topics, role-playing): already behind the backend
GetSceneCandidatesendpoint. With KB configured, the backend automatically uses KB content, but it's currently fetched only when the user clicks "Start" — the Setup screen does not display specific candidate content — this is the root cause of "not seeing changes."
No frontend/backend changes needed — the KB is already active: after entering the conversation, the AI's first sentence (Opening) is already from KB content. Let the user confirm this first, then decide whether they need Setup screen pre-display.
Frontend changes needed, backend is nearly unchanged. Change directions and pitfalls:
GetSceneCandidates(scenario, level) from "click Start" to "user switches scenario/level on Setup screen". Async fetch and cache to state.pickedCandidate.state.pickedCandidate, don't re-randomize, otherwise "previewed Role A, actually entered Role B".scenario_source.py already handles degradation, frontend only needs nil-checks.Expressions field to the contract format in scenario_source.py, and have the frontend prioritize KB-sourced values when rendering recommendedExpressions.This path has a large blast radius (backend SCENARIOS enum, env.yaml ScenarioPrompts, SystemPrompt assembly all need refactoring), and Dify/Coze APIs have no "list all categories" semantic support — cost far outweighs benefit. Unless there's a clear product requirement, do not go this route.
1. Switch scenario/level → wait 1-2s → check if Setup screen detail area role name/topic changes
2. Click Start → AI's first sentence (Opening) matches Setup screen displayed content
3. Disable KB (KB_ADAPTER=none) → Setup screen reverts to built-in bank → compare differences between the two cases
Path A Don'ts: Bare relative paths to call scripts; pass keys via CLI; modify capabilities/*/src/core/; git commit (unless user requests).
Positioning: Integrate oral coach backend capabilities into the user's existing project (
PROJECT_ROOT). No UI generated, but full API integration code is generated — so users can immediately call all coach APIs from their own frontend/backend.
verify-credentials.py --type all.ask_followup_question multi-select): scenario-roleplay / quick-correct / reply-suggestion / ability-report / custom-learning-kb (connect your own knowledge base). Capabilities are shipped with the repo; selection determines "which contracts to deliver + whether KB is configured".cd "$SKILL_ROOT" && WEB_DEMO_DIR="" nohup bash start.sh > /tmp/coach-start.log 2>&1 & (no WEB_DEMO_DIR → no UI mounted). Verify: /api/v1/health status:ok + POST /api/v1/agent/start returns TaskId.cd "$SKILL_ROOT" && python3 scripts/add-capability.py --target-project "$PROJECT_ROOT" (writes INTEGRATION_SPEAKING_COACH.md)cd "$SKILL_ROOT" && python3 scripts/add-capability.py --target-project "$PROJECT_ROOT" --apply --tech-stack <web|python|auto>
auto: auto-detect project tech stack (package.json → web, requirements.txt → python)web: generates oral-coach-client.js — headless JS client wrapping all APIs + TRTC callbackspython: generates coach_client.py — Python client wrapper with full API coveragegeneric-integration.md (L3 generic guide)KB_ADAPTER=dify|coze|user_custom + corresponding KB_* in .env; verify POST /api/v1/kb/retrieve. Note: KB is the only outbound — only interface specs + sample code are provided (auto_adapters/integration_templates/custom-learning-kb-sample.md), no adapter code generated (UserCustomKBClient is already built into clients.py)./api/v1/config /agent/start|stop|farewell|invoke /scene/generate /correct /suggest /report./api/v1/kb/retrieve → Dify/Coze/your REST.The oral coach is almost entirely inbound (self-contained coach API); this is the biggest difference from AI customer service — which is mostly outbound (connecting to ticketing / KB).
Coach capability "adaptation" = swap evaluator / prompt, never touch core: change LLM_* / REPORT_LLM_* in .env, override prompts in each capability's src/adapters/default.py, or add src/adapters/user_custom.py and set <XX>_ADAPTER=user_custom. See references/evaluator-port.md for details.
Path B Don'ts: Generate any UI (do not set WEB_DEMO_DIR); bare relative paths; replace mocks with real systems on behalf of the user (only give specs + adapters); modify */src/core/.
| Command | Purpose |
|---|---|
python3 -c "import sys; assert sys.version_info>=(3,9)" | Prerequisite check |
test -f "$SKILL_ROOT/<path>" && echo OK || echo MISSING | File existence check |
cp "$SKILL_ROOT"/capabilities/conversation-core/.env.example "$SKILL_ROOT"/capabilities/conversation-core/.env | Initialize .env |
cd "$SKILL_ROOT" && python3 scripts/verify-credentials.py --type <trtc|tencent|llm|all> | Key verification |
cd "$SKILL_ROOT" && python3 scripts/add-capability.py [--list|--contract|--target-project DIR] [--apply] [--tech-stack web|python|auto] [--json] | Capability list/contract + integration code generation (Path B) |
cp -R "$SKILL_ROOT"/scenarios/speaking-coach/ui/. "$PROJECT_ROOT"/ai-oral-coach-demo/ | Deploy UI (Path A) |
cd "$SKILL_ROOT" && WEB_DEMO_DIR=... nohup bash start.sh [--port N] [--https] > /tmp/coach-start.log 2>&1 & | Launch |
sleep N && curl -sS http://localhost:8000/api/v1/health | Health check |
curl -sS -X POST http://localhost:8000/api/v1/kb/retrieve -H 'Content-Type: application/json' -d '{"query":"...","top_k":3}' | Verify custom-learning-kb retrieval (Path A §6.2 / Path B §7.5) |
tail -80 /tmp/coach-start.log / lsof -ti :8000 -sTCP:LISTEN | Troubleshooting / port check |
chmod 600 "$SKILL_ROOT/capabilities/conversation-core/.env" | Tighten permissions |
Forbidden: Plaintext keys as CLI arguments; cat .env / echo $SECRET; git commit/push (unless user requests); bare relative paths to call scripts.
write_to_file limited to: .env (keys), /tmp/*, integration files in user's project, user_custom.py; other file writes require user confirmation. Never hand-edit */src/core/.
| Symptom | Solution |
|---|---|
| Can't find assets / scripts won't run | cwd is not SKILL_ROOT; use absolute paths per §0 and rerun |
| Key verification failed | Follow the error back to §5 to re-verify that key (for TRTC: check SDKSecretKey vs STSecretKey) |
| Port 8000 occupied | --port N or lsof -ti :8000 then kill with user consent |
| Startup errors | tail -80 /tmp/coach-start.log check pip / port |
| No audio on non-localhost | WebRTC requires HTTPS: bash start.sh --https |
| Report keeps spinning | Check LLM config / timeout; JSON parse failures fall back to skeleton (at minimum has summary) |
| Corrections / suggestions not appearing | Determined "no errors" / failed silently — expected behavior, does not block main flow |
Final Reminders for the Agent: ① §0 path baseline first — always absolute paths, never ask user to move directories. ② At each step, call tools to get facts first, then explain to user — don't answer from memory. ③ Tool failures → give stderr summary to user, don't hide errors. ④ Path A needs no assembly script (capabilities pre-wired) — configure keys → deploy UI → start.sh → health check → give entry → §6.1 advanced hints. ⑤ Path B never generates UI (no
WEB_DEMO_DIR) — verify core e2e + deliver inbound contract +--applyto generate integration code (no UI involved) + configure custom-learning-kb as needed. ⑥ custom-learning-kb works in both Path A and Path B; not connecting it does not affect any default experience. ⑦ Strictly follow §5.1 security red lines and §8 whitelist. ⑧ The Root/Host reporting boundary handles the Prompt before each user turn; do not add per-action reporting commands.
README.ja.md (opens in a new tab)README.md (opens in a new tab)README.zh-CN.md (opens in a new tab)auto_adapters/integration_templates/custom-learning-kb-sample.md (opens in a new tab)auto_adapters/integration_templates/generic-integration.md (opens in a new tab)auto_adapters/manifest.yaml (opens in a new tab)auto_adapters/python/README.md (opens in a new tab)auto_adapters/python/coach_client.py.tpl (opens in a new tab)auto_adapters/web/README.md (opens in a new tab)auto_adapters/web/oral-coach-client.js.tpl (opens in a new tab)capabilities/ability-report/manifest.yaml (opens in a new tab)capabilities/ability-report/src/__init__.py (opens in a new tab)capabilities/ability-report/src/adapters/__init__.py (opens in a new tab)capabilities/ability-report/src/adapters/default.py (opens in a new tab)capabilities/ability-report/src/handler.py (opens in a new tab)capabilities/ability-report/src/router.py (opens in a new tab)capabilities/conversation-core/manifest.yaml (opens in a new tab)capabilities/conversation-core/requirements.txt (opens in a new tab)capabilities/conversation-core/src/TLSSigAPIv2.py (opens in a new tab)capabilities/conversation-core/src/__init__.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-coach, english-speaking, trtc, voice-first, tencent-cloud
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.
/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.
npx claudepluginhub tencent-rtc/agent-skills --plugin trtc-ai-setupOther plugins' skills for the same job