nodetool-custom-node-developer
FreeNo executable scriptsNot checkedCreate or update TypeScript NodeTool nodes and node packs in a NodeTool checkout or an npm package: decorated properties, process methods, streaming…
by nodetool-ai★ 674 GitHub starsAbout this skill
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@propdefault)defaultValue— extra in-code fallback fornull/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
Install nodetool-custom-node-developer 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
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the nodetool-custom-node-developer skill do?
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.
How do I install the nodetool-custom-node-developer 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 nodetool-custom-node-developer skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic