This skill analyzes unstructured or semi-structured data and extracts structured information according to defined patterns. It is NOT a simple search — it applies intelligent pattern matching and classification.
Key responsibilities:
/extract-error-patterns --verbose#Verbose mode. Includes confidence scores, pattern matches, and edge case details.
/extract-error-patterns --summary#Summary mode. Returns only high-confidence extractions with a count summary.
Parse input — Read the input data; detect format (log file, JSON, plain text, etc.)
Identify structure — Find delimiters, sections, and repeating patterns in the data
Apply extraction patterns — Run regex/heuristic patterns; collect all matches with positions
Classify results — Categorize extractions by type/severity; assign confidence score (0-1)
Deduplicate — Remove exact duplicates; flag near-duplicates (similar within 90% match)
Report — Return structured list with: type, value, confidence, position, context
CriterionMinimumIdealExtraction coverage>= 95% of identifiable entities100% with confidence score per itemFalse positive rate< 5% of extractions are wrong< 1% with manual review flaggingConfidence calibrationScore 0-1, low < 0.6 flaggedAll low-confidence items reviewed and re-scoredContext preservedEvery extraction has source locationSource location + surrounding context linesPattern documentationEvery pattern has a documented purposePatterns rated by precision/recall tradeoffA good extraction result contains confidence scores and source locations for every item.
ScenarioBadGoodLow confidenceMarks as high confidence, flags no reviewReports "Extraction [X]: confidence 0.4 — flagged for manual review"Ambiguous inputForces extraction, guessesReports "Cannot classify [X] — insufficient context, skipped"PII detectedExtracts without warningStops and asks: "PII detected in [location] — confirm before extracting"Pattern missSilent failure, returns emptyReports "No patterns matched input — check format or add custom pattern"Large inputLoads all, crashesStreams, reports "Processed 10K lines, found 142 matches (truncated at limit)"