Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

cz-studoio-agentcz 工作室 Agent

Agent Skill

cz-studoio-agent 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,668

周安装

449

GitHub Stars

公开资料未说明

下载量

3,736
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cz-studoio-agent(cz 工作室 Agent)
来源仓库:https://github.com/luketalent/cz-studoio-agent
安装命令:
openclaw skills install cz-studoio-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cz-studoio-agent

简介

cz-studoio-agent 连接 OpenClaw 与远程 Studio Agent。

  • 通过 WebSocket 实现 JSONL 流式通信与控制。
  • 适合 ClickZetta Studio 集成或多轮对话管理需求。
  • 安装时需关注本地端口和网络暴露相关风险。
  • 建议核实远程服务的安全策略与认证机制。cz-studoio-agent 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
studio-agent
description
Bridge OpenClaw to a remote Studio Agent over WebSocket using a local JSONL proxy CLI (streaming, stop, multi-turn). Prefer this for ClickZetta Studio and Lakehouse task requests.
metadata
{ "openclaw": { "emoji": "🌉", "primaryEnv": "CZ_AGENT_TOKEN", "requires": { "anyBins": ["node"] } } }

Studio Agent Bridge

Use this skill when the user wants OpenClaw to talk to a remote Studio Agent through a local proxy process.

Typical triggers:

  • "帮我创建个 lakehouse 任务"
  • "用 Studio Agent 帮我 ..."
  • "在 ClickZetta 里执行/创建 ..."

Install then Configure (Required)

After installing this skill (local folder or ClawHub), run this once before first use:

cp skills/studio-agent/studio-agent.config.example.json studio-agent.config.json

Edit studio-agent.config.json with real values:

  • wsUrl (base host only, for example localhost:8000 or dev-api.clickzetta.com)
  • token
  • instanceId
  • instanceName
  • projectId
  • workspace

Validate (optional):

node skills/studio-agent/scripts/configure-skill.mjs validate --input studio-agent.config.json

Apply (required):

node skills/studio-agent/scripts/configure-skill.mjs apply --input studio-agent.config.json --replace --restart

Runtime note: if this setup step is skipped, this skill must return the same command block to the user instead of only listing missing CZ_* env vars.

What this skill provides

  • A local proxy script: scripts/cz-agent-proxy.mjs
  • A one-shot runner script: scripts/cz-agent-oneshot.mjs (recommended default)
  • Protocol bridge:

- stdin JSON line -> Studio InboundMessage - Studio OutboundMessage -> stdout JSON line (assistant_delta / assistant_final / error)

  • Behavior:

- startup-connect check - auto create-conversation bootstrap when conversation_id is omitted - serial request guard (no concurrent user_input) - stop-grace window - request timeout - reconnect attempts

Execution policy

  • Do not ask the user for CZ_* env vars up front.
  • Assume env is already wired via OpenClaw config (skills.entries["studio-agent"].env) unless runtime errors prove otherwise.
  • When runtime reports missing/invalid Studio config, return a copy-paste setup block:

