Command Palette

Search for a command to run...

Back to skills
skill № 86113

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…

FreeNo executable scripts
urban-toolkitby urban-toolkit★ 37 GitHub stars

Install node-functions in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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; bounds then 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 of curio_load_collection holds 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, tif or tiff), a video (mp4, mov, m4v, webm, mkv or avi) or a recording (wav, flac, mp3, ogg, opus, m4a, aiff or aif), with an mp4 written as H.264 in yuv420p, 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> to file_id. A table is no derived file: the node returns it, and writes any other file it returns with curio_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's ext is 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 as mosaic.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 as input_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 as trees.csv for a GeoDataFrame, gets it in that one's place, and an empty one is data_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
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • evals/evals.json
  • evals/files/street-photos-segmentation.json
  • evals/truth.json

FAQ

What does the node-functions skill do?

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.

How do I install the node-functions skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the node-functions skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare node-functions with