Skip to content
Back to skills

Stardist

ASecurity

"Self-contained operating guidance for StarDist 0.9.2: CPU-verified

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythongobashapibackend

Works with

  • cli
  • api

Security analysis

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

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Stardist?

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

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

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: "stardist"
description: "Self-contained operating guidance for StarDist 0.9.2: CPU-verified
  2D/3D instance segmentation, geometry/evaluation, and optional deployment
  integrations."
metadata:
  disco-role: operating
disable-model-invocation: true
license: BSD 3-Clause
---

# StarDist repository skill

Use this skill when a task needs the Python StarDist package for star-convex 2D polygons, 3D polyhedra, instance segmentation, NMS, matching, model training/inference, or related file integrations. This is an operating router, not a copy of the source repository.

## Install and verify

For a public CPU installation, use an isolated Python environment and install the package with its test helper when needed:

```bash
python -m pip install "stardist[test]"
python skills/disco/stardist/scripts/check_stardist_env.py
```

The compiled CPU extensions are built as part of installation. The checker must report imports for `stardist`, `stardist.models`, `stardist.geometry`, `stardist.matching`, `stardist.data`, `stardist.lib.stardist2d`, and `stardist.lib.stardist3d`. It also prints optional dependency/device diagnostics without making CUDA/OpenCL a baseline requirement. For the exact inspected source snapshot and freshness evidence, read [repo-provenance.md](references/repo-provenance.md).

## First route

- **2D images, `Config2D`, `StarDist2D`, training, normalization, tiling, multiclass:** [2d-workflows](sub-skills/2d-workflows/SKILL.md)
- **3D volumes, `Config3D`, `StarDist3D`, rays, anisotropy, block inference:** [3d-workflows](sub-skills/3d-workflows/SKILL.md)
- **labels, star distances, polygons/polyhedra, NMS, matching, patch sampling, overlays:** [evaluation-geometry](sub-skills/evaluation-geometry/SKILL.md)
- **CLI prediction, local model files, BioImage.IO, ROI/OBJ, QuPath:** [deployment-integration](sub-skills/deployment-integration/SKILL.md)

Read [api-overview.md](references/api-overview.md) for shared conventions and [troubleshooting.md](references/troubleshooting.md) before changing the environment.

## Safe operating sequence

1. Identify StarDist version/API context and whether the task is CPU baseline or an optional integration.
2. Inspect input axes, spatial shape, channel count, label dtype, model source, and expected output before calling the API.
3. Prefer a local model and a small deterministic fixture for offline/reproducible work. Pretrained registries, BioImage.IO resources, OpenCL/gputools, CUDA execution, and QuPath are optional gates.
4. Use the exact 2D/3D sub-skill contract, retain normalization/threshold/grid/ray metadata, and validate output labels.
5. For training/export/GUI work, state side effects and bound the operation before running it.

## Backend boundary

The required baseline is TensorFlow 2.x on CPU plus the compiled StarDist 2D/3D CPU extensions. A CPU import is not evidence of CUDA or OpenCL support. TensorFlow GPU, OpenCL/gputools data generation, BioImage.IO, pretrained downloads, and QuPath are explicitly optional; if they are unavailable, preserve a clear skip/limitation and continue with the CPU path where the contract has a valid substitute.

## Shared output expectations

A prediction is normally `(labels, details)`: labels are integer, spatial-only instance IDs with 0 as background; details contain sparse points/probabilities/distances and optional class information. Keep `axes`, normalization, grid, thresholds, ray configuration, anisotropy/scale, model source, and software version with persisted results. Route metric calculations through evaluation-geometry rather than treating labels as probability maps.

Files in this skill

  • SKILL.md3.5 KB
  • references/api-overview.md1.7 KB
  • references/repo-provenance.md1.6 KB
  • references/repo-routing-metadata.json495 B
  • references/troubleshooting.md2.1 KB
  • scripts/check_stardist_env.py1.5 KB
  • sub-skills/2d-workflows/SKILL.md4.2 KB
  • sub-skills/2d-workflows/references/api-reference.md8.6 KB
  • sub-skills/2d-workflows/references/large-data.md5.7 KB
  • sub-skills/2d-workflows/references/multiclass.md4.5 KB
  • sub-skills/2d-workflows/references/troubleshooting.md9.5 KB
  • sub-skills/2d-workflows/references/workflows.md7 KB
  • sub-skills/3d-workflows/SKILL.md2.8 KB
  • sub-skills/3d-workflows/references/api-reference.md7.9 KB
  • sub-skills/3d-workflows/references/large-data.md8.4 KB
  • sub-skills/3d-workflows/references/rays-and-anisotropy.md8 KB
  • sub-skills/3d-workflows/references/troubleshooting.md11.2 KB
  • sub-skills/3d-workflows/references/workflows.md10.9 KB
  • sub-skills/deployment-integration/SKILL.md4 KB
  • sub-skills/deployment-integration/references/bioimageio.md4.4 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.