build-mosaic-model

build-mosaic-model is a skill for Claude Code, Codex from mstr-sharma/strategy-automate. It costs 117 tokens per session (4,440 once invoked), scanned A, original, MIT.

A builder for Strategy Mosaic, MicroStrategy’s semantic data-modeling system, using tables in a live data warehouse. It creates the model’s connected data structure from database tables.

In plain words
What is it for?
Building a new Mosaic model from a database instance, schema, and tables, including authentication, table discovery, and model setup.
Why use it?
It provides a defined process for discovering warehouse tables and wiring them into a Mosaic model, while keeping unrelated Strategy features out of scope.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Building a new Mosaic model from a database instance, schema, and tables, including authentication, table discovery, and model setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mstr-sharma/strategy-automate/build-mosaic-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mstr-sharma/strategy-automate --skill build-mosaic-model
Clone the repo
git clone --depth 1 https://github.com/mstr-sharma/strategy-automate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-mosaic-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/build-mosaic-model/github.svg)](https://agentmods.dev/skills/mstr-sharma/strategy-automate/build-mosaic-model)
Your own site
<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/build-mosaic-model"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/build-mosaic-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-mosaic-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/build-mosaic-model"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/build-mosaic-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.04440
Opus 5.5 $0.00047 $0.01776
Sonnet 5.5 $0.00023 $0.00888
Haiku 4.5 $0.00012 $0.00444

Measured 1mo ago against content hash 447d6eda23c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-mosaic-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 19 executable files (scripts/build_mosaic.py, scripts/mosaic_apply.py, scripts/mosaic_build.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/build-mosaic-model/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build a Strategy Mosaic model from scratch

This skill is the execution layer for Mosaic data-model creation and modification. The planning layer is skills/strategy-data-modeling/SKILL.md — route through it first unless the user gave you a complete pre-planned build.

Scope

Owns the Modeling and datasource API areas (python3 skills/strategy-platform/scripts/strategy_api.py ops --tag build-mosaic-model): Data Models, Mosaic, Changesets, Workspaces (plus the internal Model Server, Open Semantic Layer and Data Server), the classic schema-object areas (Attributes, Facts, Metrics, Filters, Prompts, Custom Groups, Consolidations, Derived Elements, Transformations, Hierarchies, System Hierarchy, User Hierarchies, Tables, Schema, Base Formulas, Subtotals, Calendars, Drill Maps), Security Filters, and Datasource Management, Drivers and Gateways. Classic objects and datasource administration have their own sections below.

Out of scope for this skill — route to skills/strategy-automation/SKILL.md and memory/reference_strategy_surface_matrix.md:

  • Runtime analytics (reports, dashboards, documents, prompt answers, exports)
  • AI / Agent / Bot work
  • Non-Mosaic cube / dataset work (Intelligent Cube, OLAP cube, Super Cube, MTDI, Push Data)
  • Subscriptions, users, groups, roles, VLDB, object administration

Load these memory files on entry

Every one of these owns a piece of the build surface; this skill delegates the detail to them. Load before synthesizing any payload.

  • memory/reference_strategy_error_codes.md — grep this FIRST on any 4xx/5xx before looking anywhere else.
  • memory/reference_data_modeling_foundations.md — Kimball: grain, conformed dims, star/snowflake/galaxy/bridge topology, additivity classes.
  • memory/reference_mosaic_business_logic_translation.md — intent → build plan; the mandatory pre-build artifact.
  • memory/feedback_business_logic_pass_mandatory.md — non-optional rule.
  • memory/feedback_mosaic_relationship_wiring.md — conformed-dim recipe + the 8004ccdb / 8004ccc7 / 8004e409 failure modes + fix pattern.
  • memory/feedback_build_mosaic_session_leak.md — one session per pipeline (one process or MSTR_REUSE_SESSION=1); the session cap was the most common cause of mid-build failure.
  • memory/reference_mosaic_rest_api.md — verified endpoint paths (auth, datasources, catalog, data models, changesets, security, translations).
  • memory/reference_mosaic_modeling_concepts.md — payload shapes for attributes, metrics (compound / conditional / level / transformation), relationships, filters, transformations.
  • memory/reference_mosaic_publish_path.md — the one publish file: 3-step flow, do-not-fire-both rule, dataType publish-readiness gate (prevents iServerCode -2147212544 stalls).
  • memory/reference_mosaic_vs_legacy_surfaces.md — subtype 779 + extType 448 (Mosaic) vs other subtype 779 (data-import cube) vs 776 (classic cube) classification before any publish/refresh/execute write.
  • memory/reference_strategy_object_cloning.md — clone-and-remap procedure when a payload shape is unknown.
  • memory/feedback_mosaic_ship_bar.md — ship-bar checklist: naming, DESC-form report/browse displays, metric format tokens, description length cap, SF naming.

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +47 lines · +117 tokens per session 447d6eda23c6
  2. 3mo ago First seen · 176 lines · 0 tokens per session scan A 212dcc795f02

Subscribe to this mod's changes

build-mosaic-model is a skill published in the GitHub repository mstr-sharma/strategy-automate (4 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 4,440 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

build-mosaic-model compared with skills from other repositories

build-mosaic-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-mosaic-modelmstr-sharma/strategy-automateSkill41mo agoMITA117Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code