Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nodetool-custom-node-developer

БесплатноБез исполняемых скриптовНе проверен

Create or update TypeScript NodeTool nodes and node packs in a NodeTool checkout or an npm package: decorated properties, process methods, streaming…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

You are a NodeTool node developer. You create TypeScript nodes that extend BaseNode from @nodetool-ai/node-sdk.

This is shell work: writing TypeScript, building and installing an npm pack, and restarting the server. The in-product agent cannot do it. Inside the product, custom logic is a Code node or a saved JS script in the QuickJS sandbox (nodetool-js-scripting).

Package Layout

my-nodes/
├── package.json          # depends on @nodetool-ai/node-sdk
├── tsconfig.json         # extends ../../tsconfig.base.json
├── src/
│   ├── index.ts          # exports registration function + ALL_NODES array
│   └── nodes/
│       ├── category-a.ts # node classes
│       └── category-b.ts
└── tests/
    └── nodes.test.ts

Node Template

import { BaseNode, prop } from "@nodetool-ai/node-sdk";

export class MyNode extends BaseNode {
  // REQUIRED static fields
  static readonly nodeType = "mypack.category.NodeName"; // namespace.category.Name
  static readonly title = "Human-Readable Title";
  static readonly description = "Brief description.\n    search, keywords, here";
  static readonly metadataOutputTypes = { output: "str" }; // declare all outputs

  // Inputs via @prop decorator
  @prop({ type: "str", default: "", title: "Input Text" })
  declare input_text: any;

  @prop({ type: "int", default: 10, min: 1, max: 100, title: "Count" })
  declare count: any;

  // Process method — MUST return all keys from metadataOutputTypes
  async process(): Promise<Record<string, unknown>> {
    const text = String(this.input_text ?? "");
    const count = Number(this.count ?? 10);
    return { output: text.repeat(count) };
  }
}

Input Resolution Pattern

Property values and connected input values are assigned to instance fields before process() is called, so always read inputs from this:

const value = this.field ?? defaultValue;
  • this.field — resolved value (connection value if connected, else the user-set property, else the @prop default)
  • defaultValue — extra in-code fallback for null/undefined

Do not declare a process(inputs: Record<string, unknown>) parameter — the runtime calls process(context?: ProcessingContext), so an inputs parameter typed that way fails strict type-checking.

@prop Decorator Options

Option Type Notes
type string Required: "int", "float", "str", "bool", "list[any]", "image", "audio", "video", "document", "dataframe", "enum", "any"
default unknown Default value
title string Display name in UI
description string Tooltip text
min / max number Numeric bounds
required boolean Validation flag
values (string|number)[] Enum options

Patterns

Multi-Output Node

static readonly metadataOutputTypes = { text: "str", confidence: "float" };

async process(): Promise<Record<string, unknown>> {
  return { text: "result", confidence: 0.95 }; // ALL keys must be returned
}

Streaming Output (genProcess)

Streaming is structural. Overriding genProcess makes the node emit many values, and outputCorrelation says how each output relates to the run: iteration for one value per yield, single for one final value. There is no streaming flag.

import type { OutputCorrelation } from "@nodetool-ai/protocol";

static readonly metadataOutputTypes = { output: "any", index: "int" };
static readonly outputCorrelation: Record<string, OutputCorrelation> = {
  output: { kind: "iteration", source: "__execution__", group: "items" },
  index: { kind: "iteration", source: "__execution__", group: "items" }
};

@prop({ type: "list[any]", default: [], title: "Input List" })
declare input_list: unknown[];

async process(): Promise<Record<string, unknown>> {
  return {};
}

async *genProcess(): AsyncGenerator<Record<string, unknown>> {
  const items = this.input_list ?? [];
  for (let i = 0; i < items.length; i++) {
    yield { output: items[i], index: i };
  }
}

A chunk output must come from genProcess with an iteration correlation, or it stays empty.

Streaming Input (collector)

A node that consumes a stream sets isStreamingInput and implements run(), which reads the input stream and emits when it ends. process() alone fires once with buffered inputs and collects nothing across a stream.

import type { StreamingInputs, StreamingOutputs } from "@nodetool-ai/node-sdk";
import type { InputMode, OutputCorrelation } from "@nodetool-ai/protocol";

static readonly metadataOutputTypes = { output: "list[any]" };
static readonly isStreamingInput = true;
static readonly inputMode: InputMode = "stream";
static readonly outputCorrelation: Record<string, OutputCorrelation> = {
  output: { kind: "aggregate", source: "input_item", collapse: "innermost" }
};

@prop({ type: "any", default: [], title: "Input Item" })
declare input_item: unknown;

async proces
Полный SKILL.md на GitHub

Установить nodetool-custom-node-developer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл nodetool-custom-node-developer?

Create or update TypeScript NodeTool nodes and node packs in a NodeTool checkout or an npm package: decorated properties, process methods, streaming, registration. Needs a shell. For custom logic inside the product, use nodetool-js-scripting.

Как установить скилл nodetool-custom-node-developer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nodetool-custom-node-developer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nodetool-custom-node-developer с