Loading...
Loading...
This skill should be used when users need to analyze CSV or Excel files, understand data patterns, generate statistical summaries, or create data visualizations. Trigger keywords include "analyze CSV", "analyze Excel", "data analysis", "CSV analysis", "Excel analysis", "data statistics", "generate charts", "data visualization", "分析CSV", "分析Excel", "数据分析", "CSV分析", "Excel分析", "数据统计", "生成图表", "数据可视化".
npx skill4agent add eosphoros-ai/db-gpt csv-data-analysisexecute_skill_script_filecsv_analyzer.py{
"skill_name": "csv-data-analysis",
"script_file_name": "csv_analyzer.py",
"args": {"input_file": "/path/to/data.csv or /path/to/data.xlsx"}
}text###KEY_START###...###KEY_END###html_interpretertemplate_pathcsv-data-analysis/templates/report_template.htmldatadata###KEY_START###...###KEY_END###CHART_DATA_JSON*_INSIGHTSEXEC_SUMMARYCONCLUSIONS<p><ul><li><strong><ol>LANG"en""zh"LANG"en"LANG"zh""zh"CHART_DATA_JSONLANGobservationpossible causesbusiness impactaction recommendationshtml_interpreter{
"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
or any auto-injected marker fields inCHART_DATA_JSON(handled automatically by the backend)data- Do NOT add any JavaScript code in
data- Do NOT omit the
parameter (omitting template_path will prevent charts from rendering!)template_path- 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 | Type | Required | Description |
|---|---|---|---|
| Text | Yes | Report language: |
| Text | Yes | Report title, e.g., "Sales Dataset Deep Analysis Report" |
| Text | Yes | Report subtitle, e.g., "Multi-dimensional Data Feature & Business Insight Mining" |
| HTML | Yes | Executive summary: overview of data scale, key findings, and conclusion preview |
| HTML | Yes | Numerical distribution feature interpretation: skewness, volatility, quantile ranges, dispersion |
| HTML | Yes | Relationship analysis & anomaly identification interpretation: correlations, linkages, outliers, structural relationships |
| HTML | Yes | Feature analysis & structural analysis interpretation: categorical structure, concentration, rankings, and group characteristics |
| HTML | Yes | Supplementary interpretation for the data anomaly overview section: discuss trends if time columns exist; discuss stratification differences and anomaly patterns if no time columns |
| HTML | Yes | Root cause inference, conclusions & recommendations body; must distinguish between "data evidence" and "reasonable speculation" |
Note:includescsv_analyzer.pymarker data blocks in its output. The backend automatically extracts and injects these into the template — they should not be passed in###CHART_DATA_JSON_START###...###CHART_DATA_JSON_END###. 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 thedataplaceholder — they do not need to be passed via placeholders.LANG
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)