用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wojons/skills --skill data-validation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need comprehensive accessibility auditing including WCAG compliance, legal requirements mapping, and user testing with disabilities
Apply systematic adversarial thinking patterns including devil's advocate, assumption busting, red teaming, and white hat security approaches
A 10-step methodology for building software with AI collaboration - from north star through automated Ralph loop execution with zero human-in-the-loop code writing
基于 SOC 职业分类
正在显示 SKILL.md
| name | data-validation |
| description | Use when you need to validate data quality, types, schemas, and consistency across systems |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"data-engineers, developers","category":"data"} |
Validate data quality, types, schemas, and consistency across systems. This skill helps ensure data accuracy, completeness, and reliability through comprehensive validation rules, schema validation, data quality checks, and anomaly detection.
Use this skill when:
# Validate data against JSON schema
./scripts/analyze-data-validation.sh --schema schema.json --data data.json
# Perform data quality checks
./scripts/analyze-data-validation.sh --quality-checks --source database --rules rules.yaml
# Detect data anomalies
./scripts/analyze-data-validation.sh --anomaly-detection --data data.csv --threshold 3
# Validate data consistency across sources
./scripts/analyze-data-validation.sh --consistency --sources source1.csv source2.csv
# Generate data validation report
./scripts/analyze-data-validation.sh --report --output validation-report.json
Data Validation Report
─────────────────────────────────────
Validation Date: 2025-01-15T10:30:00Z
Data Source: customer_data.csv
Total Records: 1,250,847
Validation Duration: 45s
SCHEMA VALIDATION RESULTS:
───────────────────────────
✅ Valid: 1,200,543 records (96%)
❌ Invalid: 50,304 records (4%)
Schema Violations:
• Missing required field "customer_id": 12,847 records
• Invalid email format: 18,542 records
• Invalid date format (birth_date): 8,925 records
• Invalid phone number format: 10,090 records
DATA QUALITY METRICS:
──────────────────────
Completeness: 97.8%
• Customer name: 99.2% complete
• Email address: 96.5% complete
• Phone number: 95.8% complete
• Address: 92.4% complete
Accuracy: 95.3%
• Email deliverability: 94.8% valid
• Phone number validity: 96.2% valid
• Address validity: 95.0% valid
Consistency: 98.1%
• Date formats consistent: 99.2%
• Country codes consistent: 97.8%
• Currency formats consistent: 97.3%
Timeliness: 99.5%
• Data freshness: 99.8% updated within 24 hours
• Update frequency: 99.2% updated daily
BUSINESS RULE VALIDATION:
─────────────────────────
✅ Valid: 1,245,120 records (99.5%)
❌ Invalid: 5,727 records (0.5%)
Business Rule Violations:
• Customer age < 18: 1,247 records
• Invalid order amount (negative): 842 records
• Duplicate customer records: 2,150 records
• Inconsistent region-country mapping: 1,488 records
REFERENTIAL INTEGRITY VALIDATION:
─────────────────────────────────
✅ Valid: 1,248,950 references (99.8%)
❌ Invalid: 1,897 references (0.2%)
Referential Integrity Issues:
• Orphaned order records (missing customer): 892 references
• Invalid product references: 1,005 references
ANOMALY DETECTION:
──────────────────
⚠️ Detected: 3,842 anomalies (0.3%)
Anomaly Types:
• Unusual customer age distribution: 1,250 anomalies
• Abnormal order amounts: 1,892 anomalies
• Unexpected geographic distribution: 700 anomalies
DATA PROFILING SUMMARY:
───────────────────────
Numeric Fields:
• order_amount: Min=$1, Max=$15,250, Avg=$245.75, StdDev=$125.42
• customer_age: Min=18, Max=95, Avg=42.3, StdDev=12.8
Categorical Fields:
• country: 45 distinct values (US: 45%, UK: 12%, CA: 8%, ...)
• product_category: 12 distinct values (Electronics: 35%, Clothing: 25%, ...)
Date Fields:
• order_date: Range=2024-01-01 to 2025-01-15
• customer_since: Range=2018-03-15 to 2025-01-15
DATA CONSISTENCY ACROSS SOURCES:
────────────────────────────────
• Customer database vs CRM: 98.7% consistent
• Product catalog vs inventory: 97.2% consistent
• Order system vs payment gateway: 99.1% consistent
RECOMMENDATIONS:
────────────────
1. IMMEDIATE ACTION:
• Fix missing customer_id field (12,847 records)
• Clean invalid email addresses (18,542 records)
• Remove duplicate customer records (2,150 records)
2. SHORT TERM (1-2 weeks):
• Implement data validation in ingestion pipeline
• Set up data quality monitoring and alerting
• Establish data quality SLA (target: 99.5% quality)
3. MEDIUM TERM (1-3 months):
• Implement data profiling and anomaly detection
• Establish data governance framework
• Implement data lineage tracking
4. LONG TERM (3-12 months):
• Implement master data management
• Establish data quality improvement program
• Implement predictive data quality monitoring
VALIDATION RULE COVERAGE:
─────────────────────────
• Schema validation: 100% coverage
• Data type validation: 100% coverage
• Business rule validation: 85% coverage
• Referential integrity: 90% coverage
• Anomaly detection: 75% coverage
Overall Data Quality Score: 92.8/100