easy-tenpay-trades-to-excel

TSV/TXT to Excel print-optimized conversion: convert tab-separated text files (TSV/TXT) into print-friendly Excel files, addressing landscape print layout, auto column widths, non-wrapping currency/amount columns, and font size not smaller than 8pt. Suitable for converting structured text such as financial transaction records and data reports into formatted Excel.

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 "easy-tenpay-trades-to-excel" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38c2bb58072e18ede111d9414faa4bf98cb4b0d601b876e1270bd0beb5e9b6e0. Verify the upstream source and version against https://skillhub.cn/skills/user_36ba1bb9/easy-tenpay-trades-to-excel 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

TSV/TXT to Excel print-optimized conversion: convert tab-separated text files (TSV/TXT) into print-friendly Excel files, addressing landscape print layout, auto column widths, non-wrapping currency/amount columns, and font size not smaller than 8pt. Suitable for converting structured text such as financial transaction records and data reports into formatted Excel.

0 Downloads

Introduction source: third_party · user_36ba1bb9 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: easy-tenpay-trades-to-excel
description: "将制表符分隔的文本文件(TSV/TXT)转换为打印友好的 Excel 文件。此技能应在以下场景触发:用户需要将 TSV/TXT 数据文件转为 Excel,特别是要求横版打印布局、列宽自适应、金额列不换行、字号不小于8号等打印优化需求。适用于财务交易记录、数据报表等结构化文本的 Excel 格式化转换。"

TSV/TXT 转 Excel 打印优化

目的

将制表符分隔(Tab-separated)的文本数据文件转换为格式精美、适合 A4/A3 横版打印的 Excel 文件。自动识别金额、单号、卡号等列,对文本列启用换行收窄列宽,对金额/编号列保持不换行,确保打印后字号清晰可读。

何时使用

当用户提出以下需求时触发:

  • 将 TXT / TSV 文件转为 Excel(.xlsx)
  • 数据文件需要打印友好的格式化
  • 要求横版布局、列宽收窄、金额不换行等打印优化
  • 财务交易记录、数据报表等结构化文本的格式化转换

工作流程

1. 读取源文件

读取用户指定的 TSV/TXT 文件,确认编码为 UTF-8,分隔符为制表符(\t)。首行为表头,后续行为数据。

2. 执行转换脚本

使用 scripts/txt_to_excel.py 执行转换:

python3 {skill_dir}/scripts/txt_to_excel.py {输入文件} {输出文件} [--paper A4|A3] [--font-size 9]

参数说明:

  • {输入文件}:源 TSV/TXT 文件路径(必填)
  • {输出文件}:输出 XLSX 文件路径(必填)
  • --paper:纸张大小,A4 或 A3,默认 A4
  • --font-size:字号,最小 8,默认 9

{skill_dir} 为本 skill 的目录路径,即 ~/.codebuddy/skills/txt-to-excel。

3. 验证输出

确认输出文件已生成,检查行数、列数是否符合预期。

4. 格式微调(按需)

若用户对列宽、字号、纸张等有额外要求,可在脚本执行后使用 openpyxl 进行微调,或调整脚本参数重新执行。

转换特性

特性 说明
页面方向 横版(landscape)
纸张 A4(默认)/ A3 可选
缩放 适应1页宽,页高不限
字号 默认9号,最小8号
金额列 自动识别(含"金额""余额"关键字),不换行、右对齐、加粗
编号列 自动识别(含"单号""卡号""ID""编号"关键字),不换行
文本列 允许换行,列宽收窄(上限18字符宽)
表头 蓝底白字,居中,冻结首行
数据行 隔行浅蓝底色,自动筛选器
页边距 上下0.3cm,左右0.25cm

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决财务交易记录、数据报表等结构化文本的 Excel 格式化转换,具有明确的实际使用场景
  • 支持打印优化特性(横版布局、列宽自适应、金额列不换行等),提升日常数据处理效率
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖 TSV/TXT 转 Excel、打印友好、横版布局等多种变体,边界清晰
Structure and Standards92/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter 完整,文档结构规范
Execution Reliability68/100

Areas to improve

  • 异常处理缺失 Reported severity: Major

    未提及文件不存在、编码错误、权限问题等主要异常的处理机制

    Recommendation: 建议在脚本中添加 try-catch 异常处理,并对用户输入进行校验,确保执行可靠性

Highlights

  • 工具来源明确(scripts/txt_to_excel.py),参数说明清晰,输出验证步骤完整
Evidence Verifiability (mean of the first four)81/100

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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.