Skill Tracer
Skills › Scientific Agent Skills › datalad

datalad

skill · 329 lines · MIT · skills/datalad/SKILL.md

The facts

Its description

Retrieves, versions, and publishes scientific datasets with DataLad and git-annex, and captures computational provenance with datalad run, rerun, and containers-run. Use when cloning or fetching data from OpenNeuro, DANDI, datasets.datalad.org, or any DataLad dataset; when a file in a dataset reads as a broken symlink or a small pointer instead of real data; when an analysis needs a machine-readable record of how each output was produced so it can be re-executed; or when publishing a dataset to siblings such as a GitHub repository plus a storage remote. Also use to decide between DataLad and plain Git for a data-carrying repository.

The description the agent reads to decide when to use it.

From its settingsline 3

Tools it may use, or may not

allowed-tools: Read Write Edit Bash

Tools it may use while it runs without asking you first.

From its settingsline 6

Files it mentions

references/data-access.md, references/provenance.md, references/publishing.md (first 5 of 7 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 113 line 190 line 219 line 256 line 285

Licence

MIT, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 5 licence text

Other settings

compatibility: 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. metadata: version: "1.2" last-reviewed: "2026-09-30" skill-author: Dylan Pulver

More settings at the top of the file, shown as written.

From its settingsline 4 line 7
Other files in this skill (3) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: datalad
3description: Retrieves, versions, and publishes scientific datasets with DataLad and git-annex, and captures computational provenance with datalad run, rerun, and containers-run. Use when cloning or fetching data from OpenNeuro, DANDI, datasets.datalad.org, or any DataLad dataset; when a file in a dataset reads as a broken symlink or a small pointer instead of real data; when an analysis needs a machine-readable record of how each output was produced so it can be re-executed; or when publishing a dataset to siblings such as a GitHub repository plus a storage remote. Also use to decide between DataLad and plain Git for a data-carrying repository.
4compatibility: 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.
5license: MIT
6allowed-tools: Read Write Edit Bash
7metadata:
8 version: "1.2"
9 last-reviewed: "2026-09-30"
10 skill-author: Dylan Pulver
11---
13# DataLad
15## Overview
17DataLad is a data management layer over Git and git-annex. Git tracks the dataset
18structure, small text files, and the history. git-annex tracks the *content* of large
19files, storing each file as a key and keeping the bytes somewhere that is not necessarily
20the local repository.
22A normal clone retrieves Git history and the top-level file listing while leaving
23annexed bytes unfetched. Installed subdatasets have their own histories; a clone does not
24automatically populate them. Clone cost depends on Git history and file count, not just
25the data volume. Retrieve annexed bytes selectively with `datalad get`.
27The second thing DataLad adds is provenance. `datalad run` executes a command and commits
28the result together with a machine-readable record of the command, its inputs, and its
29outputs. `datalad rerun` reads that record back and re-executes it. This turns "how was
30this figure produced" from an archaeology problem into a command.

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.

Raw lines 15 to 31
32## When to use DataLad instead of plain Git
34Use DataLad when any of the following holds:
36- Files are too large for Git to handle comfortably, or the total exceeds what every
37 collaborator wants on disk.
38- Data lives in more than one place (a lab server, a cluster scratch, S3, a supercomputer)
39 and you need to know which copies exist.
40- The analysis must be re-executable, and a plain commit message is not enough evidence.
41- You are consuming published datasets from OpenNeuro, DANDI, or `datasets.datalad.org`,
42 which are distributed as DataLad datasets.
43- The project nests other datasets inside it and you want each one to keep its own
44 independent history.
46Use plain Git when the repository is code and text only, everything fits comfortably in
47Git, and nobody needs partial checkouts. DataLad on top of a small pure-code repository
48adds indirection without buying anything.

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.

Raw lines 32 to 49
50## Installation
52```bash
53# git-annex is NOT written in Python but is available from PyPI if you already
54# have git itself installed:
55uv pip install git-annex
56# You can also install it first from the system
57# (Debian/Ubuntu: apt install git-annex; macOS: brew install git-annex;
58# conda-forge: conda install -c conda-forge git-annex)
59uv pip install "datalad==1.6.5"
60uv pip install "datalad-container==1.2.6" # only for containers-run
62datalad wtf --section dependencies # confirm git-annex version is visible
63```
65The PyPI `git-annex` package supplies platform-specific binaries. The reviewed
6610.20260901.post1 wheels cover Linux glibc 2.34+ (x86_64/ARM64), macOS ARM64 14+ and
67x86_64 15+, and Windows x86_64. Use a system package when no wheel matches. Keep its
68environment on `PATH` and verify the executable; the wheel does not supply Git itself.
69Configure Git author name/email before creating or saving a dataset.
71`datalad wtf` prints the resolved environment and is the first thing to run when behaviour
72looks impossible. An old or missing git-annex is behind a large share of confusing errors.
74DataLad is MIT licensed; git-annex has a separate AGPL license. Consult the upstream
75license when redistributing either tool.

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 visible

The 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.

Raw lines 50 to 76
77## The failure that bites first: pointers are not data
79After `datalad clone`, annexed files exist as symlinks into `.git/annex/objects/` (or as
80small pointer files where symlinks are unavailable, such as on Windows or a crippled
81filesystem). Nothing has downloaded the content yet.
83Illustrative remote-data example; inspect the selected revision for the exact path and
84install NiBabel before the Python read. The refresh tested equivalent local pointer/get
85behavior without downloading imaging data.
87```bash
88datalad clone https://github.com/OpenNeuroDatasets/ds000001.git
89cd ds000001
90ls sub-01/anat/ # the file is listed
91python -c "import nibabel; nibabel.load('sub-01/anat/sub-01_T1w.nii.gz')" # fails
92datalad get sub-01/anat/sub-01_T1w.nii.gz # now it works
93```
95The failure mode to recognise: a tool reports the file as empty, truncated, corrupt, "not
96a 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
97before diagnosing corruption. **Run `datalad get` before reading data, and treat
98"file exists" as insufficient evidence that its content is present.**
100Before an analysis touches a directory, fetch it explicitly:
102```bash
103datalad get sub-01/ # everything under a path
104datalad get -r . # everything, including subdatasets
105datalad get -n -r . # subdataset structure only, no file content
106```
108`datalad status --annex availability` checks which content is present locally, and
109`git annex whereis <path>` reports which repositories hold a given file. `whereis` reads
110recorded state and does not contact the remotes, so it tells you what git-annex last
111learned rather than what is true right now.
113See [data-access.md](references/data-access.md) for finding datasets, subdataset
114behaviour, dropping content safely, and repairing a dataset.

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 works

The 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 content

datalad 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.

Raw lines 77 to 115
Reads a file references/data-access.md :113
116## Recording provenance with datalad run
118`datalad run` is the reason to reach for DataLad in a methods context. It saves the
119command alongside its effect, in the same commit:
121Illustrative FSL example (requires `bet` and an existing `derivatives/` directory):
123```bash
124datalad run -m "extract brain and mask" \
125 --input "sub-01/anat/sub-01_T1w.nii.gz" \
126 --output "derivatives/sub-01_brain.nii.gz" \
127 --output "derivatives/sub-01_brain_mask.nii.gz" \
128 "bet {inputs[0]} {outputs[0]} -m"
129```
131What each part does, and why skipping it hurts:
133- `--input` retrieves the content before running, so the command does not fail on a
134 pointer. It also records the dependency, which is what lets `rerun` fetch the same
135 inputs on a different machine.
136- `--output` unlocks or removes the target first, so git-annex does not refuse to write
137 over content it is protecting. Without it, a second run of the same command commonly
138 fails with a permission error on an annexed file that looks read-only.
139- `{inputs}` and `{outputs}` expand to those values. `{pwd}`, `{dspath}`, and `{tmpdir}`
140 are also available, and `{inputs[0]}` indexes individual entries.
141- The commit message carries a JSON run record between `=== Do not change lines below ===`
142 and `^^^ Do not change lines above ^^^`. Do not hand-edit that block; `rerun` parses it.
144`datalad run` refuses to start when the dataset has unsaved modifications, because an
145unclean starting state makes the record unreliable. Save or discard first, or pass
146`--explicit` to save only declared outputs. This does not capture unsaved input changes;
147save all dependencies before claiming the run is reproducible. Check a
148command before committing to it with `--dry-run basic` or `--dry-run command`.
150A run that changes nothing produces no commit, exactly as `datalad save` does.
152`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.

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:

  • --input retrieves the content before running, so the command does not fail on a pointer. It also records the dependency, which is what lets rerun fetch the same inputs on a different machine.
  • --output unlocks 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; rerun parses 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.

Raw lines 116 to 153
154### Re-executing
156```bash
157datalad rerun # redo the run recorded at HEAD
158datalad rerun --report # show what would be done, change nothing
159datalad rerun --script recompute.sh # extract the commands instead of running them
160datalad rerun --since <commit> -b check <revision> # replay a range onto a new branch
161```
163`--report` only inspects the plan; it does not execute or validate the result. A branch
164(`-b`) preserves the original commits, but uses the same worktree. See the reference for
165a `--since`/`--onto` replay that starts before the first run, and compare annex keys or
166content checksums as well as scientific outputs.

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.

Raw lines 154 to 167
168### Containers
170With the `datalad-container` extension, register an image once and every subsequent run
171records which image produced the outputs:
173Illustrative container workflow using a previously built local SIF image (not executed
174in this refresh; the runtime and image must be available):
176```bash
177datalad containers-add fsl --url /path/to/fsl.sif \
178 --call-fmt 'apptainer exec {img} {cmd}'
179datalad containers-run -n fsl -m "brain and mask in container" \
180 --input "sub-01/anat/sub-01_T1w.nii.gz" \
181 --output "derivatives/sub-01_brain.nii.gz" \
182 --output "derivatives/sub-01_brain_mask.nii.gz" \
183 "bet {inputs[0]} {outputs[0]} -m"
184```
186The image itself is tracked in the dataset, so the software environment travels with the
187data and the provenance record rather than living in someone's shell history. When only
188one container is configured, `-n` may be omitted.
190See [provenance.md](references/provenance.md) for the STAMPED principles and the YODA
191project layout, the run record format, `--explicit` and `--assume-ready` semantics, and
192exporting provenance toward W3C PROV.

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.

Raw lines 168 to 193
Reads a file references/provenance.md :190
194## Saving and inspecting changes
196```bash
197datalad status # what changed, including subdataset state
198datalad save -m "add QC report" path/to/file
199datalad save -m "checkpoint" -r # recurse into subdatasets
200datalad save -m "small text file" --to-git notes.md
201```
203`datalad save` decides per file whether content goes to Git or to git-annex, following the
204dataset's `.gitattributes`. Force a file into Git with `--to-git`, which is the right call
205for code and small text files that should stay directly readable. The `yoda` procedure
206(`datalad create -c yoda`) sets this up for `code/`, `README.md`, and `CHANGELOG.md`
207automatically.

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.md

datalad 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.

Raw lines 194 to 208
209## Creating a dataset
211```bash
212datalad create my_dataset # plain dataset
213datalad create -c yoda my_analysis # analysis layout (code/ tracked in Git,
214 # README.md and CHANGELOG.md preconfigured)
215datalad create -d . inputs/raw # register a new subdataset under an existing one
216```
218`-c yoda` applies the analysis project layout described in
219[provenance.md](references/provenance.md). `-d .` is what registers a new dataset as a
220subdataset of the parent rather than leaving an unrelated repository inside it.

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.

Raw lines 209 to 221
Reads a file references/provenance.md :219
222## Publishing
224A DataLad dataset is usually published to two places at once: a Git hosting service for
225the history, and a storage remote for the annexed content.
227Illustrative authenticated publication (creates remote resources; requires a GitHub
228token and S3 credentials). Use `myorg/mydataset` only for an organization namespace.
230```bash
231datalad create-sibling-github mydataset
232git annex initremote store type=S3 bucket=my-bucket protocol=https \
233 encryption=none autoenable=true
234datalad siblings configure -s github --publish-depends store
235datalad push --to github
236```
238The Git sibling and the storage sibling are created by different tools on purpose. A Git
239sibling is a Git remote, and `datalad create-sibling-*` handles the hosting-service ones.
240An S3 bucket (or WebDAV, or an SSH directory) is a *git-annex special remote*, not a Git
241remote, so it is created with `git annex initremote`. `datalad siblings` picks the special
242remote up afterwards and treats it like any other. Using `datalad siblings add --url
243s3://...` here is the mistake this section exists to prevent: `--url` is a Git remote URL,
244S3 is not, and the `push --to github` below then fails on the `--publish-depends` hop.
246`--publish-depends` is what stops the common broken publication: a Git repository whose
247history references content that was never uploaded, so collaborators clone successfully
248and then find every `datalad get` failing. Declaring the dependency makes the storage
249sibling publish first, every time.
251`datalad push` sends both the Git history and, by default (`--data auto-if-wanted`), the
252annexed content selected by a target's wanted settings; without wanted settings it
253transfers all selected current content. `--data anything` bypasses preferred-content
254filtering, but does not recover missing local bytes or archive every historical version.
256See [publishing.md](references/publishing.md) for RIA stores, special remotes, credential
257handling, and configuring which sibling holds what.

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 github

The 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.

Raw lines 222 to 258
Reads a file references/publishing.md :256
259## Freeing disk space
261```bash
262git annex whereis sub-01/ # inspect recorded locations first
263datalad drop sub-01/ # remove local content, keep the pointer
264```
266`datalad drop` checks required copies and availability by default. `--nocheck` is
267deprecated in favor of `--reckless availability`, which disables those protections.
268`--if-dirty` is deprecated and ignored; it is not an availability-check option.
269`--what` selects between `filecontent` (the default), `allkeys`, `datasets`, and `all`.

Freeing disk space

git annex whereis sub-01/                 # inspect recorded locations first
datalad drop sub-01/                      # remove local content, keep the pointer

datalad 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.

Raw lines 259 to 270
271## Failure modes worth knowing
273| Symptom | Cause | Fix |
274|---|---|---|
275| File reads as empty, truncated, or a broken symlink | Content not retrieved; only the pointer is present | `datalad get <path>` |
276| "Permission denied" writing an existing output | git-annex write-protects annexed content | Declare it with `--output`, or `datalad unlock <path>` |
277| `datalad run` refuses to start | Dataset has unsaved changes | `datalad save` first, or pass `--explicit` |
278| `datalad drop` refuses | No verified second copy of the content | Push to a reachable sibling, then retry the safety check |
279| Collaborator clones but every `get` fails | History published without the content | Publish the storage sibling, and set `--publish-depends` |
280| Clone succeeds, subdataset directories are empty | Subdatasets are not installed by default | `datalad get -n -r .`, then `get` the paths you need |
281| Commands behave impossibly | git-annex missing or too old | `datalad wtf --section dependencies` |

Failure modes worth knowing

SymptomCauseFix
File reads as empty, truncated, or a broken symlinkContent not retrieved; only the pointer is presentdatalad get <path>
"Permission denied" writing an existing outputgit-annex write-protects annexed contentDeclare it with --output, or datalad unlock <path>
datalad run refuses to startDataset has unsaved changesdatalad save first, or pass --explicit
datalad drop refusesNo verified second copy of the contentPush to a reachable sibling, then retry the safety check
Collaborator clones but every get failsHistory published without the contentPublish the storage sibling, and set --publish-depends
Clone succeeds, subdataset directories are emptySubdatasets are not installed by defaultdatalad get -n -r ., then get the paths you need
Commands behave impossiblygit-annex missing or too olddatalad wtf --section dependencies
Raw lines 271 to 282
283## Detailed references
285- [data-access.md](references/data-access.md): finding published datasets
286 (`registry.datalad.org`, OpenNeuro, DANDI, `datasets.datalad.org` and the `///`
287 shortcut), clone and get options, subdataset handling, annex content states, dropping
288 and removing, and `fsck` repair.
289- [provenance.md](references/provenance.md): the STAMPED principles and the YODA layout,
290 the run record format, `run` and `rerun` options in full, `containers-run`, and the
291 current state of exporting DataLad provenance toward W3C PROV.
292- [publishing.md](references/publishing.md): siblings and their actions,
293 `create-sibling-*` variants, RIA stores, special remotes, `push` semantics, and
294 credential handling.

Detailed references

  • data-access.md: finding published datasets (registry.datalad.org, OpenNeuro, DANDI, datasets.datalad.org and the /// shortcut), clone and get options, subdataset handling, annex content states, dropping and removing, and fsck repair.
  • provenance.md: the STAMPED principles and the YODA layout, the run record format, run and rerun options 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, push semantics, and credential handling.
Raw lines 283 to 295
Reads a file references/data-access.md :285
Reads a file references/provenance.md :289
Reads a file references/publishing.md :292
296## Related skills
298The `bids` skill covers the Brain Imaging Data Structure that most of the neuroimaging
299datasets distributed through DataLad are organised in. A typical workflow clones a BIDS
300dataset with DataLad, validates it with the BIDS tooling, then runs a BIDS-App under
301`datalad containers-run` so the derivatives carry provenance.

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.

Raw lines 296 to 302
Names a skill bids :298
303## Validation scope
305Reviewed 2026-09-30 against DataLad 1.6.5 and datalad-container 1.2.6 source and
306current official manuals. Tiny local tests cover clone/get/drop, unlocked saves,
307subdataset installation, run/rerun, default push selection, and RIA publish/clone/get.
308Remote hosting, credentials, FSL, and container execution examples are illustrative;
309no authenticated remote publication or scientific-data downloads were performed.

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.

Raw lines 303 to 310
311## Primary sources
313- DataLad documentation: <https://docs.datalad.org/en/stable/>
314- DataLad Handbook: <https://handbook.datalad.org/en/latest/>
315- `datalad run` chapter: <https://handbook.datalad.org/en/latest/basics/101-108-run.html>
316- YODA principles: <https://handbook.datalad.org/en/latest/basics/101-127-yoda.html>
317- STAMPED principles (operationalized from YODA): <https://stamped-principles.org>
318- datalad-container: <https://docs.datalad.org/projects/container/en/stable/>
319- git-annex: <https://git-annex.branchable.com/>
320- Dataset registry: <https://registry.datalad.org>

Primary sources

  • DataLad documentation: <https://docs.datalad.org/en/stable/>
  • DataLad Handbook: <https://handbook.datalad.org/en/latest/>
  • datalad run chapter: <https://handbook.datalad.org/en/latest/basics/101-108-run.html>
  • YODA 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>
Raw lines 311 to 321
322## Acknowledgment
324Topic scope for this skill was informed in part by @bcmcpher's MIT-licensed
325[datalad-cli](https://github.com/bcmcpher/my-skills/tree/main/plugins/datalad-cli)
326plugin (nineteen per-command slash-command skills). The text here is written
327independently and grounded in the upstream DataLad documentation; overlap is unavoidable
328because both cover DataLad, but the structure, style, and specific technical claims are
329different.

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.

Raw lines 322 to 329

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.