Cube agent skills run in your coding agent and operate Cube through the CLI. They are not Agent Skills in Cube, which your data team authors in the semantic model and runs from Analytics Chat.They are also separate from the Cube connector, which connects Claude directly to Cube for natural-language analytics.
Choose the right Cube integration
You can install the Cube connector and Cube agent skills together. The connector gives
Claude a direct path to governed analytics; the skills give your coding agent repeatable
operational workflows over the CLI.
Prerequisites
Install the Cube CLI. On Linux or macOS, run:CUBE_API_URL and CUBE_API_KEY instead. See
Cube CLI authentication for both methods.
Every skill checks that the CLI is installed, verifies authentication, and lists the
available Cube contexts before it acts, so you can confirm the target tenant.
Install
Claude Code
Run these commands inside Claude Code:Codex, GitHub Copilot, Gemini CLI, and other compatible agents
Install the skills from skills.sh:cube-js/cube-agent-skills.
Available skills
Use the skills
Skills activate automatically when a request matches their description. You can also name a skill explicitly:Connector or cube-run-query?
Use the Cube connector when you want Claude to answer a
natural-language data question directly in a conversation. Use cube-run-query when the
query is part of a broader coding-agent task—for example, validating a measure you just
changed, checking exact query output before saving a report, or combining query results
with repository work.
Both paths apply the authenticated user’s Cube permissions and security context. They are
complementary, so a Claude Code setup can use both.
Troubleshooting
- The agent says the Cube CLI is missing: Install it from the Cube CLI reference, then start a new agent session.
- Authentication fails: Run
cube whoami. If needed, sign in again withcube login --url https://TENANT.cubecloud.dev. - The request targets the wrong tenant: Run
cube context listand tell the agent which context to use. - A skill does not activate automatically: Name it in the request, for example,
Use cube-explore-model to find the revenue measure.