feat: Complete Skill #3 - n8n Workflow Patterns

Implements comprehensive workflow pattern guidance from 31,917 real workflows.
Addresses the most common use case (813 webhook searches).

Files created:
- 5 evaluations testing pattern selection and implementation
- SKILL.md (486 lines) - Pattern overview, selection guide, workflow checklist
- webhook_processing.md (554 lines) - Webhook patterns, $json.body gotcha, auth
- http_api_integration.md (763 lines) - REST APIs, pagination, rate limiting
- database_operations.md (854 lines) - DB ops, batch processing, SQL injection prevention
- ai_agent_workflow.md (918 lines) - AI agents, 8 connection types, tool configuration
- scheduled_tasks.md (845 lines) - Cron schedules, timezone handling, monitoring
- README.md - Skill metadata with pattern statistics

Key features:
- 5 core patterns: Webhook (35%), HTTP API (892 templates), Database (456), AI (234), Scheduled (28%)
- Workflow creation checklist (planning → implementation → validation → deployment)
- Pattern selection guide with statistics
- Common gotchas documented (webhook $json.body, SQL injection, timezone, etc.)
- Error handling strategies for each pattern
- Performance optimization techniques
- Security best practices
- Testing approaches
- Real template examples

Critical insights:
- Webhook data under $json.body (not $json) - #1 gotcha
- Always use parameterized queries (SQL injection prevention)
- ANY node can be an AI tool (connect to ai_tool port)
- Set workflow timezone explicitly (DST handling)
- Authentication via credentials (never hardcode)

Pattern statistics:
- Trigger distribution: Webhook 35%, Schedule 28%, Manual 22%, Service 15%
- Transformation: Set 68%, Code 42%, IF 38%, Switch 18%
- Output: HTTP 45%, Slack 32%, Database 28%, Email 24%
- Complexity: Simple 42%, Medium 38%, Complex 20%

Total: ~4,420 lines across 12 files

Based on analysis of 31,917 real workflows and usage patterns.

🤖 Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en
This commit is contained in:
czlonkowski
2025-10-20 10:38:38 +02:00
parent f7d34f2b8e
commit 651467dee6
12 changed files with 4362 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{
"id": "pattern-005",
"skills": ["n8n-workflow-patterns"],
"query": "I need to generate a daily report that fetches analytics data and emails it to my team. What's the best workflow structure?",
"expected_behavior": [
"Identifies this as a Scheduled Tasks pattern",
"References the scheduled_tasks.md pattern file",
"Explains the structure: Schedule Trigger → Fetch Data → Transform/Aggregate → Format Report → Send Email",
"Discusses cron expression configuration",
"Mentions timezone considerations",
"Suggests error handling and failure notifications",
"Provides guidance on data aggregation and report formatting",
"May suggest using templates for consistent report structure"
]
}