explore-data

GitHub

用于分析数据集结构、质量和分布。通过检查空值率、列类型分类及统计指标,识别重复项或异常值,帮助理解数据全貌并为后续分析选择维度与指标。

data/skills/explore-data/SKILL.md anthropics/knowledge-work-plugins

Trigger Scenarios

遇到新表或文件时 检查空值率和列分布时 发现数据质量问题如重复或可疑值时 决定分析维度和指标前

Install

npx skills add anthropics/knowledge-work-plugins --skill explore-data -g -y
More Options

Non-standard path

npx skills add https://github.com/anthropics/knowledge-work-plugins/tree/main/data/skills/explore-data -g -y

Use without installing

npx skills use anthropics/knowledge-work-plugins@explore-data

指定 Agent (Claude Code)

npx skills add anthropics/knowledge-work-plugins --skill explore-data -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/knowledge-work-plugins --all -g -y

预览 repo 内 skill

npx skills add anthropics/knowledge-work-plugins --list

SKILL.md

Frontmatter
{
    "name": "explore-data",
    "description": "Profile and explore a dataset to understand its shape, quality, and patterns. Use when encountering a new table or file, checking null rates and column distributions, spotting data quality issues like duplicates or suspicious values, or deciding which dimensions and metrics to analyze.",
    "argument-hint": "<table or file>"
}

/explore-data - Profile and Explore a Dataset

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Generate a comprehensive data profile for a table or uploaded file. Understand its shape, quality, and patterns before diving into analysis.

Usage

/explore-data <table_name or file>

Workflow

1. Access the Data

If a data warehouse MCP server is connected:

  1. Resolve the table name (handle schema prefixes, suggest matches if ambiguous)
  2. Query table metadata: column names, types, descriptions if available
  3. Run profiling queries against the live data

If a file is provided (CSV, Excel, Parquet, JSON):

  1. Read the file and load into a working dataset
  2. Infer column types from the data

If neither:

  1. Ask the user to provide a table name (with their warehouse connected) or upload a file
  2. If they describe a table schema, provide guidance on what profiling queries to run

2. Understand Structure

Before analyzing any data, understand its structure:

Table-level questions:

  • How many rows and columns?
  • What is the grain (one row per what)?
  • What is the primary key? Is it unique?
  • When was the data last updated?
  • How far back does the data go?

Column classification — categorize each column as one of:

  • Identifier: Unique keys, foreign keys, entity IDs
  • Dimension: Categorical attributes for grouping/filtering (status, type, region, category)
  • Metric: Quantitative values for measurement (revenue, count, duration, score)
  • Temporal: Dates and timestamps (created_at, updated_at, event_date)
  • Text: Free-form text fields (description, notes, name)
  • Boolean: True/false flags
  • Structural: JSON, arrays, nested structures

3. Generate Data Profile

Run the following profiling checks:

Table-level metrics:

  • Total row count
  • Column count and types breakdown
  • Approximate table size (if available from metadata)
  • Date range coverage (min/max of date columns)

All columns:

  • Null count and null rate
  • Distinct count and cardinality ratio (distinct / total)
  • Most common values (top 5-10 with frequencies)
  • Least common values (bottom 5 to spot anomalies)

Numeric columns (metrics):

min, max, mean, median (p50)
standard deviation
percentiles: p1, p5, p25, p75, p95, p99
zero count
negative count (if unexpected)

String columns (dimensions, text):

min length, max length, avg length
empty string count
pattern analysis (do values follow a format?)
case consistency (all upper, all lower, mixed?)
leading/trailing whitespace count

Date/timestamp columns:

min date, max date
null dates
future dates (if unexpected)
distribution by month/week
gaps in time series

Boolean columns:

true count, false count, null count
true rate

Present the profile as a clean summary table, grouped by column type (dimensions, metrics, dates, IDs).

4. Identify Data Quality Issues

Apply the quality assessment framework below. Flag potential problems:

  • High null rates: Columns with >5% nulls (warn), >20% nulls (alert)
  • Low cardinality surprises: Columns that should be high-cardinality but aren't (e.g., a "user_id" with only 50 distinct values)
  • High cardinality surprises: Columns that should be categorical but have too many distinct values
  • Suspicious values: Negative amounts where only positive expected, future dates in historical data, obviously placeholder values (e.g., "N/A", "TBD", "test", "999999")
  • Duplicate detection: Check if there's a natural key and whether it has duplicates
  • Distribution skew: Extremely skewed numeric distributions that could affect averages
  • Encoding issues: Mixed case in categorical fields, trailing whitespace, inconsistent formats

5. Discover Relationships and Patterns

After profiling individual columns:

  • Foreign key candidates: ID columns that might link to other tables
  • Hierarchies: Columns that form natural drill-down paths (country > state > city)
  • Correlations: Numeric columns that move together
  • Derived columns: Columns that appear to be computed from others
  • Redundant columns: Columns with identical or near-identical information

6. Suggest Interesting Dimensions and Metrics

Based on the column profile, recommend:

  • Best dimension columns for slicing data (categorical columns with reasonable cardinality, 3-50 values)
  • Key metric columns for measurement (numeric columns with meaningful distributions)
  • Time columns suitable for trend analysis
  • Natural groupings or hierarchies apparent in the data
  • Potential join keys linking to other tables (ID columns, foreign keys)

7. Recommend Follow-Up Analyses

Suggest 3-5 specific analyses the user could run next:

  • "Trend analysis on [metric] by [time_column] grouped by [dimension]"
  • "Distribution deep-dive on [skewed_column] to understand outliers"
  • "Data quality investigation on [problematic_column]"
  • "Correlation analysis between [metric_a] and [metric_b]"
  • "Cohort analysis using [date_column] and [status_column]"

Output Format

## Data Profile: [table_name]

### Overview
- Rows: 2,340,891
- Columns: 23 (8 dimensions, 6 metrics, 4 dates, 5 IDs)
- Date range: 2021-03-15 to 2024-01-22

### Column Details
[summary table]

### Data Quality Issues
[flagged issues with severity]

### Recommended Explorations
[numbered list of suggested follow-up analyses]

Quality Assessment Framework

Completeness Score

Rate each column:

  • Complete (>99% non-null): Green
  • Mostly complete (95-99%): Yellow -- investigate the nulls
  • Incomplete (80-95%): Orange -- understand why and whether it matters
  • Sparse (<80%): Red -- may not be usable without imputation

Consistency Checks

Look for:

  • Value format inconsistency: Same concept represented differently ("USA", "US", "United States", "us")
  • Type inconsistency: Numbers stored as strings, dates in various formats
  • Referential integrity: Foreign keys that don't match any parent record
  • Business rule violations: Negative quantities, end dates before start dates, percentages > 100
  • Cross-column consistency: Status = "completed" but completed_at is null

Accuracy Indicators

Red flags that suggest accuracy issues:

  • Placeholder values: 0, -1, 999999, "N/A", "TBD", "test", "xxx"
  • Default values: Suspiciously high frequency of a single value
  • Stale data: Updated_at shows no recent changes in an active system
  • Impossible values: Ages > 150, dates in the far future, negative durations
  • Round number bias: All values ending in 0 or 5 (suggests estimation, not measurement)

Timeliness Assessment

  • When was the table last updated?
  • What is the expected update frequency?
  • Is there a lag between event time and load time?
  • Are there gaps in the time series?

Pattern Discovery Techniques

Distribution Analysis

For numeric columns, characterize the distribution:

  • Normal: Mean and median are close, bell-shaped
  • Skewed right: Long tail of high values (common for revenue, session duration)
  • Skewed left: Long tail of low values (less common)
  • Bimodal: Two peaks (suggests two distinct populations)
  • Power law: Few very large values, many small ones (common for user activity)
  • Uniform: Roughly equal frequency across range (often synthetic or random)

Temporal Patterns

For time series data, look for:

  • Trend: Sustained upward or downward movement
  • Seasonality: Repeating patterns (weekly, monthly, quarterly, annual)
  • Day-of-week effects: Weekday vs. weekend differences
  • Holiday effects: Drops or spikes around known holidays
  • Change points: Sudden shifts in level or trend
  • Anomalies: Individual data points that break the pattern

Segmentation Discovery

Identify natural segments by:

  • Finding categorical columns with 3-20 distinct values
  • Comparing metric distributions across segment values
  • Looking for segments with significantly different behavior
  • Testing whether segments are homogeneous or contain sub-segments

Correlation Exploration

