Install
$ agentstack add skill-neuroanalytics-data-science-harness-datalad-container-run ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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 No
- ✓ 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.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
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 →About
Skill: datalad-container-run
Wrap a command in datalad containers-run to record the container image, the command, inputs, and outputs in the dataset history. The container image content hash is annexed, so the full computational environment is reproducible via datalad rerun.
Always load ${CLAUDE_PLUGIN_ROOT}/references/container-run.md before any container registration or container-run step.
Steps
- Identify command and container — read
$ARGUMENTSor extract from conversation
context. Determine:
- The container image (
.sifpath, Docker image name, Singularity/Apptainer URL) - The command to run inside the container
If either is ambiguous or missing, ask the user to specify both before continuing.
- Verify DataLad context — check whether cwd is inside a DataLad dataset:
``bash ls .datalad/ ``
- Dataset found: continue.
- No dataset found: ask the user:
> "No DataLad dataset detected. Would you like to: > 1. Initialize one here with /datalad-init > 2. Run the container command bare (no provenance tracking)" Wait for their choice.
- Check for unsaved changes — run
datalad status. If the output shows modified
or untracked files, prompt the user to save first with /datalad-save or confirm they want to proceed anyway.
- Container registration check — run
datalad containers-listto see registered
containers:
- Container already registered: proceed to step 5.
- Not registered: guide the user through
datalad containers-add:
a. Ask for a short name (identifier) for the container. b. Confirm the image URL or local .sif path (--url). c. Ask which runtime to use; load ${CLAUDE_PLUGIN_ROOT}/references/container-run.md and show the call-format options table (Singularity, Apptainer, Docker). d. Construct and display the datalad containers-add command: `` datalad containers-add \ --url \ --call-fmt "" `` e. Execute after user confirmation. On failure, show error and stop.
- Gather run parameters — ask the user (or infer from context) for:
-i(inputs): files or glob patterns the command reads (omit 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)
- Construct and show the full command — build the complete invocation and display
it before executing: `` datalad containers-run \ --container-name \ -m "" \ [-i ...] \ [-o ...] \ "" `` Then ask: > "Ready to execute? (yes / edit)"
- Execute and report — after user confirmation, run the constructed command.
- On success: report the commit hash (includes container image hash), output files
recorded, and that the container image and command are now in dataset history.
- On failure: show error output; note that nothing was committed.
Removing a registered container (datalad containers-remove)
When the user wants to deregister a container:
- List registered containers to confirm the name:
``bash datalad containers-list ``
- Warn the user — removing a container drops its registration and annexed image
from the dataset. Runs that used this container remain in history but cannot be replayed (the image would need to be re-added): > "Removing '' will drop the container image from the dataset. Past runs > referencing it will no longer be replayable unless you re-add the image. Proceed?"
- Remove after confirmation:
``bash datalad containers-remove ``
- Save the change:
``bash datalad save -m "remove container " ``
Constraints
- Always load
${CLAUDE_PLUGIN_ROOT}/references/container-run.mdbefore any container
registration or container-run step.
- Never call
datalad containers-runwith an unregistered container name — always verify
with datalad containers-list first.
- Never skip showing the full constructed command before executing.
- Always require a meaningful
-mmessage — never use empty or placeholder messages. - For pipelines inside the container, wrap as
"bash -c 'cmd1 | cmd2'"passed to the
container call.
- The
--call-fmtmust contain both{img}and{cmd}placeholders — if either is
missing, the container will be invoked incorrectly. Flag this to the user.
- For
containers-remove: always confirm before executing and always follow with
datalad save to record the removal.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: neuroanalytics
- Source: neuroanalytics/data-science-harness
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.