Datalad siblings

From nipreps/skills-comm · View interactive version

Datalad siblings is an AI agent skill from the GitHub repository nipreps/skills-comm. Auto-invoke when the user wants to inspect, add, configure, or remove dataset remotes; set up a GitHub, GitLab, RIA store, GIN, WebDAV, OSF, S3, or other storage sibling; check what remotes exist; or configure where to push annexed data. Trigger on "list remotes", "add a remote", "configure sibling"

How to use this skill

Skill file

Skill: datalad-siblings

Inspect and configure sibling remotes — named locations where dataset history and/or

annexed file content can be pushed and pulled.

Steps

  1. Verify DataLad context — check for .datalad/ in the current directory or a

parent:

```bash

ls .datalad/ 2>/dev/null

```

If no dataset is found, inform the user and stop.

  1. Determine action — read from $ARGUMENTS or conversation context:
  1. Execute based on action:

### query

```bash

datalad siblings

```

Present the output. Explain the +/- indicator and sibling types.

### add

Gather from the user:

requires SSH):

> "Do you need a separate push URL (e.g., SSH for write access)?"

exists or is being added alongside a git host:

> "Should pushing to this sibling automatically push annexed content to a storage

> sibling first? If so, which storage sibling?"

Construct:

```

datalad siblings add -s <name> \

--url <url> \

[--pushurl <push-url>] \

[--publish-depends <storage-sibling>]

```

### configure

Gather which sibling and which property to change. Common properties:

```

datalad siblings configure -s <name> [--annex-wanted '<expression>']

```

### remove

Confirm the sibling name. Warn that this only removes the registration — it does

not delete remote content.

```

datalad siblings remove -s <name>

```

### enable

Used after cloning a dataset whose special remote (OSF, S3, WebDAV) needs activation:

```

datalad siblings enable -s <name>

```

### create-sibling-github / create-sibling-gitlab / create-sibling-ria / create-sibling-gin

When the user wants to create a new remote repository and register it as a sibling in

one step, use the appropriate create-sibling-* command. Load

${CLAUDE_PLUGIN_ROOT}/../references/siblings-and-remotes.md for platform-specific

flags, then:

a. Identify the target platform (GitHub, GitLab, RIA, GIN, WebDAV, or generic SSH).

b. Gather required parameters (repo name, organization/namespace, access token if

needed, RIA store path if applicable).

c. Construct and display the command before executing:

GitHub:

```bash

datalad create-sibling-github \

--dataset . \

--reponame <repo-name> \

[--github-organization <org>] \

[--access {read|write}] \

[-s github] \

[--publish-depends <storage-sibling>]

```

Use --access read to create a read-only repository (default: write).

GitLab:

```bash

datalad create-sibling-gitlab \

--dataset . \

--reponame <namespace>/<repo-name> \

--gitlab-host <host> \

[--access {read|write}] \

[-s gitlab] \

[--publish-depends <storage-sibling>]

```

Use --access read to create a read-only repository (default: write).

RIA store:

```bash

datalad create-sibling-ria \

--dataset . \

--name ria-storage \

ria+ssh://user@host/path/to/ria-store

```

GIN:

```bash

datalad create-sibling-gin \

--dataset . \

--reponame <repo-name> \

[-s gin]

```

WebDAV:

```bash

datalad create-sibling-webdav \

--dataset . \

--url webdavs://<host>/path/to/dataset \

[-s webdav]

```

OSF (Open Science Framework):

```bash

datalad create-sibling-osf \

--dataset . \

--title "<dataset-title>" \

[-s osf-storage]

```

Note: requires the datalad-osf extension (pip install datalad-osf). Verify it is

installed before suggesting this option.

d. After creation, suggest pushing: datalad push --to <name>.

If the user asks for create-sibling (generic SSH/local path), gather the URL and

construct: datalad create-sibling --name <name> --url <url>.

  1. Show command and execute — always display the full command before running.
  1. Post-add suggestion — after adding or configuring a sibling, suggest:

> "Run datalad push --to <name> to test connectivity and push your current state."

Reference

Always load ${CLAUDE_PLUGIN_ROOT}/../references/siblings-and-remotes.md for URL

formats, special remote types, platform flags, publish-depends patterns, and

annex-wanted expressions.

Constraints

git remote — direct git remote add bypasses annex configuration.

git host — failing to set it causes datalad push to push git history without annexed

content, breaking reproducibility for downstream consumers.

without re-adding.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.