data-diff
Compare two dataset versions and produce a structured diff — what was added, removed, changed, with row counts and field-level change summaries.
Skill by mkurman
Chalk Labs
Need help deploying data-diff?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mkurman-data-diff
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/data-diff
What's inside
- Skill name
data-diff- Description
- Compare two dataset versions and produce a structured diff — what was added, removed, changed, with row counts and field-level change summaries.
- License
- MIT
- Instructions
- 110 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Data Diff
## Overview
Given two dataset versions, produce a structured, auditable diff: rows added/removed/modified, field-level changes, distribution shifts, and summary statistics.
## When to Use
Before accepting a new dataset version into training. As a gate in your data pipeline. When debugging why a model's behavior changed.
## Core Diff
```python
import pandas as pd
import numpy as np
from dataclasses import dataclass, field
from typing import List, Dict, Any
@dataclass
class DatasetDiff:
version_from: str
version_to: str
n_rows_before: int
n_rows_after: int
rows_added: int = 0
rows_removed: int = 0
rows_modified: int = 0
columns_added: List[str] = field(default_factory=list)
columns_removed: List[str] = field(default_factory=list)
columns_modified: List[Dict[str, Any]] = field(default_factory=list)
distribution_shifts: List[Dict[str, Any]] = field(default_factory=list)
def diff_datasets(old_df, new_df, key_cols, old_version, new_version):
diff = DatasetDiff(version_from=old_version, version_to=new_version,
n_rows_before=len(old_df), n_rows_after=len(new_df))
old_keys = set(tuple(r) for r in old_df[key_cols].values)
new_keys = set(tuple(r) for r in new_df[key_cols].values)
diff.rows_added = len(new_keys - old_keys)
diff.rows_removed = len(old_keys - new_keys)
# Rows modified (same key, different values)
common = old_keys & new_keys
if common:
old_idx = old_df.set_index(key_cols).loc[list(common)]
new_idx = new_df.set_index(key_cols).loc[list(common)]
diff.rows_modified = int((old_idx != new_idx).any(axis=1).sum())
# Column changes
diff.columns_added = list(set(new_df.columns) - set(old_df.columns))
diff.columns_removed = list(set(old_df.columns) - set(new_df.columns))
# Column-level stats
for col in set(old_df.columns) & set(new_df.columns):
if old_df[col].dtype in (np.float64, np.int64):
old_mean, new_mean = old_df[col].mean(), new_df[col].mean()
if abs(old_mean - new_mean) > 1e-6:
diff.columns_modified.append({
"column": col,
"old_mean": float(old_mean),
"new_mean": float(new_mean),
"delta": float(new_mean - old_mean),
"old_nulls": int(old_df[col].isnull().sum()),
"new_nulls": int(new_df[col].isnull().sum()),
})
# Distribution shifts (KS test for numeric columns)
from scipy.stats import ks_2samp
for col in old_df.select_dtypes(include=np.number).columns:
ks_stat, ks_p = ks_2samp(old_df[col].dropna(), new_df[col].dropna())
if ks_p < 0.01:
diff.distribution_shifts.append({
"column": col,
"ks_statistic": float(ks_stat),
"significant": True,
})
return diff
def diff_report(diff: DatasetDiff) -> str:
lines = [
f"# Dataset Diff: {diff.version_from} → {diff.version_to}",
f"Rows: {diff.n_rows_before} → {diff.n_rows_after}",
f" +{diff.rows_added} added, -{diff.rows_removed} removed, ~{diff.rows_modified} modified",
f"",
]
if diff.columns_added:
lines.append(f"Columns added: {diff.columns_added}")
if diff.columns_removed:
lines.append(f"Columns removed: {diff.columns_removed}")
if diff.columns_modified:
lines.append("Column value changes:")
for c in diff.columns_modified:
lines.append(f" {c['column']}: {c['old_mean']:.4f} → {c['new_mean']:.4f} "
f"(Δ={c['delta']:.4f}, nulls: {c['old_nulls']}→{c['new_nulls']})")
if diff.distribution_shifts:
lines.append(f"Significant distribution shifts: {[d['column'] for d in diff.distribution_shifts]}")
return "\n".join(lines)
```
## Quality Gate
- Diff is produced for every version transition.
- Rows added/removed/modified are accounted for.
- Distribution shifts in numeric columns are flagged (KS test, p < 0.01).
- Null rate changes > 5pp are flagged.
- New/removed columns are explicitly listed.From mkurman/zorai, MIT.
More from mkurman/zorai
- 0.798score
best-practices
web-quality-skills
Apply modern web development best practices for security, compatibility, and code quality.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
product-strategy
mkurman
Use this skill when defining product vision, building roadmaps, prioritizing features, or choosing frameworks like RICE, ICE, or MoSCoW.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
internal-docs
mkurman
Use this skill when writing, reviewing, or improving internal engineering documents - RFCs, design docs, post-mortems, runbooks, and knowledge base articles.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
social-media-strategy
mkurman
Use this skill when planning social media strategy, creating platform-specific content, scheduling posts, or analyzing engagement metrics.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
create-workflow
mkurman
Conversational guide for creating valid YAML workflow definitions.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
compensation-strategy
mkurman
Use this skill when benchmarking compensation, designing equity plans, building leveling frameworks, or structuring total rewards.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
video-analyzer
mkurman
Use this skill when analyzing existing video files using FFmpeg and AI vision, extracting frames for design system generation, detecting scene boundaries…
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
budgeting-planning
mkurman
Use this skill when building budgets, conducting variance analysis, implementing rolling forecasts, or allocating costs.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
proposal-writing
mkurman
Use this skill when writing proposals, responding to RFPs, drafting SOWs, or developing pricing strategies.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
account-management
mkurman
Use this skill when managing key accounts, planning expansions, running QBRs, or mapping stakeholders.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
brand-strategy
mkurman
Use this skill when defining brand positioning, voice and tone guidelines, brand architecture, or storytelling frameworks.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
video-audio-design
mkurman
Use this skill when adding audio to programmatic videos - generating narration with ElevenLabs TTS, sourcing royalty-free background music, creating SFX with…
SkillAFreshness: A★ 325Claude Code +9
Signals
- Stars
- 325
- Forks
- 24
- Open issues
- 0
- Last commit (this folder)
- May 17, 2026 (5 months ago)
- Last release
- Oct 23, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mkurman/zorai
- Website
- zorai.app/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.308score
data-diff
mkurman
Compare two dataset versions and produce a structured diff — what was added, removed, changed, with row counts and field-level change summaries.
SkillAFreshness: A★ 325Claude Code +9 - 0.308score
data-diff
mkurman
Compare two dataset versions and produce a structured diff — what was added, removed, changed, with row counts and field-level change summaries.
SkillAFreshness: A★ 325Claude Code +9
More from mkurman
- 0.597score
budgeting-planning
mkurman
Use this skill when building budgets, conducting variance analysis, implementing rolling forecasts, or allocating costs.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
compensation-strategy
mkurman
Use this skill when benchmarking compensation, designing equity plans, building leveling frameworks, or structuring total rewards.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
brand-strategy
mkurman
Use this skill when defining brand positioning, voice and tone guidelines, brand architecture, or storytelling frameworks.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
create-workflow
mkurman
Conversational guide for creating valid YAML workflow definitions.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
account-management
mkurman
Use this skill when managing key accounts, planning expansions, running QBRs, or mapping stakeholders.
SkillAFreshness: A★ 325Claude Code +9 - 0.597score
internal-docs
mkurman
Use this skill when writing, reviewing, or improving internal engineering documents - RFCs, design docs, post-mortems, runbooks, and knowledge base articles.
SkillAFreshness: A★ 325Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get data-diff running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
data-diff skill. Agent Mart. https://agentmart.dev/skills/mkurman-data-diff (last updated 2026-10-24)