Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Ds Data Profiling

ASecurity

Provides Extracts data profiles, schemas, metadata, and statistical summaries

4 stars
0 votes
0 copies
1 views
Added 9/4/2026
datapythongotestingdebuggingperformancedocumentation

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add paulpas/agent-skill-router --skill ds-data-profiling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ds Data Profiling?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ds Data Profiling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/paulpas-ds-data-profiling/badge)](https://www.skillsdirectory.com/skills/paulpas-ds-data-profiling)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---




name: ds-data-profiling
compatibility: opencode
completeness: 95
content-types:
- code
- guidance
- do-dont
- examples
description: Provides Extracts data profiles, schemas, metadata, and statistical summaries
  to understand data structure, quality, and characteristics at scale
license: MIT
maturity: stable
metadata:
  domain: coding
  output-format: code
  related-skills: ds-data-quality, ds-data-visualization, ds-eda
  role: implementation
  scope: implementation
  triggers: data profiling, metadata extraction, schema analysis, data schema, how
    do i profile data, data structure, performance analysis, optimization
  archetypes:
  - tactical
  - generation
  anti_triggers:
  - brainstorming
  - vague ideation
  - code golf
  - over-engineering
  response_profile:
    verbosity: low
    directive_strength: high
    abstraction_level: operational
version: "1.0.0"




---




# Data Profiling

Comprehensive guide to data profiling in machine learning and data science workflows.

## When to Use This Skill

- Solving real-world exploratory data analysis problems
- Building machine learning pipelines with data profiling
- Implementing best practices for data profiling
- Optimizing model performance using data profiling techniques
- Learning industry-standard approaches to data profiling

## When NOT to Use This Skill

- When using pre-built libraries without understanding underlying concepts
- For toy problems that don't require data profiling rigor
- When domain expertise in specific problem requires different approach
- If your problem doesn't require the complexity this skill provides

## Purpose and Key Concepts

Data Profiling is a critical component of the machine learning workflow. This skill covers:

1. **Theoretical foundations** — Mathematical principles and statistical concepts
2. **Practical implementation** — Working code examples and patterns
3. **Common pitfalls** — Mistakes to avoid and how to recover from them
4. **Best practices** — Industry-standard approaches and optimization techniques

## Core Workflow

1. **Understand the problem** — Clearly define what you're solving for
2. **Select approach** — Choose the right technique for your data and constraints
3. **Implement solution** — Write clean, tested code following best practices
4. **Validate results** — Verify your implementation with tests and validation
5. **Optimize performance** — Improve efficiency and accuracy incrementally

## Implementation Patterns

### Pattern 1: Basic Data Profiling

```python
import pandas as pd
import numpy as np

def basic_data_profiling(df: pd.DataFrame) -> dict:
    """Generate a basic statistical and structural profile of a DataFrame."""
    if df.empty:
        raise ValueError("DataFrame cannot be empty")
    
    profile = {
        'shape': df.shape
        'columns': list(df.columns)
        'dtypes': df.dtypes.to_dict()
        'missing_values': df.isnull().sum().to_dict()
        'missing_percentages': (df.isnull().mean() * 100).round(2).to_dict()
        'numeric_summary': df.describe().to_dict() if len(df.select_dtypes(include='number').columns) > 0 else {}
        'categorical_summary': {col: df[col].nunique() for col in df.select_dtypes(include='object').columns}
    }
    return profile

# Example usage
if __name__ == "__main__":
    sample_df = pd.DataFrame({
        'age': [25, 30, 35, 40, np.nan]
        'salary': [50000, 60000, 75000, 80000, 90000]
        'department': ['HR', 'IT', 'IT', 'HR', 'Finance']
    })
    results = basic_data_profiling(sample_df)
    print("Profile generated successfully")
    print(f"Missing values: {results['missing_values']}")
```

### Pattern 2: Production-Ready Data Profiling

```python
import logging
import pandas as pd
import numpy as np
from typing import Any, Dict, List

logger = logging.getLogger(__name__)

class DataProfiling:
    """Production implementation of Data Profiling"""
    
    def __init__(self, include_correlations: bool = True, sample_size: int = 10000):
        self.include_correlations = include_correlations
        self.sample_size = sample_size
        logger.info("DataProfiling initialized")
    
    def execute(self, data: pd.DataFrame) -> Dict[str, Any]:
        """Execute Data Profiling on data"""
        if data is None or data.empty:
            raise ValueError("Input data cannot be None or empty")
        
        logger.info(f"Starting profiling on {data.shape[0]} rows and {data.shape[1]} columns")
        
        profile = {
            'metadata': {
                'rows': len(data)
                'columns': len(data.columns)
                'memory_usage_mb': round(data.memory_usage(deep=True).sum() / 1024**2, 2)
            }
            'data_types': data.dtypes.to_dict()
            'null_counts': data.isnull().sum().to_dict()
            'null_percentages': (data.isnull().mean() * 100).round(2).to_dict()
            'unique_counts': data.nunique().to_dict()
        }
        
        numeric_cols = data.select_dtypes(include=[np.number]).columns
        if len(numeric_cols) > 0:
            profile['descriptive_stats'] = data[numeric_cols].describe().to_dict()
            if self.include_correlations:
                profile['correlation_matrix'] = data[numeric_cols].corr().round(3).to_dict()
        
        logger.info("Profiling completed successfully")
        return profile
```

## Best Practices

- ✅ Always validate your implementation on test data
- ✅ Document your assumptions and methodology
- ✅ Use version control for reproducibility
- ✅ Monitor performance metrics in production
- ✅ Periodically review and update your approach
- ✅ Test with edge cases and outliers
- ✅ Log all significant operations for debugging

## Common Pitfalls

| Pitfall | Problem | Solution |
|

---

---

## Constraints

### MUST DO
- Validate all data preprocessing steps are fit-only on training data, never on validation or test sets
- Implement reproducible pipelines with fixed random seeds and deterministic operations where possible
- Report model performance with confidence intervals via bootstrapping or cross-validation across multiple runs
- Log all experiments with parameters, metrics, and artifacts using MLflow or equivalent tracking system

### MUST NOT DO
- Do not evaluate a model on the same data used for training — always hold out a proper test set
- Avoid overfitting to the validation set by limiting hyperparameter search iterations
- Never use features that can only be computed at inference time (look-ahead bias)
- Do not report single-run accuracy without statistical significance testing or error bars


## Live References

> Authoritative documentation links for this skill's domain. The model follows markdown links at load time to resolve external references and inline content.

- [Data Profiling — Wikipedia](https://en.wikipedia.org/wiki/Data_profiling)
- [dbt Data Quality Guide](https://docs.getdbt.com/docs/collaborate/guides/data-quality)
- [Great Expectations Documentation](https://docs.greatexpectations.io/)
- [ydata-profiling Library Docs](https://docs.profiling.ydata.ai/latest/)
- [Data Quality Best Practices (Gartner)](https://www.gartner.com/en/articles/data-quality-best-practices)

Attribution

paulpaspaulpas
View sourceMore from paulpas →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Twitter Algorithm Optimizer

Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

742580 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

662880 votes

Weather

Get current weather and forecasts (no API key required).

484900 votes
View all in data →