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

csv-data-analysisCSV 数据 analysis

Agent Skill

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

总安装

285

周安装

12

GitHub Stars

18,611

下载量

1
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/eosphoros-ai/db-gpt --skill csv-data-analysis

简介

智能深度数据分析工具,基于 ECharts 和 Tailwind CSS 生成交互式报告。

  • 适用于需要快速发现数据模式、关联关系和趋势变化的复杂数据集分析。
  • 自动提取统计特征、离群点和时间序列规律,输出可视化图表和解读建议。
  • 支持 CSV 和 Excel 格式,大文件处理时建议限制分析维度保证性能。
  • csv-data-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Intelligent Deep Data Analysis Tool

The Data Analysis Tool is an AI-powered deep automated data exploration tool built on frontend visualization technologies (ECharts + Tailwind CSS). It rapidly extracts statistical features, data quality metrics, numerical distributions, outlier detection, categorical information, correlations, rankings, and time series trends. The latter half of the report supplements these with anomaly overviews, attribution clues, and summary recommendations, producing highly polished and interactive web-based analysis reports. Supported formats include CSV, Excel (.xlsx/.xls), and TSV.

The report follows a structure of "foundational data analysis in the first half, anomaly detection and attribution enhancement in the second half." Core sections include: Executive Summary, Data Overview & Quality Check, Numerical Distribution Features, Feature Analysis & Structural Analysis, Relationship Analysis & Anomaly Identification, Data Anomaly Overview, Attribution Analysis Module, Analysis Results & Statistical Details, Root Cause Inference / Conclusions / Recommendations.

Core Workflow (Required Reading for LLMs)

As an AI assistant, when a user uploads a CSV or Excel file and requests analysis, you must strictly follow these two steps:

Step 1: Extract Data Features (Execute Script)

Use the execute_skill_script_file tool to run csv_analyzer.py, passing in the data file path (supports.csv,.xlsx,.xls,.tsv formats).

Tool call parameter example:

{
  "skill_name": "csv-data-analysis",
  "script_file_name": "csv_analyzer.py",
  "args": {"input_file": "/path/to/data.csv or /path/to/data.xlsx"}
}

Script return explanation: The script returns a large block of text content containing two parts:

  1. [Statistical Summary]: For you to read and understand the dataset's basic characteristics, distributions, correlations, and categorical composition.
  2. [Marker-wrapped data blocks]: The script output contains marker data blocks in the format ###KEY_START###...###KEY_END###. The backend automatically captures and injects these into the template — you do not need to handle or pass this content.

Step 2: Generate Insights & Display Report (Inject into Template)

Read the "Statistical Summary" obtained in Step 1, and reason about the business significance or patterns behind the data. Then use the html_interpreter tool to load the template and inject data.

Critical Rules (Must Follow):

  1. You must set template_path to csv-data-analysis/templates/report_template.html. The template has built-in complete ECharts rendering JavaScript code and all section titles and footer text. You only need to fill in 9 content placeholders via the data parameter. Never write or modify any JavaScript chart rendering code yourself.
  2. Marker data blocks are automatically injected by the backend — you must not pass them in data. The backend automatically extracts content from ###KEY_START###...###KEY_END### markers in the script output and injects it into the template; in this skill, this is primarily CHART_DATA_JSON.
  3. ***_INSIGHTS, EXEC_SUMMARY, and CONCLUSIONS** must use HTML formatting (e.g., <p>, <ul>, <li>, <strong>, <ol>) to ensure proper layout. These are deep business insights you write based on the statistical summary.
  4. The output language must match the user's input language. You must also pass the LANG placeholder ("en" or "zh") so that the template's hardcoded section titles, labels, and footer text are displayed in the matching language. Detect language from the user's query: if the user writes in English, set LANG to "en"; if the user writes in Chinese, set LANG to "zh". Default to "zh" when uncertain.
  5. Pass exactly 9 placeholders — no more, no less. Auto-injected marker fields like CHART_DATA_JSON are handled by the backend and should not be passed by you. The template already hardcodes all section titles (Distribution Analysis, Correlation Analysis, etc.), insight box titles ("Insights"), and footer text — you do not need to pass these (the template will automatically translate them based on the LANG placeholder).
  6. Insight content must be substantive. Each insight module should cover 4 layers of information: observation, possible causes, business impact, and action recommendations. Do not merely restate statistical values or write only a few vague conclusions.
  7. Foundational analysis first, attribution as an enhancement module. The first half of the report must focus on analyzing the data features of the CSV itself, including numerical distributions, categorical structures, outliers, correlations, ranking patterns, etc., and should incorporate chart interpretations wherever possible. "Data Anomaly Overview," "Attribution Analysis," and "Root Cause Inference" should appear in the second half as enhancement modules — the entire report must not consist solely of attribution content.

html_interpreter call example:

{
  "template_path": "csv-data-analysis/templates/report_template.html",
  "data": {
    "LANG": "en",
    "REPORT_TITLE": "Sales Dataset Deep Analysis Report",
    "REPORT_SUBTITLE": "Multi-dimensional Data Feature & Business Insight Mining",
    "EXEC_SUMMARY": "<p>This dataset contains 1,000 rows and 5 columns with good data completeness. Key findings include:</p><ul><li><strong>Audience Distribution:</strong> Primarily concentrated in the 25-35 age group...</li></ul>",
    "DISTRIBUTION_INSIGHTS": "<p>The numerical distribution chart reveals that Metric A exhibits a pronounced right-skewed distribution, suggesting...</p>",
    "CORRELATION_INSIGHTS": "<p>The heatmap between variables reveals strong positive correlations, particularly between..., which implies...</p>",
    "CATEGORICAL_INSIGHTS": "<p>Category proportions show that Beijing and Shanghai account for over 50% of the 'City' field.</p>",
    "TIME_SERIES_INSIGHTS": "<p>The time series trend indicates a significant seasonal uptick toward year-end.</p>",
    "CONCLUSIONS": "<p>Based on the comprehensive multi-dimensional analysis, the data exhibits clear structural features and patterns.</p><h3>Recommendations</h3><ul><li>Regularly monitor missing value ratios...</li><li>Focus on high-growth market segments...</li></ul>"
  }
}
Strictly Prohibited: - Do NOT pass CHART_DATA_JSON or any auto-injected marker fields in data (handled automatically by the backend) - Do NOT add any JavaScript code in data - Do NOT omit the template_path parameter (omitting template_path will prevent charts from rendering!) - Do NOT return static PNG images — this tool has been fully upgraded to ECharts dynamic frontend rendering - Do NOT pass non-existent placeholders (the template only has the following 9 text placeholders + 1 auto-injected CHART_DATA_JSON; other names will be ignored)

Placeholder Reference (9 total, passed by LLM via data)

The placeholders you need to fill in the template are as follows:

PlaceholderTypeRequiredDescription
LANGTextYesReport language: "en" for English, "zh" for Chinese. Determines all section titles, labels, and footer text language. Detect from user's input language; default "zh"
REPORT_TITLETextYesReport title, e.g., "Sales Dataset Deep Analysis Report"
REPORT_SUBTITLETextYesReport subtitle, e.g., "Multi-dimensional Data Feature & Business Insight Mining"
EXEC_SUMMARYHTMLYesExecutive summary: overview of data scale, key findings, and conclusion preview
DISTRIBUTION_INSIGHTSHTMLYesNumerical distribution feature interpretation: skewness, volatility, quantile ranges, dispersion
CORRELATION_INSIGHTSHTMLYesRelationship analysis & anomaly identification interpretation: correlations, linkages, outliers, structural relationships
CATEGORICAL_INSIGHTSHTMLYesFeature analysis & structural analysis interpretation: categorical structure, concentration, rankings, and group characteristics
TIME_SERIES_INSIGHTSHTMLYesSupplementary interpretation for the data anomaly overview section: discuss trends if time columns exist; discuss stratification differences and anomaly patterns if no time columns
CONCLUSIONSHTMLYesRoot cause inference, conclusions & recommendations body; must distinguish between "data evidence" and "reasonable speculation"
Note: csv_analyzer.py includes ###CHART_DATA_JSON_START###...###CHART_DATA_JSON_END### marker data blocks in its output. The backend automatically extracts and injects these into the template — they should not be passed in data. All section titles in the template (e.g., "Distribution Analysis", "Correlation Analysis", "Conclusions & Recommendations"), insight box titles ("Insights"), and footer text are hardcoded in the HTML and are automatically translated based on the LANG placeholder — they do not need to be passed via placeholders.

Why Choose This Tool?

  1. Fast & Lightweight: No more slow Python plotting and bulk PNG generation — only core JSON data is transmitted.
  2. Modern Interactive Layout: Fully integrated with Tailwind CSS responsive layouts and Apache ECharts smooth animated interactions.
  3. Deep Business Insights: By separating machine-driven data extraction from LLM-driven logical reasoning, this tool produces highly valuable data analysis reports.

File Structure

csv-data-analysis/
├── SKILL.md                        # The skill guide you are currently reading
├── scripts/
│   └── csv_analyzer.py             # Python analysis engine (supports CSV/Excel/TSV, lightweight, no graphics dependencies)
└── templates/
    └── report_template.html        # Responsive ECharts report template (with built-in rendering logic and hardcoded titles)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.74%
按下载量换算0

Claude

28.66%
按下载量换算0

Cursor

19.92%
按下载量换算0

Gemini CLI

9.58%
按下载量换算0

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills