Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bytedance avatar

Byted Sol Excel Bill Discount

  • 8 installs
  • 411 repo stars
  • Updated August 4, 2026
  • bytedance/agentkit-samples

byted-sol-excel-bill-discount is a Claude skill that turns a billing Excel file into a formatted, total-verified bill discount pivot table.

About

A skill that processes an uploaded billing Excel file and generates a compliant 'bill discount overview' pivot table. A developer uses it to format dates, aggregate usage and amount fields, apply prescribed cell formatting, and validate that pivot totals match the source. It outputs an XLSX file that opens without an Excel repair prompt.

  • Generates a standard 'bill discount overview' pivot table from a billing Excel file
  • Formats dates, aggregates amounts, sets fonts/colors, and verifies totals
  • Produces an XLSX with no Excel repair prompt, compatible with Excel 2016+

Byted Sol Excel Bill Discount by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #500 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

byted-sol-excel-bill-discount capabilities & compatibility

Capabilities
excel pivot
Works with
excel
Use cases
data analysis
From the docs

What byted-sol-excel-bill-discount says it does

自动处理上传的账单Excel明细表,生成符合格式要求的"账单折扣总览"透视表,严格遵循指定的格式、数据保留、验证规则,生成的文件无Excel修复弹窗,兼容Excel 2016+。
SKILL.md
透视表原价总额 = 原表原价总额
SKILL.md
npx skills add https://github.com/bytedance/agentkit-samples --skill byted-sol-excel-bill-discount

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars411
Last updatedAugust 4, 2026
Repositorybytedance/agentkit-samples

What it does

Generate a formatted, total-verified 'bill discount overview' pivot table from a billing Excel file.

Who is it for?

generating a formatted, total-verified summary pivot from a billing Excel file

Skip if: cleaning or filtering the source data, which it is forbidden from doing

When should I use this skill?

user uploads a billing Excel and asks for a bill overview or pivot table

What you get

A formatted bill discount overview pivot table is generated whose original, discounted, and payable totals match the source data.

  • XLSX file with a 'bill discount overview' pivot table named A年B月产品折扣账单.xlsx

By the numbers

  • 3 Python dependencies (pandas, xlsxwriter, openpyxl)
  • compatible with Excel 2016+
  • verifies 3 total sums (original, discounted, payable)

Files

SKILL.mdMarkdownGitHub ↗

Excel账单处理工具

功能说明

自动处理上传的账单Excel明细表,生成符合格式要求的"账单折扣总览"透视表,严格遵循指定的格式、数据保留、验证规则,生成的文件无Excel修复弹窗,兼容Excel 2016+。

使用方法

当用户上传账单Excel文件并要求处理时,直接调用本技能的处理脚本,传入输入文件路径即可:

python ~/.openclaw/skills/byted-sol-excel-bill-discount/process_bill.py <输入文件路径>

处理规则(严格遵循)

1. 工作表要求

  • 新建"账单折扣总览"透视表,放在最左侧位置
  • 完全保留原工作表所有内容和格式
  • 原工作表日期字段格式化:
  • 账务账期、业务账期 → YYYY-MM格式
  • 账务日期 → YYYY/MM/DD格式
  • 消费开始时间(UTC+8)、消费结束时间(UTC+8)、交易时间(UTC+8) → YYYY/MM/DD hh:mm:ss格式
  • 原工作表字体:等线11号,缩放90%

2. 透视表字段要求

从以下字段列表中筛选原表实际存在的字段,按原顺序排列,原表中缺失的字段无需在透视表中展示: 账务账期、Payer账号ID、Payer ID、Owner账号ID、账号 ID、产品、商品、计费模式、账单类型、配置名称、计费单元、单价、单价单位、优惠类型、优惠内容、用量、原价、折后价、代金券抵扣、应付金额

  • 用量、原价、折后价、代金券抵扣、应付金额中在原表存在的字段进行聚合求和
  • 所有配置名称、计费单元数据必须完整保留,不得缺失

3. 格式要求

  • 全部单元格:微软雅黑10号字体,缩放90%,所有单元格加边框
  • 首行(表头):填充#BDD7EE,加粗居中
  • 尾行(合计行):填充#D9D9D9,加粗居中
  • 金额字段(原价、折后价、代金券抵扣、应付金额):2位小数,千位分隔符,居右对齐
  • 用量字段:无千位分隔符,保留数值自然长度,无固定小数位数
  • 居中列:账务账期、计费模式、账单类型、单价、单价单位、优惠类型、优惠内容
  • 列宽自动适配:每列宽度 = (最长单元格字符宽度,中文计2单位/英文数字计1单位) × 1.1
  • 账务账期格式:YYYY-MM

4. 输出文件名规则

从"账务账期"字段解析生成:A年B月产品折扣账单.xlsx

  • 例:Feb-26 → A=26,B=2
  • 例:2026-02-01 → A=26,B=2

5. 文件规范要求

必须使用xlsxwriter生成文件,确保:

  • 打开无任何修复提示弹窗
  • 符合Office Open XML规范,无XML结构错误
  • 兼容Microsoft Excel 2016+

6. 数据处理原则

  • 保留所有原始数据,不删除任何行、不过滤任何内容
  • 禁止自动清洗数据,禁止判定脏数据,禁止删除特殊格式名称
  • 分组聚合时强制使用dropna=False,不忽略任何数据

7. 验证规则

生成前必须验证:

  • 透视表原价总额 = 原表原价总额
  • 透视表折后价总额 = 原表折后价总额
  • 透视表应付金额总额 = 原表应付金额总额
  • 验证不通过则提示"总额不一致,无法生成"

Related skills

FAQ

Will the output file trigger an Excel repair prompt?

No. It is generated with xlsxwriter to conform to Office Open XML and open cleanly in Excel 2016+.

Which amount fields are aggregated?

Usage, original price, discounted price, voucher deduction, and payable amount, where present in the source.

Office & Documentsfinancepayments

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.