Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

npm-n8n-nodesnpm n8n 节点

Agent Skill

npm-n8n-nodes 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,550

周安装

145

GitHub Stars

公开资料未说明

下载量

1,148
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:npm-n8n-nodes(npm n8n 节点)
来源仓库:https://github.com/encryptshawn/npm-n8n-nodes
安装命令:
openclaw skills install npm-n8n-nodes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install npm-n8n-nodes

简介

npm-n8n-nodes 用于构建、打包与发布 n8n 自定义社区节点为 npm 包。

  • 适用于需要扩展 n8n 工作流功能或发布自有节点的开发者。
  • 提供标准化构建流程与发布指南支持。
  • 安装命令为 openclaw skills install npm-n8n-nodes,需确认权限范围及是否触发 npm 注册与包管理操作。
  • 建议结合 README 了解依赖项与发布权限要求。

SKILL.md

name
npm-n8n-nodes
description
>

n8n Custom Node — NPM Package Skill

Core Mental Model

Every n8n node follows one pattern:

getInputData()  →  loop items  →  do stuff  →  push to returnData  →  return [returnData]

Two file types do all the work:

  • Node file (nodes/MyNode/MyNode.node.ts) — UI fields + execute logic
  • Credential file (credentials/MyApi.credentials.ts) — auth definition

Everything else is project plumbing.


Project Structure

n8n-nodes-yourservice/
├── package.json              ← CRITICAL: must have n8n section + correct keyword
├── tsconfig.json
├── .eslintrc.js
├── gulpfile.js               ← copies SVG icons to dist/
├── index.js                  ← optional explicit entry point
├── nodes/
│   └── YourService/
│       ├── YourService.node.ts
│       ├── YourService.node.json   ← optional: codex metadata
│       └── yourservice.svg
├── credentials/
│   └── YourServiceApi.credentials.ts
└── dist/                     ← compiled output (never edit manually)

What to Read and When

This skill has focused reference files. Load only what you need:

Node Types (pick one)

If you need...Read
Standard request/response node (most common)references/examples/nodes/programmatic-node.md
Simple REST API, no complex logicreferences/examples/nodes/declarative-node.md
Trigger that polls an API on a schedulereferences/examples/nodes/trigger-node.md
Webhook that receives HTTP callsreferences/examples/nodes/webhook-node.md

Credentials (pick what matches your auth)

Auth typeRead
API key, Bearer token, custom header, query keyreferences/examples/credentials/api-key-patterns.md
OAuth2 (user login or machine-to-machine)references/examples/credentials/oauth2-patterns.md
Basic auth, multi-field, manual injectreferences/examples/credentials/other-patterns.md

Concepts (load when the topic comes up)

TopicRead
UI field types, displayOptions, collections, fixedCollectionreferences/concepts/node-properties.md
HTTP requests, bodies, headers, responses, binaryreferences/concepts/http-and-binary.md
Error types, continueOnFail, NodeApiError vs NodeOperationErrorreferences/concepts/error-handling.md
pairedItem, data flow, why item tracking mattersreferences/concepts/data-and-pairing.md
Node versioning, updating without breaking workflowsreferences/concepts/node-versioning.md

Project Setup & Publishing

TopicRead
package.json, tsconfig, gulpfile, eslintrc, index.jsreferences/templates/project-files.md
Local testing, npm link, n8n startreferences/templates/local-testing.md
npm publish, GitHub Actions, provenancereferences/templates/publishing.md
Common gotchas and silent failuresreferences/gotchas/common-gotchas.md

Quick-Start Pattern (copy this first)

// nodes/YourService/YourService.node.ts
import {
  IExecuteFunctions,
  INodeExecutionData,
  INodeType,
  INodeTypeDescription,
  NodeOperationError,
} from 'n8n-workflow';

export class YourService implements INodeType {
  description: INodeTypeDescription = {
    displayName: 'Your Service',
    name: 'yourService',
    icon: 'file:yourservice.svg',
    group: ['transform'],
    version: 1,
    description: 'Interact with Your Service API',
    defaults: { name: 'Your Service' },
    inputs: ['main'],
    outputs: ['main'],
    credentials: [{ name: 'yourServiceApi', required: true }],
    properties: [
      {
        displayName: 'Endpoint',
        name: 'endpoint',
        type: 'string',
        default: '/users',
        required: true,
      },
    ],
  };

  async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
    const items = this.getInputData();
    const returnData: INodeExecutionData[] = [];
    const credentials = await this.getCredentials('yourServiceApi');

    for (let i = 0; i < items.length; i++) {
      try {
        const endpoint = this.getNodeParameter('endpoint', i) as string;

        const response = await this.helpers.httpRequest({
          method: 'GET',
          url: `https://api.yourservice.com${endpoint}`,
          headers: {
            Authorization: `Bearer ${credentials.apiToken}`,
          },
        });

        returnData.push({ json: response, pairedItem: { item: i } });

      } catch (error) {
        if (this.continueOnFail()) {
          returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
          continue;
        }
        throw new NodeOperationError(this.getNode(), error, { itemIndex: i });
      }
    }

    return [returnData];
  }
}

Essential APIs Cheat Sheet

// Input
const items = this.getInputData();

// Parameters
this.getNodeParameter('name', i) as string
this.getNodeParameter('count', i, 0) as number
this.getNodeParameter('options', i, {}) as IDataObject

// Credentials
const creds = await this.getCredentials('myCredentialName');

// HTTP
await this.helpers.httpRequest({ method, url, headers, qs, body })

// Error handling
this.continueOnFail()
throw new NodeOperationError(this.getNode(), message, { itemIndex: i })
throw new NodeApiError(this.getNode(), error)   // for API-level HTTP errors

// Output
returnData.push({ json: data, pairedItem: { item: i } })
return [returnData];

Pre-Publish Checklist

  • [ ] keywords in package.json includes "n8n-community-node-package"
  • [ ] n8n.nodes and n8n.credentials arrays point to dist/ .js paths
  • [ ] Node name is camelCase; displayName is human-readable
  • [ ] Credential name exactly matches string passed to getCredentials('...')
  • [ ] Every returnData.push() includes pairedItem: { item: i }
  • [ ] continueOnFail() is handled in all try/catch blocks
  • [ ] SVG icon exists in nodes/YourService/ and referenced as 'file:yourservice.svg'
  • [ ] npm run build succeeds (no TypeScript errors)
  • [ ] npm run lint passes (required for community submission)
  • [ ] Tested locally via npm link
  • [ ] Version bumped in package.json before publish

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.78%
按下载量换算813

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills