Triage Monte Carlo alerts interactively or build an automated workflow. Fetch, score, and troubleshoot alerts using MCP tools now, or design a reusable workflow that runs on a schedule.
中文简介正在准备中。当前显示原文说明。
Build a Connection Auth Rules for a Monte Carlo connection type. Fetches live connector schemas and transform steps from the apollo-agent repo.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use this skill when the user wants to build a Connection Auth Rules (stored as ctp_config) for a Monte Carlo connection. The config is stored on the Connection object in the monolith and tells the Apollo agent how to transform flat credentials into the driver-specific connect_args format.
Activate when the user:
MapperConfig, TransformStep, or CtpConfigDo not activate when the user is:
Locate the companion script with Bash:
find -L ~/.claude . -name fetch_schema.py -path "*/connection-auth-rules/*" 2>/dev/null | head -1
Then run it:
python3 <script_path> --list
The script outputs JSON. Parse result.connectors — each entry has a name field. Present the names to the user and ask which connection type they want to build a config for.
If the script fails: Show the error output and offer to retry. Do not proceed until you have the connector list.
Once the user selects a connection type, run the script with that connector name:
python3 <script_path> --connector <name>
The script outputs JSON. Parse result.schema:
output_keys — the driver-level connect_args keys the mapper must produce (from the connector's TypedDict)default_field_map — the existing default mapping (credential field → Jinja2 template)default_steps — any default transform steps already configuredPresent a summary to the user:
If the connector's default config (from Step 2) already includes steps, or if the user indicates they need custom transform steps, run:
python3 <script_path> --connector <name> --transforms
Parse result.transforms — each entry has:
name — the step type string used in "type"step_input — fields the step reads from the pipeline statestep_output — derived fields the step writes, referenceable as {{ derived.<key> }} in the mapperstep_field_map — typical mapper entry to wire the step's output into connect_argsPresent the available steps with their full contracts (input, output, and field_map hint).
If the script fails: Tell the user and offer to retry. You can continue without step data — just describe steps as unknown and ask the user to specify them manually.
Walk the user through each output key in the TypedDict:
MapperConfig (if one exists).The template context has two namespaces:
raw — the flat credential dict as received. Use {{ raw.field_name }} to reference a credential field directly. Example: {{ raw.client_id }}derived — fields added by transform steps. Use {{ derived.field_name }} to reference a step's output. Example: {{ derived.private_key_pem }}Common patterns:
"{{ raw.username }}""{{ raw.port | default('1433') }}""{{ raw.host }}:{{ raw.port }}"When the user doesn't know their credential field names, remind them these come from the Data Collector's credential dict — the keys are whatever the DC sends for that connection type.
If the connector needs steps (e.g. decoding a PEM certificate, constructing a derived field), help the user configure each step. A step dict has these fields:
| Field | Required | Description |
|---|---|---|
type | yes | Step type name (e.g. "load_private_key") |
input | yes | Dict of template strings the step reads (e.g. {"pem": "{{ raw.private_key_pem }}"}) |
output | yes | Dict mapping the step's logical output names to derived key names (e.g. {"private_key": "private_key_der"}) |
when | no | Jinja2 boolean expression — step only runs if this evaluates to true (e.g. "raw.ssl_ca_pem is defined") |
field_map | no | Mapper entries contributed only when this step runs — useful for conditional fields |
Walk the user through type, input, and output for each step. Ask about when if the step should only run under certain credential conditions (e.g. when an optional SSL cert is present).
Steps run in order before the mapper. The mapper can reference step outputs via {{ derived.<key> }}.
Produce the complete Connection Auth Rules as a Python dict (ready to serialize to JSON for storage). This is stored as ctp_config on the Connection model:
{
"steps": [
# each step as a dict, e.g.:
{
"type": "load_private_key",
"input": {
"pem": "{{ raw.private_key_pem }}"
},
"output": {
"private_key": "private_key_der"
}
# optional: "when": "raw.private_key_pem is defined"
}
],
"mapper": {
"field_map": {
"output_key": "{{ raw.credential_field }}",
# step output referenced as: "private_key": "{{ derived.private_key_der }}"
# ...
}
}
}
Also show the equivalent JSON, since this is what gets stored in the monolith's Connection.ctp_config field and entered in the "Connection auth rules" field in the UI.
Remind the user that validation happens server-side via validateConnectionCtpConfig — they should test the config through that mutation (or the Validate button in the UI) after saving it.
validateConnectionCtpConfig GraphQL mutation or the Validate button in the "Connection auth rules" UI section.is not None pattern. An empty field_map ({}) is valid — do not treat it as missing. The monolith checks ctp_config is not None, not truthiness.steps: []. Only add steps when the user needs credential transformation (e.g. PEM decoding, composite field construction).ctp_config / CtpConfig.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Triage Monte Carlo alerts interactively or build an automated workflow. Fetch, score, and troubleshoot alerts using MCP tools now, or design a reusable workflow that runs on a schedule.
中文简介正在准备中。当前显示原文说明。
Generate SQL validation notebooks for dbt changes. Pass a GitHub PR URL or local dbt repo path.
中文简介正在准备中。当前显示原文说明。
Investigate data incidents and find root causes using Monte Carlo's observability data. Guides the agent through systematic investigation: alert lookup, lineage tracing, ETL checks, query analysis, and data profiling. Activates when a user asks about data issues, incidents, alerts, or why data looks wrong.
中文简介正在准备中。当前显示原文说明。
Check the health of a data table/asset using Monte Carlo. Activates on "how is table X", "check health of X", "is X healthy", "status of X", "check on X table", or any health/status question about a data asset.
中文简介正在准备中。当前显示原文说明。
Route data-related requests to the right Monte Carlo skill or workflow. USE WHEN alerts, incidents, data broken, stale, coverage gaps, data quality, or any ambiguous data observability request.
中文简介正在准备中。当前显示原文说明。
Orchestrate incident response — triage, root cause, remediate, prevent recurrence. USE WHEN active alerts, data broken, stale, pipeline failure, or investigate and fix a data incident.
中文简介正在准备中。当前显示原文说明。