Install
openclaw skills install studio-agentClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Use this for ClickZetta Studio requests such as querying tasks, listing workspaces, checking projects, and creating or running ClickZetta jobs from a single JDBC secret configured in OpenClaw.
openclaw skills install studio-agentUse this skill when the user wants OpenClaw to work with ClickZetta Studio.
Typical triggers:
If the user asks any normal ClickZetta / Studio / Lakehouse business question and
the skill already has CZ_STUDIO_JDBC_URL, immediately run:
node {baseDir}/scripts/cz-agent-oneshot.mjs --input "<user_input>"
Rules:
列出 workspace / 切换 workspace 会使用短 TTL 的 workspace 列表缓存;刷新 workspace 列表 会强制刷新。Preferred ClawHub / OpenClaw UI flow:
CZ_STUDIO_JDBC_URLExample JDBC URL:
jdbc:clickzetta://<instance>.<api-host>/<workspace>?username=<username>&password=<password>
The skill parses this JDBC URL at runtime and extracts:
instanceName from the hostname prefixapiGateway from the JDBC hostusername and password from query paramsworkspace from the pathRuntime note: if this setup step is skipped, this skill should tell the user to open the Skills page and set CZ_STUDIO_JDBC_URL.
CZ_* env vars up front.CZ_STUDIO_JDBC_URL.scripts/cz-agent-oneshot.mjs once and return its result.CZ_AGENT_* values.ok=true, return content; if ok=false, return concise error and stopok=false, do not issue additional paraphrased or workaround requests to the Studio agent in the same turn.ok=true, treat Studio as connected and continue the user workflow; do not claim Studio is down.ok=falseerror.code == "PROTOCOL_ERROR"CZ_STUDIO_JDBC_URL or other missing Studio runtime connection infoerror.code == "REMOTE_ERROR", do not claim JDBC is missing or suggest reconfiguration. Report the remote error directly and keep the original error message.expected string or bytes-like object, got 'NoneType', explain that the request reached the remote ClickZetta agent but failed during remote processing.REMOTE_ERROR, do not suggest retrying with paraphrased prompts such as 执行 SQL: ..., 创建一个 SQL 任务 ..., or 运行刚才创建的任务.Mandatory one-shot command for normal requests:
node {baseDir}/scripts/cz-agent-oneshot.mjs --input "<user_input>"
Runner output is one JSON object:
{"ok":true,"content":"...","conversation_id":"...","request_id":"..."}{"ok":false,"error":{"code":"...","message":"..."}, ...}Minimal required input field for ClawHub users:
CZ_STUDIO_JDBC_URLAuto-discovery behavior:
jdbc:clickzetta://... from CZ_STUDIO_JDBC_URL~/.openclaw/clawdbot.jsonworkspace / workspaceId / projectId is configured, runtime uses that workspace first and ignores local switch stateNotes:
CZ_STUDIO_JDBC_URL.当前 workspace 是什么列出 workspace刷新 workspace 列表切换到 workspace <name|workspaceId|projectId>恢复默认 workspace--replace keeps config minimal and removes stale extra keys from previous setups.CZ_PROJECT_ID / CZ_WORKSPACE are now best-effort enrichments, not hard requirements.