AgentStack
SKILL verified MIT Self-run

Datalad Run

skill-neuroanalytics-data-science-harness-datalad-run · by neuroanalytics

>

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add skill-neuroanalytics-data-science-harness-datalad-run

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-neuroanalytics-data-science-harness-datalad-run)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Datalad Run? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Skill: datalad-run

Wrap a command in datalad run to record it in the dataset history with full provenance: inputs consumed, outputs produced, and the exact command used. On success, DataLad automatically stages and commits the outputs. On failure, nothing is committed.

Steps

  1. Identify the command — read $ARGUMENTS or extract from conversation context.

If the command is ambiguous or missing, ask the user to specify the full command string before continuing.

  1. Verify DataLad context — check whether the current working directory (or the

project directory) is inside a DataLad dataset: ``bash ls .datalad/ ``

  • Dataset found: continue.
  • No dataset found: ask the user:

> "No DataLad dataset detected in the current directory. Would you like to: > 1. Initialize one here with /datalad-init > 2. Run the command bare (no provenance tracking)" Wait for their choice. If bare, run the command directly and stop.

  1. Check for unsaved changes — run datalad status. If the output shows modified

or untracked files, prompt: > "There are unsaved changes in the dataset. DataLad run records a clean snapshot > before executing. Save now with datalad save -m \"...\" first?" Wait for the user to either save or confirm they want to proceed anyway.

  1. Gather run parameters — ask the user (or infer from context) for:
  • -i (inputs): files or glob patterns the command reads (can be omitted if none)
  • -o (outputs): files or glob patterns the command writes (required if outputs exist)
  • -m (message): a meaningful description of what this run does (required)

For pipelines with multiple stages, suggest wrapping as: `` bash -c 'cmd1 | cmd2' ``

If the user wants to use --explicit: all declared output paths (-o) must be pre-unlocked before the run (datalad unlock ). Without pre-unlocking, the run will fail with a locked-path error. Confirm outputs are unlocked before constructing the command.

4b. Optional dry-run — to verify the command before committing, suggest: `` datalad run --dry-run `` This executes the command without creating a commit, letting the user confirm outputs are produced as expected before recording provenance.

  1. Construct and show the command — build the full datalad run invocation and

display it to the user before executing: `` datalad run \ -m "" \ [-i ] \ [-o ] \ "" ` Multiple -i and -o` flags are allowed. Show the exact command, then ask: > "Ready to execute? (yes / edit)"

  1. Execute and report — after user confirmation, run the constructed command.

Report:

  • On success: the commit hash DataLad created, the output files recorded, and

that the outputs are now tracked in the dataset history

  • On failure: that the command failed and nothing was committed; show the error

output and suggest how to fix it

Constraints

  • Always show the full constructed datalad run command to the user before executing —

never run silently.

  • Never use datalad run for commands that produce no output files (e.g., git log,

ls, cat, exploratory queries). Use bare Bash for those instead.

  • Always require a meaningful -m message — never use empty or placeholder messages

like "run" or "analysis".

  • Never skip the unsaved-changes check — a dirty working tree can produce misleading

provenance records.

  • For pipeline commands (pipes, multi-step shell), always wrap as "bash -c 'cmd1 | cmd2'".
  • Load ${CLAUDE_PLUGIN_ROOT}/references/run-command.md when the user asks about

advanced flags (--explicit, --expand, --dry-run), replaying runs (datalad rerun), or recording download provenance (datalad download-url).

  • Load ${CLAUDE_PLUGIN_ROOT}/../references/yoda-layout.md when the user asks about

YODA directory conventions, where outputs should go, or why inputs are subdatasets.

  • Load ${CLAUDE_PLUGIN_ROOT}/../references/troubleshooting.md when a run fails, the

user has unlocked output files left over, or asks how to recover from a partial run.

  • If the run fails with a "locked" or "permission denied" error on output files, the fix

is: datalad unlock , then re-run. Load ${CLAUDE_PLUGIN_ROOT}/../references/troubleshooting.md for the full recovery pattern.

  • Load ${CLAUDE_PLUGIN_ROOT}/../references/global-options.md when the user asks about

debugging a failed run (-l debug), suppressing result output in CI (-f disabled), overriding annex config for a single run (-c), or running against a different working directory (-C).

Replaying recorded runs (datalad rerun)

When the user wants to replay a previously recorded run:

  1. Identify the target commit — ask the user for the commit SHA, or use the most

recent datalad run commit if they say "the last run": ``bash git log --oneline --grep="datalad run" -5 ``

  1. Construct the rerun command:
  • Replay the most recent run: datalad rerun
  • Replay a specific commit: datalad rerun
  • Replay a range: datalad rerun ..
  1. Show and confirm before executing — a rerun re-executes the original command

with the same inputs and outputs, creating a new commit. This is not reversible.

  1. Report outcome — on success, note the new commit SHA and that this replay is

also recorded in dataset history (provenance chain). On failure, show the error.

Load ${CLAUDE_PLUGIN_ROOT}/references/run-command.md for the full flag reference.

Recording download provenance (datalad download-url)

When the user wants to download a file and record where it came from:

  1. Gather parameters:
  • URL to download from
  • Local destination path (--path)
  • A meaningful message (-m)
  1. Construct command:

```bash datalad download-url -m "" \ --path \

```

  1. Show and confirm — this creates a DataLad commit recording the URL, content

hash, and download time. The file is annexed automatically.

  1. After download — suggest verifying with datalad status and git annex whereis.

Use this instead of wget/curl whenever the file's origin should be tracked in dataset history (YODA P2: record data origins).

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.