Command Palette

Search for a command to run...

Назад к скиллам
скилл № 69799

data-data-versioning

Use when the user asks about data versioning with DVC or lakeFS, Git-like branches for data, data snapshots, rollback of a bad load or reproducible training…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить data-data-versioning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Data Data Versioning

Purpose

Implement data versioning with DVC or LakeFS for reproducibility, branching, diff, rollback, and experiment tracking across data pipelines and ML workflows.

Agent Protocol

Trigger

Exact user phrases: "data versioning", "DVC", "LakeFS", "data lineage", "Git-like for data", "data reproducibility", "data branching", "data diff", "data snapshot", "experiment reproducibility", "data rollback", "data version control".

Input Context

  • Data storage platform (S3, GCS, ADLS, MinIO)
  • ML/analytics pipeline framework
  • Existing Git workflow for code
  • Team size and collaboration patterns
  • Experiment tracking needs
  • Compliance requirements for data lineage

Output Artifact

Data versioning strategy with DVC or LakeFS, branching model, experiment reproducibility workflow, data diff and rollback procedures.

Response Format

# Versioning tool selection
# Branching model
# DVC/LakeFS configuration
# Experiment tracking setup
# Data diff + rollback workflow

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Versioning tool selected (DVC vs LakeFS) with rationale
  • Branching model defined for data development
  • DVC or LakeFS configured with remote storage
  • Data diff and rollback procedures documented
  • Experiment reproducibility workflow established
  • Data lineage tracked from source to output
  • CI/CD integration for data versioning

Max Response Length

350 lines of configuration.

Workflow

Step 1: Select Versioning Tool

Tool Best For Model Storage
DVC ML experiments, small-medium data, file-based Pointer files in Git S3/GCS/SSH/local
LakeFS Large data lakes, production pipelines, tabular data Git-like semantics on object store S3/GCS/ADLS

Default: DVC for ML/experimentation workflows (datasets up to 100GB). LakeFS for enterprise data lakes, large-scale pipelines, and production branching. Use both if ML + data lake.

Decision tree:

  • Dataset size < 100GB, ML experiments, small team? → DVC
  • Data lake > 1TB, production branching, many concurrent users? → LakeFS
  • Need both ML experiment tracking + production data lake? → DVC for ML, LakeFS for data lake
  • Need catalog-level versioning for Iceberg tables? → Nessie

Step 2: DVC Pattern

# Initialize
git init && dvc init

# Add remote storage
dvc remote add -d myremote s3://my-bucket/dvc-store
dvc remote modify myremote region us-east-1

# Track data
dvc add data/raw/customers.csv
git add data/raw/customers.csv.dvc .gitignore
git commit -m "add raw customers dataset"

# Create pipeline (dvc.yaml)
dvc stage add -n train \
  -p params.yaml:lr,epochs \
  -d data/processed/train.csv \
  -d src/train.py \
  -o models/model.pkl \
  -M metrics/accuracy.json \
  python src/train.py

# Reproduce pipeline
dvc repro

# Track experiments
dvc exp run --set-param train.lr=0.01
dvc exp show
dvc exp apply exp-abc123  # rollback to experiment

Step 3: LakeFS Pattern

# Create branch
lakectl branch create spark://main@data-lake/refs/heads/etl-dev

# Work on branch (Spark job reads from etl-dev branch)
spark.read.format("iceberg").option("branch", "etl-dev").table("analytics.fct_orders")

# Commit changes
lakectl commit lakefs://data-lake/etl-dev -m "add revenue column to fct_orders"

# Diff
lakectl diff lakefs://data-lake/main lakefs://data-lake/etl-dev

# Merge
lakectl merge lakefs://data-lake/etl-dev lakefs://data-lake/main

# Rollback
lakectl revert lakefs://data-lake/main --commit <bad-commit-hash>

# Tag
lakectl tag lakefs://data-lake/v1.0.0 lakefs://data-lake/main

Step 4: Branching Model

main (production data, immutable)
  ├── dev/feature-name (data development)
  ├── experiment/user-name (ML experiments)
  └── hotfix/issue (urgent data fixes)
      ↓ merge via PR with data diff review

Rules: no direct writes to main. All changes via branch → PR → data diff review → merge. experiment/* branches can diverge without merging. dev/* branches merge to main when ready. Tags for releases and audit points.

Step 5: Experiment Reproducibility

Experiment:
  - Git commit (code): a1b2c3d
  - DVC commit (data): e4f5g6h
  - Parameters: lr=0.01, epochs=50
  - Metrics: accuracy=0.923, loss=0.18
  - Output: models/exp-a1b2c3d.pkl

Reproduce:
  git checkout a1b2c3d
  dvc checkout e4f5g6h
  dvc repro
  # → identical metrics if pipeline is deterministic

Step 6: Data Diff

# DVC diff between Git commits
dvc diff a1b2c3d e4f5g6h
# Shows: added/deleted/modified files, size changes

# LakeFS diff
lakectl diff lakefs://data-lake/main lakefs://data-lake/dev-feature
# Shows: rows added, rows modified, rows removed, schema changes

Step 7: CI/CD Integration

# .github/workflows/data-pipeline.yml
jobs:
  data-pipeline:
    runs-on: ubuntu-latest
    step
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/data-versioning-branching.md
  • references/data-versioning-delta-lake.md
  • references/data-versioning-gc-retention.md
  • references/data-versioning-lineage-tracking.md
  • references/data-versioning-strategy.md
  • references/data-versioning-tools.md
  • references/delta-lake-time-travel.md
  • references/dvc-patterns.md
  • references/lakefs-patterns.md
  • references/nessie-iceberg-versioning.md

FAQ

Что делает скилл data-data-versioning?

Use when the user asks about data versioning with DVC or lakeFS, Git-like branches for data, data snapshots, rollback of a bad load or reproducible training data. Produces versioning workflow, branching model and reproducibility checks. Not for Iceberg/Delta time travel (use data-data-lake) or experiment logging (use ml-experiment-tracking).

Как установить скилл data-data-versioning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-data-versioning запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-data-versioning с