terminalskills-data-validator
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "terminalskills-data-validator":https://skillpi.com/zh/skills/deepskill-651adf654656d97ca884f53c37ead94ccf68553995ee0cf674536e50012c65cf。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于验证 CSV、JSON 和数据库导出数据的质量,通过检查缺失值、类型不匹配、重复项、异常值和模式违规。适用于构建 ETL 管道、审计数据导入、检查数据新鲜度或确保团队间数据契约的场景。触发词包括数据质量、验证、空值、重复项、模式检查、数据契约、ETL、管道和数据漂移。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: data-validator
description: >-
Validate data quality in CSV, JSON, and database exports by checking for
missing values, type mismatches, duplicates, outliers, and schema violations.
Use when building ETL pipelines, auditing data imports, checking data freshness,
or ensuring data contracts between teams. Trigger words: data quality, validation,
null values, duplicates, schema check, data contract, ETL, pipeline, data drift.
license: Apache-2.0
compatibility: "Works with CSV, JSON, Parquet (via Python), and SQL query results"
metadata:
author: terminal-skills
version: "1.0.0"
category: data-ai
tags: ["data-quality", "validation", "etl", "data-pipeline"]Data Validator
Overview
Perform comprehensive data quality checks on datasets — validate schemas, detect anomalies, find duplicates, and enforce data contracts. Essential for ETL pipelines where bad data silently corrupts downstream analytics and dashboards.
Instructions
1. Profile the dataset first
Before validating, understand the data:
- Row count and column count
- Data types per column (string, integer, float, date, boolean)
- Null rates per column
- Unique value counts and cardinality
- Min/max/mean for numeric columns
- Date ranges for temporal columns
Present as a data profile summary:
Dataset Profile: orders_export.csv
Rows: 142,847 | Columns: 12
| Column | Type | Nulls | Unique | Sample Values |
|---------------|---------|--------|---------|------------------------|
| order_id | string | 0% | 142,847 | ORD-20260217-001 |
| customer_id | integer | 0.3% | 28,491 | 10042, 10043 |
| amount | float | 0% | 8,234 | 29.99, 149.00 |
| created_at | date | 0% | 89,112 | 2026-02-17T14:23:01Z |
| status | string | 0% | 5 | completed, pending |
2. Run validation checks
Apply these checks systematically:
Completeness — Are required fields populated?
- Check null/empty rates against thresholds (e.g., email must be <1% null)
- Flag columns with unexpected null spikes
Uniqueness — Are IDs actually unique?
- Check primary key columns for duplicates
- Report duplicate counts and sample duplicate rows
Type consistency — Do values match expected types?
- Dates that don't parse, numbers stored as strings
- Mixed types in the same column
Range validity — Are values within expected bounds?
- Negative amounts, future dates, ages over 150
- Enum columns with unexpected values
Referential integrity — Do foreign keys match?
- customer_id values that don't exist in the customers table
- Orphaned records
Freshness — Is the data up to date?
- Most recent record timestamp vs current time
- Gaps in time series data
3. Report findings
Structure results as a validation report:
## Data Validation Report
Dataset: orders_export.csv | Checked: 2026-02-17 14:30 UTC
### ❌ Failed Checks (3)
1. **Duplicate order_id** — 23 duplicate IDs found (0.016%)
Sample: ORD-20260215-4421 appears 3 times
2. **Null customer_email** — 2.1% null (threshold: 1%)
Spike on 2026-02-15 (bulk import batch)
3. **Future dates in created_at** — 7 rows have dates in 2027
### ⚠️ Warnings (2)
1. **Amount outliers** — 4 orders exceed $10,000 (review manually)
2. **Status enum drift** — New value "on_hold" not in expected set
### ✅ Passed Checks (8)
- Primary key uniqueness (order_id): PASS (99.98%)
- Amount non-negative: PASS
- Date range valid: PASS (excluding 7 future dates)
...
4. Suggest fixes
For each failed check, recommend a concrete action:
- SQL query to find and fix duplicates
- Transform to clean null values
- Filter to remove invalid rows
- Alert to set up for ongoing monitoring
Examples
Example 1: CSV Import Validation
Input: "Validate this customer export before importing to our new CRM"
Output:
## Validation Report: customers_export.csv
Rows: 8,234 | Columns: 9
### ❌ Failed (2)
1. **Email format invalid** — 142 rows (1.7%) have malformed emails
Pattern: missing @ symbol, spaces in domain
Fix: SELECT * FROM data WHERE email NOT LIKE '%_@_%.__%'
2. **Phone duplicates** — 34 phone numbers shared by multiple customers
Likely data entry errors or shared business lines
Fix: Review and merge duplicate customer records
### ✅ Passed (6)
- customer_id unique: PASS
- Required fields (name, email): PASS (99.8%)
- Country codes valid ISO-3166: PASS
- Created dates in range: PASS
- No PII in notes field: PASS
- UTF-8 encoding clean: PASS
Recommendation: Fix the 142 invalid emails before import.
The phone duplicates are non-blocking but should be reviewed.
Example 2: Pipeline Data Contract Check
Input: "Check if the analytics events from our tracking pipeline match the expected schema"
Output:
## Schema Contract Validation: events_2026_02_17.json
Events: 1.2M | Schema version: v3.2
### ❌ Contract Violations (1)
1. **Missing required field: session_id**
- 12,847 events (1.07%) missing session_id
- All from source: mobile-ios-sdk v4.1.0
- Started: 2026-02-16 09:00 UTC (correlates with SDK release)
### ⚠️ Warnings (1)
1. **New field detected: device_model**
- Not in schema v3.2 — likely added in SDK update
- 100% populated on mobile events, absent on web
### ✅ Contract Compliance: 98.93%
Action: Pin mobile-ios-sdk to v4.0.x or update schema to v3.3
with session_id as optional for mobile sources.
Guidelines
- Always profile before validating — you need baselines to detect anomalies
- Distinguish between hard failures (blocks the pipeline) and warnings (review later)
- Include sample rows for every finding — abstract stats are hard to act on
- Suggest SQL or code fixes, not just descriptions of problems
- For time series data, check for gaps and seasonality, not just latest timestamp
- Track validation results over time to detect data drift
- Be specific about which rows/records are affected — "23 duplicates" beats "some duplicates"
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供全面的数据质量验证功能,覆盖缺失值、类型不匹配、重复项、异常值、模式违规等核心检查项
- 适用于 ETL 管道构建、数据导入审计、数据新鲜度检查、团队间数据契约确保等多个高频刚需场景
- 功能闭环完整,具有明确的实用价值和广泛的应用受众
亮点
- 触发词精准完整,覆盖 '数据质量'、'验证'、'空值'、'重复项'、'模式检查'、'数据契约'、'ETL'、'管道'、'数据漂移' 等多种变体
- 边界清晰,不易与其他 Skill 重叠或产生歧义
亮点
- 文档结构清晰,包含 Overview、Instructions(分步骤)、Examples(两个完整示例)、Guidelines
- 有明确的出口条件和端到端示例,frontmatter 完整,单文件未超过 500 行
亮点
- 工具来源明确(支持 CSV、JSON、Parquet、SQL 查询结果),参数正确
- 覆盖主要异常(如空值、重复、类型不匹配、范围无效、引用完整性、新鲜度),建议中包含具体修复 SQL 查询
- 不可逆操作有明确建议,执行流程可靠
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。