通过接口快速创建直播间

v1.0.3

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...

0· 171·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for elberren/cc-livestream-setup.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "通过接口快速创建直播间" (elberren/cc-livestream-setup) from ClawHub.
Skill page: https://clawhub.ai/elberren/cc-livestream-setup
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install cc-livestream-setup

ClawHub CLI

Package manager switcher

npx clawhub@latest install cc-livestream-setup
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk973gh1tzvefgft59t00hryk2183r72j
171downloads
0stars
4versions
Updated 1mo ago
v1.0.3
MIT-0

CC Live Setup Skill

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

When to Use This Skill

Use this skill when:

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

Security Requirements

⚠️ CRITICAL: Never Store Credentials

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

Interactive Workflow

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

Step 1: Collect Credentials (Ask the User)

Ask: "请提供您的 CC 账户 ID 和 API 密钥"

IMPORTANT: This step must be performed on EVERY execution. Never skip or use cached values.

Step 2: Collect Room Name (Ask the User)

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

Step 3: Collect Template Type (Ask the User)

Ask: "直播模板是什么?"

Provide options:

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

Step 4: Collect Mobile View Mode (Conditional)

If user selects template type 1, 2, 3, or 6, ask:

Ask: "默认为横屏观看方式,是否选择竖屏观看方式?"

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

Step 5: Create Room

Use the scripts/create_room.py script with:

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

Step 6: Return Result & Notice

Present to user:

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

Credentials

Get these from CC admin console:

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

Authentication

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

import hashlib
import time
import urllib.parse

def get_thqs(params, api_key):
    l = []
    for k in params:
        k_encoded = urllib.parse.quote_plus(str(k))
        v_encoded = urllib.parse.quote_plus(str(params[k]))
        l.append('%s=%s' % (k_encoded, v_encoded))
    l.sort()
    qs = '&'.join(l)

    qftime = 'time=%d' % int(time.time())
    salt = 'salt=%s' % api_key
    qf = qs + '&' + qftime + '&' + salt

    hash_value = hashlib.new('md5', qf.encode('utf-8')).hexdigest().upper()

    return qs + '&' + qftime + '&hash=' + hash_value

Create Live Room

API Endpoint

GET https://api.csslcloud.net/api/room/create

Parameters

  • userid, name, desc, templatetype, authtype, publisherpass, assistantpass, time, hash

Template Types

ValueDescription
1大屏模式
2问答、视频、聊天
3视频、聊天
4文档、视频、聊天
5视频、文档、问答、聊天
6视频、问答

Mobile View Mode

ValueDescriptionApplicable Templates
(default)横屏观看All
2竖屏观看1, 2, 3, 6

Default Settings

  • authtype: 2 (免密码登录)

Reference Files

  • references/api_docs.md: Full API documentation reference
  • scripts/create_room.py: Python script for room creation

Comments

Loading comments...