nimbusimage
БесплатноБез исполняемых скриптовНе проверенConnect to a NimbusImage server and work with scientific imaging datasets using the nimbusimage Python API. Use this skill whenever the user mentions…
от arjunrajlaboratory★ 22 звезды на GitHubОб этом скилле
NimbusImage — Core
The nimbusimage Python API lets you programmatically access NimbusImage scientific imaging datasets. This skill teaches you the API patterns so you can write correct code for the user.
The package follows an accessor pattern: connect → get dataset → use sub-accessors (ds.images, ds.annotations, ds.connections, ds.properties, ds.collections, ds.export, ds.history, ds.sharing).
This API or the MCP tools?
NimbusImage also has an MCP server whose tools are named ni_* (ni_datasets_list, ni_annotations_count, ...). It exists for clients that cannot run code, such as claude.ai and Claude Desktop. When both are available, as in Claude Code or Codex with the connector added:
- A quick read-only lookup (list datasets, count annotations, look at one image) may use the
ni_*tools. - Everything else uses this Python API: bulk creation or deletion, image arrays, measurements and analysis, exports, workers beyond a single run, and anything worth saving as a script.
Setup
The package must be installed first:
pip install nimbusimage
For Docker worker development (includes large_image for writing TIFF files):
pip install nimbusimage[worker]
Install troubleshooting
Two snags come up often enough that they belong here:
error: externally-managed-environment(PEP 668). Homebrew Python on macOS and most distro Pythons on Linux refusepip installinto the system interpreter. Use a venv:python3 -m venv ~/venvs/ni source ~/venvs/ni/bin/activate pip install nimbusimagePhantom namespace package in the NimbusImage source repo. The repo at
arjunrajlaboratory/NimbusImagecontains a top-levelnimbusimage/directory (the source of the package). If you run Python from the repo root, PEP 420 namespace-package resolution will letimport nimbusimage"succeed" with an empty module even when nothing is installed, so the usualpython -c "import nimbusimage"smoke test is misleading. Verify with__file__:import nimbusimage assert nimbusimage.__file__, "nimbusimage is shadowed by a local directory" print(nimbusimage.__file__) # should point inside a site-packages dirIf
__file__isNone, eitherpip install nimbusimageinto a venv, orcdout of the NimbusImage repo before running your script.
Connecting
Before writing any connection code, check whether the user already has credentials configured. Follow this sequence:
Check whether the variables are set without printing their values:
test -n "${NI_API_URL:-}" && echo "NI_API_URL is set" || echo "NI_API_URL is missing" test -n "${NI_API_KEY:-}" && echo "NI_API_KEY is set" || echo "NI_API_KEY is missing" test -n "${NI_TOKEN:-}" && echo "NI_TOKEN is set" || echo "NI_TOKEN is missing"If
NI_API_URLand either credential variable are set, useni.connect()with no arguments.If credentials are missing, tell the user which variables to export in their local shell, then rerun the presence check. Do not ask them to paste API keys, tokens, or passwords into the conversation.
If they do not have an API key, tell them to request one from their NimbusImage administrator.
Never print, hardcode, or repeat credentials. Never guess default passwords.
import nimbusimage as ni
# Best: environment variables (NI_API_URL + NI_API_KEY) — just works
client = ni.connect()
# With explicit API key
client = ni.connect("http://localhost:8080/api/v1", api_key="your-api-key")
# With session token (expires — API key is preferred)
client = ni.connect("http://localhost:8080/api/v1", token="session-token")
# With username/password (for one-off interactive use)
client = ni.connect("http://localhost:8080/api/v1", username="...", password="...")
Setting up environment variables (recommend to users)
The recommended setup uses an API key, which is persistent and doesn't expire (unlike session tokens).
How to get an API key:
- nimbusimage.com (hosted): Email [email protected] with your account email address to request an API key.
- Local/self-hosted server: In the Girder admin UI, go to Users > select the user > Edit User > API Keys > create a new key and copy the key string.
Key scope. Ask for (or create) a key that is either full access ("Allow all actions on behalf of my user") or custom-scoped with "List and read jobs" (jobs.rest.list_job) alongside Read data / Write data. Without "List and read jobs" a key can still submit workers, and they run, but it can't poll job status or read job logs. Users add the permission themselves if they can edit their keys, or ask the server's admin (support, for nimbusimage.com). See "Can't see a job's status ≠ the job didn't run" in references/gotchas.md.
# Add to ~/.zshrc or ~/.bashrc for persistence
# For nimbusimage.com:
export NI_API_URL="https://app.nimbusimage.c
Установить nimbusimage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nimbusimage?
Connect to a NimbusImage server and work with scientific imaging datasets using the nimbusimage Python API. Use this skill whenever the user mentions NimbusImage, wants to connect to a Girder-based imaging server, list or open datasets, or asks about the nimbusimage package. Also use when you see `import nimbusimage` in code or the user references dataset IDs, channels, z-slices, or time points in an imaging context. This is the entry point — it routes to more specific skills (annotations, images, workers, analyze) for deeper operations. If NimbusImage MCP tools (ni_*) are also connected, prefer this API for anything beyond a quick lookup.
Как установить скилл nimbusimage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nimbusimage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic