node-functions
Use this skill when a node's Python or JavaScript code calls a function Curio gives node code: loading a Data Catalog dataset, collection or file, loading or…
от urban-toolkit★ 37 звёзд на GitHub
Установить node-functions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Functions node code calls
Curio gives a node's code these functions, which it calls by name, with no import. Each is listed by its call, then the engines whose code has it (python or javascript, as a node's template names its engine), what it does, and each of its arguments.
An argument that names an item of a catalog says which: a Data Catalog dataset or collection, a Model Catalog model, or a Node code key saved in API Settings. The item must be one the account that runs the node has, and the code writes it as a string in the call, such as curio_load_data("<id>"), since Curio reads it from the code before the node runs.
curio_load_data(dataset_id, bounds=None, part=None)
Engines: python.
Reads a dataset the way its format is read: a CSV file as a DataFrame, a GeoJSON file or a shapefile as a GeoDataFrame, a Parquet file as a GeoDataFrame when it has geometry and a DataFrame otherwise, a JSON file as its document, a GeoTIFF as an open rasterio dataset, a NetCDF file as an xarray Dataset, an ONNX file as an onnxruntime session, a collection as its index, a layer group, such as an OSM extract or a GeoPackage of several layers, as a dict of its layers by name, and the result of a node that returned several values as the tuple, list or dict it returned.
dataset_id(a Data Catalog dataset): the dataset's id.bounds:(west, south, east, north)in a GeoTIFF's CRS: only the cells whose centres lie inside are read, at the raster's own cell size.part: the file name or label of one file of a dataset of several files, read as the dataset holds it;boundsthen reads a window of it when it is a GeoTIFF.
curio_data_path(dataset_id)
Engines: python.
Gives the path of a dataset's file, for code that reads the file its own way, such as pd.read_csv(curio_data_path("<id>"), sep=";").
dataset_id(a Data Catalog dataset): the dataset's id.
curio_load_collection(dataset_id)
Engines: python.
Reads a collection's index, one row per file: where this node can open the file (path), the ids that name it (dataset_id and file_id), the links a Simple View shows (thumbnail, and image_url or audio_url), and what was read from the file.
dataset_id(a Data Catalog collection): the collection's id.
curio_derived_file(dataset_id, file_id, t_ms, ext=None, *, kind="video", tag=None)
Engines: python.
Gives where to write an image, a video or a recording derived from one file of a collection, of any kind, as its row, with a collection row's columns for its kind and a path whose folder exists; the node writes the file.
dataset_id: the collection's id, as a row ofcurio_load_collectionholds it.file_id: the file's id, as that row holds it.t_ms: the time in the file it is taken at, in milliseconds; 0 for a photo.ext: the extension of what it derives, an image (jpg,jpeg,png,webp,gif,bmp,tifortiff), a video (mp4,mov,m4v,webm,mkvoravi) or a recording (wav,flac,mp3,ogg,opus,m4a,aifforaif), with anmp4written as H.264 inyuv420p, which a browser plays; None derives the file's kind's own: a video's frame (jpg), a recording's clip (wav), an image's or a frame's overlay (png). Any other adds.<ext>tofile_id. A table is no derived file: the node returns it, and writes any other file it returns withcurio_output_file.kind: the kind of the file it comes from, as its row holds it:"video","audio","image","frame","raster"or"file"; a raster's or a file'sextis named.tag: 1 to 32 lowercase letters and digits that tell apart two files one run derives from one file at one time.
curio_output_file(name)
Engines: python.
Gives the path to write a file the node returns, such as a raster or a mosaic's VRT; a function that writes such files takes it whole: output_file=curio_output_file.
name: one plain file name, such asmosaic.vrt.
curio_export(data, name="", part=None)
Engines: python.
Writes data to a file the node returns, a table as CSV, a GeoDataFrame as GeoJSON, a raster as GeoTIFF, a tuple, list or dict that holds a table or a raster (a bundle's parts) as one zip of a file per part and a bundle.json, and any other value as JSON, and gives the file's name: a Data Export node's code is one such call, naming the file after its File name widget and the part after its Part widget, and its Download button saves the file. A table or a raster inside a part, or a value JSON cannot hold, is refused, never written as its text.
data: what to write, such asinput_0.name: the file's name, which ends in its format's extension: a name with none gets it, a name ending in another data format's, such astrees.csvfor a GeoDataFrame, gets it in that one's place, and an empty one isdata_export.part: one part of a tuple, list or dict to write alone, in its own format, named by its label (a bundle part's label, which each ta
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- evals/files/street-photos-segmentation.json
- evals/truth.json
FAQ
Что делает скилл node-functions?
Use this skill when a node's Python or JavaScript code calls a function Curio gives node code: loading a Data Catalog dataset, collection or file, loading or running a Model Catalog model, reading a saved key, writing a file the node returns, deriving a file from a collection's file, editing map features, or reading one layer of an input. It lists every curio_ function with the engines that have it and each argument, saying which arguments name a catalog's item.
Как установить скилл node-functions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл node-functions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…