Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/csv-data-analyzer
Load, explore, clean, and analyze CSV data with statistical summaries
Passed 18 of 23 test cases with the skill, and 14 of 23 without it.
and 3 more in the full report
5 fixed13 passed either way4 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
When calculating initial data profile metrics for a loaded tabular dataset in memory, in what unit of measurement should the memory footprint be reported?
| Checked | Without skill | With skill |
|---|---|---|
| Calculates memory footprint in megabytes by dividing deep memory usage bytes by 1e6 | Missed | Passed |
The instructions your model reads when the skill loads.
A comprehensive skill for loading, exploring, cleaning, and analyzing CSV datasets within research workflows. Designed for researchers who need to quickly understand the structure, quality, and statistical properties of tabular data before conducting deeper analysis.
Research datasets commonly arrive as CSV files from instrument exports, survey platforms, government repositories, and collaborator handoffs. This skill provides a structured approach to the entire CSV analysis pipeline: ingestion, profiling, quality assessment, cleaning, transformation, and summary statistics. It emphasizes reproducibility by generating audit logs of every transformation applied to the raw data.
The skill supports datasets of varying complexity, from single-table survey results to multi-file longitudinal study exports with hundreds of columns. It works with standard Python data science libraries (pandas, numpy, scipy) and produces outputs suitable for inclusion in methods sections and supplementary materials.
import pandas as pd
import numpy as np
def load_and_profile_csv(filepath: str, encoding: str = 'utf-8') -> dict:
"""
Load a CSV file and generate an initial data profile.
Handles common encoding issues and delimiter detection.
"""
# Try multiple encodings if default fails
encodings = [encoding, 'latin-1', 'utf-8-sig', 'cp1252']
df = None
for enc in encodings:
try:
df = pd.read_csv(filepath, encoding=enc, low_memory=False)
break
except (UnicodeDecodeError, pd.errors.ParserError):
continue
if df is None:
raise ValueError(f"Could not parse {filepath} with any supported encoding")
profile = {
'rows': len(df),
'columns': len(df.columns),
'memory_mb': df.memory_usage(deep=True).sum() / 1e6,
test cases passed, vs 14 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.