Parse build errors, test failures, type-check output, and validation logs into structured data. Use when processing npm/pnpm output, TypeScript errors, Jest failures, or any validation command results for quality gates.
70
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Parse error and validation output from various tools into structured, actionable data.
Accept raw command output as input.
Expected Input:
output: String (raw stdout/stderr from command)type: String (typescript|jest|npm|build|generic)Detect error patterns based on type.
TypeScript Patterns:
error TS2322: Type 'string' is not assignable to type 'number'.
src/file.ts(10,5): error TS2322Jest Patterns:
FAIL src/test.spec.ts
● Test Suite › test name
Expected: 5
Received: 3npm/pnpm Patterns:
ERR! code ENOENT
ERR! syscall open
ERR! path /path/to/fileBuild Patterns:
ERROR in ./src/file.ts
Module not found: Error: Can't resolve 'module'Parse each error into structured format.
For Each Error Extract:
file: File path (if available)line: Line number (if available)column: Column number (if available)code: Error code (e.g., "TS2322", "ENOENT")message: Error messageseverity: error|warning|infotype: Classification (type-error, test-failure, dependency, etc.)Group errors by type and count occurrences.
Categories:
Return complete error analysis.
Expected Output:
{
"success": false,
"totalErrors": 15,
"totalWarnings": 3,
"summary": {
"typeErrors": 8,
"testFailures": 5,
"buildErrors": 2
},
"errors": [
{
"file": "src/utils.ts",
"line": 42,
"column": 10,
"code": "TS2322",
"message": "Type 'string' is not assignable to type 'number'",
"severity": "error",
"type": "type-error"
}
],
"warnings": [
{
"file": "src/deprecated.ts",
"line": 15,
"code": "TS6133",
"message": "'oldFunction' is declared but never used",
"severity": "warning",
"type": "unused-variable"
}
]
}Input:
{
"output": "src/app.ts(10,5): error TS2322: Type 'string' is not assignable to type 'number'.\nsrc/utils.ts(25,12): error TS2304: Cannot find name 'undefined'.",
"type": "typescript"
}Output:
{
"success": false,
"totalErrors": 2,
"totalWarnings": 0,
"summary": {
"typeErrors": 2
},
"errors": [
{
"file": "src/app.ts",
"line": 10,
"column": 5,
"code": "TS2322",
"message": "Type 'string' is not assignable to type 'number'",
"severity": "error",
"type": "type-error"
},
{
"file": "src/utils.ts",
"line": 25,
"column": 12,
"code": "TS2304",
"message": "Cannot find name 'undefined'",
"severity": "error",
"type": "type-error"
}
],
"warnings": []
}Input:
{
"output": "FAIL src/utils.test.ts\n ● Math › addition\n expect(received).toBe(expected)\n Expected: 5\n Received: 3\n at Object.<anonymous> (src/utils.test.ts:10:15)",
"type": "jest"
}Output:
{
"success": false,
"totalErrors": 1,
"totalWarnings": 0,
"summary": {
"testFailures": 1
},
"errors": [
{
"file": "src/utils.test.ts",
"line": 10,
"column": 15,
"code": null,
"message": "expect(received).toBe(expected) - Expected: 5, Received: 3",
"severity": "error",
"type": "test-failure",
"testName": "Math › addition"
}
],
"warnings": []
}Input:
{
"output": "✓ Built successfully\nCompleted in 2.3s",
"type": "build"
}Output:
{
"success": true,
"totalErrors": 0,
"totalWarnings": 0,
"summary": {},
"errors": [],
"warnings": []
}Input:
{
"output": "Warning: React Hook useEffect has a missing dependency\nerror TS2339: Property 'foo' does not exist on type 'Bar'",
"type": "typescript"
}Output:
{
"success": false,
"totalErrors": 1,
"totalWarnings": 1,
"summary": {
"typeErrors": 1,
"lintWarnings": 1
},
"errors": [
{
"code": "TS2339",
"message": "Property 'foo' does not exist on type 'Bar'",
"severity": "error",
"type": "type-error"
}
],
"warnings": [
{
"message": "React Hook useEffect has a missing dependency",
"severity": "warning",
"type": "lint-warning"
}
]
}patterns.json: Regex patterns for common error formats8c3b576
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.