data-lineage

data-lineage is a skill for Claude Code from etoyama/insight-blueprint. It costs 83 tokens per session (1,307 once invoked), scanned A, original, MIT.

A tracker for how data changes as it moves through analysis notebooks or scripts. It records row-count changes in pandas pipelines and can create Mermaid diagrams, which are text-based flowcharts.

In plain words
What is it for?
Use it to trace pandas pipeline steps, export lineage diagrams, and review or refactor analysis workflows.
Why use it?
It makes data transformations easier to inspect and shows where rows are added, removed, or changed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Part of the insight-blueprint plugin — 10 skills, 2 MCP servers shipped together

Good fit Use it to trace pandas pipeline steps, export lineage diagrams, and review or refactor analysis workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/etoyama/insight-blueprint/data-lineage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add etoyama/insight-blueprint --skill data-lineage
Clone the repo
git clone --depth 1 https://github.com/etoyama/insight-blueprint

Made for: Claude Code.

Or install insight-blueprint, the plugin that ships this one along with the rest of its 10 skills, 2 MCP servers.

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 data-lineage

README.md
[![agentmods](https://agentmods.dev/badge/skills/etoyama/insight-blueprint/data-lineage/github.svg)](https://agentmods.dev/skills/etoyama/insight-blueprint/data-lineage)
Your own site
<a href="https://agentmods.dev/skills/etoyama/insight-blueprint/data-lineage"><img src="https://agentmods.dev/badge/skills/etoyama/insight-blueprint/data-lineage/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 data-lineage

Your own site · 80×15
<a href="https://agentmods.dev/skills/etoyama/insight-blueprint/data-lineage"><img src="https://agentmods.dev/badge/skills/etoyama/insight-blueprint/data-lineage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,307 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.
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.00083 $0.01307
Opus 5 $0.00042 $0.00654
Sonnet 5 $0.00017 $0.00261
Haiku 4.5 $0.00008 $0.00131

Measured 9d ago against content hash 901c17e56168, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

data-lineage 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 9d 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.

skills/data-lineage/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/data-lineage — Pipeline Lineage Tracker

Track DataFrame transformation pipelines and visualize row count changes using insight_blueprint.lineage.

When to Use

  • Setting up lineage tracking in a new notebook
  • Exporting Mermaid diagrams from tracked pipelines
  • Refactoring pipelines based on lineage analysis

When NOT to Use

  • Creating or managing analysis designs (-> /analysis-design)
  • Recording reasoning steps (-> /analysis-journal)
  • Registering data sources (-> /catalog-register)

Prerequisites Check

Step 0: Python Package Check (MUST run before Step 1)

  1. Run: python -c "from insight_blueprint.lineage import tracked_pipe; print('OK')"
  2. If output is "OK": proceed to Step 1
  3. If ImportError or command fails:
    • Ask the user: "data-lineage の tracked_pipe を使うには insight-blueprint Python パッケージが必要です。uv add insight-blueprint を実行しますか?(分析パイプラインの透明性追跡に推奨)"
    • If user approves: run uv add insight-blueprint, then re-check import
    • If user declines: inform user that tracked_pipe features are unavailable, continue with MCP tools only (export/Mermaid diagram generation via MCP is still available)
    • If install fails: show error, suggest manual install with pip install insight-blueprint

Note: MCP tools (Mermaid export, lineage graph generation) work without the Python package. Only tracked_pipe in user notebooks/scripts requires the package.

Workflow

Mode A: Setup — /data-lineage <design_id> setup

Help the user add tracked_pipe to an existing notebook.

Workflow:

  1. Confirm the target AnalysisDesign (if design_id provided, call get_analysis_design)
  2. Locate the target notebook/script (ask the user if unclear)
  3. Read the notebook and identify DataFrame transformation steps (.pipe(), filter, merge, join, dropna, assign, query, etc.)
  4. For each transformation, suggest wrapping with tracked_pipe:
from insight_blueprint.lineage import LineageSession, tracked_pipe

session = LineageSession(name="<pipeline_name>", design_id="<design_id>")

# Before:
df = df.dropna(subset=["price"])

# After:
df = df.pipe(tracked_pipe(
    lambda df: df.dropna(subset=["price"]),
    reason="price 欠損行を除外",
    session=session,
))

Read the full file on GitHub · 149 lines

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. 9d ago First seen · 149 lines · 83 tokens per session scan A 901c17e56168

Subscribe to this mod's changes

data-lineage is a skill published in the GitHub repository etoyama/insight-blueprint (0 stars, last pushed 17d ago), licensed MIT. It adds 83 tokens to every session and 1,307 once invoked, about $0.0004 per session on Opus 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-31.