← Back to Skills Marketplace
elberren

通过接口快速创建直播间

by ElberRen · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
176
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install cc-livestream-setup
Description
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...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cc-livestream-setup
  3. After installation, invoke the skill by name or use /cc-livestream-setup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug cc-livestream-setup
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is 通过接口快速创建直播间?

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... It is an AI Agent Skill for Claude Code / OpenClaw, with 176 downloads so far.

How do I install 通过接口快速创建直播间?

Run "/install cc-livestream-setup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 通过接口快速创建直播间 free?

Yes, 通过接口快速创建直播间 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 通过接口快速创建直播间 support?

通过接口快速创建直播间 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 通过接口快速创建直播间?

It is built and maintained by ElberRen (@elberren); the current version is v1.0.3.

💬 Comments