Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

n8nn8n 自动化

Agent Skill

n8n 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

233

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pokgak/agent-skills --skill n8n

简介

用于查找、检索和筛选相关信息。n8n 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 注意是否会触发联网或文件读写操作。

SKILL.md

n8n Skill - Manage Workflows and Executions

n8n Concepts

Workflows

A workflow is an automation that connects multiple services/apps. It consists of:

  • Nodes - Individual steps that perform actions (HTTP requests, code execution, integrations)
  • Connections - Links between nodes defining data flow
  • Triggers - How the workflow starts (webhook, schedule, manual, etc.)

Node Types

  • Trigger nodes - Start workflows (Webhook, Schedule, Manual)
  • Regular nodes - Process data (HTTP Request, Set, IF, Switch)
  • Code nodes - Custom JavaScript/Python logic
  • Integration nodes - Connect to services (Slack, Discord, Notion, etc.)

Executions

An execution is a single run of a workflow. States:

  • success - Completed without errors
  • error - Failed at some node
  • running - Currently executing
  • waiting - Paused, waiting for external event
  • canceled - Manually stopped

Execution Modes

  • webhook - Triggered by HTTP request
  • trigger - Triggered by schedule or event
  • manual - Triggered manually from UI
  • retry - Retried from a failed execution

Webhooks

HTTP endpoints that trigger workflows:

  • Production webhook - /webhook/<path> - Always active when workflow is active
  • Test webhook - /webhook-test/<path> - For testing, shows data in UI

Credentials

Stored authentication for services (API keys, OAuth tokens). Referenced by nodes but not exposed in workflow JSON.

CLI Setup

The CLI is available via uvx (no installation needed):

uvx n8n-client --help

Or install via pip/uv:

pip install n8n-client
# or
uv pip install n8n-client

Environment Variables

Required:

  • N8N_API_KEY - API key from n8n (Settings → n8n API)
  • N8N_BASE_URL - n8n instance URL (e.g., https://your-instance.app.n8n.cloud)

CLI Reference

List Workflows

# List all workflows
uvx n8n-client workflows

# Active workflows only
uvx n8n-client workflows --active

# JSON output
uvx n8n-client workflows --json

Workflow Details

# Get workflow details
uvx n8n-client workflow <workflow_id>

# Full JSON output
uvx n8n-client workflow <workflow_id> --json

Activate/Deactivate Workflows

uvx n8n-client activate <workflow_id>
uvx n8n-client deactivate <workflow_id>

List Nodes in Workflow

# List all nodes (Code nodes marked with *)
uvx n8n-client nodes <workflow_id>

View/Edit Nodes

# View node details
uvx n8n-client node <workflow_id> "node name"

# View Code node's JavaScript
uvx n8n-client node <workflow_id> "node name" --code

# Update Code node from file
uvx n8n-client node <workflow_id> "node name" --set-code script.js

# Rename a node
uvx n8n-client node <workflow_id> "old name" --rename "new name"

# Set node parameter (supports dot notation for nested keys)
uvx n8n-client node <workflow_id> "HTTP Request" --set-param url="https://api.example.com"
uvx n8n-client node <workflow_id> "Agent" --set-param options.systemMessage="You are helpful"

# Set multiple parameters at once
uvx n8n-client node <workflow_id> "Node" -p timeout=5000 -p retries=3

# Bulk update parameters from JSON (deep merged)
uvx n8n-client node <workflow_id> "Node" --set-param-json '{"options": {"systemMessage": "Hello"}}'

Export/Import Code Nodes

Useful for editing Code node scripts in a proper editor:

# Export all Code nodes to files
uvx n8n-client export-code <workflow_id> ./nodes/

# Import updated scripts back
uvx n8n-client import-code <workflow_id> ./nodes/

Trigger Workflows

# Trigger workflow by name via webhook
uvx n8n-client trigger "Workflow Name"

# With JSON payload
uvx n8n-client trigger "Workflow Name" --data '{"key": "value"}'

# With payload from file
uvx n8n-client trigger "Workflow Name" --file payload.json

# Use test webhook URL
uvx n8n-client trigger "Workflow Name" --test

List Executions

# Recent executions
uvx n8n-client executions

# Filter by workflow
uvx n8n-client executions --workflow <workflow_id>

# Filter by status (error, success, running, waiting, canceled)
uvx n8n-client executions --status error

# Limit results
uvx n8n-client executions -n 100

Execution Details

# Get execution details (shows error info for failed executions)
uvx n8n-client execution <execution_id>

# Include full execution data
uvx n8n-client execution <execution_id> --data

# JSON output
uvx n8n-client execution <execution_id> --data --json

Retry Failed Execution

uvx n8n-client retry <execution_id>

# Use latest workflow version
uvx n8n-client retry <execution_id> --latest

Credentials Management

Note: The n8n API does not allow reading credential values (security restriction). You can only list credentials metadata, create new credentials, and delete credentials. To update a credential, you must delete and recreate it.

# List all credentials (metadata only - id, name, type)
uvx n8n-client credentials

# Get schema for a credential type (shows required fields)
uvx n8n-client credential-schema httpHeaderAuth
uvx n8n-client credential-schema openAiApi --json

# Create a credential
uvx n8n-client create-credential --name "My API Key" --type httpHeaderAuth --data '{"name": "X-API-Key", "value": "secret"}'

# Create from file
uvx n8n-client create-credential --name "OpenAI" --type openAiApi --data-file credentials.json

# Delete a credential
uvx n8n-client delete-credential <credential_id>

Common Workflows

Troubleshoot Failed Executions

# 1. Find failed executions
uvx n8n-client executions --status error

# 2. Get error details
uvx n8n-client execution <id>

# 3. Get full data for debugging
uvx n8n-client execution <id> --data --json

Edit Code Nodes

# 1. Export all Code nodes
uvx n8n-client export-code <workflow_id> ./nodes/

# 2. Edit scripts in your editor
# Files: ./nodes/node_name.js

# 3. Import changes back
uvx n8n-client import-code <workflow_id> ./nodes/

Quick Node Update

# View current code
uvx n8n-client node <workflow_id> "node name" --code > script.js

# Edit script.js...

# Update node
uvx n8n-client node <workflow_id> "node name" --set-code script.js

Test Webhook Workflow

# Trigger with test payload
uvx n8n-client trigger "Workflow Name" --test --file test_payload.json

# Check execution result
uvx n8n-client executions --workflow <id> -n 1

Execution Data Structure

When debugging with --data --json, the execution contains:

execution
├── id                    # Execution ID
├── status                # success, error, running, etc.
├── mode                  # webhook, trigger, manual, retry
├── startedAt / stoppedAt # Timestamps
├── workflowData          # Snapshot of workflow at execution time
│   ├── name
│   ├── nodes[]
│   └── connections
└── data
    └── resultData
        ├── runData       # Output from each node
        │   └── [nodeName][]
        │       ├── data.main[][] # Node output items
        │       └── executionStatus
        ├── lastNodeExecuted
        └── error         # If failed
            ├── message
            ├── description
            └── node      # Which node failed

Common Error Patterns

Webhook Payload Issues

  • Check execution --data --json and look at the Webhook node's output
  • Payload is in runData.Webhook[0].data.main[0][0].json.body

Code Node Errors

  • Error message shows the JavaScript error
  • Use node <workflow_id> "node name" --code to view the code
  • Common: undefined variables, JSON parsing, missing fields

Integration Failures

  • Usually credential or API issues
  • Check if the service is accessible
  • Verify credential permissions

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.28%
按下载量换算31

Claude

30.87%
按下载量换算25

Cursor

19.76%
按下载量换算16

Gemini CLI

9.31%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills