monte-carlo-prevent

monte-carlo-prevent is a skill for Claude Code from monte-carlo-data/mc-agent-toolkit. It costs 52 tokens per session (4,243 once invoked), scanned A, original, Apache-2.0.

A safety step for editing dbt models or SQL data pipelines. dbt is a tool for building data transformations in a warehouse.

In plain words
What is it for?
Assessing model-change impact, checking generated SQL, and running validation through the Monte Carlo command.
Why use it?
It checks likely effects before changes and creates validation queries afterward, helping find data problems early.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions Claude Code.

Good fit Assessing model-change impact, checking generated SQL, and running validation through the Monte Carlo command.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monte-carlo-data/mc-agent-toolkit/prevent
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 monte-carlo-data/mc-agent-toolkit --skill prevent
Clone the repo
git clone --depth 1 https://github.com/monte-carlo-data/mc-agent-toolkit

Made for: Claude Code.

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 monte-carlo-prevent

README.md
[![agentmods](https://agentmods.dev/badge/skills/monte-carlo-data/mc-agent-toolkit/prevent/github.svg)](https://agentmods.dev/skills/monte-carlo-data/mc-agent-toolkit/prevent)
Your own site
<a href="https://agentmods.dev/skills/monte-carlo-data/mc-agent-toolkit/prevent"><img src="https://agentmods.dev/badge/skills/monte-carlo-data/mc-agent-toolkit/prevent/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 monte-carlo-prevent

Your own site · 80×15
<a href="https://agentmods.dev/skills/monte-carlo-data/mc-agent-toolkit/prevent"><img src="https://agentmods.dev/badge/skills/monte-carlo-data/mc-agent-toolkit/prevent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,243 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 276
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00052 $0.04243
Opus 5.5 $0.00021 $0.01697
Sonnet 5.5 $0.00010 $0.00849
Haiku 4.5 $0.00005 $0.00424

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

Security

Grade A, and why

monte-carlo-prevent 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 12 executable files (scripts/sandbox/classify_sandbox.py, scripts/sandbox/detect_hardcoded_db.py, scripts/sandbox/parse_profiles.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/prevent/SKILL.md · 325 lines

How it starts

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

Monte Carlo Prevent Skill

This skill brings Monte Carlo's data observability context directly into your editor. When you're modifying a dbt model or SQL pipeline, use it to surface table health, lineage, active alerts, and to generate monitors-as-code without leaving Claude Code.

Monte Carlo tool routing (required): Always call Monte Carlo MCP tools through this plugin's bundled server, whose fully-qualified tool names are mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool> (e.g. mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_alerts). Bare tool names used in this skill (get_alerts, search, get_table, …) refer to that bundled server. If the session also has a separately-configured monte-carlo-mcp server, do not route to it — it may point at a different endpoint or credentials.

Reference files live next to this skill file. Use the Read tool (not MCP resources) to access them:

  • Full workflow step-by-step instructions: references/workflows.md (relative to this file)
  • MCP parameter details: references/parameters.md (relative to this file)
  • Troubleshooting: references/TROUBLESHOOTING.md (relative to this file)

When to activate this skill

Prevent is the edit-lifecycle skill. Activate only when the user expresses intent to change a dbt model. Bare file mentions, table-name mentions in passing, or general health questions are not prevent's territory — those belong to monte-carlo-asset-health and will activate that skill on their own.

Do not wait to be asked. Run the appropriate workflow automatically whenever the user:

  • Describes a planned change to a model (new column, join update, filter change, refactor) → STOP — run Workflow 1 first if it has not run for this table this session, then Workflow 2, before writing any code
  • Adds a new column, metric, or output expression to an existing model → same rule: Workflow 1 first (if not yet run for this table), then Workflow 2; the post-edit hook will offer Workflow 5 (monitor generation) afterward
  • References a model file with an edit verb in the same prompt (e.g. @models/clients/client_hub.sql add an is_active column) → same rule: Workflow 1 first, then Workflow 2

Read the full file on GitHub · 325 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 First seen · 325 lines · 52 tokens per session scan A 3b7df6088641

Subscribe to this mod's changes

monte-carlo-prevent is a skill published in the GitHub repository monte-carlo-data/mc-agent-toolkit (93 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 4,243 once invoked, about $0.0002 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-30.