Between numeric columns:

  • Compute correlation matrix for all metric pairs
  • Flag strong correlations (|r| > 0.7) for investigation
  • Note: Correlation does not imply causation -- flag this explicitly
  • Check for non-linear relationships (e.g., quadratic, logarithmic)

Schema Understanding and Documentation

Schema Documentation Template

When documenting a dataset for team use:

## Table: [schema.table_name]

**Description**: [What this table represents]
**Grain**: [One row per...]
**Primary Key**: [column(s)]
**Row Count**: [approximate, with date]
**Update Frequency**: [real-time / hourly / daily / weekly]
**Owner**: [team or person responsible]

### Key Columns

| Column | Type | Description | Example Values | Notes |
|--------|------|-------------|----------------|-------|
| user_id | STRING | Unique user identifier | "usr_abc123" | FK to users.id |
| event_type | STRING | Type of event | "click", "view", "purchase" | 15 distinct values |
| revenue | DECIMAL | Transaction revenue in USD | 29.99, 149.00 | Null for non-purchase events |
| created_at | TIMESTAMP | When the event occurred | 2024-01-15 14:23:01 | Partitioned on this column |

### Relationships
- Joins to `users` on `user_id`
- Joins to `products` on `product_id`
- Parent of `event_details` (1:many on event_id)

### Known Issues
- [List any known data quality issues]
- [Note any gotchas for analysts]

### Common Query Patterns
- [Typical use cases for this table]

Schema Exploration Queries

When connected to a data warehouse, use these patterns to discover schema:

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

-- Column details (PostgreSQL)
SELECT column_name, data_type, is_nullable, column_default
FROM information_schema.columns
WHERE table_name = 'my_table'
ORDER BY ordinal_position;

