execl
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "execl" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4eb0b850a248a6ab01085ad78cb5e3d46070240365741547e7b70977bbdb59bb. Verify the upstream source and version against https://skillhub.cn/skills/user_b687eed0/execl before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Extracts item details from supermarket receipt images and generates an Excel spreadsheet following specified column headers.
Introduction source: third_party · user_b687eed0 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: receipt-to-excel
description: "从超市购物小票图片中提取商品明细,并按指定表头生成 Excel 表格。"
agent_created: true小票转 Excel
从超市购物小票图片中提取商品明细,生成格式化的 Excel 表格,表头固定为:品名、单价、数量、金额。
触发场景
- 用户上传小票图片并要求"做成表格"
- 用户要求从小票提取商品明细
- 用户说"继续"处理新的小票图片
处理流程
- 读取图片:直接查看图片中的文本内容。
- 识别字段:小票通常包含以下列(按输出顺序):
- 品名 / 商品名称
- 单价(零售/促销)
- 数量(重量/件数)
- 金额
- 统一单位:
- 若数量以克(g)显示,如
19734,转换为千克1.9734。 - 若数量已是千克/件,如
0.972、4,保持原样。
- 若数量以克(g)显示,如
- 确定单价:
- 若小票有"促销价"且低于"零售价",使用促销价作为单价。
- 否则使用零售价。
- 若小票直接给出"单价"列(如夏商民兴小票),直接使用该列数值。
- 处理退款/负数量:
- 若小票中出现数量为负数(如
-1)或金额为负数的退货记录,按原样提取到表格中,保持数量为负、金额为负。
- 若小票中出现数量为负数(如
- 处理手写/非标准清单:
- 若图片是手写销售清单(如"洋塘冻品销售清单"),按表格列标题直接读取:品名及规格、数量、单价、金额。
- 无法识别的手写字迹应标注不确定性,必要时请用户确认。
- 生成 Excel:使用 openpyxl 创建表格,按顺序写入表头
品名、单价、数量、金额和提取的数据行。 - 格式化:
- 表头加粗、白字、蓝底、居中。
- 数字列右对齐,保留两位小数。
- 品名列左对齐,自动列宽。
- 输出文件:保存到用户选择的工作目录,文件名为
小票明细.xlsx。若文件已存在,则自动递增命名为小票明细_2.xlsx、小票明细_3.xlsx等,直至找到不重复的文件名。
依赖
- Python 3.x
- openpyxl(安装命令:
pip install openpyxl --break-system-packages)
示例数据
items = [
["大白菜[称重]", 3.76, 1.9734, 7.42],
["西红柿[称重]", 8.26, 1.7424, 14.39],
]
注意事项
- 商品价格单位为"元/千克"或"元/件",金额单位为"元"。
- 若小票中没有某列(例如没有促销价),对应单价为空。
- 如果图片模糊或字段无法识别,应告知用户并列出不确定项。
- 文件保存位置为用户当前选择的工作目录,确保用户能直接访问生成的 Excel 文件。
输出文件
小票明细.xlsx(或递增命名如小票明细_2.xlsx、小票明细_3.xlsx等)- 保存位置:用户选择的工作目录
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决用户日常高频需求:整理购物小票商品明细
- 具有明确实用价值和广泛受众
- 功能闭环完整,从图片识别到 Excel 生成
Areas to improve
-
触发词可更具体 Reported severity: Minor
当前触发场景描述较为基础,可补充更多用户可能使用的表达变体
Recommendation: 增加如'导出表格'、'整理小票'、'制作清单'等常见表达方式
Highlights
- 触发场景描述清晰,覆盖主要使用场景
- 边界较清晰,不易与其他 Skill 混淆
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但缺少明确的使用时机说明章节
Recommendation: 增加 When to Use 章节,说明适用的小票类型和使用前提
Highlights
- 处理流程步骤清晰完整,共9个详细步骤
- 提供端到端示例数据结构
- frontmatter 信息完整规范
Areas to improve
-
未明确说明图片格式支持范围 Reported severity: Minor
未说明支持哪些图片格式(如 JPG/PNG/PDF 等)
Recommendation: 明确列出支持的文件格式,避免用户上传不支持的格式
Highlights
- 工具依赖明确,提供具体安装命令
- 涵盖多种异常情况处理:单位转换、促销价判断、退款处理
- 文件保存有递增命名机制,避免覆盖用户文件
- 对模糊图片和手写识别有不确定性提示机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 47
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.