Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

data-profiling数据剖析

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

419

周安装

18

GitHub Stars

56

下载量

147
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-profiling(数据剖析)
来源仓库:https://github.com/vm0-ai/vm0-skills
仓库路径:skills/data-profiling
安装命令:
npx skills add https://github.com/vm0-ai/vm0-skills --skill data-profiling
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vm0-ai/vm0-skills --skill data-profiling

简介

系统化数据质量探查方法,识别数据结构、完整性和一致性特征。

  • 通过行列计数、主键识别和列角色分类建立数据资产画像。
  • 区分键、属性和度量三类字段,指导后续分析策略制定。
  • 建议结合业务知识理解字段含义,避免纯技术性分析偏差。
  • data-profiling 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Structural Reconnaissance

Table-Level Inventory

Start every new dataset encounter by answering these questions:

  • What is the total row and column count?
  • What does each row represent (the grain)?
  • Which column or columns uniquely identify a row?
  • When was the most recent data loaded?
  • What is the earliest date in the dataset?

Classifying Columns by Role

Assign every column to one of these categories:

  • Key: Primary keys, foreign keys, entity identifiers
  • Attribute: Categorical fields used for grouping or filtering (region, status, plan_type)
  • Measure: Numeric fields intended for aggregation (revenue, duration, score)
  • Timestamp: Date or datetime fields (created_at, processed_on, event_date)
  • Free-text: Unstructured strings (descriptions, comments, names)
  • Flag: Binary true/false indicators
  • Nested: JSON blobs, arrays, or embedded structures

Column-Level Inspection

Universal Checks (All Column Types)

  • Null count and null percentage
  • Count of distinct values and cardinality ratio (distinct / total rows)
  • Top 5-10 most frequent values with their occurrence counts
  • Bottom 5 least frequent values (useful for spotting anomalies)

Numeric Measures

Minimum, maximum, mean, median
Standard deviation
Percentile ladder: p1, p5, p25, p75, p95, p99
Count of zeros
Count of negatives (flag if unexpected)

Text and Categorical Fields

Shortest length, longest length, average length
Count of empty strings
Format regularity (do values follow a consistent pattern?)
Case consistency (uniform upper, uniform lower, or mixed?)
Count of values with leading or trailing whitespace

Date and Timestamp Fields

Earliest date, latest date
Count of nulls
Count of future dates (flag if the domain forbids them)
Distribution across months or weeks
Gaps in expected daily/weekly cadence

Boolean Fields

True count, false count, null count
True proportion

Discovering Relationships

After examining columns individually, look for connections:

  • Foreign key candidates: ID columns whose values likely reference another table
  • Hierarchical dimensions: Columns that nest naturally (country > region > city)
  • Correlated measures: Numeric columns that trend together
  • Computed columns: Fields that appear derived from other columns in the same table
  • Duplicated information: Columns that carry identical or near-identical content

Evaluating Data Quality

Completeness Ratings

Assign each column a tier:

  • Full (>99% populated): No action needed
  • Mostly full (95-99%): Investigate the missing values
  • Gaps present (80-95%): Determine whether the gaps are systematic and whether the column is still usable
  • Sparse (<80%): Likely unusable without imputation or supplemental data

Consistency Checks

Scan for:

  • Value normalization failures: The same concept spelled multiple ways ("USA", "US", "United States", "us")
  • Type mismatches: Numerics stored as text, dates in inconsistent formats
  • Broken references: Foreign key values with no matching parent record
  • Rule violations: Negative quantities, end dates preceding start dates, percentages outside 0-100
  • Cross-column contradictions: status = 'shipped' while ship_date is null

Accuracy Warning Signs

Patterns that suggest the data may be unreliable:

  • Sentinel values: 0, -1, 999999, "N/A", "TBD", "test", "xxx"
  • Suspiciously dominant defaults: One value appearing far more often than expected
  • Stale records: The updated_at column shows no recent activity in an active system
  • Physically impossible values: Ages above 150, dates decades in the future, negative durations
  • Rounding artifacts: Disproportionate clustering on multiples of 5 or 10 (implies estimation)

