← 返回 Skills 市场
elberren

通过接口快速创建直播间

作者 ElberRen · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
176
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install cc-livestream-setup
功能描述
This skill should be used when the user needs to create or configure a CC live streaming room via API, including room creation, authentication setup, and cre...
使用说明 (SKILL.md)

\r \r

CC Live Setup Skill\r

\r This skill provides workflows for creating and configuring CC live streaming rooms through the HTTP API.\r \r

When to Use This Skill\r

\r Use this skill when:\r

  • User wants to create a new live streaming room on CC platform\r
  • User needs to configure authentication for a live room\r
  • User wants to manage CC API credentials\r \r

Security Requirements\r

\r ⚠️ CRITICAL: Never Store Credentials\r \r

  • userid and api_key are highly sensitive credentials\r
  • They MUST be requested from the user on EVERY execution\r
  • DO NOT store, cache, or save these credentials to any storage (files, memory, session, etc.)\r
  • DO NOT skip credential collection even if the user claims to have provided them before\r
  • If the skill framework attempts to auto-fill or cache these values, ignore them and ask again\r
  • After the operation is complete, ensure these credentials are not persisted anywhere\r \r

Interactive Workflow\r

\r This skill works through conversation. Follow these steps in order:\r \r

Step 1: Collect Credentials (Ask the User)\r

\r Ask: "请提供您的 CC 账户 ID 和 API 密钥"\r \r IMPORTANT: This step must be performed on EVERY execution. Never skip or use cached values.\r \r

Step 2: Collect Room Name (Ask the User)\r

\r Ask: "直播间名称是什么?" (max 40 characters)\r \r

Step 3: Collect Template Type (Ask the User)\r

\r Ask: "直播模板是什么?"\r \r Provide options:\r

  • 1 - 大屏模式\r
  • 2 - 问答、视频、聊天\r
  • 3 - 视频、聊天\r
  • 4 - 文档、视频、聊天\r
  • 5 - 视频、文档、问答、聊天\r
  • 6 - 视频、问答\r \r

Step 4: Collect Mobile View Mode (Conditional)\r

\r If user selects template type 1, 2, 3, or 6, ask:\r \r Ask: "默认为横屏观看方式,是否选择竖屏观看方式?"\r \r

  • If user selects Yes: Set parameter mobileViewMode = 2\r
  • If user selects No: Use default value (no parameter needed)\r \r

Step 5: Create Room\r

\r Use the scripts/create_room.py script with:\r

  • userid\r
  • api_key\r
  • name\r
  • templatetype (1-6)\r
  • mobileViewMode (only if selected in Step 4)\r \r

Step 6: Return Result & Notice\r

\r Present to user:\r

  • Room ID\r
  • Whether creation was successful\r
  • Notice: "本直播间默认设置为免密码登录。如需调整登录方式,请登录云直播控制台设置。"\r \r

Credentials\r

\r Get these from CC admin console:\r

  • Account ID (userid): Your CC account ID\r
  • API Key: Secret key for THQS signature generation\r \r

Authentication\r

\r All CC API requests require THQS (Time-based Hash Query String) signature authentication using MD5:\r \r

import hashlib\r
import time\r
import urllib.parse\r
\r
def get_thqs(params, api_key):\r
    l = []\r
    for k in params:\r
        k_encoded = urllib.parse.quote_plus(str(k))\r
        v_encoded = urllib.parse.quote_plus(str(params[k]))\r
        l.append('%s=%s' % (k_encoded, v_encoded))\r
    l.sort()\r
    qs = '&'.join(l)\r
\r
    qftime = 'time=%d' % int(time.time())\r
    salt = 'salt=%s' % api_key\r
    qf = qs + '&' + qftime + '&' + salt\r
\r
    hash_value = hashlib.new('md5', qf.encode('utf-8')).hexdigest().upper()\r
\r
    return qs + '&' + qftime + '&hash=' + hash_value\r
```\r
\r
## Create Live Room\r
\r
### API Endpoint\r
```\r
GET https://api.csslcloud.net/api/room/create\r
```\r
\r
### Parameters\r
- userid, name, desc, templatetype, authtype, publisherpass, assistantpass, time, hash\r
\r
### Template Types\r
| Value | Description |\r
|-------|-------------|\r
| 1 | 大屏模式 |\r
| 2 | 问答、视频、聊天 |\r
| 3 | 视频、聊天 |\r
| 4 | 文档、视频、聊天 |\r
| 5 | 视频、文档、问答、聊天 |\r
| 6 | 视频、问答 |\r
\r
### Mobile View Mode\r
| Value | Description | Applicable Templates |\r
|-------|-------------|----------------------|\r
| (default) | 横屏观看 | All |\r
| 2 | 竖屏观看 | 1, 2, 3, 6 |\r
\r
### Default Settings\r
- authtype: 2 (免密码登录)\r
\r
## Reference Files\r
\r
- `references/api_docs.md`: Full API documentation reference\r
- `scripts/create_room.py`: Python script for room creation\r
安全使用建议
This skill appears to do what it says: it asks you for your CC account ID and API key and uses them to call CC's room-create API. Before installing or using it: (1) Do not paste credentials into public or persistent chat—follow the SKILL.md instruction to provide them each run and avoid storing them. (2) Be aware the bundled script prints the request URL and response to stdout; those outputs may be captured in agent logs or conversation history, so avoid sharing logs that contain response details. (3) Consider changing the default passwords (publisherpass/assistantpass) and review the room's auth settings after creation (authtype=2 = passwordless by default). (4) If you need the agent to avoid logging entirely, confirm how your agent runtime handles stdout and conversation history. Overall the skill is internally consistent, but practice safe handling of the sensitive credentials it asks for.
功能分析
Type: OpenClaw Skill Name: cc-livestream-setup Version: 1.0.3 The skill provides a legitimate interface for creating and configuring CC Live streaming rooms using the official BokeCC API (api.csslcloud.net). The SKILL.md file contains strong defensive instructions to ensure sensitive credentials (userid and api_key) are never cached or stored, and the scripts/create_room.py script correctly implements the required THQS signature authentication without exposing the raw API key in the request URL or logs.
能力评估
Purpose & Capability
Name/description, SKILL.md, the Python script, and reference docs all describe creating CC live streaming rooms via the CC API (https://api.csslcloud.net). No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md limits behaviour tightly (explicit conversational steps and mandatory credential prompting). It also instructs never to persist credentials — a conservative rule. One operational note: the included script prints the request URL and response to stdout, which could expose metadata in agent logs; SKILL.md does not explicitly tell the agent to avoid logging those outputs.
Install Mechanism
No install spec or downloads. The skill is instruction-only with a bundled Python script; nothing is pulled from external/untrusted URLs during install.
Credentials
The skill asks the user for CC account userid and api_key at runtime and declares no environment variables or other secrets — this is proportionate. Considerations: the script hardcodes 'publisherpass' and 'assistantpass' to '123456' and uses authtype=2 (passwordless default), which are weak defaults the user should review.
Persistence & Privilege
always is false and the skill includes no code that writes persistent agent configuration. It does not request elevated platform privileges or modify other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cc-livestream-setup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cc-livestream-setup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Enforced a strict security requirement to always request CC account credentials from the user on every use; never store, cache, or reuse credentials. - Expanded and updated template type options to include six modes, matching CC documentation. - Added a conditional step to support a "mobile view mode" (竖屏观看) for select templates based on user choice. - Enhanced workflow instructions for collecting inputs and handling parameters.
v1.0.2
- Removed file: _meta.json - No changes to workflow or user-facing documentation - Skill behavior remains unchanged
v1.0.1
- update slug and displayname
v1.0.0
first version
元数据
Slug cc-livestream-setup
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

通过接口快速创建直播间 是什么?

This skill should be used when the user needs to create or configure a CC live streaming room via API, including room creation, authentication setup, and cre... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 176 次。

如何安装 通过接口快速创建直播间?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cc-livestream-setup」即可一键安装,无需额外配置。

通过接口快速创建直播间 是免费的吗?

是的,通过接口快速创建直播间 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

通过接口快速创建直播间 支持哪些平台?

通过接口快速创建直播间 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 通过接口快速创建直播间?

由 ElberRen(@elberren)开发并维护,当前版本 v1.0.3。

💬 留言讨论