[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M770PQ4WT8KTSDFF0X3F74J8":3,"skill-same:01M770PQ4WT8KTSDFF0X3F74J8":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M770PQ4WT8KTSDFF0X3F74J8","n8n",null,"Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating\u002Fdeactivating, checking execution status, manually triggering workflows, or debugging automation issues.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthomasansems\u002Fn8n\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: n8n\ndescription: Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating\u002Fdeactivating, checking execution status, manually triggering workflows, or debugging automation issues.\nmetadata: {\"openclaw\":{\"emoji\":\"\\u2699\\ufe0f\",\"requires\":{\"env\":[\"N8N_API_KEY\",\"N8N_BASE_URL\"]},\"primaryEnv\":\"N8N_API_KEY\"}}\n---\n\n# n8n Workflow Management\n\nComprehensive workflow automation management for n8n platform with creation, testing, execution monitoring, and performance optimization capabilities.\n\n## ⚠️ CRITICAL: Workflow Creation Rules\n\n**When creating n8n workflows, ALWAYS:**\n\n1. ✅ **Generate COMPLETE workflows** with all functional nodes\n2. ✅ **Include actual HTTP Request nodes** for API calls (ImageFX, Gemini, Veo, Suno, etc.)\n3. ✅ **Add Code nodes** for data transformation and logic\n4. ✅ **Create proper connections** between all nodes\n5. ✅ **Use real node types** (n8n-nodes-base.httpRequest, n8n-nodes-base.code, n8n-nodes-base.set)\n\n**NEVER:**\n- ❌ Create \"Setup Instructions\" placeholder nodes\n- ❌ Generate workflows with only TODO comments\n- ❌ Make incomplete workflows requiring manual node addition\n- ❌ Use text-only nodes as substitutes for real functionality\n\n**Example GOOD workflow:**\n```\nManual Trigger → Set Config → HTTP Request (API call) → Code (parse) → Response\n```\n\n**Example BAD workflow:**\n```\nManual Trigger → Code (\"Add HTTP nodes here, configure APIs...\")\n```\n\nAlways build the complete, functional workflow with all necessary nodes configured and connected.\n\n## Setup\n\n**Required environment variables:**\n- `N8N_API_KEY` — Your n8n API key (Settings → API in the n8n UI)\n- `N8N_BASE_URL` — Your n8n instance URL\n\n**Configure credentials via OpenClaw settings:**\n\nAdd to `~\u002F.config\u002Fopenclaw\u002Fsettings.json`:\n```json\n{\n  \"skills\": {\n    \"n8n\": {\n      \"env\": {\n        \"N8N_API_KEY\": \"your-api-key-here\",\n        \"N8N_BASE_URL\": \"your-n8n-url-here\"\n      }\n    }\n  }\n}\n```\n\nOr set per-session (do **not** persist secrets in shell rc files):\n```bash\nexport N8N_API_KEY=\"your-api-key-here\"\nexport N8N_BASE_URL=\"your-n8n-url-here\"\n```\n\n**Verify connection:**\n```bash\npython3 scripts\u002Fn8n_api.py list-workflows --pretty\n```\n\n> **Security note:** Never store API keys in plaintext shell config files (`~\u002F.bashrc`, `~\u002F.zshrc`). Use the OpenClaw settings file or a secure secret manager.\n\n## Quick Reference\n\n### Workflow Management\n\n#### List Workflows\n```bash\npython3 scripts\u002Fn8n_api.py list-workflows --pretty\npython3 scripts\u002Fn8n_api.py list-workflows --active true --pretty\n```\n\n#### Get Workflow Details\n```bash\npython3 scripts\u002Fn8n_api.py get-workflow --id \u003Cworkflow-id> --pretty\n```\n\n#### Create Workflows\n```bash\n# From JSON file\npython3 scripts\u002Fn8n_api.py create --from-file workflow.json\n```\n\n#### Activate\u002FDeactivate\n```bash\npython3 scripts\u002Fn8n_api.py activate --id \u003Cworkflow-id>\npython3 scripts\u002Fn8n_api.py deactivate --id \u003Cworkflow-id>\n```\n\n### Testing & Validation\n\n#### Validate Workflow Structure\n```bash\n# Validate existing workflow\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>\n\n# Validate from file\npython3 scripts\u002Fn8n_tester.py validate --file workflow.json --pretty\n\n# Generate validation report\npython3 scripts\u002Fn8n_tester.py report --id \u003Cworkflow-id>\n```\n\n#### Dry Run Testing\n```bash\n# Test with data\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data '{\"email\": \"test@example.com\"}'\n\n# Test with data file\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test-data.json\n\n# Full test report (validation + dry run)\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test.json --report\n```\n\n#### Test Suite\n```bash\n# Run multiple test cases\npython3 scripts\u002Fn8n_tester.py test-suite --id \u003Cworkflow-id> --test-suite test-cases.json\n```\n\n### Execution Monitoring\n\n#### List Executions\n```bash\n# Recent executions (all workflows)\npython3 scripts\u002Fn8n_api.py list-executions --limit 10 --pretty\n\n# Specific workflow executions\npython3 scripts\u002Fn8n_api.py list-executions --id \u003Cworkflow-id> --limit 20 --pretty\n```\n\n#### Get Execution Details\n```bash\npython3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id> --pretty\n```\n\n#### Manual Execution\n```bash\n# Trigger workflow\npython3 scripts\u002Fn8n_api.py execute --id \u003Cworkflow-id>\n\n# Execute with data\npython3 scripts\u002Fn8n_api.py execute --id \u003Cworkflow-id> --data '{\"key\": \"value\"}'\n```\n\n### Performance Optimization\n\n#### Analyze Performance\n```bash\n# Full performance analysis\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --pretty\n\n# Analyze specific period\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --days 30 --pretty\n```\n\n#### Get Optimization Suggestions\n```bash\n# Priority-ranked suggestions\npython3 scripts\u002Fn8n_optimizer.py suggest --id \u003Cworkflow-id> --pretty\n```\n\n#### Generate Optimization Report\n```bash\n# Human-readable report with metrics, bottlenecks, and suggestions\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n#### Get Workflow Statistics\n```bash\n# Execution statistics\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --days 7 --pretty\n```\n\n## Python API\n\n### Basic Usage\n\n```python\nfrom scripts.n8n_api import N8nClient\n\nclient = N8nClient()\n\n# List workflows\nworkflows = client.list_workflows(active=True)\n\n# Get workflow\nworkflow = client.get_workflow('workflow-id')\n\n# Create workflow\nnew_workflow = client.create_workflow({\n    'name': 'My Workflow',\n    'nodes': [...],\n    'connections': {...}\n})\n\n# Activate\u002Fdeactivate\nclient.activate_workflow('workflow-id')\nclient.deactivate_workflow('workflow-id')\n\n# Executions\nexecutions = client.list_executions(workflow_id='workflow-id', limit=10)\nexecution = client.get_execution('execution-id')\n\n# Execute workflow\nresult = client.execute_workflow('workflow-id', data={'key': 'value'})\n```\n\n### Validation & Testing\n\n```python\nfrom scripts.n8n_api import N8nClient\nfrom scripts.n8n_tester import WorkflowTester\n\nclient = N8nClient()\ntester = WorkflowTester(client)\n\n# Validate workflow\nvalidation = tester.validate_workflow(workflow_id='123')\nprint(f\"Valid: {validation['valid']}\")\nprint(f\"Errors: {validation['errors']}\")\nprint(f\"Warnings: {validation['warnings']}\")\n\n# Dry run\nresult = tester.dry_run(\n    workflow_id='123',\n    test_data={'email': 'test@example.com'}\n)\nprint(f\"Status: {result['status']}\")\n\n# Test suite\ntest_cases = [\n    {'name': 'Test 1', 'input': {...}, 'expected': {...}},\n    {'name': 'Test 2', 'input': {...}, 'expected': {...}}\n]\nresults = tester.test_suite('123', test_cases)\nprint(f\"Passed: {results['passed']}\u002F{results['total_tests']}\")\n\n# Generate report\nreport = tester.generate_test_report(validation, result)\nprint(report)\n```\n\n### Performance Optimization\n\n```python\nfrom scripts.n8n_optimizer import WorkflowOptimizer\n\noptimizer = WorkflowOptimizer()\n\n# Analyze performance\nanalysis = optimizer.analyze_performance('workflow-id', days=7)\nprint(f\"Performance Score: {analysis['performance_score']}\u002F100\")\nprint(f\"Health: {analysis['execution_metrics']['health']}\")\n\n# Get suggestions\nsuggestions = optimizer.suggest_optimizations('workflow-id')\nprint(f\"Priority Actions: {len(suggestions['priority_actions'])}\")\nprint(f\"Quick Wins: {len(suggestions['quick_wins'])}\")\n\n# Generate report\nreport = optimizer.generate_optimization_report(analysis)\nprint(report)\n```\n\n## Common Workflows\n\n### 1. Validate and Test Workflow\n\n```bash\n# Validate workflow structure\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id> --pretty\n\n# Test with sample data\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> \\\n  --data '{\"email\": \"test@example.com\", \"name\": \"Test User\"}'\n\n# If tests pass, activate\npython3 scripts\u002Fn8n_api.py activate --id \u003Cworkflow-id>\n```\n\n### 2. Debug Failed Workflow\n\n```bash\n# Check recent executions\npython3 scripts\u002Fn8n_api.py list-executions --id \u003Cworkflow-id> --limit 10 --pretty\n\n# Get specific execution details\npython3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id> --pretty\n\n# Validate workflow structure\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>\n\n# Generate test report\npython3 scripts\u002Fn8n_tester.py report --id \u003Cworkflow-id>\n\n# Check for optimization issues\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n### 3. Optimize Workflow Performance\n\n```bash\n# Analyze current performance\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --days 30 --pretty\n\n# Get actionable suggestions\npython3 scripts\u002Fn8n_optimizer.py suggest --id \u003Cworkflow-id> --pretty\n\n# Generate comprehensive report\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n\n# Review execution statistics\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --days 30 --pretty\n\n# Test optimizations with dry run\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test-data.json\n```\n\n### 4. Monitor Workflow Health\n\n```bash\n# Check active workflows\npython3 scripts\u002Fn8n_api.py list-workflows --active true --pretty\n\n# Review recent execution status\npython3 scripts\u002Fn8n_api.py list-executions --limit 20 --pretty\n\n# Get statistics for each critical workflow\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --pretty\n\n# Generate health reports\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n## Validation Checks\n\nThe testing module performs comprehensive validation:\n\n### Structure Validation\n- ✓ Required fields present (nodes, connections)\n- ✓ All nodes have names and types\n- ✓ Connection targets exist\n- ✓ No disconnected nodes (warning)\n\n### Configuration Validation\n- ✓ Nodes requiring credentials are configured\n- ✓ Required parameters are set\n- ✓ HTTP nodes have URLs\n- ✓ Webhook nodes have paths\n- ✓ Email nodes have content\n\n### Flow Validation\n- ✓ Workflow has trigger nodes\n- ✓ Proper execution flow\n- ✓ No circular dependencies\n- ✓ End nodes identified\n\n## Optimization Analysis\n\nThe optimizer analyzes multiple dimensions:\n\n### Execution Metrics\n- Total executions\n- Success\u002Ffailure rates\n- Health status (excellent\u002Fgood\u002Ffair\u002Fpoor)\n- Error patterns\n\n### Performance Metrics\n- Node count and complexity\n- Connection patterns\n- Expensive operations (API calls, database queries)\n- Parallel execution opportunities\n\n### Bottleneck Detection\n- Sequential expensive operations\n- High failure rates\n- Missing error handling\n- Rate limit issues\n\n### Optimization Opportunities\n- **Parallel Execution:** Identify nodes that can run concurrently\n- **Caching:** Suggest caching for repeated API calls\n- **Batch Processing:** Recommend batching for large datasets\n- **Error Handling:** Add error recovery mechanisms\n- **Complexity Reduction:** Split complex workflows\n- **Timeout Settings:** Configure execution limits\n\n## Performance Scoring\n\nWorkflows receive a performance score (0-100) based on:\n\n- **Success Rate:** Higher is better (50% weight)\n- **Complexity:** Lower is better (30% weight)\n- **Bottlenecks:** Fewer is better (critical: -20, high: -10, medium: -5)\n- **Optimizations:** Implemented best practices (+5 each)\n\nScore interpretation:\n- **90-100:** Excellent - Well-optimized\n- **70-89:** Good - Minor improvements possible\n- **50-69:** Fair - Optimization recommended\n- **0-49:** Poor - Significant issues\n\n## Best Practices\n\n### Development\n1. **Plan Structure:** Design workflow nodes and connections before building\n2. **Validate First:** Always validate before deployment\n3. **Test Thoroughly:** Use dry-run with multiple test cases\n4. **Error Handling:** Add error nodes for reliability\n5. **Documentation:** Comment complex logic in Code nodes\n\n### Testing\n1. **Sample Data:** Create realistic test data files\n2. **Edge Cases:** Test boundary conditions and errors\n3. **Incremental:** Test each node addition\n4. **Regression:** Retest after changes\n5. **Production-like:** Use staging environment that mirrors production\n\n### Deployment\n1. **Inactive First:** Deploy workflows in inactive state\n2. **Gradual Rollout:** Test with limited traffic initially\n3. **Monitor Closely:** Watch first executions carefully\n4. **Quick Rollback:** Be ready to deactivate if issues arise\n5. **Document Changes:** Keep changelog of modifications\n\n### Optimization\n1. **Baseline Metrics:** Capture performance before changes\n2. **One Change at a Time:** Isolate optimization impacts\n3. **Measure Results:** Compare before\u002Fafter metrics\n4. **Regular Reviews:** Schedule monthly optimization reviews\n5. **Cost Awareness:** Monitor API usage and execution costs\n\n### Maintenance\n1. **Health Checks:** Weekly execution statistics review\n2. **Error Analysis:** Investigate failure patterns\n3. **Performance Monitoring:** Track execution times\n4. **Credential Rotation:** Update credentials regularly\n5. **Cleanup:** Archive or delete unused workflows\n\n## Troubleshooting\n\n### Authentication Error\n```\nError: N8N_API_KEY not found in environment\n```\n**Solution:** Set environment variable:\n```bash\nexport N8N_API_KEY=\"your-api-key\"\n```\n\n### Connection Error\n```\nError: HTTP 401: Unauthorized\n```\n**Solution:** \n1. Verify API key is correct\n2. Check N8N_BASE_URL is set correctly\n3. Confirm API access is enabled in n8n\n\n### Validation Errors\n```\nValidation failed: Node missing 'name' field\n```\n**Solution:** Check workflow JSON structure, ensure all required fields present\n\n### Execution Timeout\n```\nStatus: timeout - Execution did not complete\n```\n**Solution:** \n1. Check workflow for infinite loops\n2. Reduce dataset size for testing\n3. Optimize expensive operations\n4. Set execution timeout in workflow settings\n\n### Rate Limiting\n```\nError: HTTP 429: Too Many Requests\n```\n**Solution:**\n1. Add Wait nodes between API calls\n2. Implement exponential backoff\n3. Use batch processing\n4. Check API rate limits\n\n### Missing Credentials\n```\nWarning: Node 'HTTP_Request' may require credentials\n```\n**Solution:**\n1. Configure credentials in n8n UI\n2. Assign credentials to node\n3. Test connection before activating\n\n## File Structure\n\n```\n~\u002Fclawd\u002Fskills\u002Fn8n\u002F\n├── SKILL.md                    # This file\n├── scripts\u002F\n│   ├── n8n_api.py             # Core API client (extended)\n│   ├── n8n_tester.py          # Testing & validation\n│   └── n8n_optimizer.py       # Performance optimization\n└── references\u002F\n    └── api.md                 # n8n API reference\n```\n\n## API Reference\n\nFor detailed n8n REST API documentation, see [references\u002Fapi.md](references\u002Fapi.md) or visit:\nhttps:\u002F\u002Fdocs.n8n.io\u002Fapi\u002F\n\n## Support\n\n**Documentation:**\n- n8n Official Docs: https:\u002F\u002Fdocs.n8n.io\n- n8n Community Forum: https:\u002F\u002Fcommunity.n8n.io\n- n8n API Reference: https:\u002F\u002Fdocs.n8n.io\u002Fapi\u002F\n\n**Debugging:**\n1. Use validation: `python3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>`\n2. Check execution logs: `python3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id>`\n3. Review optimization report: `python3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>`\n4. Test with dry-run: `python3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test.json`\n","# n8n Workflow Management\n\nComprehensive workflow automation management for n8n platform with creation, testing, execution monitoring, and performance optimization capabilities.\n\n## ⚠️ CRITICAL: Workflow Creation Rules\n\n**When creating n8n workflows, ALWAYS:**\n\n1. ✅ **Generate COMPLETE workflows** with all functional nodes\n2. ✅ **Include actual HTTP Request nodes** for API calls (ImageFX, Gemini, Veo, Suno, etc.)\n3. ✅ **Add Code nodes** for data transformation and logic\n4. ✅ **Create proper connections** between all nodes\n5. ✅ **Use real node types** (n8n-nodes-base.httpRequest, n8n-nodes-base.code, n8n-nodes-base.set)\n\n**NEVER:**\n- ❌ Create \"Setup Instructions\" placeholder nodes\n- ❌ Generate workflows with only TODO comments\n- ❌ Make incomplete workflows requiring manual node addition\n- ❌ Use text-only nodes as substitutes for real functionality\n\n**Example GOOD workflow:**\n```\nManual Trigger → Set Config → HTTP Request (API call) → Code (parse) → Response\n```\n\n**Example BAD workflow:**\n```\nManual Trigger → Code (\"Add HTTP nodes here, configure APIs...\")\n```\n\nAlways build the complete, functional workflow with all necessary nodes configured and connected.\n\n## Setup\n\n**Required environment variables:**\n- `N8N_API_KEY` — Your n8n API key (Settings → API in the n8n UI)\n- `N8N_BASE_URL` — Your n8n instance URL\n\n**Configure credentials via OpenClaw settings:**\n\nAdd to `~\u002F.config\u002Fopenclaw\u002Fsettings.json`:\n```json\n{\n  \"skills\": {\n    \"n8n\": {\n      \"env\": {\n        \"N8N_API_KEY\": \"your-api-key-here\",\n        \"N8N_BASE_URL\": \"your-n8n-url-here\"\n      }\n    }\n  }\n}\n```\n\nOr set per-session (do **not** persist secrets in shell rc files):\n```bash\nexport N8N_API_KEY=\"your-api-key-here\"\nexport N8N_BASE_URL=\"your-n8n-url-here\"\n```\n\n**Verify connection:**\n```bash\npython3 scripts\u002Fn8n_api.py list-workflows --pretty\n```\n\n> **Security note:** Never store API keys in plaintext shell config files (`~\u002F.bashrc`, `~\u002F.zshrc`). Use the OpenClaw settings file or a secure secret manager.\n\n## Quick Reference\n\n### Workflow Management\n\n#### List Workflows\n```bash\npython3 scripts\u002Fn8n_api.py list-workflows --pretty\npython3 scripts\u002Fn8n_api.py list-workflows --active true --pretty\n```\n\n#### Get Workflow Details\n```bash\npython3 scripts\u002Fn8n_api.py get-workflow --id \u003Cworkflow-id> --pretty\n```\n\n#### Create Workflows\n```bash\n# From JSON file\npython3 scripts\u002Fn8n_api.py create --from-file workflow.json\n```\n\n#### Activate\u002FDeactivate\n```bash\npython3 scripts\u002Fn8n_api.py activate --id \u003Cworkflow-id>\npython3 scripts\u002Fn8n_api.py deactivate --id \u003Cworkflow-id>\n```\n\n### Testing & Validation\n\n#### Validate Workflow Structure\n```bash\n# Validate existing workflow\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>\n\n# Validate from file\npython3 scripts\u002Fn8n_tester.py validate --file workflow.json --pretty\n\n# Generate validation report\npython3 scripts\u002Fn8n_tester.py report --id \u003Cworkflow-id>\n```\n\n#### Dry Run Testing\n```bash\n# Test with data\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data '{\"email\": \"test@example.com\"}'\n\n# Test with data file\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test-data.json\n\n# Full test report (validation + dry run)\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test.json --report\n```\n\n#### Test Suite\n```bash\n# Run multiple test cases\npython3 scripts\u002Fn8n_tester.py test-suite --id \u003Cworkflow-id> --test-suite test-cases.json\n```\n\n### Execution Monitoring\n\n#### List Executions\n```bash\n# Recent executions (all workflows)\npython3 scripts\u002Fn8n_api.py list-executions --limit 10 --pretty\n\n# Specific workflow executions\npython3 scripts\u002Fn8n_api.py list-executions --id \u003Cworkflow-id> --limit 20 --pretty\n```\n\n#### Get Execution Details\n```bash\npython3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id> --pretty\n```\n\n#### Manual Execution\n```bash\n# Trigger workflow\npython3 scripts\u002Fn8n_api.py execute --id \u003Cworkflow-id>\n\n# Execute with data\npython3 scripts\u002Fn8n_api.py execute --id \u003Cworkflow-id> --data '{\"key\": \"value\"}'\n```\n\n### Performance Optimization\n\n#### Analyze Performance\n```bash\n# Full performance analysis\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --pretty\n\n# Analyze specific period\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --days 30 --pretty\n```\n\n#### Get Optimization Suggestions\n```bash\n# Priority-ranked suggestions\npython3 scripts\u002Fn8n_optimizer.py suggest --id \u003Cworkflow-id> --pretty\n```\n\n#### Generate Optimization Report\n```bash\n# Human-readable report with metrics, bottlenecks, and suggestions\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n#### Get Workflow Statistics\n```bash\n# Execution statistics\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --days 7 --pretty\n```\n\n## Python API\n\n### Basic Usage\n\n```python\nfrom scripts.n8n_api import N8nClient\n\nclient = N8nClient()\n\n# List workflows\nworkflows = client.list_workflows(active=True)\n\n# Get workflow\nworkflow = client.get_workflow('workflow-id')\n\n# Create workflow\nnew_workflow = client.create_workflow({\n    'name': 'My Workflow',\n    'nodes': [...],\n    'connections': {...}\n})\n\n# Activate\u002Fdeactivate\nclient.activate_workflow('workflow-id')\nclient.deactivate_workflow('workflow-id')\n\n# Executions\nexecutions = client.list_executions(workflow_id='workflow-id', limit=10)\nexecution = client.get_execution('execution-id')\n\n# Execute workflow\nresult = client.execute_workflow('workflow-id', data={'key': 'value'})\n```\n\n### Validation & Testing\n\n```python\nfrom scripts.n8n_api import N8nClient\nfrom scripts.n8n_tester import WorkflowTester\n\nclient = N8nClient()\ntester = WorkflowTester(client)\n\n# Validate workflow\nvalidation = tester.validate_workflow(workflow_id='123')\nprint(f\"Valid: {validation['valid']}\")\nprint(f\"Errors: {validation['errors']}\")\nprint(f\"Warnings: {validation['warnings']}\")\n\n# Dry run\nresult = tester.dry_run(\n    workflow_id='123',\n    test_data={'email': 'test@example.com'}\n)\nprint(f\"Status: {result['status']}\")\n\n# Test suite\ntest_cases = [\n    {'name': 'Test 1', 'input': {...}, 'expected': {...}},\n    {'name': 'Test 2', 'input': {...}, 'expected': {...}}\n]\nresults = tester.test_suite('123', test_cases)\nprint(f\"Passed: {results['passed']}\u002F{results['total_tests']}\")\n\n# Generate report\nreport = tester.generate_test_report(validation, result)\nprint(report)\n```\n\n### Performance Optimization\n\n```python\nfrom scripts.n8n_optimizer import WorkflowOptimizer\n\noptimizer = WorkflowOptimizer()\n\n# Analyze performance\nanalysis = optimizer.analyze_performance('workflow-id', days=7)\nprint(f\"Performance Score: {analysis['performance_score']}\u002F100\")\nprint(f\"Health: {analysis['execution_metrics']['health']}\")\n\n# Get suggestions\nsuggestions = optimizer.suggest_optimizations('workflow-id')\nprint(f\"Priority Actions: {len(suggestions['priority_actions'])}\")\nprint(f\"Quick Wins: {len(suggestions['quick_wins'])}\")\n\n# Generate report\nreport = optimizer.generate_optimization_report(analysis)\nprint(report)\n```\n\n## Common Workflows\n\n### 1. Validate and Test Workflow\n\n```bash\n# Validate workflow structure\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id> --pretty\n\n# Test with sample data\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> \\\n  --data '{\"email\": \"test@example.com\", \"name\": \"Test User\"}'\n\n# If tests pass, activate\npython3 scripts\u002Fn8n_api.py activate --id \u003Cworkflow-id>\n```\n\n### 2. Debug Failed Workflow\n\n```bash\n# Check recent executions\npython3 scripts\u002Fn8n_api.py list-executions --id \u003Cworkflow-id> --limit 10 --pretty\n\n# Get specific execution details\npython3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id> --pretty\n\n# Validate workflow structure\npython3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>\n\n# Generate test report\npython3 scripts\u002Fn8n_tester.py report --id \u003Cworkflow-id>\n\n# Check for optimization issues\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n### 3. Optimize Workflow Performance\n\n```bash\n# Analyze current performance\npython3 scripts\u002Fn8n_optimizer.py analyze --id \u003Cworkflow-id> --days 30 --pretty\n\n# Get actionable suggestions\npython3 scripts\u002Fn8n_optimizer.py suggest --id \u003Cworkflow-id> --pretty\n\n# Generate comprehensive report\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n\n# Review execution statistics\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --days 30 --pretty\n\n# Test optimizations with dry run\npython3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test-data.json\n```\n\n### 4. Monitor Workflow Health\n\n```bash\n# Check active workflows\npython3 scripts\u002Fn8n_api.py list-workflows --active true --pretty\n\n# Review recent execution status\npython3 scripts\u002Fn8n_api.py list-executions --limit 20 --pretty\n\n# Get statistics for each critical workflow\npython3 scripts\u002Fn8n_api.py stats --id \u003Cworkflow-id> --pretty\n\n# Generate health reports\npython3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>\n```\n\n## Validation Checks\n\nThe testing module performs comprehensive validation:\n\n### Structure Validation\n- ✓ Required fields present (nodes, connections)\n- ✓ All nodes have names and types\n- ✓ Connection targets exist\n- ✓ No disconnected nodes (warning)\n\n### Configuration Validation\n- ✓ Nodes requiring credentials are configured\n- ✓ Required parameters are set\n- ✓ HTTP nodes have URLs\n- ✓ Webhook nodes have paths\n- ✓ Email nodes have content\n\n### Flow Validation\n- ✓ Workflow has trigger nodes\n- ✓ Proper execution flow\n- ✓ No circular dependencies\n- ✓ End nodes identified\n\n## Optimization Analysis\n\nThe optimizer analyzes multiple dimensions:\n\n### Execution Metrics\n- Total executions\n- Success\u002Ffailure rates\n- Health status (excellent\u002Fgood\u002Ffair\u002Fpoor)\n- Error patterns\n\n### Performance Metrics\n- Node count and complexity\n- Connection patterns\n- Expensive operations (API calls, database queries)\n- Parallel execution opportunities\n\n### Bottleneck Detection\n- Sequential expensive operations\n- High failure rates\n- Missing error handling\n- Rate limit issues\n\n### Optimization Opportunities\n- **Parallel Execution:** Identify nodes that can run concurrently\n- **Caching:** Suggest caching for repeated API calls\n- **Batch Processing:** Recommend batching for large datasets\n- **Error Handling:** Add error recovery mechanisms\n- **Complexity Reduction:** Split complex workflows\n- **Timeout Settings:** Configure execution limits\n\n## Performance Scoring\n\nWorkflows receive a performance score (0-100) based on:\n\n- **Success Rate:** Higher is better (50% weight)\n- **Complexity:** Lower is better (30% weight)\n- **Bottlenecks:** Fewer is better (critical: -20, high: -10, medium: -5)\n- **Optimizations:** Implemented best practices (+5 each)\n\nScore interpretation:\n- **90-100:** Excellent - Well-optimized\n- **70-89:** Good - Minor improvements possible\n- **50-69:** Fair - Optimization recommended\n- **0-49:** Poor - Significant issues\n\n## Best Practices\n\n### Development\n1. **Plan Structure:** Design workflow nodes and connections before building\n2. **Validate First:** Always validate before deployment\n3. **Test Thoroughly:** Use dry-run with multiple test cases\n4. **Error Handling:** Add error nodes for reliability\n5. **Documentation:** Comment complex logic in Code nodes\n\n### Testing\n1. **Sample Data:** Create realistic test data files\n2. **Edge Cases:** Test boundary conditions and errors\n3. **Incremental:** Test each node addition\n4. **Regression:** Retest after changes\n5. **Production-like:** Use staging environment that mirrors production\n\n### Deployment\n1. **Inactive First:** Deploy workflows in inactive state\n2. **Gradual Rollout:** Test with limited traffic initially\n3. **Monitor Closely:** Watch first executions carefully\n4. **Quick Rollback:** Be ready to deactivate if issues arise\n5. **Document Changes:** Keep changelog of modifications\n\n### Optimization\n1. **Baseline Metrics:** Capture performance before changes\n2. **One Change at a Time:** Isolate optimization impacts\n3. **Measure Results:** Compare before\u002Fafter metrics\n4. **Regular Reviews:** Schedule monthly optimization reviews\n5. **Cost Awareness:** Monitor API usage and execution costs\n\n### Maintenance\n1. **Health Checks:** Weekly execution statistics review\n2. **Error Analysis:** Investigate failure patterns\n3. **Performance Monitoring:** Track execution times\n4. **Credential Rotation:** Update credentials regularly\n5. **Cleanup:** Archive or delete unused workflows\n\n## Troubleshooting\n\n### Authentication Error\n```\nError: N8N_API_KEY not found in environment\n```\n**Solution:** Set environment variable:\n```bash\nexport N8N_API_KEY=\"your-api-key\"\n```\n\n### Connection Error\n```\nError: HTTP 401: Unauthorized\n```\n**Solution:** \n1. Verify API key is correct\n2. Check N8N_BASE_URL is set correctly\n3. Confirm API access is enabled in n8n\n\n### Validation Errors\n```\nValidation failed: Node missing 'name' field\n```\n**Solution:** Check workflow JSON structure, ensure all required fields present\n\n### Execution Timeout\n```\nStatus: timeout - Execution did not complete\n```\n**Solution:** \n1. Check workflow for infinite loops\n2. Reduce dataset size for testing\n3. Optimize expensive operations\n4. Set execution timeout in workflow settings\n\n### Rate Limiting\n```\nError: HTTP 429: Too Many Requests\n```\n**Solution:**\n1. Add Wait nodes between API calls\n2. Implement exponential backoff\n3. Use batch processing\n4. Check API rate limits\n\n### Missing Credentials\n```\nWarning: Node 'HTTP_Request' may require credentials\n```\n**Solution:**\n1. Configure credentials in n8n UI\n2. Assign credentials to node\n3. Test connection before activating\n\n## File Structure\n\n```\n~\u002Fclawd\u002Fskills\u002Fn8n\u002F\n├── SKILL.md                    # This file\n├── scripts\u002F\n│   ├── n8n_api.py             # Core API client (extended)\n│   ├── n8n_tester.py          # Testing & validation\n│   └── n8n_optimizer.py       # Performance optimization\n└── references\u002F\n    └── api.md                 # n8n API reference\n```\n\n## API Reference\n\nFor detailed n8n REST API documentation, see [references\u002Fapi.md](references\u002Fapi.md) or visit:\nhttps:\u002F\u002Fdocs.n8n.io\u002Fapi\u002F\n\n## Support\n\n**Documentation:**\n- n8n Official Docs: https:\u002F\u002Fdocs.n8n.io\n- n8n Community Forum: https:\u002F\u002Fcommunity.n8n.io\n- n8n API Reference: https:\u002F\u002Fdocs.n8n.io\u002Fapi\u002F\n\n**Debugging:**\n1. Use validation: `python3 scripts\u002Fn8n_tester.py validate --id \u003Cworkflow-id>`\n2. Check execution logs: `python3 scripts\u002Fn8n_api.py get-execution --id \u003Cexecution-id>`\n3. Review optimization report: `python3 scripts\u002Fn8n_optimizer.py report --id \u003Cworkflow-id>`\n4. Test with dry-run: `python3 scripts\u002Fn8n_tester.py dry-run --id \u003Cworkflow-id> --data-file test.json`\n",{"name":5,"metadata":24,"description":7},{"openclaw":25},{"emoji":26,"requires":27,"primaryEnv":29},"⚙️",{"env":28},[29,30],"N8N_API_KEY","N8N_BASE_URL","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fthomasansems\u002Fn8n",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill n8n",{"tool":46,"command":47},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill n8n",{"tool":49,"command":50},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill n8n","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthomasansems\u002Fn8n\u002FSKILL.md",true,[],[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]