自动化 Excel 报表生成工具,支持从多种数据源生成专业的 Excel 报告。
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionexcel-report-generatorExecute the skills CLI command in your project's root directory to begin installation:
Fetches excel-report-generator from wwwzhouhui/skills_collection and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate excel-report-generator. Access via /excel-report-generator in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
194
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
194
stars
自动化 Excel 报表生成工具,支持从多种数据源生成专业的 Excel 报告。
这个 Skill 可以帮助你:
从原始数据生成包含统计分析、透视表和可视化图表的综合报告。
示例请求:
定期生成标准化的业务报告,如销售报告、KPI 仪表板等。
示例请求:
将数据库查询结果或系统数据导出为格式化的 Excel 文件。
示例请求:
基于预定义的 Excel 模板填充动态数据。
示例请求:
从 CSV 生成报表:
请从 sales_data.csv 生成一个销售分析报表,包含:
- 按产品分类的销售汇总
- 月度销售趋势图
- Top 10 产品排名
从 DataFrame 生成报表:
我有一个 pandas DataFrame,帮我生成 Excel 报表,包括:
- 数据透视表
- 条件格式高亮异常值
- 自动筛选和冻结首行
使用模板:
基于 templates/monthly_report.xlsx 模板,填充当月数据并生成报告
当用户请求生成 Excel 报表时,遵循以下步骤:
import pandas as pd
from openpyxl import load_workbook
from openpyxl.styles import Font, PatternFill, Alignment
from openpyxl.utils.dataframe import dataframe_to_rows
# 读取数据
df = pd.read_csv('data.csv')
# 或从数据库
# df = pd.read_sql(query, connection)
# 数据清洗和转换
df_clean = df.dropna()
# 统计分析
summary = df.groupby('category').agg({
'sales': ['sum', 'mean', 'count'],
'profit': 'sum'
})
# 使用 pandas ExcelWriter
with pd.ExcelWriter('output.xlsx', engine='openpyxl') as writer:
# 写入原始数据
df_clean.to_excel(writer, sheet_name='Raw Data', index=False)
# 写入汇总数据
summary.to_excel(writer, sheet_name='Summary')
# 获取 workbook 进行格式化
workbook = writer.book
worksheet = writer.sheets['Summary']
# 标题样式
header_font = Font(bold=True, color='FFFFFF')
header_fill = PatternFill(start_color='4472C4', end_color='4472C4', fill_type='solid')
# 应用样式到标题行
for cell in worksheet[1]:
cell.font = header_font
cell.fill = header_fill
cell.alignment = Alignment(horizontal='center')
# 列宽自动调整
for column in worksheet.columns:
max_length = 0
column_letter = column[0].column_letter
for cell in column:
if len(str(cell.value)) > max_length:
max_length = len(str(cell.value))
worksheet.column_dimensions[column_letter].width = max_length + 2
from openpyxl.chart import BarChart, Reference
# 创建图表
chart = BarChart()
chart.title = "Sales by Category"
chart.x_axis.title = "Category"
chart.y_axis.title = "Sales"
# 数据引用
data = Reference(worksheet, min_col=2, min_row=1, max_row=10)
categories = Reference(worksheet, min_col=1, min_row=2, max_row=10)
chart.add_data(data, titles_from_data=True)
chart.set_categories(categories)
# 添加到工作表
worksheet.add_chart(chart, "E5")
from openpyxl.formatting.rule import ColorScaleRule, CellIsRule
# 色阶格式
worksheet.conditional_formatting.add(
'B2:B100',
ColorScaleRule(start_type='min', start_color='FF6347',
mid_type='percentile', mid_value=50, mid_color='FFFF00',
end_type='max', end_color='90EE90')
)
# 基于规则的格式
red_fill = PatternFill(start_color='FFC7CE', end_color='FFC7CE', fill_type='solid')
worksheet.conditional_formatting.add(
'C2:C100',
CellIsRule(operator='lessThan', formula=['0'], fill=red_fill)
)
from openpyxl.worksheet.datavalidation import DataValidation
# 下拉列表
dv = DataValidation(type="list", formula1='"优秀,良好,一般,较差"', allow_blank=True)
worksheet.add_data_validation(dv)
dv.add('D2:D100')
# 添加求和公式
worksheet['B11'] = '=SUM(B2:B10)'
# 添加平均值公式
worksheet['C11'] = '=AVERAGE(C2:C10)'
openpyxl 的 write_only 模式xlsxwriter 引擎处理复杂图表和格式try:
df = pd.read_csv('data.csv')
except FileNotFoundError:
print("数据文件不存在")
except pd.errors.EmptyDataError:
print("数据文件为空")
from datetime import datetime
# 使用时间戳避免文件覆盖
timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
filename = f'sales_report_{timestamp}.xlsx'
# 检查必需列
required_columns = ['date', 'product', 'sales']
if not all(col in df.columns for col in required_columns):
raise ValueError(Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Solid pick for teams standardizing on skills: excel-report-generator is focused, and the summary matches what you get after install.
We added excel-report-generator from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
excel-report-generator is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in excel-report-generator — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend excel-report-generator for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Registry listing for excel-report-generator matched our evaluation — installs cleanly and behaves as described in the markdown.
excel-report-generator fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
excel-report-generator reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: excel-report-generator is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for excel-report-generator matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 35