-- Table sizes (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 counts for all tables (general pattern)
-- Run per-table: SELECT COUNT(*) FROM table_name

Lineage and Dependencies

When exploring an unfamiliar data environment:

  1. Start with the "output" tables (what reports or dashboards consume)
  2. Trace upstream: What tables feed into them?
  3. Identify raw/staging/mart layers
  4. Map the transformation chain from raw data to analytical tables
  5. Note where data is enriched, filtered, or aggregated

Tips

  • For very large tables (100M+ rows), profiling queries use sampling by default -- mention if you need exact counts
  • If exploring a new dataset for the first time, this command gives you the lay of the land before writing specific queries
  • The quality flags are heuristic -- not every flag is a real problem, but each is worth a quick look

Version History

  • 6f13415 Current 2026-07-05 18:27

Same Skill Collection

bio-research/skills/nextflow-development/SKILL.md
bio-research/skills/single-cell-rna-qc/SKILL.md
bio-research/skills/start/SKILL.md
cowork-plugin-management/skills/cowork-plugin-customizer/SKILL.md
cowork-plugin-management/skills/create-cowork-plugin/SKILL.md
customer-support/skills/customer-escalation/SKILL.md
customer-support/skills/customer-research/SKILL.md
customer-support/skills/draft-response/SKILL.md
customer-support/skills/kb-article/SKILL.md
customer-support/skills/ticket-triage/SKILL.md
data/skills/analyze/SKILL.md
data/skills/build-dashboard/SKILL.md
data/skills/create-viz/SKILL.md
data/skills/data-visualization/SKILL.md
data/skills/sql-queries/SKILL.md
data/skills/statistical-analysis/SKILL.md
data/skills/validate-data/SKILL.md
data/skills/write-query/SKILL.md
design/skills/accessibility-review/SKILL.md
design/skills/design-critique/SKILL.md
design/skills/design-handoff/SKILL.md
design/skills/design-system/SKILL.md
design/skills/research-synthesis/SKILL.md
design/skills/user-research/SKILL.md
design/skills/ux-copy/SKILL.md
engineering/skills/architecture/SKILL.md
engineering/skills/code-review/SKILL.md
engineering/skills/debug/SKILL.md
engineering/skills/deploy-checklist/SKILL.md
engineering/skills/documentation/SKILL.md
engineering/skills/incident-response/SKILL.md
engineering/skills/standup/SKILL.md
engineering/skills/system-design/SKILL.md
engineering/skills/tech-debt/SKILL.md
engineering/skills/testing-strategy/SKILL.md
enterprise-search/skills/digest/SKILL.md
enterprise-search/skills/knowledge-synthesis/SKILL.md
enterprise-search/skills/search-strategy/SKILL.md
enterprise-search/skills/search/SKILL.md
enterprise-search/skills/source-management/SKILL.md
finance/skills/audit-support/SKILL.md
finance/skills/close-management/SKILL.md
finance/skills/financial-statements/SKILL.md
finance/skills/journal-entry-prep/SKILL.md
finance/skills/journal-entry/SKILL.md
finance/skills/reconciliation/SKILL.md
finance/skills/sox-testing/SKILL.md
finance/skills/variance-analysis/SKILL.md
human-resources/skills/comp-analysis/SKILL.md
human-resources/skills/draft-offer/SKILL.md
human-resources/skills/interview-prep/SKILL.md
human-resources/skills/onboarding/SKILL.md
human-resources/skills/org-planning/SKILL.md
human-resources/skills/people-report/SKILL.md
human-resources/skills/performance-review/SKILL.md
human-resources/skills/policy-lookup/SKILL.md
human-resources/skills/recruiting-pipeline/SKILL.md
legal/skills/brief/SKILL.md
legal/skills/compliance-check/SKILL.md
legal/skills/legal-response/SKILL.md
legal/skills/legal-risk-assessment/SKILL.md
legal/skills/meeting-briefing/SKILL.md
legal/skills/review-contract/SKILL.md
legal/skills/signature-request/SKILL.md
legal/skills/triage-nda/SKILL.md
legal/skills/vendor-check/SKILL.md
marketing/skills/brand-review/SKILL.md
marketing/skills/campaign-plan/SKILL.md
marketing/skills/competitive-brief/SKILL.md
marketing/skills/content-creation/SKILL.md
marketing/skills/draft-content/SKILL.md
marketing/skills/email-sequence/SKILL.md
marketing/skills/performance-report/SKILL.md
marketing/skills/seo-audit/SKILL.md
operations/skills/capacity-plan/SKILL.md
operations/skills/change-request/SKILL.md
operations/skills/compliance-tracking/SKILL.md
operations/skills/process-doc/SKILL.md
operations/skills/process-optimization/SKILL.md
operations/skills/risk-assessment/SKILL.md
operations/skills/runbook/SKILL.md
operations/skills/status-report/SKILL.md
operations/skills/vendor-review/SKILL.md
partner-built/apollo/skills/enrich-lead/SKILL.md
partner-built/apollo/skills/prospect/SKILL.md
partner-built/apollo/skills/sequence-load/SKILL.md
partner-built/common-room/skills/account-research/SKILL.md
partner-built/common-room/skills/call-prep/SKILL.md
partner-built/common-room/skills/compose-outreach/SKILL.md
partner-built/common-room/skills/contact-research/SKILL.md
partner-built/common-room/skills/prospect/SKILL.md
partner-built/common-room/skills/weekly-prep-brief/SKILL.md
partner-built/slack/skills/slack-messaging/SKILL.md
partner-built/slack/skills/slack-search/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-bot/SKILL.md
partner-built/zoom-plugin/skills/build-zoom-meeting-app/SKILL.md
partner-built/zoom-plugin/skills/choose-zoom-approach/SKILL.md
partner-built/zoom-plugin/skills/cobrowse-sdk/SKILL.md
partner-built/zoom-plugin/skills/contact-center/android/SKILL.md
partner-built/zoom-plugin/skills/contact-center/ios/SKILL.md
partner-built/zoom-plugin/skills/contact-center/SKILL.md
partner-built/zoom-plugin/skills/contact-center/web/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/debug-zoom/SKILL.md
partner-built/zoom-plugin/skills/design-mcp-workflow/SKILL.md
partner-built/zoom-plugin/skills/general/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/electron/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/unreal/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/meeting-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/oauth/SKILL.md
partner-built/zoom-plugin/skills/phone/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-integration/SKILL.md
partner-built/zoom-plugin/skills/plan-zoom-product/SKILL.md
partner-built/zoom-plugin/skills/probe-sdk/SKILL.md
partner-built/zoom-plugin/skills/rest-api/SKILL.md
partner-built/zoom-plugin/skills/rivet-sdk/SKILL.md
partner-built/zoom-plugin/skills/rtms/SKILL.md
partner-built/zoom-plugin/skills/scribe/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-mcp/SKILL.md
partner-built/zoom-plugin/skills/setup-zoom-oauth/SKILL.md
partner-built/zoom-plugin/skills/start/SKILL.md
partner-built/zoom-plugin/skills/team-chat/SKILL.md
partner-built/zoom-plugin/skills/ui-toolkit/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/android/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/flutter/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/ios/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/linux/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/macos/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/react-native/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/unity/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/web/SKILL.md
partner-built/zoom-plugin/skills/video-sdk/windows/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/android/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/ios/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/SKILL.md
partner-built/zoom-plugin/skills/virtual-agent/web/SKILL.md
partner-built/zoom-plugin/skills/webhooks/SKILL.md
partner-built/zoom-plugin/skills/websockets/SKILL.md
partner-built/zoom-plugin/skills/zoom-apps-sdk/SKILL.md
partner-built/zoom-plugin/skills/zoom-mcp/whiteboard/SKILL.md
pdf-viewer/skills/view-pdf/SKILL.md
product-management/skills/competitive-brief/SKILL.md
product-management/skills/metrics-review/SKILL.md
product-management/skills/product-brainstorming/SKILL.md
product-management/skills/roadmap-update/SKILL.md
product-management/skills/sprint-planning/SKILL.md
product-management/skills/stakeholder-update/SKILL.md
product-management/skills/synthesize-research/SKILL.md
product-management/skills/write-spec/SKILL.md
productivity/skills/memory-management/SKILL.md
productivity/skills/start/SKILL.md
productivity/skills/task-management/SKILL.md
productivity/skills/update/SKILL.md
sales/skills/account-research/SKILL.md
sales/skills/call-prep/SKILL.md
sales/skills/call-summary/SKILL.md
sales/skills/competitive-intelligence/SKILL.md
sales/skills/create-an-asset/SKILL.md
sales/skills/daily-briefing/SKILL.md
sales/skills/draft-outreach/SKILL.md
sales/skills/forecast/SKILL.md
sales/skills/pipeline-review/SKILL.md
small-business/skills/call-list/SKILL.md
small-business/skills/cash-flow-snapshot/SKILL.md
small-business/skills/close-month/SKILL.md
small-business/skills/content-strategy/SKILL.md
small-business/skills/contract-review/SKILL.md
small-business/skills/crm-cleanup/SKILL.md
small-business/skills/crm-maintenance/SKILL.md
small-business/skills/customer-pulse-check/SKILL.md
small-business/skills/customer-pulse/SKILL.md
small-business/skills/friday-brief/SKILL.md
small-business/skills/handle-complaint/SKILL.md
small-business/skills/invoice-chase/SKILL.md
small-business/skills/lead-triage/SKILL.md
small-business/skills/monday-brief/SKILL.md
small-business/skills/month-end-prep/SKILL.md
small-business/skills/month-heads-up/SKILL.md
small-business/skills/plan-payroll/SKILL.md
small-business/skills/price-check/SKILL.md
small-business/skills/quarterly-review/SKILL.md
small-business/skills/review-contract/SKILL.md
small-business/skills/run-campaign/SKILL.md
small-business/skills/sales-brief/SKILL.md
small-business/skills/tax-prep/SKILL.md
small-business/skills/ticket-deflector/SKILL.md
bio-research/skills/instrument-data-to-allotrope/SKILL.md
bio-research/skills/scientific-problem-selection/SKILL.md
bio-research/skills/scvi-tools/SKILL.md
data/skills/data-context-extractor/SKILL.md
partner-built/brand-voice/skills/brand-voice-enforcement/SKILL.md
partner-built/brand-voice/skills/discover-brand/SKILL.md
partner-built/brand-voice/skills/guideline-generation/SKILL.md
small-business/skills/business-pulse/SKILL.md
small-business/skills/canva-creator/SKILL.md
small-business/skills/job-post-builder/SKILL.md
small-business/skills/margin-analyzer/SKILL.md
small-business/skills/smb-onboard/SKILL.md
small-business/skills/smb-router/SKILL.md
small-business/skills/tax-season-organizer/SKILL.md

Metadata

Files
0
Version
6f13415
Hash
af7590fa
Indexed
2026-07-05 18:27

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 23:19
浙ICP备14020137号-1 $Гость$