La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Datos e investigación · SKILL.md

data-quality

data-quality

Assess data quality across six dimensions: completeness, accuracy, consistency, timeliness, uniqueness, and validity. Produce a data quality scorecard with dimension-level scores, failed checks, and prioritized remediation actions. TRIGGER when: user says /data-quality, "assess data quality", "data quality check", "data quality audit", "how clean is this da…

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentación de la Skill

GitHub

name: data-quality description: > Assess data quality across six dimensions: completeness, accuracy, consistency, timeliness, uniqueness, and validity. Produce a data quality scorecard with dimension-level scores, failed checks, and prioritized remediation actions. TRIGGER when: user says /data-quality, "assess data quality", "data quality check", "data quality audit", "how clean is this data", "data profiling", or "data quality scorecard". argument-hint: "[dataset or table name] [focus dimension]" user-invocable: true

Data Quality Assessment

You are an expert data quality analyst. When the user asks you to assess data quality, follow this structured process to evaluate the dataset across all six dimensions and produce an actionable scorecard.

Step 1: Dataset Profiling

Before scoring quality, profile the dataset thoroughly:

CheckAction
Source identificationRecord where the data comes from (database, API, file, vendor feed)
Schema reviewList all columns with expected data types
Row countTotal records and date range covered
FreshnessWhen the data was last updated
OwnershipIdentify the data owner and steward
SLA contextNote any contractual or regulatory quality requirements

Step 2: Dimension Assessment

Evaluate each of the six data quality dimensions using the checks below.

2a. Completeness

Measure the presence of required data.

CheckMethodThreshold
Null/missing value rate per columnCOUNT(NULL) / COUNT(*)< 2% for critical fields
Required field populationAll NOT NULL columns populated100%
Record completeness% of rows with all required fields filled> 98%
Conditional completenessIf field A is set, field B must also be set100%
Coverage completenessExpected entities vs. actual entities present> 95%

2b. Accuracy

Measure how well data reflects the real-world truth.

CheckMethodThreshold
Cross-source validationCompare values against a trusted reference source> 99% match
Business rule validationApply domain-specific rules (e.g., age > 0, price > 0)100% pass
Statistical outlier detectionZ-score or IQR method for numeric fields< 1% flagged
Format accuracyValues match expected patterns (email, phone, zip)> 99%
Referential accuracyForeign keys resolve to valid parent records100%

2c. Consistency

Measure agreement across datasets, systems, and time.

CheckMethodThreshold
Cross-system consistencySame entity across systems has matching values> 99%
Intra-record consistencyRelated fields within a row do not contradict100%
Temporal consistencyValues do not violate time-order logic (e.g., end > start)100%
Format consistencySame field uses consistent formatting (date, currency, case)> 99%
Aggregate consistencySum of parts equals the total100%

2d. Timeliness

Measure whether data is available when needed and reflects current state.

CheckMethodThreshold
Data freshnessTime since last update vs. expected refresh cadenceWithin SLA
LatencyTime from source event to data availability< agreed SLA
Staleness detectionRecords not updated beyond expected lifecycle< 5% stale
Delivery punctualityData arrives on or before scheduled time100% on-time

2e. Uniqueness

Measure absence of unwanted duplicates.

CheckMethodThreshold
Exact duplicate rowsFull-row hash comparison0 duplicates
Primary key uniquenessCOUNT(DISTINCT pk) = COUNT(*)100%
Near-duplicate detectionFuzzy matching on name/address/email fields< 1% suspected
Cross-source deduplicationSame entity appearing from multiple feedsAll resolved

2f. Validity

Measure conformance to defined rules and standards.

CheckMethodThreshold
Data type validationAll values match declared column type100%
Range validationNumeric values within min/max bounds100%
Enumeration validationCategorical values in allowed set100%
Regex pattern validationStrings match expected patterns> 99%
Schema conformanceNo unexpected columns or missing expected columns100%
Business rule validationComplex multi-field rules pass100%

Step 3: Scoring

Score each dimension on a 0-100 scale:

Score RangeGradeInterpretation
95-100AExcellent -- production ready
85-94BGood -- minor issues, usable with caution
70-84CFair -- significant issues, remediation needed before use
50-69DPoor -- major issues, unreliable for decisions
0-49FCritical -- data is unusable without remediation

Dimension Weight Defaults (adjust per context):

DimensionDefault Weight
Completeness20%
Accuracy25%
Consistency15%
Timeliness15%
Uniqueness10%
Validity15%

Composite Score = Sum of (Dimension Score x Weight)

Step 4: Root Cause Analysis

For every dimension scoring below B, investigate:

  1. What failed: List the specific checks that fell below threshold
  2. Where it failed: Identify affected columns, tables, or record subsets
  3. Why it failed: Trace to source (upstream system, ETL bug, manual entry, schema drift)
  4. Since when: Determine if this is a new issue or a longstanding gap
  5. Who is impacted: Downstream consumers, reports, or models affected

Step 5: Remediation Prioritization

Rank issues using this priority matrix:

PriorityCriteriaAction Timeline
P0 - CriticalBreaks downstream systems or reports, regulatory riskImmediate (< 24 hours)
P1 - HighMaterially affects analytics or decision-makingThis sprint (< 1 week)
P2 - MediumDegrades data usability but workarounds existNext sprint (< 2 weeks)
P3 - LowCosmetic or minor issues with no downstream impactBacklog

Step 6: Output Format

Present results in this order:

1. Executive Summary

  • Overall composite quality score and grade
  • Number of dimensions at each grade level
  • Top 3 critical findings requiring immediate action
  • Trend vs. prior assessment (if available)

2. Data Quality Scorecard

DimensionScoreGradeWeightWeighted ScoreTrendKey Issue
Completeness----20%------
Accuracy----25%------
Consistency----15%------
Timeliness----15%------
Uniqueness----10%------
Validity----15%------
Composite----100%------

3. Failed Checks Detail

Check IDDimensionCheck DescriptionExpectedActualSeverityAffected Records
DQ-001............P0-P3...

4. Remediation Plan

PriorityIssueRoot CauseRemediation ActionOwnerTarget DateEffort
P0..................

5. Monitoring Recommendations

  • Checks to automate and run on every load
  • Alerting thresholds and escalation paths
  • Suggested reassessment cadence

Quality Checklist

Before delivering results, verify:

  • All six dimensions have been assessed with specific checks
  • Scores are evidence-based with actual metrics, not estimates
  • Failed checks include record counts and affected columns
  • Root causes have been investigated, not just symptoms listed
  • Remediation actions are specific, owned, and time-bound
  • Priority assignments use the defined P0-P3 framework
  • Composite score uses the correct weights
  • Monitoring recommendations are included for ongoing governance

Edge Cases

  • No reference data available: Score accuracy based on internal consistency and business rule checks only; note the limitation
  • Streaming data: Timeliness checks must account for event-time vs. processing-time; use watermarks
  • Unstructured or semi-structured data: Adapt validity checks to schema-on-read; focus on parsability and field extraction rates
  • Very large datasets: Use statistical sampling (minimum 10,000 rows or 1%, whichever is larger) and note confidence intervals
  • Multi-tenant data: Assess quality per tenant; aggregate scores can mask tenant-specific issues
  • Newly created datasets: Baseline the first assessment; trends and comparisons are not yet possible
  • Legacy systems with no documentation: Reverse-engineer expected rules from data distributions; flag assumptions explicitly
Skills guardadas