nimbus-local-ops
БесплатноБез исполняемых скриптовНе проверенUse when authenticating with the local Girder backend, using the nimbusimage Python API for scripting, making curl requests to REST API endpoints, querying…
от arjunrajlaboratory★ 22 звезды на GitHubОб этом скилле
Nimbus Local Operations
NimbusImage Python API (Preferred for Scripts)
For scripts that create, query, or modify backend data, prefer the nimbusimage Python package over raw curl. It handles authentication, batching, and endpoint naming.
Setup:
# From the project root
python3 -m venv .venv && source .venv/bin/activate
pip install -e nimbusimage python-dotenv
Credentials are stored in .env at the project root (gitignored):
GIRDER_API_URL=http://localhost:8080/api/v1
GIRDER_USERNAME=admin
GIRDER_PASSWORD=password
High-level API (datasets, annotations, images, workers):
import nimbusimage as ni
client = ni.connect("http://localhost:8080/api/v1", api_key="your-key")
ds = client.dataset(name="My Experiment")
polygons = ds.annotations.list(shape="polygon")
ds.annotations.compute(image="worker:latest", channel=0, tags=["detected"], worker_interface={"param": 10})
Low-level Girder client (direct REST calls):
import os
from dotenv import load_dotenv
from nimbusimage._girder import create_client
load_dotenv()
gc = create_client(api_url=os.environ["GIRDER_API_URL"], username=os.environ["GIRDER_USERNAME"], password=os.environ["GIRDER_PASSWORD"])
gc.post("/upenn_annotation/multiple", json=annotations_list)
gc.get("/upenn_annotation", parameters={"datasetId": dataset_id})
See nimbusimage/README.md for the full API overview, authentication options (API keys are preferred over username/password), and available accessors (ds.images, ds.annotations, ds.properties, ds.export, etc.).
Traps:
ds.channelsis the image's channel names and is[]for an image without them (large_image setschannelsonly for multi-frame images with names, e.g. not for a single frame). Count channels withds.num_channels; pad names with"". A tool that bounded channel indices bylen(ds.channels)refused channel 0 on every unnamed image.- Deleting a dataset folder does not delete its annotations or property values. Test
fixtures that create annotations must
ds.annotations.delete_many(...)before deleting the folder, or they leave orphans (the local DB already holds ~8K from past runs). girder_client.HttpErrorsubclassesrequests.HTTPError, which is arequests.RequestException. Soexcept requests.RequestExceptionwritten to mean "network trouble" also catches a 401 or a 404. HandleHttpErrorfirst whenever an HTTP answer and a lost connection need different treatment. This bit nimbusimage-mcp twice: a refusal was taken for a lost answer, and a missing job for a blip. Its MRO also includesOSError, soexcept OSErrorcatches it too. And a 502/504 from a proxy is not a refusal: the request may have reached Girder.- A scoped API key without
core.user_authgets 401 from job status and fromGET claude_agent/help;tmp/local_api_key.txtis such a key. Use a full-access key for anything that waits on jobs.
When to use which:
- High-level API (
ni.connect()): Dataset exploration, annotation CRUD, running workers, export - Low-level client (
create_client()): Bulk operations, custom endpoints, scripts likescripts/generate_test_annotations.py - curl: Quick one-off checks, debugging specific endpoint responses
Authentication (curl)
Get an auth token:
curl -s -u USER:PASS http://localhost:8080/api/v1/user/authentication | python3 -m json.tool
Default dev credentials: admin / password
Extract just the token:
TOKEN=$(curl -s -u admin:password http://localhost:8080/api/v1/user/authentication | python3 -c "import sys,json; print(json.load(sys.stdin)['authToken']['token'])")
Use the token in subsequent requests:
curl -s -H "Girder-Token: $TOKEN" http://localhost:8080/api/v1/upenn_annotation?datasetId=DATASET_ID
Tokens expire after ~6 months. Store in a shell variable for the session.
REST API Quick Reference
Base URL: http://localhost:8080/api/v1/
Swagger UI: http://localhost:8080/api/v1#!/
Endpoint Name Mapping
Plugin endpoints use custom names that differ from what you might expect:
| REST Path | Source File | Notes |
|---|---|---|
/upenn_annotation |
server/api/annotation.py |
NOT /annotation |
/upenn_collection |
server/api/collection.py |
NOT /collection (Girder has its own) |
/annotation_connection |
server/api/connections.py |
Connections between annotations |
/annotation_property_values |
server/api/propertyValues.py |
Computed property data |
/annotation_property |
server/api/property.py |
Property definitions |
/worker_interface |
server/api/workerInterfaces.py |
Docker worker registration |
/worker_preview |
server/api/workerPreviews.py |
Worker preview images |
/dataset |
server/api/dataset.py |
Multi-source dataset configuration (POST /dataset/{id}/multi_source) |
/dataset_view |
server/api/datasetView.py |
Per-use |
Установить nimbus-local-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nimbus-local-ops?
Use when authenticating with the local Girder backend, using the nimbusimage Python API for scripting, making curl requests to REST API endpoints, querying MongoDB directly via docker exec, checking Docker container logs, or debugging backend issues at runtime. Covers: nimbusimage Python package (high-level and low-level API), authentication (token retrieval, API keys), endpoint name mapping (upenn_annotation not annotation), curl templates for all plugin endpoints, direct MongoDB shell access, container management, and step-by-step test scenarios for verifying backend changes.
Как установить скилл nimbus-local-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nimbus-local-ops запускает скрипты?
Нет, скилл состоит только из инструкций (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