Skip to content
Back to skills

Antspy

ASecurity

"Use ANTsPy/antspyx for medical image IO, ANTsImage metadata, image

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
developmentpythongodebuggingapibackend

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill antspy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Antspy?

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

Security grade badge for Antspy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-antspy/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-antspy)

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: antspy
description: "Use ANTsPy/antspyx for medical image IO, ANTsImage metadata, image
  operations, registration, segmentation, visualization, and learning helper
  workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# ANTsPy Repo Skill

Use this repo skill when a task involves the Python package distributed as `antspyx` and imported as `ants`: medical image IO, `ANTsImage` objects, preprocessing, registration, transforms, segmentation, labels, plotting, interoperability, or ANTsPy learning/deeplearn helper utilities.

## Start Here

1. Install the package with `pip install antspyx` or `conda install conda-forge::antspyx`.
2. Verify the public import with `python -c "import ants; print(ants.__name__)"`.
3. Run [scripts/antspy_environment_check.py](scripts/antspy_environment_check.py) for a tiny import/API smoke check.
4. Read [references/package-overview.md](references/package-overview.md) for package scope, compiled-backend caveats, and workflow boundaries.
5. Read [references/troubleshooting.md](references/troubleshooting.md) when installation, import, compiled libraries, physical-space metadata, optional dependencies, or expensive algorithms fail.
6. Check [references/repo-provenance.md](references/repo-provenance.md) before deciding whether this skill is stale for a newer ANTsPy checkout.

## Route by Task

| User task | Read |
| --- | --- |
| Create, read, write, clone, index, compare, or validate `ants.ANTsImage` objects and physical metadata | [image-core](sub-skills/image-core/SKILL.md) |
| Smooth, denoise, mask, crop, pad, slice, resample, threshold, run `iMath`, compute image metrics, or use morphology | [image-ops-math](sub-skills/image-ops-math/SKILL.md) |
| Register images, apply transforms to images or points, inspect transform files, build templates, run motion correction, or compute Jacobians | [registration-transforms](sub-skills/registration-transforms/SKILL.md) |
| Run Atropos, k-means, Otsu, priors, joint label fusion, label stats, overlap, geometry, label matrices, centroids, or point images | [segmentation-labels](sub-skills/segmentation-labels/SKILL.md) |
| Save plots headlessly, build overlays/grids/movies, handle RGB/vector channels, convert image lists/matrices, or interoperate with nibabel/SimpleITK | [visualization-interop](sub-skills/visualization-interop/SKILL.md) |
| Use sparse/eigen learning helpers, patch extraction/reconstruction, one-hot labels, random augmentation, simulated bias fields, or learning-oriented crop/pad helpers | [learning-deeplearn](sub-skills/learning-deeplearn/SKILL.md) |

## Cross-Cutting Rules

- Import with `import ants`; do not import `antspyx` as a module.
- ANTsPy wraps compiled ANTs/ITK code. A successful `pip install` is not enough if importing `ants` fails; run the environment check script before debugging workflow code.
- `ANTsImage` values and physical metadata are both important. Validate `shape`, `dimension`, `origin`, `spacing`, and `direction` before mixing images, masks, labels, transforms, overlays, or matrices.
- Use label-safe interpolation such as `nearestNeighbor` or `genericLabel` for labels and masks. Use linear-style interpolation for intensity images unless the workflow requires otherwise.
- Prefer small synthetic images for smoke checks and troubleshooting. Full nonlinear registration, joint label fusion, high-resolution 3-D operations, and template building can be expensive.
- Keep ANTsPyNet, neural-network model training, and application-specific medical pipelines outside this skill unless the task only uses ANTsPy helper utilities.

## Shared References and Scripts

- [Package overview](references/package-overview.md): package identity, public workflow map, data model, optional dependencies, and version caveats.
- [API index](references/api-index.md): quick map from common `ants.*` functions to the owning sub-skill and detailed reference.
- [Troubleshooting](references/troubleshooting.md): install/import failures, wheel/source-build problems, shadowed imports, physical-space errors, optional dependencies, and expensive workflow triage.
- [Repo provenance](references/repo-provenance.md): source commit, dirty-state baseline, package versions, and evidence paths used for this generated skill.
- [Routing metadata](references/repo-routing-metadata.json): structured scenario metadata consumed by the managed `repo-skills-router` during import.
- [Environment check](scripts/antspy_environment_check.py): tiny import/API smoke check for `antspyx`.
- [Smoke suite](scripts/run_antspy_smoke_suite.py): runs the bundled sub-skill smoke scripts with the current Python interpreter.

Files in this skill

  • SKILL.md4.6 KB
  • references/api-index.md2.7 KB
  • references/package-overview.md3.1 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json488 B
  • references/troubleshooting.md4.4 KB
  • scripts/antspy_environment_check.py2.8 KB
  • scripts/run_antspy_smoke_suite.py2.8 KB
  • sub-skills/image-core/SKILL.md4.4 KB
  • sub-skills/image-core/references/api-reference.md12.7 KB
  • sub-skills/image-core/references/troubleshooting.md9.6 KB
  • sub-skills/image-core/references/workflows.md7.7 KB
  • sub-skills/image-core/scripts/antspy_image_smoke.py4.3 KB
  • sub-skills/image-ops-math/SKILL.md3 KB
  • sub-skills/image-ops-math/references/api-reference.md11.6 KB
  • sub-skills/image-ops-math/references/imath-reference.md8 KB
  • sub-skills/image-ops-math/references/troubleshooting.md8.6 KB
  • sub-skills/image-ops-math/references/workflows.md10.1 KB
  • sub-skills/image-ops-math/scripts/antspy_ops_smoke.py4.6 KB
  • sub-skills/learning-deeplearn/SKILL.md4.8 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.