Lineage diff

From AltimateAI/altimate-code · View interactive version

Lineage diff is an AI agent skill from the GitHub repository AltimateAI/altimate-code. Compare column-level lineage between two versions of a SQL query to show added, removed, and changed data flow edges.

How to use this skill

Skill file

Lineage Diff

Requirements

Agent: any (read-only analysis)

Tools used: lineage_check, read, bash (for git operations), glob

Compare column-level lineage between two versions of a SQL model to identify changes in data flow.

Workflow

  1. Get the original SQL — Either:
  1. Get the modified SQL — Either:
  1. Run lineage on both versions:
  1. Compute the diff:
  1. Report the diff in a clear format:
Lineage Diff: model_name
═══════════════════════════

+ ADDED (new data flow):
  + source_table.new_column → target_table.output_column

- REMOVED (broken data flow):
  - source_table.old_column → target_table.output_column

  UNCHANGED: 5 edges

Impact: 1 new edge, 1 removed edge

Usage

The user invokes this skill with a file path:

Edge Matching

Two edges are considered the same if all four fields match:

The transform field is informational and not used for matching.

Use the tools: lineage_check, read, bash (for git operations), glob.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.