data/skills/n8n-validation-expert/README.md
Expert guidance for interpreting and fixing n8n validation errors.
Skill Name: n8n Validation Expert Priority: Medium Purpose: Interpret validation errors and guide systematic fixing through the validation loop
Validation errors are common:
Key insight: Validation is an iterative process, not a one-shot fix!
Error Severity Levels
The Validation Loop
Validation Profiles (cumulative — each adds to the one below)
minimal - Errors only; quick structural checksruntime - Errors + security/deprecation warnings; recommended defaultai-friendly - Adds best-practice advisories (error-handling, rate-limit, outdated-typeVersion)strict - Adds leftover-property checks; maximum lintAuto-Sanitization System
False Positives
ai-friendly / strict) or security/deprecation notices (every profile)n8n-validation-expert/
├── SKILL.md
│ Core validation concepts and workflow
│ - Validation philosophy
│ - Error severity levels
│ - The validation loop pattern
│ - Validation profiles
│ - Common error types
│ - Auto-sanitization system
│ - Workflow validation
│ - Recovery strategies
│ - Best practices
│
├── ERROR_CATALOG.md
│ Complete error reference with examples
│ - 9 error types with real examples
│ - missing_required (45% of errors)
│ - invalid_value (28%)
│ - type_mismatch (12%)
│ - invalid_expression (8%)
│ - invalid_reference (5%)
│ - operator_structure (2%, auto-fixed)
│ - Recovery patterns
│ - Summary with frequencies
│
├── FALSE_POSITIVES.md
│ When warnings are acceptable
│ - Philosophy of advisory acceptance
│ - 6 common context-dependent advisories
│ - When acceptable vs when to fix
│ - Validation profile strategies
│ - Decision framework
│ - Documentation template
│ - What the validator no longer flags (≥ 2.63.0)
│
└── README.md (this file)
Skill metadata and statistics
Total: 4 files
| Error Type | Priority | Auto-Fix | Severity |
|---|---|---|---|
| missing_required | Highest | ❌ | Error |
| invalid_value | High | ❌ | Error |
| type_mismatch | Medium | ❌ | Error |
| invalid_expression | Medium | ❌ | Error |
| invalid_reference | Low | ❌ | Error |
| operator_structure | Low | ✅ (normalized on save) | Not flagged (≥ 2.63.0) |
Don't expect to get it right on the first try. Multiple validation cycles (typically 2-3) are normal and expected!
The classic false positives are fixed at the source (n8n-mcp ≥ 2.63.0). Warnings you now see are either security/deprecation notices (act on them) or best-practice advisories (weigh per-case). This skill helps you tell them apart.
Operator structures (binary/unary singleValue, IF/Switch metadata) are normalized on save, and validation no longer errors on the un-normalized shape. Don't waste time hand-fixing these!
minimal ⊂ runtime ⊂ ai-friendly ⊂ strictruntime is the everyday default (errors + security/deprecation)ai-friendly / strict add best-practice advisories for pre-deploy reviewValidation errors include fix guidance - read them carefully!
// Iteration 1
let config = {
resource: "channel",
operation: "create"
};
const result1 = validate_node({
nodeType: "nodes-base.slack",
config,
profile: "runtime"
});
// → Error: Missing "name"
// Iteration 2
config.name = "general";
const result2 = validate_node({...});
// → Valid! ✅
// Run validation
const result = validate_node({
nodeType: "nodes-base.slack",
config,
profile: "runtime"
});
// Fix errors (must fix)
if (!result.valid) {
result.errors.forEach(error => {
console.log(`MUST FIX: ${error.message}`);
});
}
// Review warnings (context-dependent)
result.warnings.forEach(warning => {
if (warning.type === 'best_practice' && isDevWorkflow) {
console.log(`ACCEPTABLE: ${warning.message}`);
} else {
console.log(`SHOULD FIX: ${warning.message}`);
}
});
// Check what can be auto-fixed
const preview = n8n_autofix_workflow({
id: "workflow-id",
applyFixes: false // Preview mode
});
console.log(`Can auto-fix: ${preview.fixCount} issues`);
// Apply fixes
if (preview.fixCount > 0) {
n8n_autofix_workflow({
id: "workflow-id",
applyFixes: true
});
}
Trigger phrases:
Common scenarios:
Evaluations: 4 test scenarios
eval-001-missing-required-field.json
eval-002-false-positive.json
eval-003-auto-sanitization.json
eval-004-validation-loop.json
Before this skill:
After this skill:
Conceived by Romuald Członkowski - www.aiadvisors.pl/en
Part of the n8n-skills meta-skill collection.