Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mstr-sharma/strategy-automatenpx agentmods add skills/mstr-sharma/strategy-automate/reference_mosaic_preflightWrote 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.
[](https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_preflight)<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_preflight"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/reference_mosaic_preflight/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.
<a href="https://agentmods.dev/skills/mstr-sharma/strategy-automate/reference_mosaic_preflight"><img src="https://agentmods.dev/badge/skills/mstr-sharma/strategy-automate/reference_mosaic_preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01152 |
| Opus 5.5 | $0.00026 | $0.00461 |
| Sonnet 5.5 | $0.00013 | $0.00230 |
| Haiku 4.5 | $0.00006 | $0.00115 |
Grade A, and why
Mosaic preflight contextual data check 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Preflight is step 6 of the build-mosaic-model execution flow (see skills/build-mosaic-model/SKILL.md). It is not wrapped as its own SKILL.md — the script is invoked directly, and ERROR-severity findings stop the build.
Location: skills/build-mosaic-model/scripts/preflight_model_check.py.
When to run
Before every build_mosaic.py build invocation when:
- the warehouse tables are new to this project (no prior Mosaic model to diff against)
- a user has asked you to port a legacy semantic model to Mosaic (pass the blueprint JSON)
- CI is gating a config-driven build
If the build is a tiny tweak to an existing model (single attribute rename, metric formula change), skip preflight and lean on validate-model post-build instead.
Invocation
python3 skills/build-mosaic-model/scripts/preflight_model_check.py \
--instance "<Your DB Instance>" --schema <YOUR_SCHEMA> \
--tables T1 T2 T3 FACT \
--blueprint /tmp/model_blueprint.json \
--out /tmp/preflight.json \
--fail-on ERROR
Exit code 1 when any finding at --fail-on severity or above is present — wire this into CI or a pre-build Makefile target.
What it checks (6 categories)
- Naming convention — mixed-case duplicates, locale-column explosion (
*_DE/_ES/_FR/...), audit-column pollution (LOAD_TS,ETL_BATCH_ID, ...), non-identifier characters requiring quoting. - Attribute vs metric classification — for each column, predicts the build's role assignment and flags mismatches: numeric ID columns that would get SUM'd (
Total X IDanti-pattern), natural numeric dimensions (YEAR/MONTH/QUARTER) misclassified as metrics, text columns that look like dates. - Datatype sanity —
decimal(38,0)IDs (valid but flagged), text columns named*_DATE, over-wide varchar. - Relationship inferability — no shared ID columns across tables (ERROR), bridge-table candidates (INFO), orphan key columns with no join partner.
- Contextual fit vs legacy blueprint (when
--blueprintgiven) — missing attributes, expected multi-form attributes, blueprint relationships to propagate, metric definitions that are derived formulas (not plain sums). - Governance guards — PII-looking columns (EMAIL, SSN, DOB, PHONE, ADDRESS, LAT/LON, CREDIT_CARD) prompting ACL/security-filter decisions.
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.
- 2mo ago First seen · 86 lines · 65 tokens per session scan A 52633c9c9072
Mosaic preflight contextual data check is a skill published in the GitHub repository mstr-sharma/strategy-automate (4 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 1,152 once invoked, about $0.0003 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.
Mosaic preflight contextual data check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Mosaic preflight contextual data checkmstr-sharma/strategy-automate | Skill | 4 | 1mo ago | MIT | A | 65 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 331k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |