← 返回 Skills 市场
n8n
作者
thomasansems
· GitHub ↗
· v2.0.0
19992
总下载
58
收藏
206
当前安装
4
版本数
在 OpenClaw 中安装
/install n8n
功能描述
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
安全使用建议
Install only if you are comfortable giving the skill API-level control over your n8n instance. Use a staging n8n instance or least-privileged API key where possible, avoid sensitive test data, and treat dry-run, execute, activate, deactivate, and create commands as live operations that may send emails, call third-party APIs, alter databases, or interrupt business workflows.
功能分析
Type: OpenClaw Skill
Name: n8n
Version: 2.0.0
The OpenClaw AgentSkills skill bundle for n8n workflow management is classified as benign. The Python scripts (`n8n_api.py`, `n8n_tester.py`, `n8n_optimizer.py`) correctly handle API keys and base URLs via environment variables and use the `requests` library for legitimate API interactions. File operations are limited to reading workflow definitions or test data from specified paths, which is part of the stated functionality. The `SKILL.md` and `README.md` files contain comprehensive instructions for the AI agent on how to use the skill and create n8n workflows, but lack any evidence of prompt injection attempts designed to subvert the agent's core directives or exfiltrate data. There is no code for data exfiltration, persistence, or unauthorized remote control. The potential for a user to create a malicious n8n workflow using this skill is a risk of the n8n platform itself, not an inherent malicious design of this skill bundle.
能力评估
Purpose & Capability
The skill coherently manages n8n workflows through the n8n API, including listing, creating, activating, deactivating, executing, validating, and monitoring workflows. Those capabilities match the stated purpose, but they can affect live automations.
Instruction Scope
The documentation presents dry-run testing as a pre-activation safety step, while scripts/n8n_tester.py calls execute_workflow and sends test data to the configured n8n instance. That mismatch can lead users or agents to believe an operation is non-invasive when it may trigger real workflow actions.
Install Mechanism
The artifact consists of Markdown instructions and Python helper scripts with no installer, background service, obfuscated setup, or unexpected package installation path observed.
Credentials
Requiring N8N_API_KEY and N8N_BASE_URL is proportionate for n8n API management, and credentials are read from environment/config rather than hardcoded. The skill includes a basic warning not to store API keys in shell rc files, but users still need to treat the API key as production authority.
Persistence & Privilege
There is no local persistence or privilege escalation, but the skill exposes high-impact remote mutation authority against n8n, including create, activate, deactivate, and execute operations, without built-in confirmation gates or prominent side-effect warnings at the CLI boundary.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install n8n - 安装完成后,直接呼叫该 Skill 的名称或使用
/n8n触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
# Changelog - n8n Enhanced Workflow Management Skill
## Version 2.0.0 - 10 Feb 2026
### 🎉 Major Enhancement Release
Complete redesign of the n8n skill with comprehensive workflow lifecycle management capabilities.
### ✨ New Features
#### Testing & Validation
- **Structure Validation:** `n8n_tester.py` validates workflow integrity
- Node and connection validation
- Credential checking
- Configuration verification
- Flow analysis
- **Dry-Run Testing:** Test workflows with sample data before activation
- **Test Suites:** Run multiple test cases against workflows
- **Validation Reports:** Human-readable test reports with errors and warnings
#### Execution Monitoring
- **Enhanced Execution Tracking:** Real-time execution monitoring
- **Detailed Statistics:** Success/failure rates, execution patterns
- **Error Analysis:** Identify and categorize failure patterns
- **Retry Logic:** Built-in retry support for failed executions
#### Performance Optimization
- **Performance Analysis:** `n8n_optimizer.py` provides comprehensive metrics
- Execution metrics (success rate, failure patterns)
- Node analysis (complexity, expensive operations)
- Connection analysis (parallel paths, bottlenecks)
- Performance scoring (0-100)
- **Bottleneck Detection:** Identify workflow performance issues
- Sequential expensive operations
- High failure rates
- Missing error handling
- **Optimization Suggestions:** Actionable recommendations
- Parallel execution opportunities
- Caching strategies
- Batch processing
- Error handling improvements
- Complexity reduction
- **Optimization Reports:** Human-readable performance reports
### 📝 API Extensions
#### n8n_api.py Enhancements
- `validate_workflow()` - Validate workflow structure
- `dry_run_workflow()` - Test workflow with mock data
- `get_workflow_statistics()` - Get execution statistics
- `analyze_workflow_performance()` - Performance analysis
- CLI support for `create`, `validate`, and `stats` commands
#### New Modules
- **n8n_tester.py** - Testing and validation
- Structure validation
- Dry-run execution
- Test suite runner
- Report generation
- **n8n_optimizer.py** - Performance optimization
- Performance analysis
- Bottleneck detection
- Optimization suggestions
- Report generation
### 📚 Documentation
#### New Documentation
- **README.md** - Quick start guide with examples
- **SKILL.md** - Comprehensive documentation (16KB)
- All CLI commands
- Python API examples
- Common workflows
- Best practices
- Troubleshooting guide
- **templates/README.md** - Template documentation
- Template descriptions
- Configuration guides
- Test data examples
- **CHANGELOG.md** - This file
#### Updated Documentation
- Enhanced quick reference
- Added validation examples
- Performance optimization guides
- Template usage examples
### 🗂️ File Structure
```
~/clawd/skills/n8n/
├── README.md # Quick start guide
├── SKILL.md # Comprehensive documentation
├── CHANGELOG.md # This file
├── scripts/
│ ├── n8n_api.py # Core API client (extended)
│ ├── n8n_tester.py # NEW: Testing & validation
│ └── n8n_optimizer.py # NEW: Performance optimization
└── references/
└── api.md
```
### 🔧 Technical Improvements
- **Modular Design:** Separated concerns into specialized modules
- **Error Handling:** Comprehensive error checking and reporting
- **Import Flexibility:** Support for both direct and module imports
- **Validation Logic:** Standalone validation without API dependency
- **Performance Metrics:** Multi-dimensional workflow analysis
- **Extensible Templates:** Easy to add new workflow templates
### 📊 Metrics & Analysis
New performance metrics tracked:
- Execution success/failure rates
- Node complexity scores (0-100)
- Performance scores (0-100)
- Health status (excellent/good/fair/poor)
- Bottleneck severity levels
- Optimization priorities (high/medium/low)
### 🎯 Use Cases
The enhanced skill now supports:
1. **Rapid Prototyping:** Deploy templates and test within minutes
2. **Quality Assurance:** Validate and test before production deployment
3. **Performance Tuning:** Identify and resolve bottlenecks
4. **Continuous Monitoring:** Track workflow health over time
5. **Best Practices:** Built-in optimization recommendations
### 🔄 Migration from v1.0
No breaking changes. All v1.0 functionality preserved and enhanced:
- `list-workflows` - Still works
- `get-workflow` - Still works
- `activate` / `deactivate` - Still works
- `list-executions` / `get-execution` - Still works
- `execute` - Still works
New commands added:
- `create` - Create workflows from templates or files
- `validate` - Validate workflow structure
- `stats` - Get execution statistics
### 🐛 Bug Fixes
- Fixed import issues in testing module
- Added standalone validation for file-based workflows
- Improved error messages for missing credentials
- Enhanced connection validation logic
### ⚡ Performance
- Validation runs without API calls for file-based workflows
- Efficient execution monitoring with configurable polling
- Optimized statistics calculation for large execution histories
### 🔐 Security
- No credentials stored in templates (placeholders only)
- Environment variable-based authentication
- Validation runs safely without modifying workflows
### 📦 Dependencies
No new dependencies
- `requests` (existing)
- `json`, `sys`, `argparse`, `pathlib`, `typing` (standard library)
### 🚀 Future Roadmap
Planned for future releases:
- Additional workflow templates (10+ total)
- Workflow versioning and rollback
- A/B testing framework
- Cost tracking and optimization
- Workflow dependencies and orchestration
- Visual workflow builder web UI
- AI-powered workflow optimization
- Integration testing framework
### 👥 Contributors
- Enhanced n8n skill for Clawdbot/Thomas
- Based on requirements for SaaS automation workflows
### 📄 License
Part of the Clawdbot skills library.
---
## Version 1.0.0 - January 2026
### Initial Release
Basic n8n API integration:
- List workflows
- Get workflow details
- Activate/deactivate workflows
- List and get executions
- Manual workflow execution
- Python API client
- Basic CLI interface
v1.0.2
- Removed three unnecessary or temporary files from the repository: ._SKILL.md, references/._api.md, scripts/._n8n_api.py
- No changes made to workflow or user-facing documentation.
v1.0.1
n8n skill v1.0.1 changelog:
- Improved troubleshooting documentation: updated connection error help to focus on verifying N8N_BASE_URL only.
v1.0.0
n8n Workflow Automation API
Control n8n workflows programmatically - list, activate, execute, and monitor
automation workflows via Python client and REST API.
元数据
常见问题
n8n 是什么?
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 19992 次。
如何安装 n8n?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install n8n」即可一键安装,无需额外配置。
n8n 是免费的吗?
是的,n8n 完全免费(开源免费),可自由下载、安装和使用。
n8n 支持哪些平台?
n8n 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 n8n?
由 thomasansems(@thomasansems)开发并维护,当前版本 v2.0.0。
推荐 Skills