Loading...
Loading...
Use when a user provides tabular business data (Excel/CSV) and wants market-facing, non-academic insights with unclear analysis direction, requiring automatic metric/dimension selection and actionable outputs.
npx skill4agent add gzsteven666/data-analyze data-analyze-refinedoutputs/# 默认输出到数据同级 outputs/
node src/index.js /path/to/data.xlsx --sheet "导出数据表" --core-dimension "申报企业名称" --value-column "协议采购量" --charts-mode on
# 自定义输出目录
node src/index.js /path/to/data.xlsx --sheet "工作表" --output-dir "/path/to/outputs"
# 图表策略:auto/on/off(默认 auto);截图需要时加 --enable-screenshotpip install -r requirements.txtnpm installpython3 src/main.py ...--sheet--core-dimension--value-column--target-brand| Field condition | Priority insights | Common charts |
|---|---|---|
| Time + numeric value | Trends, growth sources, volatility risk | Line chart, area chart |
| Region/city + numeric value | Regional opportunities, white spaces, regional concentration | Ranked bar chart, scatter/bubble chart |
| Channel + numeric value | Channel efficiency, channel white spaces, budget allocation | Grouped bar chart, funnel chart |
| Product/SKU + numeric value | Structural contribution, price bands, substitution opportunities | Stacked bar chart, Pareto chart |
| Customer/institution + numeric value | Key customer contribution, coverage depth, untapped customers | Ranked bar chart, distribution chart |
| Category only + numeric value | Share, concentration, TopN contribution | Bar chart, Pareto chart |
品牌/企业/厂家/供应商 -> 品牌名称地区/地市/区域 -> 城市目录/品类/类目 -> 产品大类数量/销量/订单量/GMV/金额/合同量/需求量/消耗量--value-columnoutputs/excel/数据分析汇总.xlsxoutputs/figures/{png,svg}outputs/html/market_analysis_infographic.htmloutputs/html/charts_gallery.htmloutputs/reports/<数据名>_分析报告.docx| Scenario | Key dimensions | Default insights |
|---|---|---|
| Sales/orders | City/channel/product | City opportunities, channel white spaces, mix/price bands, growth sources |
| Campaigns/leads | Channel/region | ROI, funnel conversion, channel efficiency, budget optimization |
| Tenders/bid wins | Region/institution/brand | Competitive landscape, concentration, white-space institutions, strategic paths |
| Excuse | Correction |
|---|---|
| “The data is incomplete, so I will not output anything” | First provide alternative insights, then clearly identify the gaps and recommend additional fields. |
| “Statistical tests are required for reliability” | Draw conclusions using business-basis comparisons and structural differences. |
| “Generating exactly three charts is safer” | The number of charts is determined by the insights; fewer is better than clutter. |
| “A one-sentence conclusion page is enough” | It must contain four sections: current state, insights, strategy, and risk. |
# 根据字段可用性选择洞察与图表(示意)
fields = {"日期", "城市", "渠道", "产品", "数量", "金额"}
insights = []
charts = []
if "城市" in fields and "数量" in fields:
insights.append("城市机会与白区")
charts.append("城市份额条形图/白区散点")
if "渠道" in fields and "金额" in fields:
insights.append("渠道效率与预算建议")
charts.append("渠道ROI条形图")
if "日期" in fields:
insights.append("增长来源与趋势")
charts.append("时间趋势折线")
report_sections = ["现状解读", "洞察体现", "未来策略", "风险分析"]src/main.pysrc/data_analyzer.pysrc/chart_generator.pysrc/infographic_generator.pysrc/screenshot_generator.pyreferences/playbook.mdexamples/