monte-carlo-push-ingestion
ALWAYS use this when the request matches Monte Carlo Push Ingestion: Expert guide for pushing metadata, lineage, and query logs to Monte Carlo from any data…
от Anhvu1107★ 25 звёзд на GitHub
Установить monte-carlo-push-ingestion в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Monte Carlo Push Ingestion
Selective Reading Rule
Start with:
references/usage-routing.mdreferences/quality-checklist.md
Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.
Selective Reading Rule
Start with:
references/senior-master-standard.mdreferences/prerequisites.mdreferences/validation.md
Then load only the specific ingestion references and script templates that match the source warehouse and ingestion surface.
You are an agent that helps customers collect metadata, lineage, and query logs from their data warehouses and push that data to Monte Carlo via the push ingestion API. The push model works with any data source — if the customer's warehouse does not have a ready-made template, derive the appropriate collection queries from that warehouse's system catalog or metadata APIs. The push format and pycarlo SDK calls are the same regardless of source.
Monte Carlo's push model lets customers send metadata, lineage, and query logs directly to Monte Carlo instead of waiting for the pull collector to gather it. It fills gaps the pull model cannot always cover — integrations that don't expose query history, custom lineage between non-warehouse assets, or customers who already have this data and want to send it directly.
Push data travels through the integration gateway → dedicated Kinesis streams → thin adapter/normalizer code → the same downstream systems that power the pull model. The only new infrastructure is the ingress layer; everything after it is shared.
MANDATORY — Always start from templates
When generating any push-ingestion script, you MUST:
- Read the corresponding template before writing any code. Templates live in this skill's
directory under
scripts/templates/<warehouse>/. To find them, glob for**/push-ingestion/scripts/templates/<warehouse>/*.py— this works regardless of where the skill is installed. Do NOT search from the current working directory alone. - Adapt the template to the customer's needs — do not write pycarlo imports, model constructors, or SDK method calls from memory.
- If no template exists for the target warehouse, read the Snowflake template as the canonical reference and adapt only the warehouse-specific collection queries.
Template files follow this naming pattern:
collect_<flow>.py— collection only (queries the warehouse, writes a JSON manifest)push_<flow>.py— push only (reads the manifest, sends to Monte Carlo)collect_and_push_<flow>.py— combined (imports from both, runs in sequence)
After running any push script, you MUST surface the invocation_id(s) returned by the API
to the user. The invocation ID is the only way to trace pushed data through downstream systems
and is required for validation. Never let a push complete without showing the user the
invocation IDs — they need them for /mc-validate-metadata, /mc-validate-lineage, and
debugging.
Canonical pycarlo API — authoritative reference
The following imports, classes, and method signatures are the ONLY correct pycarlo API for push ingestion. If your training data suggests different names, it is wrong. Use exactly what is listed here.
Imports and client setup
from pycarlo.core import Client, Session
from pycarlo.features.ingestion import IngestionService
from pycarlo.features.ingestion.models import (
# Metadata
RelationalAsset, AssetMetadata, AssetField, AssetVolume, AssetFreshness, Tag,
# Lineage
LineageEvent, LineageAssetRef, ColumnLineageField, ColumnLineageSourceField,
# Query logs
QueryLogEntry,
)
client = Client(session=Session(mcd_id=key_id, mcd_token=key_token, scope="Ingestion"))
service = IngestionService(mc_client=client)
Method signatures
# Metadata
service.send_metadata(resource_uuid=..., resource_type=..., events=[RelationalAsset(...)])
# Lineage (table or column)
service.send_lineage(resource_uuid=..., resource_type=..., events=[LineageEvent(...)])
# Query logs — note: log_type, NOT resource_type
service.send_query_logs(resource_uuid=..., log_type=..., events=[QueryLogEntry(...)])
# Extract invocation ID from any response
service.extract_invocation_id(result)
RelationalAsset structure (nested, NOT flat)
RelationalAsset(
type="TABLE", # ONLY "TABLE" or "VIEW" (uppercase) — normalize warehouse-native values
metadata=AssetMetadata(
name="my_table",
database="analytics",
schema="public",
description="optional description",
),
fields=[
AssetField(name="id", type="INTEGER", description=None),
AssetField(name="amount", type="DECIMAL(10,2)"),
],
volume=AssetVolume(row_count=1000000, byte_count=111111111), # optional
freshness=AssetFreshness(last_update_time="2026-03-12T14:30:00Z"), # optional
)
Environment variable conventions
All generated scripts MUST use these ex
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
- references/anomaly-detection.md
- references/custom-lineage.md
- references/direct-http-api.md
- references/frontmatter-metadata.md
- references/prerequisites.md
- references/push-lineage.md
- references/push-metadata.md
- references/push-query-logs.md
- references/quality-checklist.md
- references/senior-master-standard.md
- references/usage-routing.md
- references/validation.md
- scripts/sample_verify.py
- scripts/templates/bigquery-iceberg/collect_and_push_metadata.py
- scripts/templates/bigquery-iceberg/collect_and_push_query_logs.py
- scripts/templates/bigquery-iceberg/collect_metadata.py
- scripts/templates/bigquery-iceberg/collect_query_logs.py
- scripts/templates/bigquery-iceberg/push_metadata.py
- scripts/templates/bigquery-iceberg/push_query_logs.py
- scripts/templates/bigquery/collect_and_push_lineage.py
- scripts/templates/bigquery/collect_and_push_metadata.py
- scripts/templates/bigquery/collect_and_push_query_logs.py
- scripts/templates/bigquery/collect_lineage.py
- scripts/templates/bigquery/collect_metadata.py
- scripts/templates/bigquery/collect_query_logs.py
- scripts/templates/bigquery/push_lineage.py
- scripts/templates/bigquery/push_metadata.py
- scripts/templates/bigquery/push_query_logs.py
- scripts/templates/databricks/collect_and_push_lineage.py
- scripts/templates/databricks/collect_and_push_metadata.py
- scripts/templates/databricks/collect_and_push_query_logs.py
- scripts/templates/databricks/collect_lineage.py
- scripts/templates/databricks/collect_metadata.py
- scripts/templates/databricks/collect_query_logs.py
- scripts/templates/databricks/push_lineage.py
- scripts/templates/databricks/push_metadata.py
- scripts/templates/databricks/push_query_logs.py
- scripts/templates/hive/collect_and_push_lineage.py
- scripts/templates/hive/collect_and_push_metadata.py
FAQ
Что делает скилл monte-carlo-push-ingestion?
ALWAYS use this when the request matches Monte Carlo Push Ingestion: Expert guide for pushing metadata, lineage, and query logs to Monte Carlo from any data warehouse.
Как установить скилл monte-carlo-push-ingestion?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monte-carlo-push-ingestion запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…