How this skill is triggered — by the user, by Claude, or both
Slash command
/polyv-skills:polyv-create-channelThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
创建一个新的保利威直播频道,返回频道 ID 和基本信息。
创建一个新的保利威直播频道,返回频道 ID 和基本信息。
| 参数 | 必填 | 类型 | 说明 | 默认值 |
|---|---|---|---|---|
| name | 是 | string | 频道名称,最大 100 字符 | - |
| scene | 否 | string | 直播场景:topclass(大班课), train(企业培训), alone(活动营销) | topclass |
| template | 否 | string | 直播模板:ppt(三分屏), alone(纯视频) | ppt |
示例 1:简单创建 用户:帮我创建一个直播频道叫"产品发布会"
示例 2:指定场景 用户:创建一个企业培训直播,名称是"新员工入职培训" 参数:name="新员工入职培训", scene="train"
示例 3:完整参数 用户:创建一个纯视频直播,名称是"年会直播",使用纯视频模板 参数:name="年会直播", scene="alone", template="alone"
node scripts/polyv.js create-channel --name "<频道名称>" [--scene <场景>] [--template <模板>]
成功响应:
✅ 频道创建成功!
频道 ID: 3151318
用户 ID: xxx
错误响应:
❌ [POLYV-CONFIG_MISSING] 缺少 appId 配置
提示:请设置 POLYV_APP_ID 环境变量,或创建配置文件 ~/.polyv-skills/config.json
| 错误码 | 说明 | 解决方案 |
|---|---|---|
| CONFIG_MISSING | 凭据未配置 | 设置环境变量或创建配置文件 |
| API_ERROR | API 调用失败 | 检查网络和凭据有效性 |
| NETWORK_ERROR | 网络错误 | 检查网络连接 |
| 400 | 请求参数错误 | 检查请求参数是否正确 |
| 401 | 签名验证失败 | 检查 appId 和 appSecret 是否正确 |
| 403 | 无权限访问 | 检查账号权限 |
| 429 | 请求过于频繁 | 请稍后重试 |
| 500 | 服务器内部错误 | 请稍后重试或联系技术支持 |
| 错误类型 | 说明 | 解决方案 |
|---|---|---|
| DNS 解析失败 | 无法解析 API 域名 | 检查网络连接或 DNS 配置 |
| 连接被拒绝 | 服务器无法连接 | 服务器无法连接,请稍后重试 |
| 请求超时 | 服务器响应超时 | 服务器响应超时,请稍后重试 |
当需要排查问题时,可以启用 Debug 模式获取详细的调试信息:
# 启用 Debug 模式
export POLYV_DEBUG=true
node scripts/polyv.js create-channel --name "测试频道"
Debug 模式会输出:
ab****yz 格式)安全说明: Debug 模式下 appSecret 会被脱敏处理,不会在日志中显示完整密钥。
当需要更多控制时(如设置讲师密码、延迟模式、连麦人数等),请参阅 高级参数指南。
常见高级场景:
--pureRtcEnabled Y--channelPasswd "abc123456"--linkMicLimit 8npx claudepluginhub terryso/polyv-skillsGuides building voice/video apps with Agora SDKs, including AI agents, calls, live streaming, screen sharing, messaging, recording, and CLI operations.
Builds MCP channel servers with Bun/Node/Deno to forward webhooks, alerts, and chat messages from external systems like CI or Discord into Claude Code sessions for event-driven coding.
Manages per-channel access governance for ClawCode's messaging plugin compatibility layer. Supports status, enable/disable modes (shadow/enforce), wizard, and audit commands.