Datalad
K-DenseCommunityCreated by Dylan PulverDistributed by K-Dense
- Skill
- Tool integration
- Science and research
- MIT
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
DataLad provides a data management layer over Git and git-annex, designed to handle large scientific datasets and ensure computational reproducibility. It tracks dataset structure and history with Git, while managing large file content via git-annex. By recording commands, inputs, and outputs through datalad run, it creates machine-readable provenance records that allow for exact re-execution of analyses. It supports modular project structures using subdatasets and facilitates publishing to multiple storage remotes, ensuring that data and its associated provenance remain linked and accessible.
What it does
- Retrieves and versions large scientific datasets using git-annex for content management.
- Captures computational provenance by recording commands and their dependencies in commits.
- Enables re-execution of analysis steps using datalad rerun to ensure reproducibility.
- Manages nested project structures through independent subdatasets.
- Integrates with container technologies to track software environments alongside data.
- Publishes datasets to multiple siblings including Git hosting and storage remotes.
When to use it
- When working with datasets too large for standard Git repositories.
- When you need to ensure an analysis is fully re-executable with a machine-readable record.
- When consuming public scientific datasets from repositories like OpenNeuro or DANDI.
- When managing complex projects that require nesting multiple independent datasets.
- When you need to track which copies of data exist across different storage locations.
Advantages
- Enables computational reproducibility by linking code, data, and execution records.
- Handles large files efficiently without bloating the primary Git history.
- Supports modularity by allowing subdatasets to maintain their own independent history.
- Provides a clear path for publishing data and code to multiple locations simultaneously.
- Allows selective retrieval of data to save local disk space.
Usage examples
- “datalad clone https://github.com/OpenNeuroDatasets/ds000001.git”
- Creates a local clone of the dataset, fetching the Git history and structure while leaving large annexed files as pointers.
- “datalad get sub-01/anat/sub-01_T1w.nii.gz”
- Downloads the actual content for the specified file, replacing the pointer with the real data.
- “datalad run -m 'process data' --input raw.nii.gz --output processed.nii.gz 'fslmaths raw.nii.gz -bin processed.nii.gz'”
- Executes the command, records the input and output dependencies, and commits the result with a provenance record.
- “datalad rerun”
- Reads the provenance record from the most recent commit and re-executes the command to reproduce the output.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/k-dense-ai/datalad/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip datalad.zip -d .agents/skills
Documentation by Dylan Pulver
DataLad
Overview
DataLad is a data management layer over Git and git-annex. Git tracks the dataset structure, small text files, and the history. git-annex tracks the content of large files, storing each file as a key and keeping the bytes somewhere that is not necessarily the local repository.
A normal clone retrieves Git history and the top-level file listing while leaving
annexed bytes unfetched. Installed subdatasets have their own histories; a clone does not
automatically populate them. Clone cost depends on Git history and file count, not just
the data volume. Retrieve annexed bytes selectively with datalad get.
The second thing DataLad adds is provenance. datalad run executes a command and commits
the result together with a machine-readable record of the command, its inputs, and its
outputs. datalad rerun reads that record back and re-executes it. This turns "how was
this figure produced" from an archaeology problem into a command.
When to use DataLad instead of plain Git
Use DataLad when any of the following holds:
Files are too large for Git to handle comfortably, or the total exceeds what every collaborator wants on disk.
Data lives in more than one place (a lab server, a cluster scratch, S3, a supercomputer) and you need to know which copies exist.
The analysis must be re-executable, and a plain commit message is not enough evidence.
You are consuming published datasets from OpenNeuro, DANDI, or
datasets.datalad.org, which are distributed as DataLad datasets.The project nests other datasets inside it and you want each one to keep its own independent history.
Use plain Git when the repository is code and text only, everything fits comfortably in Git, and nobody needs partial checkouts. DataLad on top of a small pure-code repository adds indirection without buying anything.
Installation
# git-annex is NOT written in Python but is available from PyPI if you already
# have git itself installed:
uv pip install git-annex
# You can also install it first from the system
# (Debian/Ubuntu: apt install git-annex; macOS: brew install git-annex;
# conda-forge: conda install -c conda-forge git-annex)
uv pip install "datalad==1.6.5"
uv pip install "datalad-container==1.2.6" # only for containers-run
datalad wtf --section dependencies # confirm git-annex version is visibleThe PyPI git-annex package supplies platform-specific binaries. The reviewed
10.20260901.post1 wheels cover Linux glibc 2.34+ (x86_64/ARM64), macOS ARM64 14+ and
x86_64 15+, and Windows x86_64. Use a system package when no wheel matches. Keep its
environment on PATH and verify the executable; the wheel does not supply Git itself.
Configure Git author name/email before creating or saving a dataset.
datalad wtf prints the resolved environment and is the first thing to run when behaviour
looks impossible. An old or missing git-annex is behind a large share of confusing errors.
DataLad is MIT licensed; git-annex has a separate AGPL license. Consult the upstream license when redistributing either tool.
The failure that bites first: pointers are not data
After datalad clone, annexed files exist as symlinks into .git/annex/objects/ (or as
small pointer files where symlinks are unavailable, such as on Windows or a crippled
filesystem). Nothing has downloaded the content yet.
Illustrative remote-data example; inspect the selected revision for the exact path and install NiBabel before the Python read. The refresh tested equivalent local pointer/get behavior without downloading imaging data.
datalad clone https://github.com/OpenNeuroDatasets/ds000001.git
cd ds000001
ls sub-01/anat/ # the file is listed
python -c "import nibabel; nibabel.load('sub-01/anat/sub-01_T1w.nii.gz')" # fails
datalad get sub-01/anat/sub-01_T1w.nii.gz # now it worksThe failure mode to recognise: a tool reports the file as empty, truncated, corrupt, "not
a gzip file", or a broken symlink, and the file size on disk is a few hundred bytes. These symptoms can indicate an unfetched annex pointer; confirm with annex status
before diagnosing corruption. Run datalad get before reading data, and treat
"file exists" as insufficient evidence that its content is present.
Before an analysis touches a directory, fetch it explicitly:
datalad get sub-01/ # everything under a path
datalad get -r . # everything, including subdatasets
datalad get -n -r . # subdataset structure only, no file contentdatalad status --annex availability checks which content is present locally, and
git annex whereis <path> reports which repositories hold a given file. whereis reads
recorded state and does not contact the remotes, so it tells you what git-annex last
learned rather than what is true right now.
See data-access.md for finding datasets, subdataset behaviour, dropping content safely, and repairing a dataset.
Recording provenance with datalad run
datalad run is the reason to reach for DataLad in a methods context. It saves the
command alongside its effect, in the same commit:
Illustrative FSL example (requires bet and an existing derivatives/ directory):
datalad run -m "extract brain and mask" \
--input "sub-01/anat/sub-01_T1w.nii.gz" \
--output "derivatives/sub-01_brain.nii.gz" \
--output "derivatives/sub-01_brain_mask.nii.gz" \
"bet {inputs[0]} {outputs[0]} -m"What each part does, and why skipping it hurts:
--inputretrieves the content before running, so the command does not fail on a pointer. It also records the dependency, which is what letsrerunfetch the same inputs on a different machine.--outputunlocks or removes the target first, so git-annex does not refuse to write over content it is protecting. Without it, a second run of the same command commonly fails with a permission error on an annexed file that looks read-only.{inputs}and{outputs}expand to those values.{pwd},{dspath}, and{tmpdir}are also available, and{inputs[0]}indexes individual entries.The commit message carries a JSON run record between
=== Do not change lines below ===and^^^ Do not change lines above ^^^. Do not hand-edit that block;rerunparses it.
datalad run refuses to start when the dataset has unsaved modifications, because an
unclean starting state makes the record unreliable. Save or discard first, or pass
--explicit to save only declared outputs. This does not capture unsaved input changes;
save all dependencies before claiming the run is reproducible. Check a
command before committing to it with --dry-run basic or --dry-run command.
A run that changes nothing produces no commit, exactly as datalad save does.
run records the command and dataset state; it does not freeze arbitrary host-installed software or external services. Version an environment lockfile and scripts as declared inputs, or use a tracked container image with containers-run. Record random seeds and relevant runtime settings, then test rerun from a fresh environment before claiming computational reproducibility.
Re-executing
datalad rerun # redo the run recorded at HEAD
datalad rerun --report # show what would be done, change nothing
datalad rerun --script recompute.sh # extract the commands instead of running them
datalad rerun --since <commit> -b check <revision> # replay a range onto a new branch--report only inspects the plan; it does not execute or validate the result. A branch
(-b) preserves the original commits, but uses the same worktree. See the reference for
a --since/--onto replay that starts before the first run, and compare annex keys or
content checksums as well as scientific outputs.
Containers
With the datalad-container extension, register an image once and every subsequent run
records which image produced the outputs:
Illustrative container workflow using a previously built local SIF image (not executed in this refresh; the runtime and image must be available):
datalad containers-add fsl --url /path/to/fsl.sif \
--call-fmt 'apptainer exec {img} {cmd}'
datalad containers-run -n fsl -m "brain and mask in container" \
--input "sub-01/anat/sub-01_T1w.nii.gz" \
--output "derivatives/sub-01_brain.nii.gz" \
--output "derivatives/sub-01_brain_mask.nii.gz" \
"bet {inputs[0]} {outputs[0]} -m"The image itself is tracked in the dataset, so the software environment travels with the
data and the provenance record rather than living in someone's shell history. When only
one container is configured, -n may be omitted.
See provenance.md for the STAMPED principles and the YODA
project layout, the run record format, --explicit and --assume-ready semantics, and
exporting provenance toward W3C PROV.
Saving and inspecting changes
datalad status # what changed, including subdataset state
datalad save -m "add QC report" path/to/file
datalad save -m "checkpoint" -r # recurse into subdatasets
datalad save -m "small text file" --to-git notes.mddatalad save decides per file whether content goes to Git or to git-annex, following the
dataset's .gitattributes. Force a file into Git with --to-git, which is the right call
for code and small text files that should stay directly readable. The yoda procedure
(datalad create -c yoda) sets this up for code/, README.md, and CHANGELOG.md
automatically.
Creating a dataset
datalad create my_dataset # plain dataset
datalad create -c yoda my_analysis # analysis layout (code/ tracked in Git,
# README.md and CHANGELOG.md preconfigured)
datalad create -d . inputs/raw # register a new subdataset under an existing one-c yoda applies the analysis project layout described in
provenance.md. -d . is what registers a new dataset as a
subdataset of the parent rather than leaving an unrelated repository inside it.
Publishing
A DataLad dataset is usually published to two places at once: a Git hosting service for the history, and a storage remote for the annexed content.
Illustrative authenticated publication (creates remote resources; requires a GitHub
token and S3 credentials). Use myorg/mydataset only for an organization namespace.
datalad create-sibling-github mydataset
git annex initremote store type=S3 bucket=my-bucket protocol=https \
encryption=none autoenable=true
datalad siblings configure -s github --publish-depends store
datalad push --to githubThe Git sibling and the storage sibling are created by different tools on purpose. A Git
sibling is a Git remote, and datalad create-sibling-* handles the hosting-service ones.
An S3 bucket (or WebDAV, or an SSH directory) is a git-annex special remote, not a Git
remote, so it is created with git annex initremote. datalad siblings picks the special
remote up afterwards and treats it like any other. Using datalad siblings add --url s3://... here is the mistake this section exists to prevent: --url is a Git remote URL,
S3 is not, and the push --to github below then fails on the --publish-depends hop.
--publish-depends is what stops the common broken publication: a Git repository whose
history references content that was never uploaded, so collaborators clone successfully
and then find every datalad get failing. Declaring the dependency makes the storage
sibling publish first, every time.
datalad push sends both the Git history and, by default (--data auto-if-wanted), the
annexed content selected by a target's wanted settings; without wanted settings it
transfers all selected current content. --data anything bypasses preferred-content
filtering, but does not recover missing local bytes or archive every historical version.
See publishing.md for RIA stores, special remotes, credential handling, and configuring which sibling holds what.
Freeing disk space
git annex whereis sub-01/ # inspect recorded locations first
datalad drop sub-01/ # remove local content, keep the pointerdatalad drop checks required copies and availability by default. --nocheck is
deprecated in favor of --reckless availability, which disables those protections.
--if-dirty is deprecated and ignored; it is not an availability-check option.
--what selects between filecontent (the default), allkeys, datasets, and all.
Failure modes worth knowing
| Symptom | Cause | Fix |
|---|---|---|
| File reads as empty, truncated, or a broken symlink | Content not retrieved; only the pointer is present | datalad get <path> |
| "Permission denied" writing an existing output | git-annex write-protects annexed content | Declare it with --output, or datalad unlock <path> |
datalad run refuses to start | Dataset has unsaved changes | datalad save first, or pass --explicit |
datalad drop refuses | No verified second copy of the content | Push to a reachable sibling, then retry the safety check |
Collaborator clones but every get fails | History published without the content | Publish the storage sibling, and set --publish-depends |
| Clone succeeds, subdataset directories are empty | Subdatasets are not installed by default | datalad get -n -r ., then get the paths you need |
| Commands behave impossibly | git-annex missing or too old | datalad wtf --section dependencies |
Detailed references
data-access.md: finding published datasets (
registry.datalad.org, OpenNeuro, DANDI,datasets.datalad.organd the///shortcut), clone and get options, subdataset handling, annex content states, dropping and removing, andfsckrepair.provenance.md: the STAMPED principles and the YODA layout, the run record format,
runandrerunoptions in full,containers-run, and the current state of exporting DataLad provenance toward W3C PROV.publishing.md: siblings and their actions,
create-sibling-*variants, RIA stores, special remotes,pushsemantics, and credential handling.
Related skills
The bids skill covers the Brain Imaging Data Structure that most of the neuroimaging
datasets distributed through DataLad are organised in. A typical workflow clones a BIDS
dataset with DataLad, validates it with the BIDS tooling, then runs a BIDS-App under
datalad containers-run so the derivatives carry provenance.
Validation scope
Reviewed 2026-09-30 against DataLad 1.6.5 and datalad-container 1.2.6 source and current official manuals. Tiny local tests cover clone/get/drop, unlocked saves, subdataset installation, run/rerun, default push selection, and RIA publish/clone/get. Remote hosting, credentials, FSL, and container execution examples are illustrative; no authenticated remote publication or scientific-data downloads were performed.
Primary sources
DataLad documentation: https://docs.datalad.org/en/stable/
DataLad Handbook: https://handbook.datalad.org/en/latest/
datalad runchapter: https://handbook.datalad.org/en/latest/basics/101-108-run.htmlYODA principles: https://handbook.datalad.org/en/latest/basics/101-127-yoda.html
STAMPED principles (operationalized from YODA): https://stamped-principles.org
datalad-container: https://docs.datalad.org/projects/container/en/stable/
git-annex: https://git-annex.branchable.com/
Dataset registry: https://registry.datalad.org
Acknowledgment
Topic scope for this skill was informed in part by @bcmcpher's MIT-licensed datalad-cli plugin (nineteen per-command slash-command skills). The text here is written independently and grounded in the upstream DataLad documentation; overlap is unavoidable because both cover DataLad, but the structure, style, and specific technical claims are different.
Files
- ATTRIBUTION.mdAdded by AutoGineer907 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md17.0 KiB
- references/data-access.md9.5 KiB
- references/provenance.md13.8 KiB
- references/publishing.md10.9 KiB
references/provenance.md
Computational provenance with DataLad
Why this is the interesting half
Version control tells you that a file changed. Provenance tells you what produced it, from
what, and with which software. datalad run records the command and tracked inputs/outputs in the same commit as the change. Capturing software versions additionally requires a versioned environment specification or a tracked container; an executable name alone does not identify its installed build. datalad rerun then reads that record back and re-executes it, so "is this reproducible" becomes a
command rather than an argument.
Principles: STAMPED, and the YODA layout it grew out of
YODA ("YODAs Organigram on Data Analysis") is the convention DataLad analyses were
originally built on, and it is still what datalad create -c yoda configures. Its three
principles (one thing one dataset, record where the data came from, record what was done
to it) describe what a well-formed analysis looks like, but they were inspirational rather
than operational: there is nothing in them to check a dataset against.
STAMPED (https://stamped-principles.org) is the operationalized successor, formalized by some of the original YODA authors. It states seven properties of a reproducible research object, each backed by normative MUST/SHOULD/MAY requirements:
| Property | Core requirement |
|---|---|
| Self-contained | Everything essential to replicate the computation is reachable within a single top-level research object |
| Tracked | Persistent content identification and provenance are recorded for every component and every modification, including the versions involved |
| Actionable | The object carries enough instruction to reproduce all results, specified as executable specifications rather than prose |
| Modular | Components are organized as independently versioned modules, included directly or linked as subdatasets |
| Portable | Procedures depend on no undocumented host state; environments are explicitly specified and version controlled |
| Ephemeral | Results are produced in disposable environments built only from the object's own contents |
| Distributable | Every referenced module and component is persistently retrievable by others |
Actionable is the property datalad run exists to satisfy. A README describing how a
figure was produced is documentation; a run record is an executable specification, and
datalad rerun is what makes it executable. The same commit satisfies Tracked, because
the command, its inputs, its outputs, and the versions they were taken at are recorded
next to the change rather than in a separate log that can drift away from it. Modular maps
onto subdatasets, Portable onto tracked images and runtime specifications, Ephemeral onto disposable
execution environments, and Distributable onto
siblings and RIA stores (see publishing.md).
Two companion resources make this checkable rather than aspirational:
https://checklist.stamped-principles.org walks the requirements as a MUST/SHOULD/MAY
checklist, and https://examples.stamped-principles.org collects worked patterns,
including ones built directly on datalad run and datalad rerun.
The YODA layout in practice
Apply the layout at creation time:
datalad create -c yoda "my_analysis"That produces:
.
├── .gitattributes
├── CHANGELOG.md
├── code
│ ├── .gitattributes
│ └── README.md
└── README.mdThe configuration matters more than the directories. Everything in code/, plus
README.md and CHANGELOG.md, is tracked by Git rather than git-annex, so scripts stay
directly readable and diffable in a clone that has fetched no data at all. Input data is
then added as a subdataset:
datalad clone -d . https://github.com/OpenNeuroDatasets/ds000001.git inputs/rawThe -d . is what registers the clone as a subdataset of the analysis rather than leaving
an unrelated repository sitting inside it.
datalad run
datalad run [-h] [-d DATASET] [-i PATH] [-o PATH] [--expand {inputs|outputs|both}]
[--assume-ready {inputs|outputs|both}] [--explicit] [-m MESSAGE]
[--sidecar {yes|no}] [--dry-run {basic|command}]
[--on-cmd-failure {error|save|all}] [-J NJOBS]
[--version] ...| Option | Documented behaviour | Practical consequence |
|---|---|---|
-i/--input PATH | "A dependency for the run. Before running the command, the content for this relative path will be retrieved." | The command does not fail on an unfetched pointer, and rerun knows what to fetch elsewhere |
-o/--output PATH | "Prepare this relative path to be an output file of the command." | Unlocks or removes the target so git-annex write protection does not block the write |
--explicit | "Consider the specification of inputs and outputs to be explicit. Don't warn if the repository is dirty." | Lets a run proceed in a dirty dataset, and saves only the declared outputs |
--assume-ready {inputs|outputs|both} | "Assume that inputs do not need to be retrieved and/or outputs do not need to unlocked or removed." | Skips preparation for speed; only safe when you have already done it |
--expand {inputs|outputs|both} | "Expand globs when storing inputs and/or outputs in the commit message." | Records the concrete file list rather than the glob, which is what you want when the glob's meaning could change |
--dry-run {basic|command} | "Do not run the command; just display details about the command execution." | Check placeholder expansion before committing anything |
--sidecar {yes|no} | Store the run record in a separate file rather than in the commit message | Keeps long records out of git log output |
Placeholders available in the command string: {pwd} (current working directory),
{dspath} (dataset path), {tmpdir} (a temporary directory), {inputs} and {outputs}
(the values of the corresponding flags), and {inputs[0]} for indexed access.
Globs are permitted in --input and --output, and multiple flags may be given:
datalad run -m "second-level model" \
-i "derivatives/sub-*/func/*_bold.nii.gz" \
-i "code/model.py" \
-o "results/group_map.nii.gz" \
--expand inputs \
"python code/model.py {outputs}"The run record
The commit message carries a machine-readable JSON block between the markers
=== Do not change lines below === and ^^^ Do not change lines above ^^^. It records
the command, the dataset ID, the exit status, and the input and output specifications. The
handbook is explicit that this section is "less for the human user" and exists "for
DataLad, in particular for the datalad rerun command". Editing it by hand, including
during an interactive rebase, breaks rerun silently.
Two behaviours that surprise people:
A run producing no change to the dataset produces no commit at all, exactly as a
datalad savewith nothing to save does. An empty history entry is not evidence the run failed to execute, only that it changed nothing.datalad runrefuses to start in a dirty dataset. This is the point of the command: a record built on an unknown starting state does not establish anything. Save or discard first, or state the scope with--explicit.
Failed command provenance
DataLad 1.6.5 exposes --on-cmd-failure error|save|all. The default error stops
without saving; save records changed outputs and returns success; all saves
changed outputs and preserves the failing exit code. Inspect the run record
exit field when evaluating results: a successful DataLad invocation need not
mean the scientific command succeeded. On replay, a recorded nonzero code can
be accepted when repeated, and a zero exit is accepted even if the original failed.
A run producing no tracked changes still has no commit. These options are distinct
from global result handling via --on-failure.
datalad rerun
datalad rerun [-h] [--since SINCE] [-d DATASET] [-b NAME] [-m MESSAGE] [--onto base]
[--script FILE] [--report] [--assume-ready {inputs|outputs|both}] [--explicit]
[--on-cmd-failure {error|save|all}] [-J NJOBS] [--version] [REVISION]REVISIONselects which recorded command to replay and defaults toHEAD.--since SINCEreplays a range: "the commands from all commits that are reachable from revision but not SINCE will be re-executed (in other words, the commands ingit log SINCE..REVISION)". This is how a multi-step pipeline is replayed in order.--onto basegives the "start point for rerunning the commands. If not specified, commands are executed at HEAD." Use--onto ''to start at the parent of the first run commit selected for replay. This resets the top-level dataset only; installed subdataset worktrees do not automatically move to their recorded commits.-b/--branch NAMEcreates and checks out a branch before replaying.--reportdisplays what would be done without executing, which is the safe first call.--script FILEextracts the commands to a file instead of running them, with-for stdout. This is how a DataLad history becomes a plain shell script for a reviewer or a cluster submission.
The reproducibility check worth building into a project:
git tag original-results HEAD
# Replace FIRST_RUN with the first run commit hash; the ^ includes that run.
datalad rerun --report --since FIRST_RUN^ original-results
datalad rerun --onto= -b repro-check --since FIRST_RUN^ original-results
git diff original-results HEAD -- results/This comparison checks tracked output identities, including annex keys. It does not
by itself establish numerical or scientific validity. Use a disposable clone for a
fresh-environment check, restore recorded subdataset revisions, and inspect tolerances,
randomness, and software versions separately. The FIRST_RUN example is a template;
the local regression test substitutes a real commit and checks the regenerated bytes.
Containers
datalad-container (reviewed release 1.2.6) records the software
environment alongside the command.
datalad containers-add [-h] [-u URL] [-d DATASET] [--call-fmt FORMAT]
[-i IMAGE] [--update] [--extra-input FILE] [--version] NAMEContainer source options (source-verified, runtime examples illustrative):
A local SIF file plus
--call-fmt 'apptainer exec {img} {cmd}'avoids assuming asingularityexecutable exists when only Apptainer is installed.docker://debian:stable-slimbuilds a Singularity image. In 1.2.6 the releasedcontainers-addimplementation invokessingularity buildand its guessed call format usessingularity exec; it does not automatically substituteapptainerfor this path. Build the SIF externally with Apptainer, then register the local file.dhub://debian:stable-slimuses Docker, saves the pulled image into the dataset, and configures a Docker adapter with the current directory mounted at/tmp.shub://remains recognized by the extension, but its legacy Singularity Hub service was not verified in this review. Prefer a retrievable local image or an actively maintained registry source.
Use an immutable registry digest when building an image, retain the resulting image,
and record its architecture. A mutable tag alone does not pin software. Configure
required binds/environment/GPU options in the tracked call format and declare overlays
with --extra-input. Container tracking alone does not isolate host mounts or ensure
cross-platform numerical equivalence.
datalad containers-run [-h] [-n NAME] [-d DATASET] [-i PATH] [-o PATH] [-m MESSAGE]
[--expand {inputs|outputs|both}] [--explicit] [--sidecar {yes|no}] [--version] ...-n/--container-name selects "the name of or a path to a known container to use for execution, in
case multiple containers are configured". With exactly one container configured it may be
omitted. During execution the environment variable DATALAD_CONTAINER_NAME holds the name
of the container in use, which is available to the command itself.
The image is tracked in the dataset like any other file, so it is annexed content: a
collaborator gets it with datalad get and the provenance record points at a specific
image rather than at a tag someone may have re-pushed.
Exporting provenance to a standard form
DataLad's run records are DataLad's own format. Converting them to an interoperable representation is an open area rather than a solved one, and this is worth stating plainly rather than implying a pipeline exists:
W3C PROV is the standard target for provenance interchange. See https://www.w3.org/TR/prov-overview/.
datalad-metalad ships a
runprovextractor that reads DataLad run records, at https://github.com/datalad/datalad-metalad/blob/master/datalad_metalad/extractors/runprov.py. Its source exposes run-record extraction and JSON-LD-style provenance; compatibility and exported graph validity were not executed here, so validate them before adoption.BIDS BEP028 tracks the provenance extension at https://bids.neuroimaging.io/extensions/beps/bep_028.html. Check its current proposal and the adopted BIDS version before choosing an export schema; a proposal is not a validated conversion API.
Until one of those is settled, the durable artifact is the DataLad history itself plus
datalad rerun --script, which produces a plain, reviewable command sequence that does
not depend on DataLad to read.
Further reading
datalad runchapter of the handbook: https://handbook.datalad.org/en/latest/basics/101-108-run.htmlYODA principles: https://handbook.datalad.org/en/latest/basics/101-127-yoda.html
STAMPED principles (operationalized from YODA): https://stamped-principles.org
Compliance checklist: https://checklist.stamped-principles.org
Worked examples and stencils: https://examples.stamped-principles.org
datalad-container documentation: https://docs.datalad.org/projects/container/en/stable/
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs a command-line tool, Needs Python
The author says: Requires Python 3.10+, DataLad 1.6.5, Git, and git-annex 10.x. Tested with git-annex 10.20260901 and datalad-container 1.2.6 on macOS ARM64. Containers additionally require Singularity, Apptainer, or Docker. Remote data access needs network access and may need provider credentials. Local filesystem workflows work offline.
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Dylan Pulver
- Publisher
- K-Dense (Community)
- Distributed by
- K-Dense
- Source
- K-Dense-AI/scientific-agent-skills · skills/datalad · commit a25cf9e
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE.md)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Dylan Pulver or K-Dense.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download datalad.zip