{"id":"83a1aace-8960-4725-a990-01adc45c436f","shortId":"aLPkTL","kind":"skill","title":"monte-carlo-validation-notebook","tagline":"Generates SQL validation notebooks for dbt PR changes with before/after comparison queries.","description":"> **Tip:** This skill works well with Sonnet. Run `/model sonnet` before invoking for faster generation.\n\nGenerate a SQL Notebook with validation queries for dbt changes.\n\n**Arguments:** $ARGUMENTS\n\nParse the arguments:\n- **Target** (required): first argument — a GitHub PR URL or local dbt repo path\n- **MC Base URL** (optional): `--mc-base-url <URL>` — defaults to `https://getmontecarlo.com`\n- **Models** (optional): `--models <model1,model2,...>` — comma-separated list of model filenames (without `.sql` extension) to generate queries for. Only these models will be included. By default, all changed models are included up to a maximum of 10.\n\n---\n\n# Setup\n\n**Prerequisites:**\n- **`gh`** (GitHub CLI) — required for PR mode. Must be authenticated (`gh auth status`).\n- **`python3`** — required for helper scripts.\n- **`pyyaml`** — install with `pip3 install pyyaml` (or `pip install pyyaml`, `uv pip install pyyaml`, etc.)\n\n**Note:** Generated SQL uses ANSI-compatible syntax that works across Snowflake, BigQuery, Redshift, and Athena. Minor adjustments may be needed for specific warehouse quirks.\n\nThis skill includes two helper scripts in `${CLAUDE_PLUGIN_ROOT}/skills/monte-carlo-validation-notebook/scripts/`:\n\n- **`resolve_dbt_schema.py`** - Resolves dbt model output schemas from `dbt_project.yml` routing rules and model config overrides.\n- **`generate_notebook_url.py`** - Encodes notebook YAML into a base64 import URL and opens it in the browser.\n\n# Mode Detection\n\nAuto-detect mode from the target argument:\n- If target looks like a URL (contains `://` or `github.com`) -> **PR mode**\n- If target is a path (`.`, `/path/to/repo`, relative path) -> **Local mode**\n\n---\n\n# Context\n\nThis command generates a SQL Notebook containing validation queries for dbt changes. The notebook can be opened in the MC Bridge SQL Notebook interface for interactive validation.\n\nThe output is an import URL that opens directly in the notebook interface:\n```\n<MC_BASE_URL>/notebooks/import#<base64-encoded-yaml>\n```\n\n**Key Features:**\n- **Database Parameters**: Two `text` parameters (`prod_db` and `dev_db`) for selecting databases\n- **Schema Inference**: Automatically infers schema per model from `dbt_project.yml` and model configs\n- **Single-table queries**: Basic validation queries using `{{prod_db}}.<SCHEMA>.<TABLE>`\n- **Comparison queries**: Before/after queries comparing `{{prod_db}}` vs `{{dev_db}}`\n- **Flexible usage**: Users can set both parameters to the same database for single-database analysis\n\n# Notebook YAML Spec Reference\n\nKey structure:\n```yaml\nversion: 1\nmetadata:\n  id: string           # kebab-case + random suffix\n  name: string         # display name\n  created_at: string   # ISO 8601\n  updated_at: string   # ISO 8601\ndefault_context:       # optional database/schema context\n  database: string\n  schema: string\ncells:\n  - id: string\n    type: sql | markdown | parameter\n    content: string    # SQL, markdown, or parameter config (JSON)\n    display_type: table | bar | timeseries\n```\n\n## Parameter Cell Spec\n\nParameter cells allow defining variables referenced in SQL via `{{param_name}}` syntax:\n\n```yaml\n- id: param-prod-db\n  type: parameter\n  content:\n    name: prod_db              # variable name\n    config:\n      type: text                   # free-form text input\n      default_value: \"ANALYTICS\"\n      placeholder: \"Prod database\"\n  display_type: table\n```\n\nParameter types:\n- `text`: Free-form text input (used for database names)\n- `schema_selector`: Two dropdowns (database -> schema), value stored as `DATABASE.SCHEMA`\n- `dropdown`: Select from predefined options\n\n# Task\n\nGenerate a SQL Notebook with validation queries based on the mode and target.\n\n## Phase 1: Get Changed Files\n\nThe approach differs based on mode:\n\n### If PR mode (GitHub PR):\n\n1. Extract the PR number and repo from the target URL.\n   - Example: `https://github.com/monte-carlo-data/dbt/pull/3386` -> owner=`monte-carlo-data`, repo=`dbt`, PR=`3386`\n\n2. Fetch PR metadata using `gh`:\n```bash\ngh pr view <PR#> --repo <owner>/<repo> --json number,title,author,mergedAt,headRefOid\n```\n\n3. Fetch the list of changed files:\n```bash\ngh pr view <PR#> --repo <owner>/<repo> --json files --jq '.files[].path'\n```\n\n4. Fetch the diff:\n```bash\ngh pr diff <PR#> --repo <owner>/<repo>\n```\n\n5. Filter the changed files list to only `.sql` files under `models/` or `snapshots/` directories (at any depth — e.g., `models/`, `analytics/models/`, `dbt/models/`). These are the dbt models to analyze. If no model SQL files were changed, report that and stop.\n\n6. For each changed model file, fetch the full file content at the head SHA:\n```bash\ngh api repos/<owner>/<repo>/contents/<file_path>?ref=<head_sha> --jq '.content' | python3 -c \"import sys,base64; sys.stdout.write(base64.b64decode(sys.stdin.read()).decode())\"\n```\n\n7. **Fetch dbt_project.yml** for schema resolution. Detect the dbt project root by looking at the changed file paths — find the common parent directory that contains `dbt_project.yml`. Try these paths in order until one succeeds:\n```bash\ngh api repos/<owner>/<repo>/contents/<dbt_root>/dbt_project.yml?ref=<head_sha> --jq '.content' | python3 -c \"import sys,base64; sys.stdout.write(base64.b64decode(sys.stdin.read()).decode())\"\n```\nCommon `<dbt_root>` locations: `analytics`, `.` (repo root), `dbt`, `transform`. Try each until found.\n\nSave `dbt_project.yml` to `/tmp/validation_notebook_working/<PR#>/dbt_project.yml`.\n\n### If Local mode (Local Directory):\n\n1. Change to the target directory.\n\n2. Get current branch info:\n```bash\ngit rev-parse --abbrev-ref HEAD\n```\n\n3. Detect base branch - try `main`, `master`, `develop` in order, or use upstream tracking branch.\n\n4. Get the list of changed SQL files compared to base branch:\n```bash\ngit diff --name-only <base_branch>...HEAD -- '*.sql'\n```\n\n5. Filter to only `.sql` files under `models/` or `snapshots/` directories (at any depth — e.g., `models/`, `analytics/models/`, `dbt/models/`). If no model SQL files were changed, report that and stop.\n\n6. Get the diff for each changed file:\n```bash\ngit diff <base_branch>...HEAD -- <file_path>\n```\n\n7. Read model files directly from the filesystem.\n\n8. **Find dbt_project.yml**:\n```bash\nfind . -name \"dbt_project.yml\" -type f | head -1\n```\n\n9. For notebook metadata in local mode, use:\n   - **ID**: `local-<branch-name>-<timestamp>`\n   - **Title**: `Local: <branch-name>`\n   - **Author**: Output of `git config user.name`\n   - **Merged**: \"N/A (local)\"\n\n### Model Selection (applies to both modes)\n\nAfter filtering to `.sql` files under `models/` or `snapshots/`:\n\n1. **If `--models` was specified:** Filter the changed files list to only include models whose filename (without `.sql` extension, case-insensitive) matches one of the specified model names. If any specified model is not found in the changed files, warn the user but continue with the models that were found. If none match, report that and stop.\n\n2. **Model cap:** If more than 10 models remain after filtering, select the first 10 (by file path order) and warn the user:\n   ```\n   ⚠️ <total_count> models changed — generating validation queries for the first 10 only.\n   To generate for specific models, re-run with: --models <model1,model2,...>\n   Skipped models: <list of skipped model filenames>\n   ```\n\n## Phase 2: Parse Changed Models\n\nFor EACH changed dbt model `.sql` file, parse and extract:\n\n### 2a. Model Metadata\n\n**Output table name** -- Derive from file name:\n- `<any_path>/models/<subdir>/<model_name>.sql` -> table is `<MODEL_NAME>` (uppercase, taken from the filename)\n\n**Output schema** -- Use the schema resolution script:\n\n1. **Setup**: Save `dbt_project.yml` and model files to `/tmp/validation_notebook_working/<id>/` preserving paths:\n   ```\n   /tmp/validation_notebook_working/<id>/\n   +-- dbt_project.yml\n   +-- models/\n       +-- <path>/<model>.sql\n   ```\n\n2. **Run the script** for each model:\n   ```bash\n   python3 ${CLAUDE_PLUGIN_ROOT}/skills/monte-carlo-validation-notebook/scripts/resolve_dbt_schema.py /tmp/validation_notebook_working/<id>/dbt_project.yml /tmp/validation_notebook_working/<id>/models/<path>/<model>.sql\n   ```\n\n3. **Error handling**: If the script fails, **STOP immediately** and report the error. Do NOT proceed with notebook generation if schema resolution fails.\n\n4. **Output**: The script prints the resolved schema (e.g., `PROD`, `PROD_STAGE`, `PROD_LINEAGE`)\n\n**Note**: Do NOT manually parse dbt_project.yml or model configs for schema -- always use the script. It handles model config overrides, dbt_project.yml routing rules, PROD_ prefix for custom schemas, and defaults to `PROD`.\n\n**Config block** -- Look for `{{ config(...) }}` and extract:\n- `materialized` -- 'table', 'view', 'incremental', 'ephemeral'\n- `unique_key` -- the dedup key (may be a string or list)\n- `cluster_by` -- clustering fields (may contain the time axis)\n\n**Core segmentation fields** -- Scan the entire model SQL for fields likely to be business keys:\n- Fields named `*_id` (e.g., `account_id`, `resource_id`, `monitor_id`) that appear in JOIN ON, GROUP BY, PARTITION BY, or `unique_key`\n- Deduplicate and rank by frequency. Take the top 3.\n\n**Time axis field** -- Detect the model's time dimension (in priority order):\n1. `is_incremental()` block: field used in the WHERE comparison\n2. `cluster_by` config: timestamp/date fields\n3. Field name conventions: `ingest_ts`, `created_time`, `date_part`, `timestamp`, `run_start_time`, `export_ts`, `event_created_time`\n4. ORDER BY DESC in QUALIFY/ROW_NUMBER\n\nIf no time axis is found, skip time-axis queries for this model.\n\n### 2b. Diff Analysis\n\nParse the diff hunks for this file. Classify each changed line:\n\n- **Changed fields** -- Lines added/modified in SELECT clauses or CTE definitions. Extract the output column name.\n- **Changed filters** -- Lines added/modified in WHERE clauses.\n- **Changed joins** -- Lines added/modified in JOIN ON conditions.\n- **Changed unique_key** -- If `unique_key` in config was modified, note both old and new values.\n- **New columns** -- Columns in \"after\" SELECT that don't appear in \"before\" (pure additions).\n\n### 2c. Model Classification\n\nClassify each model as **new** or **modified** based on the diff:\n- If the diff for this file contains `new file mode` → classify as **new**\n- Otherwise → classify as **modified**\n\nThis classification determines which query patterns are generated in Phase 3.\n\n**Note:** For **new models**, Phase 2b diff analysis is skipped (there is no \"before\" to compare against). Phase 2a metadata extraction still applies.\n\n## Phase 3: Generate Validation Queries\n\nFor each changed model, generate the applicable queries based on its classification (new vs modified).\n\n**CRITICAL: Parameter Placeholder Syntax**\n\nUse **double curly braces** `{{...}}` for parameter placeholders. Do NOT use `${...}` or any other syntax.\n\nCorrect: `{{prod_db}}.PROD.AGENT_RUNS`\nWrong: `${prod_db}.PROD.AGENT_RUNS`\n\n**Table Reference Format:**\n- Use `{{prod_db}}.<SCHEMA>.<TABLE_NAME>` for prod queries\n- Use `{{dev_db}}.<SCHEMA>.<TABLE_NAME>` for dev queries\n- `<SCHEMA>` is **hardcoded per-model** using the output from the schema resolution script\n\n---\n\n### Query Patterns for NEW Models\n\nFor new models, all queries target `{{dev_db}}` only. No comparison queries are generated since no prod table exists.\n\n#### Pattern 7-new: Total Row Count\n**Trigger:** Always.\n\n```sql\nSELECT COUNT(*) AS total_rows\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n#### Pattern 9: Sample Data Preview\n**Trigger:** Always.\n\n```sql\nSELECT *\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\nLIMIT 20\n```\n\n#### Pattern 2-new: Core Segmentation Counts\n**Trigger:** Always.\n\n```sql\nSELECT\n    <segmentation_field>,\n    COUNT(*) AS row_count\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\nGROUP BY <segmentation_field>\nORDER BY row_count DESC\nLIMIT 100\n```\n\n#### Pattern 5: Uniqueness Check\n**Trigger:** Always for new models (verify unique_key constraint from the start).\n\n```sql\nSELECT\n    COUNT(*) AS total_rows,\n    COUNT(DISTINCT <key_fields>) AS distinct_keys,\n    COUNT(*) - COUNT(DISTINCT <key_fields>) AS duplicate_count\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n```sql\nSELECT <key_fields>, COUNT(*) AS n\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\nGROUP BY <key_fields>\nHAVING COUNT(*) > 1\nORDER BY n DESC\nLIMIT 100\n```\n\n#### Pattern 6-new: NULL Rate Check (all columns)\n**Trigger:** Always. Checks all output columns since everything is new.\n\n```sql\nSELECT\n    COUNT(*) AS total_rows,\n    SUM(CASE WHEN <col1> IS NULL THEN 1 ELSE 0 END) AS <col1>_null_count,\n    ROUND(100.0 * SUM(CASE WHEN <col1> IS NULL THEN 1 ELSE 0 END) / NULLIF(COUNT(*), 0), 2) AS <col1>_null_pct,\n    SUM(CASE WHEN <col2> IS NULL THEN 1 ELSE 0 END) AS <col2>_null_count,\n    ROUND(100.0 * SUM(CASE WHEN <col2> IS NULL THEN 1 ELSE 0 END) / NULLIF(COUNT(*), 0), 2) AS <col2>_null_pct\n    -- repeat for each output column\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n#### Pattern 8: Time-Axis Continuity\n**Trigger:** Model is `materialized='incremental'` OR a time axis field was identified.\n\n```sql\nSELECT\n    CAST(<time_axis> AS DATE) AS day,\n    COUNT(*) AS row_count\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\nWHERE <time_axis> >= CURRENT_TIMESTAMP - INTERVAL '14' DAY\nGROUP BY day\nORDER BY day DESC\nLIMIT 30\n```\n\n---\n\n### Query Patterns for MODIFIED Models\n\nFor modified models, single-table queries use `{{prod_db}}` and comparison queries use both.\n\n#### Pattern 7: Total Row Count\n**Trigger:** Always.\n\n```sql\nSELECT COUNT(*) AS total_rows\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n#### Pattern 9: Sample Data Preview\n**Trigger:** Always.\n\n```sql\nSELECT *\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nLIMIT 20\n```\n\n#### Pattern 2: Core Segmentation Counts\n**Trigger:** Always.\n\n```sql\nSELECT\n    <segmentation_field>,\n    COUNT(*) AS row_count\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nGROUP BY <segmentation_field>\nORDER BY row_count DESC\nLIMIT 100\n```\n\n#### Pattern 1: Changed Field Distribution\n**Trigger:** Changed fields found in Phase 2b. **Exclude added columns** (from \"New columns\" in Phase 2b) — only include fields that exist in prod.\n\n```sql\nSELECT\n    <changed_field>,\n    COUNT(*) AS row_count,\n    ROUND(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER(), 2) AS pct\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nGROUP BY <changed_field>\nORDER BY row_count DESC\nLIMIT 100\n```\n\n#### Pattern 5: Uniqueness Check\n**Trigger:** JOIN condition changed, `unique_key` changed, or model is incremental.\n\n```sql\nSELECT\n    COUNT(*) AS total_rows,\n    COUNT(DISTINCT <key_fields>) AS distinct_keys,\n    COUNT(*) - COUNT(DISTINCT <key_fields>) AS duplicate_count\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n```sql\nSELECT <key_fields>, COUNT(*) AS n\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\nGROUP BY <key_fields>\nHAVING COUNT(*) > 1\nORDER BY n DESC\nLIMIT 100\n```\n\n#### Pattern 6: NULL Rate Check\n**Trigger:** New column added, or column wrapped in COALESCE/NULLIF.\n\n**Important:** Added columns (from \"New columns\" in Phase 2b) do NOT exist in prod yet. For added columns, query `{{dev_db}}` only. For modified columns (COALESCE/NULLIF changes), compare both databases.\n\n**For added columns** (dev only):\n```sql\nSELECT\n    COUNT(*) AS total_rows,\n    SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) AS null_count,\n    ROUND(100.0 * SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) / NULLIF(COUNT(*), 0), 2) AS null_pct\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n**For modified columns** (prod vs dev):\n```sql\nSELECT\n    'prod' AS source,\n    COUNT(*) AS total_rows,\n    SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) AS null_count,\n    ROUND(100.0 * SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) / NULLIF(COUNT(*), 0), 2) AS null_pct\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nUNION ALL\nSELECT\n    'dev' AS source,\n    COUNT(*) AS total_rows,\n    SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) AS null_count,\n    ROUND(100.0 * SUM(CASE WHEN <column> IS NULL THEN 1 ELSE 0 END) / NULLIF(COUNT(*), 0), 2) AS null_pct\nFROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n#### Pattern 8: Time-Axis Continuity\n**Trigger:** Model is `materialized='incremental'` OR a time axis field was identified.\n\n```sql\nSELECT\n    CAST(<time_axis> AS DATE) AS day,\n    COUNT(*) AS row_count\nFROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nWHERE <time_axis> >= CURRENT_TIMESTAMP - INTERVAL '14' DAY\nGROUP BY day\nORDER BY day DESC\nLIMIT 30\n```\n\n#### Pattern 3: Before/After Comparison\n**Trigger:** Always (for changed fields + top segmentation field). **Modified models only.**\n\n**Important:** Exclude added columns (from \"New columns\" in Phase 2b) from `<group_fields>`. Only use fields that exist in BOTH prod and dev. Added columns don't exist in prod and will cause query errors.\n\n```sql\nWITH prod AS (\n    SELECT <group_fields>, COUNT(*) AS cnt\n    FROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\n    GROUP BY <group_fields>\n),\ndev AS (\n    SELECT <group_fields>, COUNT(*) AS cnt\n    FROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n    GROUP BY <group_fields>\n)\nSELECT\n    COALESCE(b.<field>, d.<field>) AS <field>,\n    COALESCE(b.cnt, 0) AS cnt_prod,\n    COALESCE(d.cnt, 0) AS cnt_dev,\n    COALESCE(d.cnt, 0) - COALESCE(b.cnt, 0) AS diff\nFROM prod b\nFULL OUTER JOIN dev d ON b.<field> = d.<field>\nORDER BY ABS(diff) DESC\nLIMIT 100\n```\n\n#### Pattern 7b: Row Count Comparison\n**Trigger:** Always. **Modified models only.**\n\n```sql\nSELECT 'prod' AS source, COUNT(*) AS row_count FROM {{prod_db}}.<SCHEMA>.<TABLE_NAME>\nUNION ALL\nSELECT 'dev' AS source, COUNT(*) AS row_count FROM {{dev_db}}.<SCHEMA>.<TABLE_NAME>\n```\n\n## Phase 4: Build Notebook YAML\n\n### 4a. Metadata\n```yaml\nversion: 1\nmetadata:\n  id: validation-pr-<PR_NUMBER>-<random_suffix>\n  name: \"Validation: PR #<PR_NUMBER> - <PR_TITLE_TRUNCATED>\"\n  created_at: \"<current_iso_timestamp>\"\n  updated_at: \"<current_iso_timestamp>\"\n```\n\n### 4b. Parameter Cells\n\n**Only include `prod_db` if there are modified models.** If all models are new, only include `dev_db`.\n\n```yaml\n# Include ONLY if there are modified models:\n- id: param-prod-db\n  type: parameter\n  content:\n    name: prod_db\n    config:\n      type: text\n      default_value: \"ANALYTICS\"\n      placeholder: \"Prod database (e.g., ANALYTICS)\"\n  display_type: table\n\n# Always include:\n- id: param-dev-db\n  type: parameter\n  content:\n    name: dev_db\n    config:\n      type: text\n      default_value: \"PERSONAL_<USER>\"\n      placeholder: \"Dev database (e.g., PERSONAL_JSMITH)\"\n  display_type: table\n```\n\n### 4c. Markdown Summary Cell\n```yaml\n- id: cell-summary\n  type: markdown\n  content: |\n    # Validation Queries for <PR or Local Branch>\n    ## Summary\n    - **Title:** <title>\n    - **Author:** <author>\n    - **Source:** <PR URL or \"Local branch: <branch>\">\n    - **Status:** <merge_timestamp or \"Not yet merged\" or \"N/A (local)\">\n    ## Changes\n    <brief description based on diff analysis>\n    ## Changed Models\n    - `<SCHEMA>.<TABLE_NAME>` (from `<file_path>`)\n    ## How to Use\n    1. Select your Snowflake connector above\n    2. Set **dev_db** to your dev database (e.g., `PERSONAL_JSMITH`)\n    3. If modified models are present, set **prod_db** to your prod database (e.g., `ANALYTICS`)\n    4. Run single-table queries first, then comparison queries\n  display_type: table\n```\n\n### 4d. SQL Cell Format\n```yaml\n- id: cell-<pattern>-<model>-<index>\n  type: sql\n  content: |\n    /*\n    ========================================\n    <Pattern Name (human-readable, e.g. \"Total Row Count\" — do NOT include pattern numbers like \"Pattern 7:\")>\n    ========================================\n    Model: <SCHEMA>.<TABLE_NAME>\n    Triggered by: <why this pattern was generated>\n    What to look for: <interpretation guidance>\n    ----------------------------------------\n    */\n    <actual_sql_query>\n  display_type: table\n```\n\n### 4e. Cell Organization\n\nCells are ordered consistently for both model types, following this sequence:\n\n**New models:**\n1. Summary markdown cell (note that model is new)\n2. Parameter cells (dev_db only — no prod_db if all models are new)\n3. Total row count (Pattern 7-new)\n4. Sample data preview (Pattern 9)\n5. Core segmentation counts (Pattern 2-new)\n6. Uniqueness check (Pattern 5), NULL rate check (Pattern 6-new), Time-axis continuity (Pattern 8)\n\n**Modified models:**\n1. Summary markdown cell\n2. Parameter cells (prod_db, dev_db)\n3. Total row count (Pattern 7)\n4. Sample data preview (Pattern 9)\n5. Core segmentation counts (Pattern 2)\n6. Changed field distribution (Pattern 1)\n7. Uniqueness check (Pattern 5), NULL rate check (Pattern 6), Time-axis continuity (Pattern 8)\n8. Before/after comparisons (Pattern 3), Row count comparison (Pattern 7b)\n\n## Phase 5: Generate Import URL\n\n1. Write notebook YAML to `/tmp/validation_notebook_working/<id>/notebook.yaml`\n2. Run the URL generation script:\n```bash\npython3 ${CLAUDE_PLUGIN_ROOT}/skills/monte-carlo-validation-notebook/scripts/generate_notebook_url.py /tmp/validation_notebook_working/<id>/notebook.yaml --mc-base-url <MC_BASE_URL>\n```\n3. The script validates both YAML syntax and notebook schema (required fields on metadata and cells). If validation fails, read the error messages carefully, fix the YAML to match the spec in Phase 4, and re-run.\n\n## Phase 6: Output\n\nPresent:\n```markdown\n# Validation Notebook Generated\n## Summary\n- **Source:** PR #<number> - <title> OR Local: <branch>\n- **Author:** <author>\n- **Changed Models:** <count> models (of <total_count> changed)\n- **Generated Queries:** <count> queries\n\n> ⚠️ If models were capped: \"Only the first 10 of <total_count> changed models were included. Re-run with `--models` to select specific models.\"\n\n## Notebook Opened\nThe notebook has been opened directly in your browser.\nSelect your Snowflake connector in the notebook interface to begin running queries.\n*Make sure MC Bridge is running. Let me know if you want tips on how to install this locally*\n```\n\n## Important Guidelines\n\n1. **Do NOT execute queries** -- only generate the notebook\n2. **Keep SQL readable** -- proper formatting and meaningful aliases\n3. **Include LIMIT 100** on queries that could return many rows\n4. **Use double curly braces** -- `{{prod_db}}` NOT `${prod_db}`\n5. **Use correct table format** -- `{{prod_db}}.<SCHEMA>.<TABLE>` and `{{dev_db}}.<SCHEMA>.<TABLE>`\n6. **Always use the schema resolution script** -- do NOT manually parse dbt_project.yml\n7. **Schema is NOT a parameter** -- only `prod_db` and `dev_db` are parameters\n8. **Skip ephemeral models** -- they have no physical table\n9. **Truncate notebook name** -- keep under 50 chars\n10. **Generate unique cell IDs** -- use pattern like `cell-p3-model-1`\n11. **YAML multiline content** -- use `|` block scalar for SQL with comments\n12. **ASCII-only YAML** -- the script sanitizes and validates before encoding\n\n## Query Pattern Reference\n\n| Pattern | Name | Trigger | Model Type | Database | Order |\n|---------|------|---------|------------|----------|-------|\n| 7 / 7-new | Total Row Count | Always | Both | `{{prod_db}}` (modified) / `{{dev_db}}` (new) | 1 |\n| 9 | Sample Data Preview | Always | Both | `{{prod_db}}` (modified) / `{{dev_db}}` (new) | 2 |\n| 2 / 2-new | Core Segmentation Counts | Always | Both | `{{prod_db}}` (modified) / `{{dev_db}}` (new) | 3 |\n| 1 | Changed Field Distribution | Column modified in diff (not added) | Modified only | `{{prod_db}}` | 4 |\n| 5 | Uniqueness Check | JOIN/unique_key changed (modified) / Always (new) | Both | `{{dev_db}}` | 5 |\n| 6 / 6-new | NULL Rate Check | New column or COALESCE (modified) / Always (new) | Both | Added col: `{{dev_db}}` only; COALESCE: Both (modified) / `{{dev_db}}` (new) | 5 |\n| 8 | Time-Axis Continuity | Incremental or time field | Both | `{{prod_db}}` (modified) / `{{dev_db}}` (new) | 5 |\n| 3 | Before/After Comparison | Changed fields (not added) | Modified only | Both | 6 |\n| 7b | Row Count Comparison | Always | Modified only | Both | 6 |\n\n## MC Bridge Setup Help\n\nIf the user asks how to install or set up MC Bridge, fetch the README from the mc-bridge repo and show the relevant quick start / setup instructions:\n\n```bash\ngh api repos/monte-carlo-data/mc-bridge/readme --jq '.content' | base64 --decode\n```\n\nFocus on: how to install, configure connections, and run MC Bridge. Don't dump the entire README — extract just the setup-relevant sections.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["monte","carlo","validation","notebook","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents"],"capabilities":["skill","source-sickn33","skill-monte-carlo-validation-notebook","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/monte-carlo-validation-notebook","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34666 github stars · SKILL.md body (24,526 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-23T06:51:35.643Z","embedding":null,"createdAt":"2026-04-18T21:41:02.971Z","updatedAt":"2026-04-23T06:51:35.643Z","lastSeenAt":"2026-04-23T06:51:35.643Z","tsv":"'-1':839 '/contents':638,689 '/dbt_project.yml':690,719,1051 '/model':26 '/models':1006,1053 '/monte-carlo-data/dbt/pull/3386':523 '/notebook.yaml':2692,2706 '/notebooks/import':282 '/path/to/repo':236 '/skills/monte-carlo-validation-notebook/scripts':180 '/skills/monte-carlo-validation-notebook/scripts/generate_notebook_url.py':2704 '/skills/monte-carlo-validation-notebook/scripts/resolve_dbt_schema.py':1049 '/tmp/validation_notebook_working':717,1030,1033,1050,1052,2691,2705 '0':1652,1667,1671,1684,1699,1703,2010,2025,2029,2060,2075,2079,2105,2120,2124,2258,2264,2270,2273 '1':354,494,509,725,876,1022,1214,1613,1650,1665,1682,1697,1839,1940,2008,2023,2058,2073,2103,2118,2338,2460,2558,2620,2654,2686,2837,2941,2989,3018 '10':109,940,948,965,2778,2929 '100':1564,1619,1837,1892,1946,2293,2858 '100.0':1658,1690,1874,2016,2066,2111 '11':2942 '12':2953 '14':1752,2168 '2':533,731,934,982,1037,1224,1540,1672,1704,1814,1878,2030,2080,2125,2466,2567,2599,2624,2648,2693,2846,3002,3003,3004 '20':1538,1812 '2a':996,1403 '2b':1269,1390,1849,1858,1969,2203 '2c':1343 '3':551,745,1055,1201,1230,1384,1409,2180,2477,2581,2631,2675,2711,2855,3017,3088 '30':1762,2178 '3386':532 '4':569,760,1078,1249,2330,2492,2588,2637,2744,2866,3032 '4a':2334 '4b':2351 '4c':2433 '4d':2505 '4e':2542 '5':579,780,1566,1894,2594,2605,2643,2659,2682,2876,3033,3044,3070,3087 '50':2927 '6':619,809,1621,1948,2601,2610,2649,2664,2750,2886,3045,3046,3098,3107 '7':651,821,1509,1784,2531,2586,2636,2655,2898,2975,2976 '7b':2295,2680,3099 '8':829,1717,2133,2617,2670,2671,2912,3071 '8601':371,376 '9':840,1526,1800,2593,2642,2921,2990 'ab':2289 'abbrev':742 'abbrev-ref':741 'account':1175 'across':155 'ad':1851,1955,1962,1977,1992,2196,2215,3027,3059,3094 'added/modified':1286,1301,1308 'addit':1342 'adjust':162 'alias':2854 'allow':411 'alway':1103,1515,1531,1546,1570,1629,1789,1805,1819,2184,2300,2405,2887,2981,2994,3009,3039,3056,3103 'analysi':345,1271,1392 'analyt':445,705,2396,2401,2491 'analytics/models':599,796 'analyz':607 'ansi':150 'ansi-compat':149 'api':636,687,3143 'appear':1182,1338 'appli':863,1407 'applic':1419 'approach':499 'argument':43,44,47,51,219 'ascii':2955 'ascii-on':2954 'ask':3115,3206 'athena':160 'auth':123 'authent':121 'author':548,852,2450,2762 'auto':213 'auto-detect':212 'automat':300 'axi':1155,1203,1258,1264,1720,1730,2136,2146,2614,2667,3074 'b':2253,2278,2285 'b.cnt':2257,2272 'bar':404 'base':62,67,487,501,747,770,1353,1421,2709 'base64':201,646,698,3147 'base64.b64decode':648,700 'bash':539,558,573,634,685,736,772,817,832,1044,2699,3141 'basic':314 'before/after':15,322,2181,2672,3089 'begin':2813 'bigqueri':157 'block':1125,1217,2947 'boundari':3214 'brace':1435,2870 'branch':734,748,759,771 'bridg':262,2819,3109,3123,3131,3159 'browser':209,2803 'build':2331 'busi':1169 'c':643,695 'cap':936,2774 'care':2734 'carlo':3,527 'case':360,896,1645,1660,1677,1692,2003,2018,2053,2068,2098,2113 'case-insensit':895 'cast':1736,2152 'caus':2224 'cell':386,407,410,2353,2436,2440,2507,2511,2543,2545,2561,2569,2623,2626,2726,2932,2938 'cell-p3-model':2937 'cell-summari':2439 'chang':13,42,100,253,496,556,582,614,622,666,726,765,804,815,883,914,958,984,988,1281,1283,1298,1305,1313,1415,1840,1844,1900,1903,1987,2186,2453,2454,2650,2763,2767,2780,3019,3037,3091 'char':2928 'check':1568,1625,1630,1896,1951,2603,2608,2657,2662,3035,3050 'clarif':3208 'classif':1345,1375,1424 'classifi':1279,1346,1367,1371 'claud':177,1046,2701 'claus':1289,1304 'clear':3181 'cli':114 'cluster':1147,1149,1225 'cnt':2234,2245,2260,2266 'coalesc':2252,2256,2262,2268,2271,3054,3064 'coalesce/nullif':1960,1986 'col':3060 'column':1296,1330,1331,1627,1633,1712,1852,1855,1954,1957,1963,1966,1978,1985,1993,2039,2197,2200,2216,3022,3052 'comma':78 'comma-separ':77 'command':243 'comment':2952 'common':671,703 'compar':324,768,1400,1988 'comparison':16,320,1223,1499,1779,2182,2298,2500,2673,2678,3090,3102 'compat':151 'condit':1312,1899 'config':193,309,399,435,856,1100,1110,1124,1128,1227,1320,2391,2418 'configur':3154 'connect':3155 'connector':2464,2807 'consist':2548 'constraint':1577 'contain':226,248,675,1152,1363 'content':393,429,629,641,693,2387,2414,2444,2514,2945,3146 'context':241,378,381 'continu':920,1721,2137,2615,2668,3075 'convent':1233 'core':1156,1542,1815,2595,2644,3006 'correct':1446,2878 'could':2862 'count':1513,1518,1544,1549,1552,1561,1583,1587,1592,1593,1597,1603,1612,1640,1656,1670,1688,1702,1741,1744,1787,1792,1817,1822,1825,1834,1868,1871,1873,1876,1889,1910,1914,1919,1920,1924,1930,1939,1998,2014,2028,2048,2064,2078,2093,2109,2123,2157,2160,2232,2243,2297,2309,2312,2322,2325,2523,2584,2597,2634,2646,2677,2980,3008,3101 'creat':367,1236,1247,2347 'criteria':3217 'critic':1428 'cte':1291 'cur':1434,2869 'current':733,1749,2165 'custom':1118 'd':2254,2283,2286 'd.cnt':2263,2269 'data':528,1528,1802,2590,2639,2992 'databas':285,297,340,344,382,448,462,468,1990,2399,2426,2473,2489,2973 'database.schema':473 'database/schema':380 'date':1238,1738,2154 'day':1740,1753,1756,1759,2156,2169,2172,2175 'db':291,294,319,326,329,426,432,1448,1453,1461,1467,1496,1524,1536,1555,1600,1608,1715,1747,1777,1798,1810,1828,1883,1927,1935,1981,2036,2086,2131,2163,2237,2248,2315,2328,2357,2371,2384,2390,2411,2417,2469,2485,2571,2575,2628,2630,2872,2875,2882,2885,2906,2909,2984,2987,2997,3000,3012,3015,3031,3043,3062,3068,3082,3085 'dbt':11,41,58,183,252,530,604,659,708,989 'dbt/models':600,797 'dbt_project.yml':188,306,653,676,715,831,835,1025,1034,1097,1112,2897 'decod':650,702,3148 'dedup':1139 'dedupl':1193 'default':69,98,377,443,1121,2394,2421 'defin':412 'definit':1292 'depth':596,793 'deriv':1002 'desc':1252,1562,1617,1760,1835,1890,1944,2176,2291 'describ':3185 'detect':211,214,657,746,1205 'determin':1376 'dev':293,328,1466,1469,1495,1523,1535,1554,1599,1607,1714,1746,1926,1934,1980,1994,2035,2042,2090,2130,2214,2240,2247,2267,2282,2319,2327,2370,2410,2416,2425,2468,2472,2570,2629,2884,2908,2986,2999,3014,3042,3061,3067,3084 'develop':752 'diff':572,576,774,812,819,1270,1274,1356,1359,1391,2275,2290,3025 'differ':500 'dimens':1210 'direct':277,825,2800 'directori':593,673,724,730,790 'display':365,401,449,2402,2430,2502,2539 'distinct':1588,1590,1594,1915,1917,1921 'distribut':1842,2652,3021 'doubl':1433,2868 'dropdown':467,474 'dump':3162 'duplic':1596,1923 'e.g':597,794,1086,1174,2400,2427,2474,2490,2520 'els':1651,1666,1683,1698,2009,2024,2059,2074,2104,2119 'encod':196,2964 'end':1653,1668,1685,1700,2011,2026,2061,2076,2106,2121 'entir':1161,3164 'environ':3197 'environment-specif':3196 'ephemer':1135,2914 'error':1056,1067,2226,2732 'etc':144 'event':1246 'everyth':1635 'exampl':520 'exclud':1850,2195 'execut':2840 'exist':1507,1863,1972,2209,2219 'expert':3202 'export':1244 'extens':86,894 'extract':510,995,1130,1293,1405,3166 'f':837 'fail':1061,1077,2729 'faster':31 'featur':284 'fetch':534,552,570,625,652,3124 'field':1150,1158,1165,1171,1204,1218,1229,1231,1284,1731,1841,1845,1861,2147,2187,2190,2207,2651,2722,3020,3079,3092 'file':497,557,565,567,583,588,612,624,628,667,767,785,802,816,824,871,884,915,950,992,1004,1028,1278,1362,1365 'filenam':83,891,1014 'filesystem':828 'filter':580,781,868,881,944,1299 'find':669,830,833 'first':50,947,964,2498,2777 'fix':2735 'flexibl':330 'focus':3149 'follow':2553 'form':440,457 'format':1458,2508,2851,2880 'found':713,911,926,1260,1846 'free':439,456 'free-form':438,455 'frequenc':1197 'full':627,2279 'generat':6,32,33,88,146,244,480,959,968,1073,1381,1410,1417,1502,2683,2697,2756,2768,2843,2930 'generate_notebook_url.py':195 'get':495,732,761,810 'getmontecarlo.com':71 'gh':112,122,538,540,559,574,635,686,3142 'git':737,773,818,855 'github':53,113,507 'github.com':228,522 'github.com/monte-carlo-data/dbt/pull/3386':521 'group':1186,1556,1609,1754,1829,1884,1936,2170,2238,2249 'guidelin':2836 'handl':1057,1108 'hardcod':1472 'head':632,744,778,820,838 'headrefoid':550 'help':3111 'helper':128,174 'human':2518 'human-read':2517 'hunk':1275 'id':356,387,422,848,1173,1176,1178,1180,2340,2380,2407,2438,2510,2933 'identifi':1733,2149 'immedi':1063 'import':202,273,644,696,1961,2194,2684,2835 'includ':96,103,172,888,1860,2355,2369,2373,2406,2526,2783,2856 'increment':1134,1216,1726,1907,2142,3076 'infer':299,301 'info':735 'ingest':1234 'input':442,459,3211 'insensit':897 'instal':131,134,138,142,2832,3118,3153 'instruct':3140 'interact':267 'interfac':265,281,2811 'interv':1751,2167 'invok':29 'iso':370,375 'join':1184,1306,1310,1898,2281 'join/unique_key':3036 'jq':566,640,692,3145 'jsmith':2429,2476 'json':400,545,564 'kebab':359 'kebab-cas':358 'keep':2847,2925 'key':283,350,1137,1140,1170,1192,1315,1318,1576,1591,1902,1918 'know':2824 'let':2822 'like':223,1166,2529,2936 'limit':1537,1563,1618,1761,1811,1836,1891,1945,2177,2292,2857,3173 'line':1282,1285,1300,1307 'lineag':1091 'list':80,554,584,763,885,1146 'local':57,239,721,723,845,849,851,860,2761,2834 'locat':704 'look':222,663,1126,2537 'main':750 'make':2816 'mani':2864 'manual':1095,2895 'markdown':391,396,2434,2443,2560,2622,2753 'master':751 'match':898,929,2739,3182 'materi':1131,1725,2141 'maximum':107 'may':163,1141,1151 'mc':61,66,261,2708,2818,3108,3122,3130,3158 'mc-base-url':65,2707 'mc-bridg':3129 'meaning':2853 'merg':858 'mergedat':549 'messag':2733 'metadata':355,536,843,998,1404,2335,2339,2724 'minor':161 'miss':3219 'mode':118,210,215,230,240,490,503,506,722,846,866,1366 'model':72,74,82,93,101,184,192,304,308,590,598,605,610,623,787,795,800,823,861,873,878,889,903,908,923,935,941,957,971,976,980,985,990,997,1027,1035,1043,1099,1109,1162,1207,1268,1344,1348,1388,1416,1475,1488,1491,1573,1723,1767,1770,1905,2139,2192,2302,2362,2365,2379,2455,2480,2532,2551,2557,2564,2578,2619,2764,2765,2772,2781,2788,2792,2915,2940,2971 'model1':75,977 'model2':76,978 'modifi':1322,1352,1373,1427,1766,1769,1984,2038,2191,2301,2361,2378,2479,2618,2985,2998,3013,3023,3028,3038,3055,3066,3083,3095,3104 'monitor':1179 'mont':2,526 'monte-carlo-data':525 'monte-carlo-validation-notebook':1 'multilin':2944 'must':119 'n':1605,1616,1932,1943 'n/a':859 'name':363,366,419,430,434,463,776,834,904,1001,1005,1172,1232,1297,2344,2388,2415,2516,2924,2969 'name-on':775 'need':165 'new':1327,1329,1350,1364,1369,1387,1425,1487,1490,1510,1541,1572,1622,1637,1854,1953,1965,2199,2367,2556,2566,2580,2587,2600,2611,2977,2988,3001,3005,3016,3040,3047,3051,3057,3069,3086 'none':928 'note':145,1092,1323,1385,2562 'notebook':5,9,36,197,247,255,264,280,346,483,842,1072,2332,2688,2719,2755,2793,2796,2810,2845,2923 'null':1623,1648,1655,1663,1674,1680,1687,1695,1706,1949,2006,2013,2021,2032,2056,2063,2071,2082,2101,2108,2116,2127,2606,2660,3048 'nullif':1669,1701,2027,2077,2122 'number':513,546,2528 'old':1325 'one':683,899 'open':205,258,276,2794,2799 'option':64,73,379,478 'order':681,754,952,1213,1250,1558,1614,1757,1831,1886,1941,2173,2287,2547,2974 'organ':2544 'otherwis':1370 'outer':2280 'output':185,270,853,999,1015,1079,1295,1478,1632,1711,2751,3191 'overrid':194,1111 'owner':524 'p3':2939 'param':418,424,2382,2409 'param-dev-db':2408 'param-prod-db':423,2381 'paramet':286,289,336,392,398,406,409,428,452,1429,1437,2352,2386,2413,2568,2625,2903,2911 'parent':672 'pars':45,740,983,993,1096,1272,2896 'part':1239 'partit':1188 'path':60,235,238,568,668,679,951,1032 'pattern':1379,1485,1508,1525,1539,1565,1620,1716,1764,1783,1799,1813,1838,1893,1947,2132,2179,2294,2515,2527,2530,2585,2592,2598,2604,2609,2616,2635,2641,2647,2653,2658,2663,2669,2674,2679,2935,2966,2968 'pct':1675,1707,1880,2033,2083,2128 'per':303,1474 'per-model':1473 'permiss':3212 'person':2423,2428,2475 'phase':493,981,1383,1389,1402,1408,1848,1857,1968,2202,2329,2681,2743,2749 'physic':2919 'pip':137,141 'pip3':133 'placehold':446,1430,1438,2397,2424 'plugin':178,1047,2702 'pr':12,54,117,229,505,508,512,531,535,541,543,560,562,575,577,718,2343,2346,2759 'predefin':477 'prefix':1116 'prerequisit':111 'present':2482,2752 'preserv':1031 'preview':1529,1803,2591,2640,2993 'print':1082 'prioriti':1212 'proceed':1070 'prod':290,318,325,425,431,447,1087,1088,1090,1115,1123,1447,1452,1460,1463,1505,1776,1797,1809,1827,1865,1882,1974,2040,2045,2085,2162,2212,2221,2229,2236,2261,2277,2306,2314,2356,2383,2389,2398,2484,2488,2574,2627,2871,2874,2881,2905,2983,2996,3011,3030,3081 'prod.agent':1449,1454 'project':660 'proper':2850 'pure':1341 'python3':125,642,694,1045,2700 'pyyaml':130,135,139,143 'qualify/row_number':1254 'queri':17,39,89,250,313,316,321,323,486,961,1265,1378,1412,1420,1464,1470,1484,1493,1500,1763,1774,1780,1979,2225,2446,2497,2501,2769,2770,2815,2841,2860,2965 'quick':3137 'quirk':169 'random':361 'rank':1195 'rate':1624,1950,2607,2661,3049 're':973,2747,2785 're-run':972,2746,2784 'read':822,2730 'readabl':2519,2849 'readm':3126,3165 'redshift':158 'ref':639,691,743 'refer':349,1457,2967 'referenc':414 'relat':237 'relev':3136,3171 'remain':942 'repeat':1708 'repo':59,515,529,544,563,578,637,688,706,3132 'report':615,805,930,1065 'repos/monte-carlo-data/mc-bridge/readme':3144 'requir':49,115,126,2721,3210 'resolut':656,1020,1076,1482,2891 'resolv':182,1084 'resolve_dbt_schema.py':181 'resourc':1177 'return':2863 'rev':739 'rev-pars':738 'review':3203 'root':179,661,707,1048,2703 'round':1657,1689,1872,2015,2065,2110 'rout':189,1113 'row':1512,1521,1551,1560,1586,1643,1743,1786,1795,1824,1833,1870,1888,1913,2001,2051,2096,2159,2296,2311,2324,2522,2583,2633,2676,2865,2979,3100 'rule':190,1114 'run':25,974,1038,1241,1450,1455,2493,2694,2748,2786,2814,2821,3157 'safeti':3213 'sampl':1527,1801,2589,2638,2991 'sanit':2960 'save':714,1024 'scalar':2948 'scan':1159 'schema':186,298,302,384,464,469,655,1016,1019,1075,1085,1102,1119,1481,2720,2890,2899 'scope':3184 'script':129,175,1021,1040,1060,1081,1106,1483,2698,2713,2892,2959 'section':3172 'segment':1157,1543,1816,2189,2596,2645,3007 'select':296,475,862,945,1288,1334,1517,1533,1548,1582,1602,1639,1735,1791,1807,1821,1867,1909,1929,1997,2044,2089,2151,2231,2242,2251,2305,2318,2461,2790,2804 'selector':465 'separ':79 'sequenc':2555 'set':334,2467,2483,3120 'setup':110,1023,3110,3139,3170 'setup-relev':3169 'sha':633 'show':3134 'sinc':1503,1634 'singl':311,343,1772,2495 'single-databas':342 'single-t':310,1771,2494 'skill':20,171,3176 'skill-monte-carlo-validation-notebook' 'skip':979,1261,1394,2913 'snapshot':592,789,875 'snowflak':156,2463,2806 'sonnet':24,27 'sourc':2047,2092,2308,2321,2451,2758 'source-sickn33' 'spec':348,408,2741 'specif':167,970,2791,3198 'specifi':880,902,907 'sql':7,35,85,147,246,263,390,395,416,482,587,611,766,779,784,801,870,893,991,1007,1036,1054,1163,1516,1532,1547,1581,1601,1638,1734,1790,1806,1820,1866,1908,1928,1996,2043,2150,2227,2304,2506,2513,2848,2950 'stage':1089 'start':1242,1580,3138 'status':124,2452 'still':1406 'stop':618,808,933,1062,3204 'store':471 'string':357,364,369,374,383,385,388,394,1144 'structur':351 'substitut':3194 'succeed':684 'success':3216 'suffix':362 'sum':1644,1659,1676,1691,1875,2002,2017,2052,2067,2097,2112 'summari':2435,2441,2448,2559,2621,2757 'sure':2817 'syntax':152,420,1431,1445,2717 'sys':645,697 'sys.stdin.read':649,701 'sys.stdout.write':647,699 'tabl':312,403,451,1000,1008,1132,1456,1506,1773,2404,2432,2496,2504,2541,2879,2920 'take':1198 'taken':1011 'target':48,218,221,232,492,518,729,1494 'task':479,3180 'test':3200 'text':288,437,441,454,458,2393,2420 'time':1154,1202,1209,1237,1243,1248,1257,1263,1719,1729,2135,2145,2613,2666,3073,3078 'time-axi':1262,1718,2134,2612,2665,3072 'timeseri':405 'timestamp':1240,1750,2166 'timestamp/date':1228 'tip':18,2828 'titl':547,850,2449 'top':1200,2188 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'total':1511,1520,1585,1642,1785,1794,1912,2000,2050,2095,2521,2582,2632,2978 'track':758 'transform':709 'treat':3189 'tri':677,710,749 'trigger':1514,1530,1545,1569,1628,1722,1788,1804,1818,1843,1897,1952,2138,2183,2299,2533,2970 'truncat':2922 'ts':1235,1245 'two':173,287,466 'type':389,402,427,436,450,453,836,2385,2392,2403,2412,2419,2431,2442,2503,2512,2540,2552,2972 'union':2087,2316 'uniqu':1136,1191,1314,1317,1567,1575,1895,1901,2602,2656,2931,3034 'updat':372,2349 'uppercas':1010 'upstream':757 'url':55,63,68,203,225,274,519,2685,2696,2710 'usag':331 'use':148,317,460,537,756,847,1017,1104,1219,1432,1441,1459,1465,1476,1775,1781,2206,2459,2867,2877,2888,2934,2946,3174 'user':332,918,956,3114 'user.name':857 'uv':140 'valid':4,8,38,249,268,315,485,960,1411,2342,2345,2445,2714,2728,2754,2962,3199 'validation-pr':2341 'valu':444,470,1328,2395,2422 'variabl':413,433 'verifi':1574 'version':353,2337 'via':417 'view':542,561,1133 'vs':327,1426,2041 'want':2827 'warehous':168 'warn':916,954 'well':22 'whose':890 'without':84,892 'work':21,154 'wrap':1958 'write':2687 'wrong':1451 'yaml':198,347,352,421,2333,2336,2372,2437,2509,2689,2716,2737,2943,2957 'yet':1975","prices":[{"id":"f990637b-a834-498d-be28-0ace8fc17bc6","listingId":"83a1aace-8960-4725-a990-01adc45c436f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:41:02.971Z"}],"sources":[{"listingId":"83a1aace-8960-4725-a990-01adc45c436f","source":"github","sourceId":"sickn33/antigravity-awesome-skills/monte-carlo-validation-notebook","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/monte-carlo-validation-notebook","isPrimary":false,"firstSeenAt":"2026-04-18T21:41:02.971Z","lastSeenAt":"2026-04-23T06:51:35.643Z"}],"details":{"listingId":"83a1aace-8960-4725-a990-01adc45c436f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"monte-carlo-validation-notebook","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34666,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-23T06:41:03Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"e4b1126842a8828b9d4917b80a86e016bfcf6590","skill_md_path":"skills/monte-carlo-validation-notebook/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/monte-carlo-validation-notebook"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"monte-carlo-validation-notebook","description":"Generates SQL validation notebooks for dbt PR changes with before/after comparison queries."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/monte-carlo-validation-notebook"},"updatedAt":"2026-04-23T06:51:35.643Z"}}