SQLBot
by @xuwei-fit2cloud
Manage SQLBot workspaces, datasources, ask-data flows, and dashboards, including listing and switching workspace or datasource context, asking questions agai...
clawhub install sqlbootπ About This Skill
name: sqlbot-workspace-dashboard description: Manage SQLBot workspaces, datasources, ask-data flows, and dashboards, including listing and switching workspace or datasource context, asking questions against a datasource, listing dashboards, viewing dashboard details, and exporting dashboards as PNG or PDF. argument-hint: "[list-workspaces | switch-workspace
SQLBot Workspace Datasource Dashboard Skill
Use this skill when the user wants to operate SQLBot workspaces, datasources, ask-data flows, or dashboards from Claude Code / Agent Skills compatible tools.
This skill wraps the bundled script ${CLAUDE_SKILL_DIR}/sqlbot_skills.py.
Before you run it
1. Check whether ${CLAUDE_SKILL_DIR}/.env exists.
2. If it does not exist, tell the user to copy ${CLAUDE_SKILL_DIR}/.env.example to .env and fill in:
- SQLBOT_BASE_URL
- SQLBOT_API_KEY_ACCESS_KEY
- SQLBOT_API_KEY_SECRET_KEY
3. For export requests, if Playwright is missing, tell the user to install it with:
pip install playwright
playwright install chromium
Map the user request to one of these commands
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" workspace list
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" workspace switch ""
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" datasource list --workspace ""
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" datasource switch "" --workspace ""
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" ask "" --datasource "" --workspace ""
or continue an existing chat:
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" ask "" --chat-id 101
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard list --workspace ""
Optional flags:
--node-type folder--node-type leaf--flatpython3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard show "" --workspace ""
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard export "" --workspace "" --format png --output "./dashboard.png"
or
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard export "" --workspace "" --format pdf --output "./dashboard.pdf"
Execution rules
datasource switch updates the skill-local state file and ask uses that datasource by default when starting a new chat.