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.
Check whether ${CLAUDE_SKILL_DIR}/.env exists.
If it does not exist, tell the user to copy ${CLAUDE_SKILL_DIR}/.env.example to .env and fill in:
SQLBOT_BASE_URLSQLBOT_API_KEY_ACCESS_KEYSQLBOT_API_KEY_SECRET_KEYFor export requests, if Playwright is missing, tell the user to install it with:
bash
pip install playwright
playwright install chromium
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" workspace list
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" workspace switch "<workspace>"
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" datasource list --workspace "<workspace>"
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" datasource switch "<datasource>" --workspace "<workspace>"
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" ask "<question>" --datasource "<datasource>" --workspace "<workspace>"
or continue an existing chat:
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" ask "<question>" --chat-id 101
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard list --workspace "<workspace>"
Optional flags:
--node-type folder
--node-type leaf
--flat
Show dashboard:
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard show "<dashboard-id>" --workspace "<workspace>"
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard export "<dashboard-id>" --workspace "<workspace>" --output "./dashboard.jpg"
or
bash
python3 "${CLAUDE_SKILL_DIR}/sqlbot_skills.py" dashboard export "<dashboard-id>" --workspace "<workspace>" --format pdf --output "./dashboard.pdf"
datasource switch updates the skill-local state file and ask uses that datasource by default when starting a new chat../<dashboard-id>.jpg unless another format is specified).