Freshness Assessment

  • What is the timestamp of the most recent row?
  • How often should this table refresh?
  • Is there measurable lag between event occurrence and warehouse arrival?
  • Are there missing days or hours in the time series?

Recognizing Patterns

Distribution Shapes

When profiling a numeric column, classify its shape:

  • Bell-shaped: Mean and median nearly equal; symmetric tails
  • Right-skewed: Long right tail with a few very large values (typical for revenue, session length)
  • Left-skewed: Long left tail with a few very small values (less common)
  • Bimodal: Two distinct peaks (suggests two merged populations)
  • Power-law: A handful of enormous values dominating; many near-zero values (user engagement metrics)
  • Uniform: Roughly flat across the range (often synthetic or randomly generated)

Time-Based Patterns

For any temporal data, investigate:

  • Trend: Persistent upward or downward drift
  • Seasonality: Recurring cycles — weekly, monthly, quarterly, annual
  • Weekday effects: Systematic weekday vs. weekend differences
  • Holiday impacts: Spikes or dips around known holidays
  • Level shifts: Abrupt, sustained changes in the baseline
  • Isolated anomalies: Single data points that break the prevailing pattern

Segment Discovery

Surface natural groupings by:

  • Identifying categorical columns with 3 to 20 distinct values
  • Comparing metric distributions across each segment value
  • Highlighting segments whose behavior diverges meaningfully from the overall
  • Checking whether apparent segments contain meaningful sub-segments

Correlation Scanning

Across numeric columns:

  • Build a pairwise correlation matrix
  • Highlight strong associations (|r| > 0.7)
  • Remember that correlation never establishes causation — note this explicitly
  • Probe for non-linear relationships (quadratic, logarithmic) that Pearson r would miss

Documenting What You Find

Dataset Summary Template

## Table: [schema.table_name]

**Purpose**: [What this table captures]
**Grain**: [One row per...]
**Primary Key**: [column(s)]
**Approximate Rows**: [count, as of date]
**Refresh Cadence**: [real-time / hourly / daily / weekly]
**Responsible Team**: [owner]

### Important Columns

| Column | Type | Meaning | Sample Values | Notes |
|--------|------|---------|---------------|-------|
| user_id | STRING | Unique user handle | "usr_abc123" | References users.id |
| event_type | STRING | Action category | "click", "view", "purchase" | 15 distinct values |
| revenue | DECIMAL | USD transaction amount | 29.99, 149.00 | Null for non-purchases |
| created_at | TIMESTAMP | Event occurrence time | 2024-01-15 14:23:01 | Partition column |

### Join Paths
- Links to `users` via `user_id`
- Links to `products` via `product_id`
- Parent of `event_details` (one-to-many on event_id)

### Known Caveats
- [Document any quality issues]
- [Note analytical gotchas]

### Typical Query Use Cases
- [List common analytical patterns against this table]

Schema Discovery Queries

When working directly against a warehouse, use these patterns:

-- Enumerate tables in a schema (PostgreSQL)
SELECT table_name, table_type
FROM information_schema.tables
WHERE table_schema = 'public'
ORDER BY table_name;

-- Inspect column metadata (PostgreSQL)
SELECT column_name, data_type, is_nullable, column_default
FROM information_schema.columns
WHERE table_name = 'target_table'
ORDER BY ordinal_position;

-- Rank tables by storage footprint (PostgreSQL)
SELECT relname, pg_size_pretty(pg_total_relation_size(relid))
FROM pg_catalog.pg_statio_user_tables
ORDER BY pg_total_relation_size(relid) DESC;

-- Row count per table (general approach)
-- Execute individually: SELECT COUNT(*) FROM table_name

Tracing Data Lineage

When navigating an unfamiliar warehouse:

  1. Begin at the consumption layer — identify which tables power reports and dashboards
  2. Follow dependencies upstream: what feeds those tables?
  3. Map the raw / staging / mart architecture
  4. Track where transformations enrich, filter, or roll up the data
  5. Record any points where data is joined with external sources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.98%
按下载量换算51

Claude

30.65%
按下载量换算45

Cursor

17.19%
按下载量换算25

Gemini CLI

8.31%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills