Datalad export

From nipreps/skills-comm · View interactive version

Datalad export is an AI agent skill from the GitHub repository nipreps/skills-comm. Auto-invoke when the user wants to export a DataLad dataset as an archive file (TAR, ZIP) for sharing or backup, or publish a dataset directly to Figshare. Trigger on "export dataset", "create archive", "zip the dataset", "tar the dataset", "publish to Figshare", "export to Figshare", "make a sharea

How to use this skill

Skill file

Skill: datalad-export

Export a DataLad dataset for archiving or open publishing. Two workflows are supported:

local archive creation (TAR/ZIP) and direct Figshare publication.

Steps

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

```bash

ls .datalad/ 2>/dev/null

```

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

  1. Determine export target — from $ARGUMENTS or conversation context:

datalad-mihextras extension; check availability first)

  1. Execute based on target:

### export-archive (local TAR/ZIP)

Gather:

```bash

datalad export-archive \

--filename <output-file.tar.gz> \

[--missing-content ignore]

```

--missing-content:

Show the full command and confirm before executing. After completion, report the

archive path and size.

### export-to-figshare

Requires a Figshare personal access token. Check for the extension:

```bash

python -c "import datalad_mihextras" 2>/dev/null || echo "extension not installed"

```

Gather:

```bash

datalad export-to-figshare \

--article <article-id>

```

The token is read from the FIGSHARE_TOKEN environment variable or the DataLad

credential store. If not set, prompt the user to configure it:

```bash

datalad credentials set figshare token=<token>

```

Warn the user that Figshare has a 20 GB per-file limit and that publishing is not

easily reversible (items can be made private but not fully deleted via the API).

  1. Post-export — for archives, suggest verifying integrity:

```bash

tar -tzf <output-file.tar.gz> | head -20

```

Constraints

exporting — an incomplete archive may be misleading. Suggest datalad get . first.

uploads to the wrong article cannot be undone easily.

are one-time snapshots, not live remotes that can be pushed to or cloned from.

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.