← Explore all skills

DATA AND ANALYTICS / Cube

Cube build model

Cube's skill for authoring and changing a Cube semantic model in YAML on a dev-mode branch, through the Cube MCP tools or the Cube CLI, with validation, commit, and publishing only on an explicit request.

“Author and change a Cube semantic model — add or edit cubes, views, measures, dimensions, joins and pre-aggregations in YAML — on a dev-mode branch through the Cube MCP tools or the Cube CLI, then commit and build. …”

01 / THE REASONING

Why this made the selection.

  • Spells out the write loop for both paths: seven Cube MCP tool steps (startDataModelEdit, read, writeDataModelFile with its recompile and validationError, getDataModelChanges, searchDataModel and runQuery on the same branchName, commitDataModelChanges, then mergeToDefaultBranch only on an explicit publish request) and an eight-step CLI dev-mode block that ends with build-status --wait and exit-dev-mode.
  • Names the failures it guards against: writes rejected off a dev-mode branch, a dev branch of the deploy branch committing straight to production, a measure that compiles but is not exposed in a view (checked with `cube meta`), and `cube deploy` deleting remote files that are not in the local directory.
  • Cube Dev, Inc. publishes it as one of nine skills in cube-js/cube-agent-skills under Apache-2.0, next to a Claude plugin that bundles the hosted Cube MCP server at https://cubecloud.dev/mcp.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • skills/cube-build-model/SKILL.md
  • README.md
  • LICENSE
  • .mcp.json
  • .claude-plugin/plugin.json
  • .claude-plugin/marketplace.json
  • The git tree at 5e5ef13c, which holds nine skills/*/SKILL.md files

Our findings

  • SKILL.md opens with "Writes state." and says the API rejects file writes on any branch that is not a dev-mode branch.
  • Merging to the deploy branch appears in both paths and is reserved for an explicit publish request; `cube deploy` is documented as a separate workflow that replaces the project and deletes remote files absent locally unless --keep-missing.
  • .mcp.json declares one server, cube, of type http at https://cubecloud.dev/mcp.
  • The repository holds nine SKILL.md skills, and the README's only install lines install the whole plugin or the whole skill set.
  • LICENSE is the Apache License 2.0 text; its appendix copyright line is the unfilled template.

Not established by this review

  • Not executed: it was not installed or run.
  • No model was edited, validated, committed, merged or deployed, and no pre-aggregation was built.
  • The Cube CLI install script, the hosted MCP server and docs.cube.dev were not fetched or called.
  • The repository's evals/ prompts, mocks and graders were not read.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Add a skill to your workflow.

Upstream setup instructions ↗
  1. For Claude Code the README prints `/plugin marketplace add cube-js/cube-agent-skills` and `/plugin install cube@cube`. They install the cube plugin, which bundles the hosted Cube MCP server and all nine skills, not this skill alone; the README then says to run `/mcp`, select `plugin:cube:cube` and sign in to Cube.
  2. For Codex, Copilot, Gemini CLI and other skills.sh-compatible agents the README prints `npx skills add cube-js/cube-agent-skills`. It installs all nine SKILL.md skills under skills/ at this revision, not this skill alone, and the README says to add the MCP server separately or install the Cube CLI.
  3. The README's Cube CLI line is `curl -fsSL https://raw.githubusercontent.com/cube-js/cube/master/install-cli.sh | sh`, followed by `cube login` or `export CUBE_API_URL=... CUBE_API_KEY=...`. It pipes an unpinned script into a shell.

Before you start

  • The Cube MCP server (Cube plugin or Cube connector) or the Cube CLI, with network access to Cube Cloud
  • A Cube Cloud sign-in: OAuth for the MCP server, or cube login or CUBE_API_URL and CUBE_API_KEY for the CLI
  • A deployment and a feature branch to enter dev mode from

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. https://github.com/cube-js/cube-agent-skills/blob/5e5ef13c40f3bfc101d575b568b5c5a3447d6fcb/skills/cube-build-model/SKILL.md

    Supports: upstreamDescription, license, whySelected, bestFor, language, limitations[1], limitations[2], limitations[3], limitations[4], limitations[5], limitations[6], limitations[8], access.permissions, install.prerequisites, review.findings

  2. https://github.com/cube-js/cube-agent-skills/blob/5e5ef13c40f3bfc101d575b568b5c5a3447d6fcb/README.md

    Supports: compatibility, install, whySelected, limitations[1], limitations[2], limitations[7], access.permissions, review.findings

  3. https://github.com/cube-js/cube-agent-skills/blob/5e5ef13c40f3bfc101d575b568b5c5a3447d6fcb/LICENSE

    Supports: license, limitations[8], review.findings

  4. https://github.com/cube-js/cube-agent-skills/blob/5e5ef13c40f3bfc101d575b568b5c5a3447d6fcb/.mcp.json

    Supports: whySelected, access.permissions, review.findings

  5. https://github.com/cube-js/cube-agent-skills/blob/5e5ef13c40f3bfc101d575b568b5c5a3447d6fcb/.claude-plugin/plugin.json

    Supports: publisher, homepage, license, whySelected, limitations[8]

Evidence & Ask