Pipeline Diagnose
SkillDev toolsLets your agent diagnose why a Bruin data pipeline or asset failed by gathering errors, logs, and tracing bad data upstream.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Pipeline Diagnose skill
About this capability
Use when a Bruin pipeline, asset, or command fails and the cause is not yet clear.
What this skill tells your AI
The instructions your AI receives, as published by bruin-data/bruin in skills/pipeline-diagnose/SKILL.md and read by ahel’s review.
When to Use
Use this skill when a Bruin pipeline, asset, or command fails and the cause is not yet clear.
Inputs
- Failing command and full error output.
- Pipeline or asset path.
- Environment name, if one was used.
- Recent code or configuration changes, if known.
Operating Context
- These starter skills can be used by Bruin Cloud agents, local agents, and external assistants connected to Bruin Cloud.
- In Bruin Cloud, use Cloud CLI access when the agent has it enabled. Use the
bruin cloudCLI when the assistant has shell access and a configured API key or.bruin.yml; use Bruin Cloud MCP only when the assistant is configured for MCP tool calls or does not have direct CLI access. If using the CLI, preferbruin cloud runs diagnose --project-id <project-id> --pipeline <pipeline-name> --latest,bruin cloud runs get --project-id <project-id> --run-id <run-id>,bruin cloud instances logs --project-id <project-id> --run-id <run-id> --asset <asset-name>, andbruin cloud instances failed-logs --project-id <project-id> --run-id <run-id>for logs and run context. - In local development, inspect terminal output and the local
logs/folder, especiallylogs/runs, query logs, and export logs when they exist. Create local runs withbruin run <path>rather than Bruin Cloud run commands. - If investigation or fix verification requires running an asset or pipeline, prefer a dev or shadow environment. If none exists, ask whether to run in production or create temporary copies of the affected tables to reproduce and test the issue.
- For other agent runtimes or orchestrators, customize this skill with the correct log source and action mechanism before using it to read logs or trigger changes.
Context to Gather
- Run
bruin validate <path>for the affected pipeline or asset. - Check
pipeline.yml, asset definitions, and connection names referenced by the failing task. - Inspect recent logs, stack traces, and changed files.
- Use Bruin MCP docs tools or
bruin <command> --helpto confirm the current command syntax before running Cloud or local CLI commands. - Confirm whether the failure is parse-time, compile-time, connection-time, or execution-time.
Data Failure Investigation
- If the failure is caused by bad data and there are bronze, silver, gold, or other tiers, start at the asset where the problem appears and trace upstream through lineage one asset at a time.
- Find one specific failing row, key, partition, or timestamp first, then keep every upstream query filtered to that instance.
- Query the filtered instance in upstream assets until you find the first asset where the problem appears.
- Once the first bad asset is identified, read its SQL query or Python script and isolate the specific function, join, filter, cast, incremental condition, or transformation step that likely caused the problem.
- If the user has allowed fixes, change only that specific logic, then run the smallest asset-level validation in dev or shadow first. Recheck the same failing instance after the fix; only after that passes, run the broader failing command or check.
Decision Tree
- If validation fails, fix the configuration or asset definition first.
- If the connection is missing or invalid, report the missing connection and required fields.
- If rendering fails, inspect Jinja variables, macros, and included files.
- If execution fails after rendering, isolate the failing query or script and summarize the warehouse/runtime error.
Actions
Define repository-specific actions here. Until customized, this skill must report findings and stop before modifying data, source systems, or repo files.
Verification
- Re-run the smallest failing command.
- Run
bruin validate <path>when files were changed. - Capture the final command output or remaining error.
Output
Return a concise diagnosis with:
- Root cause or strongest hypothesis.
- Evidence used.
- Recommended next action.
- Commands run and their result.
Signals
- GitHub stars
- 2k
- Forks
- 90
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
pipeline-diagnose- Source
- github.com/bruin-data/bruin