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

csv-analyzerCSV 分析器

Agent Skill

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

总安装

4,679

周安装

201

GitHub Stars

11

下载量

1,640
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/casper-studios/casper-marketplace --skill csv-analyzer

简介

csv-analyzer 全面分析 CSV 数据并提供可视化洞察,支持异常检测与统计摘要生成。

  • 根据用户需求自动选择合适图表类型,涵盖概览、质量、分布与相关性分析场景。
  • 输出包含清洗建议、字段含义解释与导出格式说明的综合分析报告。
  • 处理敏感数据前应确认脱敏策略,禁止将原始数据写入非授权存储位置。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

CSV Analyzer

Overview

Comprehensive CSV data analysis and visualization engine. Run the script, then use this guide to interpret results and provide insights to users.

Quick Start

cd ~/.claude/skills/csv-analyzer/scripts
export $(grep -v '^#' /path/to/project/.env | xargs 2>/dev/null)
python3 analyze_csv.py /path/to/data.csv

Chart Selection Decision Tree

IMPORTANT: Choose charts based on what the user needs to understand:

What is the user trying to understand?
│
├── "What does my data look like?" (Overview)
│   └── Run with defaults → overview_dashboard.png
│
├── "Is my data clean?" (Quality)
│   └── Check: quality_score, missing_values, duplicates
│   └── Show: missing_values.png if problems exist
│
├── "What's the distribution?" (Single Variable)
│   ├── Numeric → numeric_distributions.png (histogram + KDE)
│   ├── Categorical → categorical_distributions.png (bar chart)
│   └── Time-based → time_series.png
│
├── "Are there outliers?" (Anomalies)
│   └── box_plots.png → points beyond whiskers are outliers
│
├── "How are variables related?" (Relationships)
│   ├── 2 numeric vars → correlation_heatmap.png
│   ├── 2-6 numeric vars → pairplot.png (scatter matrix)
│   ├── Numeric vs Categorical → violin_plot.png
│   └── All numeric → correlation_heatmap.png
│
└── "Can I predict X from Y?" (Predictive)
    └── correlation_heatmap.png → |r| > 0.5 suggests predictive power

How to Interpret Results (For Claude)

Quality Score Interpretation

ScoreGradeWhat to Tell User
90-100A"Your data is excellent quality - ready for analysis"
80-89B"Good quality data with minor issues worth noting"
70-79C"Moderate quality - address missing values before critical analysis"
60-69D"Significant quality issues - recommend data cleaning first"
<60F"Critical issues - data needs substantial cleaning"

Correlation Interpretation

\r\ValueStrengthWhat to Say
0.9 - 1.0Very Strong"X and Y are very strongly related - almost deterministic"
0.7 - 0.9Strong"X and Y have a strong relationship - X could help predict Y"
0.5 - 0.7Moderate"X and Y are moderately correlated - some predictive value"
0.3 - 0.5Weak"X and Y have a weak relationship - limited predictive power"
0.0 - 0.3Negligible"X and Y appear unrelated"

Sign matters:

  • Positive: "As X increases, Y tends to increase"
  • Negative: "As X increases, Y tends to decrease"

Skewness Interpretation

SkewnessDistribution ShapeRecommendation
< -1Heavy left tail"Most values are high, with some very low outliers"
-1 to -0.5Mild left skew"Slightly more low outliers than high"
-0.5 to 0.5Symmetric"Nicely balanced distribution - good for most analyses"
0.5 to 1Mild right skew"Slightly more high outliers than low"
> 1Heavy right tail"Most values are low, with some very high outliers. Consider log transform for modeling."

Outlier Assessment

When reporting outliers:

  • Few outliers (<1%): "A few extreme values that may warrant investigation"
  • Moderate outliers (1-5%): "Notable outliers - check if they're errors or genuine extremes"
  • Many outliers (>5%): "High outlier rate suggests either data issues or a non-normal distribution"

Insight Generation Framework

After running analysis, provide insights in this order:

1. Data Overview (Always)

"Your dataset has [rows] records and [cols] columns:
- [n] numeric columns: [list top 3]
- [n] categorical columns: [list top 3]
- Data quality score: [score]/100 ([grade])"

2. Key Findings (Pick most relevant)

If quality issues exist:

"I noticed some data quality concerns:
- [X]% missing values in [column] - [recommend: drop/impute/investigate]
- [N] duplicate rows detected - [recommend: keep first/remove all/investigate]"

If strong correlations found:

"Interesting relationships I found:
- [col1] and [col2] are strongly correlated (r=[value]) - [interpretation]
- This suggests [actionable insight]"

If outliers detected:

"I detected outliers in [columns]:
- [column]: [n] values beyond normal range ([min outlier] to [max outlier])
- These could be [data errors / genuine extremes / worth investigating]"

If skewed distributions:

"[Column] has a [right/left]-skewed distribution:
- Most values cluster around [median]
- But there are extreme values up to [max]
- For modeling, consider [log transform / robust methods]"

3. Recommendations (Based on findings)

FindingRecommendation
Missing >20% in column"Consider dropping this column or investigating why it's missing"
Missing <5% scattered"Safe to impute with median (numeric) or mode (categorical)"
High correlation (>0.9)"These columns may be redundant - consider keeping only one"
Many outliers"Use robust statistics (median instead of mean) or investigate data collection"
Highly skewed"Apply log transform before linear modeling"
Low quality score"Prioritize data cleaning before analysis"

Multi-Chart Dashboard Requests

When user asks for a "dashboard" or "comprehensive view":

# Generate all visualizations
python3 analyze_csv.py data.csv --format html --max-charts 10

Then present charts in this order:

  1. overview_dashboard.png - "Here's your data at a glance"
  2. correlation_heatmap.png - "Key relationships between variables"
  3. numeric_distributions.png - "How your numeric data is distributed"
  4. box_plots.png - "Outlier analysis"
  5. categorical_distributions.png - "Category breakdowns" (if applicable)

Command Reference

Basic Analysis

python3 analyze_csv.py data.csv

Full Report with All Charts

python3 analyze_csv.py data.csv --format markdown --max-charts 10

Quick Analysis (No Charts)

python3 analyze_csv.py data.csv --no-charts

Large Files (>100MB)

python3 analyze_csv.py huge.csv --sample 50000

Specific Date Columns

python3 analyze_csv.py data.csv --date-columns created_at updated_at

JSON for Programmatic Use

python3 analyze_csv.py data.csv --format json --no-charts

Custom Output Location

python3 analyze_csv.py data.csv --output-dir /path/to/project/.tmp/analysis

Chart Descriptions (For Explaining to Users)

ChartWhen to ShowHow to Describe
overview_dashboard.pngAlways for first look"Here's a bird's eye view of your data"
missing_values.pngIf missing data exists"This shows where your data has gaps"
numeric_distributions.pngWhen exploring distributions"This shows how your numeric values are spread out"
box_plots.pngWhen checking for outliers"The dots outside the boxes are potential outliers"
correlation_heatmap.pngWhen exploring relationships"Darker colors = stronger relationships"
categorical_distributions.pngFor category analysis"This shows the breakdown of your categories"
time_series.pngFor temporal data"Here's how your data changes over time"
pairplot.pngFor multivariate exploration"Each cell shows how two variables relate"
violin_plot.pngComparing groups"This shows how distributions differ across groups"

Common User Questions → Actions

User SaysAction
"Analyze this CSV"Run full analysis, show overview + key insights
"Is my data clean?"Focus on quality_score, missing values, duplicates
"Find patterns"Show correlation_heatmap, highlight strong correlations
"Are there outliers?"Show box_plots, list outlier counts per column
"Compare X across Y"Generate violin_plot for numeric X vs categorical Y
"Show me trends"Generate time_series if datetime column exists
"Create a dashboard"Generate all charts, present organized summary
"What should I clean?"List columns with missing >5%, duplicates, outliers

Output Locations

Charts are saved to:

  • Default: ~/.claude/skills/csv-analyzer/scripts/.tmp/csv_analysis/
  • Custom: Use --output-dir /path/to/project/.tmp/analysis

Always copy charts to user's project.tmp for visibility:

cp ~/.claude/skills/csv-analyzer/scripts/.tmp/csv_analysis/*.png /path/to/project/.tmp/csv_analysis/

Cost

Free - runs entirely locally using pandas, matplotlib, seaborn, scipy.

Dependencies

pip install pandas matplotlib seaborn scipy numpy

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.23%
按下载量换算594

Claude

30.97%
按下载量换算508

Cursor

18.42%
按下载量换算302

Gemini CLI

8.26%
按下载量换算135

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills