bruin-data/bruin/schema-drift-check
Claude Code and agent skill by bruin-data/bruin
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when a pipeline fails because source, destination, or declared asset columns may have changed.
Install
npx vskill@latest install bruin-data/bruin/schema-drift-checkSKILL.md
The same SKILL.md was published earlier as bruin-data/bruin/schema-drift-check.
Schema Drift Check
When to Use
Use this skill when a pipeline fails because source, destination, or declared asset columns may have changed.
Inputs
- Affected asset name or path.
- Error output mentioning missing columns, extra columns, type changes, or schema mismatch.
- Connection and environment names, if available.
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, inspect runs withbruin cloud runs diagnose --project-id <project-id> --pipeline <pipeline-name> --latest, fetch run details withbruin cloud runs get --project-id <project-id> --run-id <run-id>, and fetch failed asset logs withbruin cloud instances failed-logs --project-id <project-id> --run-id <run-id>. - In local development, inspect terminal output and the local
logs/folder, especiallylogs/runs, query logs, and export logs when they exist. Usebruin render <asset>,bruin validate <path>, andbruin querywith existing.bruin.ymlconnections for schema investigation. - 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, schema inspection mechanism, and action mechanism before using it.
Context to Gather
- Inspect the asset definition for declared columns and checks.
- Compare the rendered query or ingestion config with the current source schema.
- Check recent upstream changes, ingestion sync logs, and warehouse table metadata when available.
- Use Bruin MCP docs tools or
bruin <command> --helpto confirm the current command syntax before running Cloud or local CLI commands. - Identify downstream assets that reference changed columns.
Lineage Investigation
- Find one specific missing, renamed, type-changed, or malformed column example first, then keep every upstream schema or data query scoped to the affected table, column, partition, or row.
- If the data has bronze, silver, gold, or other tiers, start at the failing asset and trace upstream through lineage one asset at a time.
- Compare the filtered data and schema metadata in each upstream asset until you find the first asset or source where the schema drift appears.
- Once the first drifted asset is identified, read its SQL query, ingestion config, or Python script and isolate the specific select list, cast, rename, source mapping, union, model contract, or function that likely introduced the mismatch.
- If the user has allowed fixes, change only that specific logic, then run the smallest render, schema inspection, or asset-level validation in dev or shadow first. Recheck the same column example after the fix; only after that passes, run the broader schema validation.
Decision Tree
- If a column was added upstream, classify whether it is safe to ignore, declare, or propagate.
- If a column was removed or renamed, identify every asset that still references it.
- If a type changed, check whether casts or quality checks now fail.
- If only column order changed, verify whether the affected task depends on positional columns.
Actions
Define repository-specific actions here. Until customized, this skill must report findings and stop before modifying schemas, source systems, warehouse tables, or repo files.
Verification
- Re-run validation for the affected asset.
- Re-run the smallest schema inspection or render command used in diagnosis.
- Confirm whether downstream references are accounted for.
Output
Return:
- Drift type: added, removed, renamed, type-changed, or unknown.
- Affected columns and assets.
- Recommended action.
- Verification commands and results.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/schema-drift-check/SKILL.md
Popularity
- Repository stars
- 1,759
- Repository forks
- 94
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bruin-data/bruin/schema-drift-check)