Skip to content
Back to skills

Cli And Io

ASecurity

"Use TorchIO's command-line interface and I/O integration surfaces

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
designpythonshellapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill cli-and-io --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli And Io?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli And Io
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cli-and-io-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cli-and-io-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-and-io
description: "Use TorchIO's command-line interface and I/O integration surfaces
  for image metadata, conversion, transform commands, cache inspection,
  visualization exports, and local or remote NIfTI/NIfTI-Zarr backends."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# TorchIO CLI and I/O

Use this sub-skill when the task is to run or generate `torchio` CLI commands, inspect or convert medical image files, apply a one-off transform from the shell, manage TorchIO's dataset cache, troubleshoot plotting or animation exports, or reason about local, remote, and NIfTI-Zarr image loading.

## Route Map

- For CLI syntax, safe command patterns, command-specific caveats, and the bundled smoke check, read [CLI reference](references/cli-reference.md).
- For accepted image sources, lazy backends, remote URI behavior, NIfTI-Zarr conversion, and optional cloud extras, read [I/O backends](references/io-backends.md).
- For failures involving missing extras, Tyro argument parsing, cache side effects, remote credentials, `.nii.zarr` dependencies, or non-notebook plotting, read [troubleshooting](references/troubleshooting.md).
- To verify a TorchIO CLI installation on synthetic data, run `python sub-skills/cli-and-io/scripts/torchio_cli_smoke.py --help` first, then run the script without arguments.

## Quick Start

1. Confirm the CLI is installed: `torchio --version` or `python -m torchio.cli --version`.
2. Inspect an image: `torchio info image.nii.gz`.
3. Convert between supported image formats: `torchio convert input.nii.gz output.nii` or `torchio convert input.nii.gz output.nii.zarr` when the `zarr` extra is installed.
4. Apply a one-off transform: `torchio transform input.nii.gz output.nii.gz Noise std=0.1` or `torchio transform input.nii.gz crop.nii.gz CropOrPad target_shape=128`.
5. Save visual output explicitly outside notebooks: `torchio plot image.nii.gz --output slices.png` or `torchio animate image.nii.gz sweep.gif --seconds 3 --direction I`.

## Boundaries

- This sub-skill owns CLI command generation, image file I/O behavior, optional visualization/export dependencies, remote/Zarr/cloud caveats, and cache command safety.
- For in-Python image construction such as `tio.ScalarImage(tensor)` or subject metadata modeling, route to the data-model sub-skill.
- For composing transform pipelines in Python, current transform class names, and transform API details, route to the transforms sub-skill.
- For patch sampling, training queues, aggregation, and inference tiling, route to the patch-workflows sub-skill.

## Safety Defaults

- Prefer `torchio cache dir` over `torchio cache clean`; cleaning without a dataset name removes all TorchIO cached data.
- Treat cloud URIs as network and credential-dependent; avoid running them in smoke checks unless the user explicitly provides a safe test endpoint and credentials.
- Use `--output` for `plot` and explicit `.gif` or `.mp4` paths for `animate` in non-interactive sessions.

Files in this skill

  • SKILL.md3 KB
  • references/cli-reference.md4.9 KB
  • references/io-backends.md5.8 KB
  • references/troubleshooting.md5.3 KB
  • scripts/torchio_cli_smoke.py5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.