altimate-code: Skill for OpenCode

.opencode/skills/lineage-diff/SKILL.md

lineage-diff is a skill for OpenCode from AltimateAI/altimate-code. It costs 28 tokens per session (496 once invoked), scanned A, original, MIT.

A comparison of the column-level data flow in two versions of a SQL query or model. It reports which links between input and output columns were added, removed, or left unchanged.

In plain words
What is it for?
Use it to compare a committed and modified model, check whether a refactoring changed data flow, and identify new or broken column dependencies.
Why use it?
It makes changes in how data moves through a query easier to review than comparing the SQL text alone.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is AltimateAI/altimate-code's own configuration. It tells OpenCode how to work on altimate-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything altimate-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AltimateAI/altimate-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AltimateAI/altimate-code/main/.opencode/skills/lineage-diff/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AltimateAI/altimate-code

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lineage-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/altimateai/altimate-code/lineage-diff/github.svg)](https://agentmods.dev/skills/altimateai/altimate-code/lineage-diff)
Your own site
<a href="https://agentmods.dev/skills/altimateai/altimate-code/lineage-diff"><img src="https://agentmods.dev/badge/skills/altimateai/altimate-code/lineage-diff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lineage-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/altimateai/altimate-code/lineage-diff"><img src="https://agentmods.dev/badge/skills/altimateai/altimate-code/lineage-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00496
Opus 5.5 $0.00011 $0.00198
Sonnet 5.5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00050

Measured 1mo ago against content hash 7e6f283c6685, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lineage-diff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/lineage-diff/SKILL.md · 65 lines

What it actually says

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:

    • Read the file from disk (current committed version)
    • Use git show HEAD:path/to/file.sql via bash to get the last committed version
    • Accept the "before" SQL directly from the user
  2. Get the modified SQL — Either:

    • Read the current (modified) file from disk
    • Accept the "after" SQL directly from the user
  3. Run lineage on both versions:

    • Call lineage_check with the original SQL
    • Call lineage_check with the modified SQL
  4. Compute the diff:

    • Added edges: Edges in the new lineage that don't exist in the old
    • Removed edges: Edges in the old lineage that don't exist in the new
    • Unchanged edges: Edges present in both
  5. 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:

  • /lineage-diff models/marts/dim_customers.sql — Compare current file against last git commit
  • /lineage-diff — Compare staged changes in the current file

Edge Matching

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

  • source_table + source_column + target_table + target_column

The transform field is informational and not used for matching.

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

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 65 lines · 28 tokens per session scan A 7e6f283c6685

Subscribe to this mod's changes

lineage-diff is a skill published in the GitHub repository AltimateAI/altimate-code (813 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 496 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

synthetic-sciences/openscience · 42 tokens

benchling-integration

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

synthetic-sciences/openscience · 44 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

synthetic-sciences/openscience · 74 tokens

geopandas

Python library for working with geospatial vector data including shapefiles, GeoJSON, and GeoPackage files. Use when working with geographic data for spatial analysis, geometric operations, coordinate transformations, spatial joins, overlay operations, choropleth mapping, or any task involving…

synthetic-sciences/openscience · 125 tokens

hdf5-pde-data-loading

Patterns for loading PDE simulation datasets (PDEBench, PhiFlow, JAX-CFD) from HDF5 files. Handles layout detection (single tensor vs separate variables), spatial/temporal downsampling, multi-variable systems, HuggingFace and DaRUS data sources, and efficient PyTorch DataLoader creation. Use when preparing PDE data…

synthetic-sciences/openscience · 82 tokens

ontology-database

Typed knowledge graph via TSV append-only log — entity CRUD, directed relations, schema validation, multi-hop reasoning. CLI via x ondb, protocol readable by AWK/Python/JS/SQLite.

x-cmd/x-cmd · 45 tokens