- cp skills/studio-agent/studio-agent.config.example.json studio-agent.config.json - node skills/studio-agent/scripts/configure-skill.mjs validate --input studio-agent.config.json - node skills/studio-agent/scripts/configure-skill.mjs apply --input studio-agent.config.json --replace --restart

  • Default path for normal user requests: run scripts/cz-agent-oneshot.mjs once and return its result.
  • Only use raw scripts/cz-agent-proxy.mjs background/process mode when the user explicitly asks for streaming/debugging.
  • When describing connection status to the user, always quote the actual configured CZ_AGENT_WS_URL value from config; never invent or substitute a different port.
  • Do not rely on implicit tool-runtime env inheritance for this skill.
  • Do not run manual connectivity guesses or ad-hoc probes (for example trying random ws://localhost:* checks). The only connection source of truth is scripts/cz-agent-proxy.mjs.
  • Never use shell timeout command in this skill flow (macOS may not have it).
  • In normal flow, do not enter process action:list/poll/write loops.
  • For requests like "帮我创建个 lakehouse 任务", immediately:

1. run one-shot runner command 2. read runner JSON output 3. if ok=true, return content; if ok=false, return concise error and stop

  • If runner returns ok=true, treat Studio as connected and continue the user workflow; do not claim Studio is down.
  • Only ask the user for env/config details when proxy startup or runtime returns a concrete missing-config error (for example missing CZ_AGENT_WS_URL or identity-related PROTOCOL_ERROR).
  • If remote asks follow-up fields (task type, SQL details, etc.), relay those follow-up questions to the user as normal.
  • For user_input, the proxy auto-normalizes metadata to frontend-compatible shape:

- default metadata.source = "openclaw" when missing - default metadata.configs = [{"type":"text","value":"<user_input>"}] when missing

  • For interrupt_request, proxy auto-sends interrupt_decision by default (CZ_INTERRUPT_DECISION_MODE=auto_approve) so requests do not hang waiting for manual confirmation.
  • Proxy defaults to compact output for OpenClaw context safety:

- CZ_EMIT_ASSISTANT_DELTAS=false by default (only assistant_final / error are emitted) - when deltas are enabled, content is omitted from delta events to avoid repeated cumulative payloads

Mandatory one-shot command for normal requests:

node {baseDir}/scripts/cz-agent-oneshot.mjs --input "<user_input>"

Runner output is one JSON object:

  • success: {"ok":true,"content":"...","conversation_id":"...","request_id":"..."}
  • failure: {"ok":false,"error":{"code":"...","message":"..."}, ...}

Advanced proxy start template (debug/multi-turn only; fill values from skills.entries["studio-agent"].env):

cd {baseDir} && CZ_AGENT_WS_URL="..." CZ_USER_ID="..." CZ_TENANT_ID="..." CZ_INSTANCE_ID="..." CZ_SESSION_ID="..." CZ_AUTO_CREATE_CONVERSATION="..." CZ_CONVERSATION_TITLE="..." node scripts/cz-agent-proxy.mjs

Required env vars

Set these in the runtime where the proxy process runs:

  • CZ_AGENT_WS_URL (required): Studio WebSocket URL, e.g. local ws://127.0.0.1:8000/ws or remote wss://dev-api.clickzetta.com/ai?...
  • CZ_AGENT_TOKEN (optional): auth token (normally carried in CZ_AGENT_WS_URL query param)
  • CZ_USER_ID (optional): auto-derived from token when absent
  • CZ_TENANT_ID (optional): auto-derived from token when absent
  • CZ_INSTANCE_ID (required unless passed in each stdin identity)
  • CZ_SESSION_ID (optional, default openclaw-session)
  • CZ_CONVERSATION_ID (optional): default conversation id used when stdin line omits conversation_id
  • CZ_AUTO_CREATE_CONVERSATION (optional, default true): when no conversation_id is available, create a fresh conversation at startup
  • CZ_CONVERSATION_TITLE (optional, default OpenClaw Session): title for auto-created conversations

Optional tuning:

  • CZ_REQUEST_TIMEOUT_SECONDS (default 120)
  • CZ_STOP_GRACE_SECONDS (default 10)
  • CZ_STARTUP_CONNECT_TIMEOUT_SECONDS (default 10)
  • CZ_RECONNECT_MAX_ATTEMPTS (default 3)
  • CZ_ALWAYS_ALLOW_TOOLS (optional): comma-separated tool names injected as metadata.always_allow_tools when request metadata omits it
  • CZ_INTERRUPT_DECISION_MODE (optional): auto_approve (default) | auto_reject | off
  • CZ_EMIT_ASSISTANT_DELTAS (optional, default false): emit assistant_delta events when true

Optional identity enrichments (recommended for task/query permissions in some Studio deployments):

  • CZ_INSTANCE_NAME
  • CZ_PROJECT_ID
  • CZ_PROJECT_NAME
  • CZ_WORKSPACE
  • CZ_WORKSPACE_ID
  • CZ_USERNAME

Self-Managed Config

This skill includes a config manager script so users can configure all required values in one place.

Minimal required input fields for SaaS users:

  • wsUrl (base only, for example localhost:8000)
  • token
  • instanceId
  • instanceName
  • projectId
  • workspace

The script builds final CZ_AGENT_WS_URL automatically as:

  • when path missing: local host -> <wsUrl>/ws?..., remote host -> <wsUrl>/ai?...
  • when full URL path is provided (for example /ai), keep the path unchanged
  • always normalize query to include x-clickzetta-token=<token>&env=prod

Template:

node skills/studio-agent/scripts/configure-skill.mjs template > studio-agent.config.json

Validate:

node skills/studio-agent/scripts/configure-skill.mjs validate --input studio-agent.config.json

Apply to OpenClaw config and restart gateway:

node skills/studio-agent/scripts/configure-skill.mjs apply --input studio-agent.config.json --replace --restart

Notes:

  • Config is written only to skills.entries["studio-agent"].env.
  • Token is normalized into CZ_AGENT_WS_URL query param x-clickzetta-token.
  • env is fixed to prod in built websocket URL.
  • --replace keeps config minimal and removes stale extra keys from previous setups.
  • By default, CZ_AGENT_TOKEN is not persisted (OpenClaw may block token env overrides for skills).

Advanced: Start the proxy

Run in background only when you need manual streaming/debug behavior:

bash pty:true background:true command:"node {baseDir}/scripts/cz-agent-proxy.mjs"

Use process action:list to find the session id. If conversation_id is omitted, the proxy will use CZ_CONVERSATION_ID or an auto-created conversation.

Send one user turn

Send exactly one JSON object per line:

{
  "version": "v1",
  "op": "user_input",
  "request_id": "req-1",
  "identity": {
    "user_id": "u-1",
    "tenant_id": "t-1",
    "instance_id": "inst-1",
    "session_id": "sess-1"
  },
  "user_input": "Explain this function",
  "metadata": {
    "source": "openclaw",
    "configs": [{ "type": "text", "value": "Explain this function" }]
  }
}

Send with process action:write and append \ :

process action:write sessionId:<proxy-session-id> data:'{"version":"v1","op":"user_input","request_id":"req-1","identity":{"user_id":"u-1","tenant_id":"t-1","instance_id":"inst-1","session_id":"sess-1"},"user_input":"Explain this function","metadata":{"source":"openclaw","configs":[{"type":"text","value":"Explain this function"}]}}\
'

Stop current generation

process action:write sessionId:<proxy-session-id> data:'{"version":"v1","op":"stop","request_id":"req-stop-1","conversation_id":"conv-1","identity":{"user_id":"u-1","tenant_id":"t-1","instance_id":"inst-1","session_id":"sess-1"},"metadata":{"reason":"user_stop"}}\
'

How to interpret stdout events

Proxy emits JSON lines with:

  • event: assistant_delta | assistant_final | error
  • op_type: Studio op type passthrough
  • request_id, conversation_id
  • delta, content, complete, metadata, error

Default output mode in this skill is compact (CZ_EMIT_ASSISTANT_DELTAS=false), so in normal OpenClaw use you should expect final/error lines only.

Consumer rule:

  • Treat only op_type == "agent_message" as user-visible answer text.
  • End of one turn: event == "assistant_final" && complete == true for the same request_id.
  • error event includes structured code:

- PROTOCOL_ERROR - NETWORK_ERROR - REMOTE_ERROR - REMOTE_TIMEOUT

Operational notes

  • The proxy is intentionally serial in one process. Wait for assistant_final/error before next user_input.
  • If startup connection fails, the proxy writes one error event with request_id="startup" and exits non-zero.
  • If running in a sandboxed tool runtime, ensure required env vars are available in that runtime.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.45%
按下载量换算2,669

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills