Automated summary
Guides an agent through using DVC to version datasets and models alongside Git, define reproducible ML pipeline stages, and run and compare experiments.
Strengths
- Covers the full core workflow: installation, `dvc add`, remotes, `dvc.yaml` pipelines, and `dvc exp` commands.
- Includes concrete YAML examples for stages, parameters, metrics, and plots.
- Warns to keep data out of Git and credentials out of committed DVC config.
- Shows both CLI stage creation and queued experiment execution.
Limitations
- The supplied content ends mid-sentence, so the experiments section is incomplete.
- Assumes existing familiarity with Git, Python ML scripts, and remote storage configuration.
- Does not cover troubleshooting, cache management, or CI integration.
Use it when dataset or model files are too large for Git and you need reproducible pipeline runs or experiment comparisons.
Avoid it for small projects where plain Git and ad-hoc scripts are sufficient, or when no shared remote storage is available.
Security analysis
SafeThe skill is documentation-only (no declared tools): it explains DVC concepts and shows standard CLI commands (pip install, git, dvc add/push/pull/repro/exp). Nothing is destructive, obfuscated, or exfiltrating; there are no curl|sh pipes, no credential handling beyond explicitly advising to keep secrets in .dvc/config.local or provider environment variables, and no attempt to alter the auditor's role or instructions. Network use (dvc push/pull to S3/GCS, pip install) and command execution via dvc repro are inherent, user-directed behaviors of the tool being documented, and the content even warns about pickle-loading untrusted model files — a good security note rather than a risk.
No concerns found
How this analysis is madeExamples
Initialize DVC in this repo, track data/raw with dvc add, configure an S3 remote named storage, and push the data.Create DVC stages for prepare and train in dvc.yaml using params.yaml, then run dvc repro and show the DAG.Run DVC experiments for train.n_estimators=50 and 200, queue them, then show the metrics comparison with dvc exp show.name: dvc description: | DVC (Data Version Control) tracks large datasets and models next to Git, builds reproducible ML pipelines and compares experiments. Use when the user says "version my dataset", "dvc add", "dvc repro", "track ML experiments", "push data to S3 or GCS" or wants to reproduce a model from a Git commit. license: Apache-2.0 compatibility: 'Python 3.9+, dvc 3.x (checked with 3.67), Git, Linux/macOS/Windows' metadata: author: terminal-skills version: 1.1.0 category: data-ai repository: https://github.com/treeverse/dvc tags: "data-versioning, ml-pipelines, experiment-tracking, reproducibility, git"
DVC (Data Version Control)
Overview
DVC keeps big files out of Git. dvc add replaces a file or directory with a small .dvc pointer that Git tracks, while the content goes to a cache and a remote (S3, GCS, Azure, SSH, local path). dvc.yaml describes pipeline stages with dependencies, parameters and outputs, so dvc repro re-runs only what changed. dvc exp runs and compares experiments without making a branch per try.
Instructions
Install and initialise
pip install dvc # or: pipx install dvc, uv tool install dvc
pip install "dvc[s3]" # remote extras: s3, gs, azure, ssh, webdav; "dvc[all]" for all
cd churn-model
git init && dvc init # creates .dvc/ and .dvcignore; commit them
Track data
dvc add data/raw # file or directory; writes data/raw.dvc, adds data/raw to .gitignore
git add data/raw.dvc data/.gitignore
git commit -m "Track raw data with DVC"
Never run git add on the data itself. Once a path is tracked by DVC, Git must not track it too.
Remote storage
dvc remote add -d storage s3://acme-ml-data/dvc-store # -d makes it the default
# other URL forms (use one name once; add -f to replace an existing remote):
# gs://acme-ml-data/dvc-store GCS
# /mnt/shared/dvc-store local or network path
dvc remote modify --local storage profile ml-team # S3 profile; credentials go in --local (not committed)
dvc push # upload cache to the remote
dvc pull # download what the current commit needs (after clone or checkout)
Keep secrets out of .dvc/config; use --local (written to .dvc/config.local, git-ignored) or the cloud provider's environment variables.
Pipelines
dvc.yaml (stages) and params.yaml (parameters) are both committed:
# dvc.yaml
stages:
prepare:
cmd: python src/prepare.py
deps: [src/prepare.py, data/raw]
outs: [data/processed]
train:
cmd: python src/train.py
deps: [src/train.py, data/processed]
params: [train.n_estimators, train.max_depth]
outs: [models/model.pkl]
metrics:
- metrics/train.json:
cache: false
plots:
- metrics/confusion.csv:
cache: false
x: predicted
y: actual
# params.yaml
train:
n_estimators: 50
max_depth: 5
dvc repro # runs stale stages, writes dvc.lock (commit it)
dvc repro train # one stage and its upstream
dvc dag # show stage graph
dvc stage add -n train -d src/train.py -o models/model.pkl python src/train.py creates a stage from the command line.
Experiments
dvc exp run -S train.n_estimators=100 # one run with an overridden parameter
dvc exp run -S train.n_estimators=10 --queue # queue instead of running
dvc exp run -S train.n_estimators=200 --queue
dvc queue start -j 2 # run queued experiments with 2 workers
dvc queue status
dvc exp show # table of params and metrics per experiment
dvc exp diff
dvc exp apply eight-gaze # put an experiment's result into the workspace
dvc exp push origin eight-gaze # share it as a Git ref (needs a Git remote)
Experiments get generated names (like eight-gaze); use the name dvc exp show prints. dvc exp run also leaves the result in your workspace, so commit it if you want to keep it.
Metrics and plots
dvc metrics show
dvc metrics diff main # compare workspace with a revision
dvc plots show metrics/confusion.csv # writes dvc_plots/index.html
dvc plots diff main
Use data from another repository
dvc get https://github.com/acme-ml/churn-data data/processed # download once, no link
dvc import https://github.com/acme-ml/churn-data data/processed # download and record the source in a .dvc file; update with dvc update
import dvc.api
import pandas as pd
with dvc.api.open("data/processed/customers.csv", repo="https://github.com/acme-ml/churn-data") as f:
df = pd.read_csv(f)
url = dvc.api.get_url("models/model.pkl", repo="https://github.com/acme-ml/churn-data")
Examples
Example 1: "Version my 5 GB image folder and share it with the team"
dvc add data/images
git add data/images.dvc data/.gitignore && git commit -m "Track images"
dvc remote add -d storage s3://acme-ml-data/dvc-store
git add .dvc/config && git commit -m "Configure DVC remote"
dvc push
A teammate then runs git clone ... && dvc pull. dvc pull then restores data/images from the S3 store.
Example 2: "Try three learning depths and keep the best"
for d in 3 5 8; do dvc exp run -S train.max_depth=$d --queue; done
dvc queue start -j 3
dvc exp show --only-changed
dvc exp apply calm-tail # the name from the table
git add dvc.lock params.yaml metrics && git commit -m "Use max_depth 8"
dvc exp show prints one row per experiment with accuracy and the changed parameters, so the best one can be chosen by value and applied.
Guidelines
- Commit
dvc.yaml,dvc.lock,params.yaml,.dvcfiles and.gitignorechanges; do not commit data, models or.dvc/cache. - A stage
params:entry must match a key inparams.yaml, and the script must read that key; a mismatch silently makes the stage ignore the change. - Mark small metrics files
cache: falseso Git can show their diffs. - Run
dvc pushbefore pushing the Git commit, or teammates get pointers to data that is not in the remote. - Only pickle-load model files you produced yourself;
model.pklfrom an untrusted repository can run code. - DVC is not a database or a feature store; for small text files plain Git is simpler.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/dvc-data-versioning-ml-pipelines-mwirmdw1/download' --output '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md.part' && mv '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md.part' '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Python 3.9+, dvc 3.x (checked with 3.67), Git, Linux/macOS/Windows
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && test -s '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dvc' && cp -R '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1' '.claude/skills/dvc'Cursor
test -f '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && test -s '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/dvc' && cp -R '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1' '.cursor/skills/dvc'Codex
test -f '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && test -s '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/dvc' && cp -R '.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1' '.agents/skills/dvc'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1'openskills read 'dvc-data-versioning-ml-pipelines-mwirmdw1'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/dvc-data-versioning-ml-pipelines-mwirmdw1/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.