agentleFS
wwumitwwumit/skills-tools/skills/excel2insights/SKILL.md

excel2insights

Skill0 starsChanged 3 months agoMITView on GitHub

结构化数据(CSV/XLSX/XLS/TSV)分析与可视化工具:自动统计分析、数据质量检查、 可视化生成与结构化报告;支持 Quick Scan 与 Deep Analysis 两种模式,纯本地运行。 Use when: 用户需要分析表格数据、生成数据报告、检查数据质量、可视化探索数据集。 触发词:excel, csv, xlsx, 数据分析, 数据质量, 可视化, report

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use excel-reader.py to load the file.

    line 52
  2. Very specific:

    Use data-analyzer.py to compute:

    line 67
  3. Very specific:

    Use chart-generator.py to create charts:

    line 88
  4. Distinctive:

    All charts are saved as PNG files and embedded into the final report.

    line 98
  5. Very specific:

    Use report-generator.py to produce a comprehensive Markdown report containing:

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

⚠️ 免责声明:本工具为辅助性参考工具,不构成投资建议,不构成法律建议。市场有风险,投资需谨慎;据此操作,风险自担。正式合规意见请咨询具备资质的律师。最终决策与责任由使用者自行承担。 仅供学习研究参考;> 仅供参考,不构成任何操作依据;市场有风险,投资需谨慎,据此操作风险自担。

Excel2Insights

Overview

Excel2Insights is a data analysis and visualization tool designed for structured data (CSV, XLSX, XLS, TSV). It helps you quickly understand the contents of any tabular dataset through automated statistical analysis, data quality checks, visualization generation, and structured reporting.

The skill works in two modes:

  • Quick Scan — Load a file, preview shape/dtypes, descriptive stats, and missing values
  • Deep Analysis — Full pipeline: profile + clean + analyze + visualize + report

When to Use

  • You receive a CSV/XLSX and need to understand what's in it fast
  • You need a structured data quality report before further processing
  • You want to generate charts and summaries from tabular data
  • You need to compare two datasets or check for anomalies
  • You want to transform raw data into a readable insight report

Workflow

Step 1: Load & Inspect

Use excel-reader.py to load the file. The script returns:

  • File metadata (rows, columns, size)
  • Column names and dtypes
  • First/last 5 rows preview
  • Missing value count per column
  • Basic data quality flags
# Agent internally calls:
python3 scripts/excel-reader.py --file path/to/data.csv
# Output: structured JSON with metadata + preview

Step 2: Statistical Analysis

Use data-analyzer.py to compute:

  • Numeric columns: mean, median, std, min, max, quartiles, skewness
  • Categorical columns: value counts, unique count, mode, frequency distribution
  • Date columns: date range, gaps, frequency
  • Cross-column: correlation matrix (numeric), cross-tabulation (categorical)

Output is structured JSON grouped by column type.

Step 3: Data Quality Check

Built into the analysis phase:

  • Missing value ratio per column
  • Duplicate rows
  • Outlier detection (IQR method)
  • Data type inconsistencies
  • Value range violations

Flagged issues are included in the final report.

Step 4: Generate Visualizations

Use chart-generator.py to create charts:

  • histogram — distribution of numeric columns
  • boxplot — outliers and spread for numeric columns
  • bar — frequency counts for categorical columns
  • line — trends for date-indexed data
  • pie — proportion breakdown for categorical data
  • correlation heatmap — pairwise numeric correlation
  • scatter — relationship between two numeric columns
  • pairplot — pairwise scatter matrix (small datasets)

All charts are saved as PNG files and embedded into the final report.

Step 5: Generate Report

Use report-generator.py to produce a comprehensive Markdown report containing:

  • Executive summary
  • File overview (metadata + quality)
  • Column-by-column analysis
  • Charts gallery
  • Key insights and anomalies
  • Recommendations

The report is written to output/ directory.


Available Scripts

ScriptDescriptionUsage
scripts/excel-reader.pyLoad file, display metadata and previewpython3 scripts/excel-reader.py --file DATA
scripts/data-analyzer.pyFull statistical analysispython3 scripts/data-analyzer.py --file DATA [--output JSON_OUTPUT]
scripts/chart-generator.pyGenerate visualization chartspython3 scripts/chart-generator.py --file DATA [--charts CHART_TYPES] [--output DIR]
scripts/report-generator.pyGenerate markdown insight reportpython3 scripts/report-generator.py --file DATA [--charts DIR] [--output REPORT_PATH]
scripts/auto-pipeline.pyRun full pipeline (analyze + chart + report)python3 scripts/auto-pipeline.py --file DATA [--charts CHART_TYPES] [--output DIR]

Script Options

excel-reader.py

  • --file PATH — Path to Excel/CSV/TSV file
  • --sheet NAME — Sheet name (XLSX only, default: first sheet)
  • --encoding ENC — File encoding (default: utf-8)
  • --preview N — Preview rows count (default: 5)

data-analyzer.py

  • --file PATH — Path to data file
  • --output PATH — Output JSON path (optional)
  • --correlation — Include correlation matrix
  • --outliers — Enable outlier detection
  • --categorical-top N — Top N value counts (default: 20)

chart-generator.py

  • --file PATH — Path to data file
  • --charts CHART_TYPES — Comma-separated: histogram,boxplot,bar,line,pie,heatmap,scatter,pairplot
  • --columns COLS — Specific columns to visualize
  • --output DIR — Output directory (default: output/charts)
  • --theme THEME — Chart theme (default: clean)

report-generator.py

  • --file PATH — Path to data file
  • --analysis PATH — Pre-computed analysis JSON (optional)
  • --charts DIR — Charts directory (optional)
  • --output PATH — Output report path (default: output/report.md)
  • --format FORMAT — Output format: markdown, html, pdf

auto-pipeline.py

  • --file PATH — Path to data file (required)
  • --charts CHART_TYPES — Chart types (default: histogram,boxplot,bar,correlation)
  • --output DIR — Output directory (default: output/)
  • --format FORMAT — Report format (default: markdown)

Examples

Example 1: Quick scan a CSV file

Agent reads a CSV and runs the reader:

📄 File: sales_data.csv
   Rows: 10,000 | Columns: 15 | Size: 1.2 MB

📊 Column Overview:
   date        datetime64  non-null  10000
   product     object      non-null  10000
   category    object      non-null  9985    (0.15% missing)
   revenue     float64     non-null  10000
   quantity    int64       non-null  9990    (0.10% missing)

⚠  Data Quality Flags:
   - 2 columns with missing values (<1%) — acceptable
   - 12 duplicate rows detected (0.12%)

Example 2: Full deep analysis pipeline

Agent runs the auto-pipeline on a sales dataset:

python3 scripts/auto-pipeline.py --file data/sales_2024.csv --charts histogram,bar,line,heatmap

Output:

📈 Charts generated (4):
   output/charts/revenue_histogram.png
   output/charts/top_products_bar.png
   output/charts/monthly_trend_line.png
   output/charts/correlation_heatmap.png

📝 Report generated:
   output/report.md

🏆 Key Insights:
   - Top 3 products account for 62% of total revenue
   - July-September shows 28% seasonal dip
   - Region A has highest average order value ($245)
   - Customer repeat rate: 34% (improvement opportunity)

Example 3: Custom chart selection

python3 scripts/chart-generator.py --file data.csv --charts histogram,scatter --columns revenue,quantity,price

Output Format

Reports are structured Markdown with the following sections:

# Data Insight Report

## Executive Summary
...

## Dataset Overview
- Rows / Columns / File size
- Column types summary

## Data Quality
- Missing values table
- Duplicates
- Outliers

## Column Analysis (per column)
- Type-specific stats (numeric/categorical/date)
- Distribution summary
- Notable patterns

## Visualizations
- Embedded chart images
- Chart descriptions

## Key Insights
- Top findings ranked by importance
- Anomalies detected
- Recommendations

## Appendix
- Methodology notes
- Configuration used

Dependencies

  • Python 3.9+
  • pandas
  • numpy
  • openpyxl (for XLSX support)
  • matplotlib
  • seaborn (for advanced charts)
  • tabulate (for formatted tables)

See requirements.txt for exact versions.


License

MIT-0 (No Attribution Required)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.