build-mosaic-model skill location and subcommands

build-mosaic-model skill location and subcommands is a skill for Claude Code, Codex from mstr-sharma/strategy-automate. It costs 25 tokens per session (2,499 once invoked), scanned A, original, MIT.

A reference for discovering and building semantic data models in MicroStrategy Mosaic from databases and configuration files.

In plain words
What is it for?
It helps list and inspect data sources, namespaces, tables, and API details, and explains the helper script's available discovery commands.
Why use it?
It reduces guesswork when inspecting database sources, schemas, tables, columns, and Mosaic model-building commands.

Skill for Claude CodeCodex

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

Good fit It helps list and inspect data sources, namespaces, tables, and API details, and explains the helper script's available discovery commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mstr-sharma/strategy-automate/reference_mosaic_build
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 reference_mosaic_build
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 skill location and subcommands

README.md
[![agentmods](https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/reference_mosaic_build/github.svg)](https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_build)
Your own site
<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_build"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/reference_mosaic_build/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 skill location and subcommands

Your own site · 80×15
<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_build"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/reference_mosaic_build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,499 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.00025 $0.02499
Opus 5.5 $0.00010 $0.01000
Sonnet 5.5 $0.00005 $0.00500
Haiku 4.5 $0.00003 $0.00250

Measured 1mo ago against content hash 71c0220dd6d4, 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 skill location and subcommands 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.

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.

memory/reference_mosaic_build_skill.md · 67 lines

How it starts

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

Skill: $REPO/skills/build-mosaic-model/SKILL.md Helper script: $REPO/skills/build-mosaic-model/scripts/build_mosaic.py

Invoke directly; reads tenant defaults from env and signs in through strategy_auth.py (--auth-method / MSTR_AUTH_METHOD: API token, user + password, cached browser session, or sso). Never pass --password or other secrets as flags, and do not hardcode credentials in memory or skill files.

Discovery subcommands (read-only):

  • auth-probe — confirm login + identity-token flow.
  • list-datasources [--name SUBSTR] — list DB instances, filter by name.
  • list-namespaces --instance NAME|--instance-id ID — schemas in a DB instance.
  • list-tables --instance-id ID --namespace SCHEMA [--match SUBSTR] — tables; uses base64({"ns":…}) for namespaceId under the hood.
  • describe-table --instance-id ID --namespace SCHEMA --table T — columns + types; uses base64({"tbn":…,"ns":…}) for tableId.
  • discover — probes every endpoint variant; useful when porting to a new MSTR version.
  • openapi-summary [--out /tmp/strategy-openapi.yaml] — fetches {base}/api/openapi.yaml, prints title/version/path counts, and selected modeling/data-source paths. Does not require login.
  • openapi-search PATTERN [--context N] — searches local openapi.yaml first, then live OpenAPI; use before coding new endpoint workflows.
  • api-call --method GET --path /api/projects — generic authenticated Strategy REST caller. Use --no-auth for public paths such as /api/openapi.yaml; use --with-identity-token only for Mosaic data-model Modeling writes; token response headers and token/password fields in the printed body are redacted (--show-secrets to print them; --out files keep them, 0600); only DELETE requires --yes — prefer strategy_api.py call, which validates against the spec and gates every write.
  • resolve-users --user NAME_OR_EMAIL / --file users.csv — resolve user IDs before ACL/security/user writes.
  • describe-tables --source instanceId:namespace:table ... — describe many warehouse tables in one sign-in (never loop describe-table).
  • kill-sessions [--project P] [--idle-minutes N] [--yes] — list your open Intelligence Server connections (user-connection monitor, all pages) and disconnect them with --yes; idle time keeps the UTC offset; --yes is refused when your login name can't be read; needs a monitoring privilege.
  • release-locks — release stuck Modeling Service changesets owned by you (owner checked with GET /api/model/schema/lock; this run's own changesets are never released; DELETE /api/model/schema/lock as the fallback).
  • search-objects --name NAME [--type N] [--subtype N] — Quick Search wrapper for object IDs.
  • get-model-object --kind attribute|fact_metric|legacy_attribute|... --model-id M --object-id O --show-expression-as tokens — read Mosaic-contained or classic schema object definitions.

Global flags (before the subcommand): --base, --project-id, --auth-method (auto, password, ldap, anonymous, api-token, sso, identity-token, oidc — see reference_strategy_authentication.md), --login-mode, borrowed-session --auth-token / --session-cookie / --ingress-cookie (env vars preferred — flags are visible in ps), -v. Requests time out after MSTR_HTTP_TIMEOUT (default 300 s read); an open changeset is discarded on any exit path.

Build subcommand:

  • build --name N --source "INSTANCE:SCHEMA:T1,T2,..." (repeatable, for multi-source) — the main one. Flags: --data-serve-mode {connect_live|in_memory|off_memory}, --dictionary, --erd, --conformance-map, --fk-map, --attr-cols, --metric-cols, --skip-relationships, --security-filter 'NAME=ATTR_ID[:FORM_ID]=VALUE|USER,USER', --grant 'trusteeId:rights[:user|user_group]', --deny 'trusteeId:rights[:user|user_group]', --replace-trustee, --translate 'objectId[:SubType]:locale[:field]=text', --certify, --publish. Post-build specs (security filters, grants, translations) are validated before the model is created; the summary always carries model_id; publish runs only when tables, attributes, metrics and relationships succeeded, and certify runs last, only on a clean build.
    • --conformance-map FILE: JSON/YAML {logical_name: [TABLE.COLUMN, ...]}; forces listed columns to collapse into one conformed attribute.
    • --fk-map FILE: JSON/YAML {child_table.child_col: parent_table.parent_col}; normalizes differently-named FKs so they conform.
  • build-from-schema-objects — translate classic attributes / facts / relationships into a new Mosaic model (reference_mosaic_schema_object_import.md). Creates the model inside its first changeset, one POST per object (--use-batch opts into the UI-internal batch endpoint), publishes through the verified flow, exits 1 on failures.
  • build-from-config --config spec.yaml — declarative JSON/YAML build; accepts dictionary, data_dictionary, erd, and erds paths (see reference_mosaic_config_schema.md).

Read the full file on GitHub · 67 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 · +10 lines 71c0220dd6d4
  2. 2mo ago Changed afea64122f97
  3. 2mo ago First seen · 57 lines · 25 tokens per session scan A f9143ef04472

Subscribe to this mod's changes

build-mosaic-model skill location and subcommands is a skill published in the GitHub repository mstr-sharma/strategy-automate (4 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 2,499 once invoked, about $0.0001 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-09-04.

Related

build-mosaic-model skill location and subcommands compared with skills from other repositories

build-mosaic-model skill location and subcommands next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-mosaic-model skill location and subcommandsmstr-sharma/strategy-automateSkill41mo agoMITA25Claude Code, Codex
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9kyesterdayApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6ktodayApache-2.0A65Claude Code, Codex