Token导航 LogoToken导航

Agent Skill · 开发

n8n(n8n 自动化)

n8n 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

n8n 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 13,011。

总安装 1,048周安装 42GitHub Stars 31下载 339核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill n8n

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态、代码变更或协作事项进行整理。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

安装方式:通过 GitHub 仓库安装,命令为 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill n8n。适用宿主:Codex、Claude、Cursor、Gemini CLI。

来源仓库内路径:skills/n8n

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill n8n;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

n8n 怎么安装?

在终端执行 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill n8n。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

n8n 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

n8n 需要什么权限?

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

n8n 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

n8n 用的人多吗?

公开数据是累计安装 1,048 次,近一周安装 42 次,下载 339 次,GitHub 31 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

n8n 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
n8n

n8n 自动化 · 本页

1,04831接触敏感数据MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

N8N Skill

Comprehensive assistance with n8n development, generated from official documentation. n8n is a fair-code licensed workflow automation tool that combines AI capabilities with business process automation.

When to Use This Skill

This skill should be triggered when:

  • Building or debugging n8n workflows
  • Working with the Code node (JavaScript or Python)
  • Using expressions and data transformations
  • Implementing AI agents, chains, or RAG workflows
  • Configuring n8n deployments (Docker, npm, self-hosted)
  • Setting up webhooks, credentials, or integrations
  • Handling errors in workflows
  • Scaling n8n with queue mode
  • Creating custom nodes or white labeling n8n
  • Using the n8n API programmatically
  • Working with LangChain in n8n
  • Migrating to n8n v1.0

Key Concepts

Core Components

  • Workflows: Visual automation flows with nodes connected together
  • Nodes: Individual operations in a workflow (trigger, action, logic, etc.)
  • Expressions: Code snippets using {{}} syntax to access and transform data
  • Credentials: Secure storage for API keys and authentication
  • Executions: Individual workflow runs with their data and status

Data Structure

  • n8n passes data between nodes as items (array of JSON objects)
  • Each item has a json property containing the main data
  • Binary data is stored separately in the binary property
  • Use $json to access current item's data in expressions

AI Capabilities

  • Agents: AI that can use tools and make decisions
  • Chains: Predefined sequences of AI operations
  • Memory: Store conversation history for context
  • Tools: Functions that AI agents can call
  • Vector Databases: Store and retrieve embeddings for RAG

Quick Reference

Example 1: Basic Expression to Access Data

// Access data from the current item
{{ $json.name }}

// Access data from a specific node
{{ $node["HTTP Request"].json.response }}

// Access all items from a node
{{ $("HTTP Request").all() }}

Example 2: HTTP Request with Authentication

When working with the HTTP Request node, handle errors and rate limits:

// In HTTP Request node settings:
// - Enable "Retry on Fail"
// - Set Max Tries to 3
// - Set Wait Between Tries (ms) to 1000

// For rate limiting, use Batching:
// - Items per Batch: 10
// - Batch Interval (ms): 1000

Example 3: Code Node - Transform Data (JavaScript)

// Access input data
const items = $input.all();

// Transform each item
return items.map(item => {
  return {
    json: {
      fullName: `${item.json.firstName} ${item.json.lastName}`,
      email: item.json.email.toLowerCase(),
      timestamp: new Date().toISOString()
    }
  };
});

Example 4: Code Node - Filter Data (Python)

# Filter items based on a condition
output = []

for item in items:
    if item['json']['status'] == 'active':
        output.append({
            'json': {
                'id': item['json']['id'],
                'name': item['json']['name']
            }
        })

return output

Example 5: Expression - Date Handling with Luxon

// Current date
{{ $now }}

// Format date
{{ $now.toFormat('yyyy-MM-dd') }}

// Add 7 days
{{ $now.plus({ days: 7 }) }}

// Parse and format custom date
{{ DateTime.fromISO($json.dateString).toFormat('LLL dd, yyyy') }}

Example 6: JWT Authentication Credential

For APIs requiring JWT authentication:

// Use JWT credential with:
// - Key Type: Passphrase (for HMAC) or PEM Key (for RSA/ECDSA)
// - Secret: Your secret key
// - Algorithm: HS256, RS256, ES256, etc.

// The JWT credential automatically generates tokens
// Use it in HTTP Request node > Authentication > JWT

Example 7: Handle Errors in Workflow

// In Code node, use try-catch:
try {
  const result = $json.data.someField.toUpperCase();
  return [{ json: { result } }];
} catch (error) {
  // Return error information
  return [{
    json: {
      error: error.message,
      originalData: $json
    }
  }];
}

// Or set up Error Workflow in Workflow Settings
// to catch all failures and send notifications

Example 8: Pagination in HTTP Request

// Use pagination to fetch all pages
// In HTTP Request node > Pagination:

// Type: Generic Pagination
// Request URL: {{ $url }}&page={{ $pageNumber }}
// Complete When: {{ $response.body.hasMore === false }}
// Next Page URL: Automatic

Example 9: AI Agent with Tools

// In AI Agent node:
// 1. Connect a Chat Model (OpenAI, etc.)
// 2. Add tools (Calculator, HTTP Request, etc.)
// 3. Configure memory if needed

// The agent can:
// - Analyze user input
// - Decide which tools to use
// - Execute tools and process results
// - Return final answer

Example 10: Environment Variables and Static Data

// Access environment variables
{{ $env.MY_API_KEY }}

// Store workflow static data (persists across executions)
const staticData = getWorkflowStaticData('global');
staticData.lastRun = new Date().toISOString();
staticData.counter = (staticData.counter || 0) + 1;

// Retrieve static data
{{ $workflow.staticData.counter }}

Reference Files

This skill includes comprehensive documentation in references/:

  • llms-txt.md - Complete n8n documentation formatted for LLMs

- Installation and setup guides - Node reference documentation - API documentation - Code examples and patterns - Configuration options - Troubleshooting guides

  • llms-full.md - Extended documentation with deep technical details

- Advanced configuration - Scaling and performance - Security and authentication - Custom node development - White labeling and embed options

Use view to read specific reference files when detailed information is needed.

Working with This Skill

For Beginners

  1. Start with basic workflow creation:

- Trigger nodes (Webhook, Schedule, Manual) - Action nodes (HTTP Request, Set, Edit Fields) - Learn expression syntax with simple {{$json.field}} access

  1. Understand data structure:

- Each node outputs an array of items - Use the data inspector to see item structure - Practice with the Edit Fields node for data transformation

  1. Common patterns:

- Webhook → HTTP Request → Set → Respond to Webhook - Schedule → Code → HTTP Request → Conditional - Manual → Loop Over Items → Process Each

For Intermediate Users

  1. Master the Code node:

- JavaScript mode for complex transformations - Access $input.all() for all items - Return properly formatted items with json property

  1. Work with expressions:

- Use built-in methods: .first(), .last(), .item - Date manipulation with Luxon - JMESPath for complex JSON queries

  1. Error handling:

- Use Try-Catch in Code nodes - Set up Error Workflows - Configure Retry on Fail for API calls

  1. Data operations:

- Merge data from multiple sources - Split and filter items - Loop over items for batch processing

For Advanced Users

  1. AI and LangChain:

- Build AI agents with custom tools - Implement RAG with vector databases - Use memory for conversational workflows - Chain multiple AI operations

  1. Scaling and performance:

- Configure queue mode for distributed execution - Optimize database settings - Use execution data pruning - Configure task runners

  1. Custom development:

- Create custom nodes - White label n8n for embedding - Use the n8n API for workflow management - Implement external secrets with AWS/Azure/GCP

  1. Advanced patterns:

- Sub-workflows for reusability - Webhook authentication and validation - Complex data transformations with JMESPath - Real-time data processing with SSE/WebSockets

Common Issues and Solutions

HTTP Request Errors

  • 400 Bad Request: Check query parameters and array formatting
  • 403 Forbidden: Verify credentials and API permissions
  • 429 Rate Limit: Use Batching or Retry on Fail options
  • 404 Not Found: Verify endpoint URL is correct

Expression Errors

  • Workflows now fail on expression errors in v1.0+
  • Set up Error Workflows to catch failures
  • Test expressions in the expression editor
  • Check for undefined values before accessing properties

Data Type Issues

  • Use .toString(), .toNumber() for type conversion
  • Handle null/undefined with {{$json.field || 'default'}}
  • Binary data requires special handling with buffers

Migration to v1.0

  • New execution order (depth-first instead of breadth-first)
  • Python support in Code node (Pyodide)
  • Mandatory user management (no more BasicAuth)
  • WebSocket push backend is now default
  • Node 18.17.0 or higher required

Environment Configuration

Docker Setup

# Basic n8n with Docker
docker run -it --rm \
  --name n8n \
  -p 5678:5678 \
  -v ~/.n8n:/home/node/.n8n \
  n8nio/n8n

# With environment variables
docker run -it --rm \
  --name n8n \
  -p 5678:5678 \
  -e N8N_BASIC_AUTH_ACTIVE=true \
  -e N8N_BASIC_AUTH_USER=admin \
  -e N8N_BASIC_AUTH_PASSWORD=password \
  -v ~/.n8n:/home/node/.n8n \
  n8nio/n8n

Key Environment Variables

  • N8N_HOST: Hostname (default: localhost)
  • N8N_PORT: Port (default: 5678)
  • N8N_PROTOCOL: http or https
  • WEBHOOK_URL: External webhook URL
  • N8N_ENCRYPTION_KEY: Encryption key for credentials
  • DB_TYPE: Database type (sqlite, postgres)
  • EXECUTIONS_MODE: queue or main (queue for scaling)

Resources

Official Resources

Learning Paths

  • Level One Course: Basic workflow building
  • Level Two Course: Advanced data handling and error management
  • Video Courses: Visual learning resources
  • AI Tutorial: Build AI workflows from scratch

API and Development

Notes

  • This skill was automatically generated from official n8n documentation
  • Code examples use proper language tags for syntax highlighting
  • Examples are extracted from real-world patterns in the docs
  • Focus on practical, actionable patterns for immediate use

Updating

To refresh this skill with updated documentation:

  1. Re-run the scraper with the same configuration
  2. The skill will be rebuilt with the latest information
  3. Review Quick Reference section for new examples

平台分布

Claude Code

26.89%
按下载量换算91

Antigravity

25.79%
按下载量换算87

windsurf

19.68%
按下载量换算67

Codex

13.72%
按下载量换算47

OpenCode

7.69%
按下载量换算26

Gemini CLI

3.58%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills