with one click
Excel 操作策略指南 - 所有操作使用 Python
npx skills add https://github.com/hlbbbbbbb/No-worries --skill excel-strategyCopy and paste this command into Claude Code to install the skill
Excel 操作策略指南 - 所有操作使用 Python
npx skills add https://github.com/hlbbbbbbb/No-worries --skill excel-strategyCopy and paste this command into Claude Code to install the skill
| name | excel-strategy |
| description | Excel 操作策略指南 - 所有操作使用 Python |
| globs | ["**/*.xlsx","**/*.xls"] |
┌─────────────────────────────────────────────────────┐
│ Python + openpyxl = 所有 Excel 操作 │
└─────────────────────────────────────────────────────┘
| 操作类型 | 使用库 |
|---|---|
| 读取数据 | openpyxl / pandas |
| 美化/格式化 | openpyxl |
| 数据处理 | pandas + openpyxl |
| 图表生成 | openpyxl.chart |
| 批量操作 | pandas |
| 用户请求 | 使用方式 |
|---|---|
| "查看数据"、"看一下" | Python 读取 |
| "搜索"、"找" | pandas 筛选 |
| "美化"、"排版" | Python openpyxl |
| "修改"、"改一下" | Python openpyxl |
| "加粗"、"颜色"、"边框" | Python openpyxl |
| "格式化"、"货币" | Python openpyxl |
| "图表"、"统计图" | Python openpyxl.chart |
| "公式"、"计算" | Python openpyxl |
| "合并"、"拆分" | Python openpyxl |
用户请求 Excel 操作
↓
1. 获取文件路径(用户提供或从对话中获取)
↓
2. 判断是只读还是修改?
↓
只读 → 直接读取并展示
修改 → 先复制再改(原文件不动)
↓
3. Python + openpyxl 处理
↓
4. 汇报:做了什么 + 文件在哪里
用户: "帮我看看这个表格有什么"
Python 读取文件,输出数据摘要
用户: "帮我美化这个表格"
1. 复制原文件 → 新文件
2. Python + openpyxl 执行美化
3. 告诉用户:"✅ 美化完成!保存在 xxx_美化版.xlsx"
python3 << 'EOF'
import shutil
from openpyxl import load_workbook
from openpyxl.styles import Font, PatternFill, Border, Side, Alignment
# 复制原文件(第一次修改时)
original_path = '/path/to/原文件.xlsx'
new_path = '/path/to/原文件_美化版.xlsx'
shutil.copy(original_path, new_path)
# 在副本上修改
wb = load_workbook(new_path)
ws = wb.active
# 边框样式
thin_border = Border(
left=Side(style='thin'),
right=Side(style='thin'),
top=Side(style='thin'),
bottom=Side(style='thin')
)
# 标题样式
header_fill = PatternFill(start_color='4472C4', end_color='4472C4', fill_type='solid')
header_font = Font(name='SimSun', size=12, bold=True, color='FFFFFF')
# 应用样式
for cell in ws[1]:
cell.font = header_font
cell.fill = header_fill
cell.border = thin_border
wb.save(new_path)
print(f'✅ 美化完成!')
print(f'新文件:{new_path}')
print(f'原文件保持不变:{original_path}')
EOF
Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user CANNOT see CLI output - this tool is the ONLY way to communicate with them.
数据分析专业指南。当用户提到"分析"、"看看"、"查看"、"统计"、"计算"、"图表"、"报表"、"数据"、"趋势"、"对比"、"汇总"、"平均"、"占比"、"增长"等任何数据相关词汇时必须加载。包含统计方法选择、加权平均计算、数据质量检查、业务洞察提取等最佳实践。适用于 Excel、CSV 等所有数据源的专业分析。
Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.
Word automation using Python + python-docx. Generate, read, and modify Word documents (.docx) with proper formatting.
首次激活时的苏醒仪式。当检测到 IDENTITY.md 为空或默认值时触发,引导用户为 agent 取名并建立交流基调。这是最高优先级的流程,必须在任何任务之前完成。
PDF 文件操作技能。使用内置 Python 库读取、提取、生成 PDF。支持表格提取、文本读取、PDF 合并/拆分等。