n8n Skills
English | 繁體中文
Supported n8n version: v2.0.3
n8n Skills is an automation skill pack that enables AI assistants to directly understand and operate n8n workflows, covering comprehensive information on 542 nodes and 20 curated templates. Through n8n Skills, AI assistants can help you quickly design workflows and explore node functionalities, making workflow automation more intuitive, intelligent, and saving significant development time.
Why Choose n8n Skills
n8n Skills provides a complete n8n Skill Pack solution for AI assistant workflow integration:
- Covers detailed documentation and usage guides for 542 n8n nodes
- Provides 20 curated workflow templates covering common scenarios like AI chatbots, data processing, and communications
- Multi-dimensional priority ranking system ensuring the most useful information is presented first
- Node compatibility analysis to help design correct workflow connections
- Supports Claude Code, Claude.ai Web, and Claude Desktop platforms
- Continuously maintained and updated to follow the latest n8n versions
With n8n Skills, you can:
- Quickly query any node's features, parameters, and configuration methods
- Have AI assistants recommend suitable node combinations for specific tasks
- Learn workflow design best practices and common patterns
- Explore unlimited application possibilities with 542 nodes
Who Should Use
n8n Skills is designed for the following users:
AI Assistant Developers
- Engineers developing with Claude Code CLI tool
- Users seeking n8n knowledge in Claude.ai web version
- Claude Desktop application enthusiasts
n8n Workflow Users
- Automation engineers who want AI-assisted workflow design
- n8n developers who need quick node functionality queries
- Learners hoping to explore node best practices
Automation Enthusiasts
- Innovators looking to integrate AI with workflow automation
- Efficiency seekers aiming to boost productivity
Project Overview
This package provides AI assistants with the ability to access n8n node information, helping AI understand and operate n8n workflows.
Key Features
- Provides complete information on n8n nodes
- Supports node search and exploration
- Node configuration validation
- Workflow structure analysis
- Support for 30+ popular community packages
- Community packages organized by category (AI tools, communication, web scraping, etc.)
Technical Architecture
This project is built upon the n8n-mcp architecture, converted into an n8n Skill Pack generator with added priority ranking, node grouping, and documentation integration features. n8n Skills adopts a five-layer modular architecture (collectors, parsers, organizers, generators, build scripts), automatically collecting information from n8n NPM packages, APIs, and documentation, and generating skill packs best suited for AI assistants through intelligent ranking.
Using n8n Skills
This project generates the n8n Skills automation skill pack, allowing you to use comprehensive n8n workflow knowledge in Claude Code, Claude.ai, or Claude Desktop.
Download n8n Skill Pack
- Go to the GitHub Releases page of this project
- Download the latest version of the
n8n-skills-{version}.zip
file
- After extraction, you will get the following file structure:
n8n-skills/
├── Skill.md # Main skill file
└── resources/ # Detailed node documentation
├── input/ # Input category nodes
├── output/ # Output category nodes
├── transform/ # Transform category nodes
├── trigger/ # Trigger category nodes
├── organization/ # Organization category nodes
├── misc/ # Miscellaneous nodes
├── community/ # Community package nodes
└── templates/ # Workflow templates
Installation Methods
Choose the n8n Skills installation method according to the Claude platform you are using:
Claude Code (CLI Tool)
Suitable for developers using Claude Code in the terminal, loading n8n Skills through local skills directory.
-
Create a
.claude/skills/
directory in your project root:
mkdir -p .claude/skills/n8n-skills
-
Copy the extracted
Skill.md
and resources/
directory to that directory:
cp -r n8n-skills/* .claude/skills/n8n-skills/
-
The directory structure should look like this:
your-project/
└── .claude/
└── skills/
└── n8n-skills/
├── Skill.md
└── resources/
-
Verify installation: Ask Claude Code "List available n8n nodes". If the Skill is correctly invoked, the installation is successful.
Claude.ai Web (Web Version)
Suitable for general users in browsers.
- Log in to Claude.ai
- Go to the "Settings" page and find the "
Features
- Provides complete information on n8n nodes
- Supports node search and exploration
- Node configuration validation
- Workflow structure analysis
- Support for 30+ popular community packages
- Community packages organized by category (AI tools, communication, web scraping, etc.)
Code Examples
README.md
# n8n Workflow API 範例
這個目錄包含使用 n8n.io API 的範例程式碼。
## 快速測試
### 1. 測試單一工作流程 API
```bash
# 直接使用 curl 測試
curl -s "https://api.n8n.io/api/workflows/templates/6270" | jq '.name'
# 查看節點數量
curl -s "https://api.n8n.io/api/workflows/templates/6270" | jq '.workflow.nodes | length'
# 查看連接關係
curl -s "https://api.n8n.io/api/workflows/templates/6270" | jq '.workflow.connections | keys'
2. 執行 TypeScript 範例
# 安裝依賴
npm install
# 執行簡單測試
npx ts-node examples/api-test.ts
# 執行完整範例 (待實作)
# npx ts-node examples/workflow-api-example.ts
API Endpoint 說明
獲取範本列表
GET https://api.n8n.io/api/templates/search
參數:
- page: 頁碼
- rows: 每頁數量 (最多 100)
- category: 分類 (可選)
- search: 搜尋關鍵字 (可選)
獲取完整工作流程定義
GET https://api.n8n.io/api/workflows/templates/{id}
回傳包含:
- 完整節點配置
- 連接關係
- 參數設定
- 可直接匯入 n8n
實用命令
# 獲取熱門範本列表
curl -s "https://api.n8n.io/api/templates/search?page=1&rows=10" | jq '.workflows[] | {id, name, totalViews}'
# 獲取特定範本的完整定義
curl -s "
api-collector-example.ts
import { ApiCollector, fetchPopularTemplates } from '../src/collectors/api-collector';
async function main() {
console.log('API 收集器使用範例\n');
// 範例 1: 使用便利函數快速抓取熱門範本
console.log('範例 1: 抓取前 20 個熱門範本');
console.log('='.repeat(60));
const result = await fetchPopularTemplates(20);
console.log(`成功抓取 ${result.templates.length} 個範本`);
console.log(`總範本數量: ${result.totalTemplates}`);
// 顯示前 3 個範本
result.templates.slice(0, 3).forEach((template, index) => {
console.log(`\n${index + 1}. ${template.name}`);
console.log(` 瀏覽次數: ${template.totalViews}`);
console.log(` 節點數量: ${template.nodes?.length || 0}`);
});
// 範例 2: 使用類別進行更多控制
console.log('\n\n範例 2: 搜尋特定主題的範本');
console.log('='.repeat(60));
const collector = new ApiCollector({
limit: 10,
timeout: 15000,
});
const searchResults = await collector.searchTemplates('gmail', 5);
console.log(`找到 ${searchResults.length} 個與 Gmail 相關的範本:`);
searchResults.forEach((template, index) => {
cons
api-response-sample.json
{
"id": 6270,
"name": "Build Your First AI Agent",
"nodes_count": 13,
"connections_count": 5,
"sample_node": {
"id": "2c408b32-7862-4411-9ad1-b6e9ff4e41f7",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
592,
-256
],
"parameters": {
"color": 7,
"width": 512,
"height": 352,
"content": "## [Video Tutorial](https://youtu.be/laHIzhsz12E)\n@[youtube](laHIzhsz12E)"
},
"typeVersion": 1
}
}
api-test.ts
// Simple API test example
import axios from 'axios';
async function testWorkflowAPI() {
const templateId = 6270;
const url = `https://api.n8n.io/api/workflows/templates/${templateId}`;
console.log('Testing n8n Workflow API...');
console.log('URL:', url);
const response = await axios.get(url);
const data = response.data;
console.log('\nWorkflow Name:', data.name);
console.log('Nodes Count:', data.workflow.nodes.length);
console.log('Connections:', Object.keys(data.workflow.connections).length);
return data;
}
testWorkflowAPI().catch(console.error);
generate-resources.ts
/**
* 範例:使用 ResourceGenerator 和 TemplateFormatter
*
* 此範例展示如何:
* 1. 建立資源生成器
* 2. 生成節點文件
* 3. 格式化生成的文件
*/
import { createResourceGenerator, createTemplateFormatter } from '../src/generators';
import type { NodeFullInfo } from '../src/generators';
async function main() {
console.log('開始生成資源文件...\n');
// 建立範例節點資訊
const exampleNode: NodeFullInfo = {
node: {
nodeType: 'n8n-nodes-base.httpRequest',
displayName: 'HTTP Request',
description: '發送 HTTP 請求到任何 URL',
category: 'core',
nodeCategory: 'action',
version: '4.1',
packageName: 'n8n-nodes-base'
},
properties: {
coreProperties: [
{
name: 'method',
displayName: 'Method',
type: 'options',
description: 'HTTP 請求方法',
required: true,
default: 'GET',
options: [
{ name: 'GET', value: 'GET', description: '取得資源' },
{ name: 'POST', value: 'POST', description: '建立資源' },