n8n-7-custom-node-development
Sub-skill of n8n: 7. Custom Node Development.
Best use case
n8n-7-custom-node-development is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of n8n: 7. Custom Node Development.
Teams using n8n-7-custom-node-development should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/7-custom-node-development/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How n8n-7-custom-node-development Compares
| Feature / Agent | n8n-7-custom-node-development | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of n8n: 7. Custom Node Development.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 7. Custom Node Development
## 7. Custom Node Development
```typescript
// packages/nodes-custom/nodes/MyCustomNode/MyCustomNode.node.ts
import {
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
export class MyCustomNode implements INodeType {
description: INodeTypeDescription = {
displayName: 'My Custom Node',
name: 'myCustomNode',
icon: 'file:myicon.svg',
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"]}}',
description: 'Custom node for specific business logic',
defaults: {
name: 'My Custom Node',
},
inputs: ['main'],
outputs: ['main'],
credentials: [
{
name: 'myCustomApi',
required: true,
},
],
properties: [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Process',
value: 'process',
description: 'Process data through custom logic',
},
{
name: 'Validate',
value: 'validate',
description: 'Validate data against rules',
},
],
default: 'process',
},
{
displayName: 'Input Field',
name: 'inputField',
type: 'string',
default: 'data',
required: true,
description: 'Field to process',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'Add Option',
default: {},
options: [
{
displayName: 'Strict Mode',
name: 'strictMode',
type: 'boolean',
default: false,
description: 'Enable strict validation',
},
{
displayName: 'Output Format',
name: 'outputFormat',
type: 'options',
options: [
{ name: 'JSON', value: 'json' },
{ name: 'Array', value: 'array' },
],
default: 'json',
},
],
},
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
const returnData: INodeExecutionData[] = [];
const operation = this.getNodeParameter('operation', 0) as string;
const inputField = this.getNodeParameter('inputField', 0) as string;
const options = this.getNodeParameter('options', 0, {}) as {
strictMode?: boolean;
outputFormat?: string;
};
// Get credentials
const credentials = await this.getCredentials('myCustomApi');
for (let i = 0; i < items.length; i++) {
try {
const item = items[i].json;
const inputData = item[inputField];
if (!inputData && options.strictMode) {
throw new NodeOperationError(
this.getNode(),
`Field "${inputField}" not found in item ${i}`,
{ itemIndex: i }
);
}
let result: any;
if (operation === 'process') {
result = await this.processData(inputData, credentials);
} else if (operation === 'validate') {
result = this.validateData(inputData, options.strictMode);
}
returnData.push({
json: {
...item,
processed: result,
timestamp: new Date().toISOString(),
},
});
} catch (error) {
if (this.continueOnFail()) {
returnData.push({
json: {
error: (error as Error).message,
itemIndex: i,
},
});
continue;
}
throw error;
}
}
return [returnData];
}
private async processData(data: any, credentials: any): Promise<any> {
// Custom processing logic
return {
original: data,
processed: true,
api_key_length: credentials.apiKey?.length || 0,
};
}
private validateData(data: any, strict: boolean): any {
const isValid = data !== null && data !== undefined;
return {
valid: isValid,
strict_mode: strict,
type: typeof data,
};
}
}
```
```typescript
// packages/nodes-custom/credentials/MyCustomApi.credentials.ts
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class MyCustomApi implements ICredentialType {
name = 'myCustomApi';
displayName = 'My Custom API';
documentationUrl = 'https://docs.example.com/api';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: {
password: true,
*Content truncated — see parent skill for full reference.*Related Skills
oss-wiki-development-arc
Three-phase methodology (Substrate → Depth → Quality) for building open-source engineering wikis efficiently. Skip 70%+ of empirical iteration cost by pre-loading the pattern.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.
subagent-driven-development
Use when executing implementation plans with independent tasks. Dispatches fresh delegate_task per task with two-stage review (spec compliance then code quality).
node-inspect-debugger
Debug Node.js via --inspect + Chrome DevTools Protocol CLI.
cowork-plugin-customizer
Customize or personalize a Codex plugin for a specific organization's tools and workflows by replacing placeholders and configuring MCP servers.
customer-research
Investigate customer questions through multi-source research with confidence scoring and citations
vscode-extensions-5-custom-snippets
Sub-skill of vscode-extensions: 5. Custom Snippets.
raycast-alfred-1-raycast-extension-development
Sub-skill of raycast-alfred: 1. Raycast Extension Development (+2).
docker-6-development-workflow-scripts
Sub-skill of docker: 6. Development Workflow Scripts.
docker-3-docker-compose-for-development
Sub-skill of docker: 3. Docker Compose for Development.
n8n-5-data-transformation-with-code-node
Sub-skill of n8n: 5. Data Transformation with Code Node (+1).
activepieces-6-custom-piece-development
Sub-skill of activepieces: 6. Custom Piece Development.