lineage-diff

Compare column-level lineage between two SQL versions and output added, removed, and unchanged edges.

792|138|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/AltimateAI/altimate-code --skill lineage-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lineage-diff
Source: https://github.com/AltimateAI/altimate-code/tree/main/.opencode/skills/lineage-diff
Command: npx skills add https://github.com/AltimateAI/altimate-code --skill lineage-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compare column-level lineage between two SQL versions to identify added, removed, and changed data flow edges.

Core Features & Use Cases

  • Compare lineage between two SQL versions to reveal evolution of data flow.
  • Identify added, removed, and unchanged edges to assess impact of changes.
  • Use in version-control scenarios, code reviews, and data pipeline debugging.

Quick Start

Provide the before and after SQL files to compare, and run the lineage-diff tool to see added, removed, and unchanged edges.

Frequently Asked Questions about lineage-diff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare column-level SQL lineage between two versions?

Comparing column-level SQL lineage between two versions requires parsing the data-flow edges of both queries to identify added, removed, and unchanged connections. This Skill analyzes before and after SQL inputs to produce a structured diff for review.

What is SQL lineage diffing and when do I need it?

SQL lineage diffing is the process of identifying changes in data-flow edges between two query versions. You need it during version-control scenarios, code reviews, or data pipeline debugging to assess the impact of modifications on downstream data models.

Can I check git-staged SQL changes for lineage impact?

Yes, you can check git-staged SQL changes for lineage impact by providing the before and after SQL files as manual inputs. The tool computes the column-level data-flow edges and returns a structured diff showing added, removed, and unchanged connections.

Does this SQL lineage comparison work across different SQL dialects?

Yes, SQL lineage comparison works across any supported SQL dialect. The tool parses the provided before and after SQL inputs, computes the column-level data-flow edges regardless of dialect, and returns the added, removed, and unchanged edges.

How do I identify removed or added data flow edges in modified SQL models?

To identify added or removed data flow edges in modified SQL models, provide the original and updated SQL files. The analysis computes the column-level lineage for both versions and returns a structured diff detailing the specific edges that were added, removed, or remained unchanged.

What is the best way to debug data pipeline changes using version control?

The best way to debug data pipeline changes using version control is to compare the column-level lineage of the original and modified SQL. This reveals the evolution of data flow by showing added, removed, and unchanged edges, allowing you to assess the exact impact of your changes.