jst-0720-batchinvoicing
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 "jst-0720-batchinvoicing" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-587348c2af2c03341398b94e09e41934be5185515bd69cf29f17d78dcdc54e92. Verify the upstream source and version against https://skillhub.cn/skills/user_8cc209f0/jst-0720-batchinvoicing 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
jst-0720-batchinvoicing is a batch invoicing tool designed for finance staff, suited to scenarios that require rapid processing of large numbers of invoice issuances. The tool automatically parses invoicing data provided by clients (such as company name, tax ID, amounts), verifies tax ID accuracy online, auto-corrects incorrect tax IDs or flags items for manual review, supports creating files from templates and auto-filling invoice basic and line-item details, and generates filled invoicing templates and tax ID verification reports. It is intended for corporate finance departments, bookkeeping firms, and similar scenarios requiring efficient, accurate batch invoicing.
Introduction source: third_party · user_8cc209f0 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "jst-0720-batchinvoicing"
description: 财务人员批量开票发票开具批量处理 Skill
简介
本Skill用于批量处理发票开具业务,将客户提供的开票信息(纯文字)自动解析并填入批量开票模板。
核心流程
用户上传开票信息
↓
解析公司名称、税号、金额
↓
🌐 联网校验税号
├─ 税号正确 → 正常填写
├─ 税号错误 → 标注错误,自动替换为正确税号
└─ 未查到/未提供 → 标注⚠️,需人工确认
↓
【从模板新建文件,不关联旧数据】
↓
填写发票模板(流水号从1重新编号)
↓
输出:已填写模板 + 税号校验报告
功能特性
- 1️⃣ 解析客户开票信息(名称、税号、金额)
- 2️⃣ 联网校验税号(通过公开商业数据库自动核实)
- 3️⃣ 自动纠正错误税号,标注需人工核实项目
- 4️⃣ 识别同一客户是否需要开具多张发票
- 5️⃣ 匹配模板对应字段
- 6️⃣ 填写发票基本信息(流水号、类型、含税标志)
- 7️⃣ 填写发票明细信息(项目名称、税收编码、税率)
- 8️⃣ 自动重命名输出文件
- 9️⃣ 生成税号校验报告(Excel格式)
输入文件
必需文件
| 文件类型 | 说明 | 匹配规则 |
|---|---|---|
| 客户开票信息 | 纯文字或Excel格式的开票需求 | *开票信息*, *发票*需求*, *客户* |
| 开票模板 | 批量开票导入模板 | *批量开票*.xlsx, *导入开票模板*.xlsx |
可选文件
| 文件类型 | 说明 |
|---|---|
| 税收编码表 | 商品和服务税收编码对照表 |
输出文件
| 文件类型 | 说明 |
|---|---|
| 已填写的开票模板 | 重命名后批量开票模板,文件名格式:批量开票_{发票类型}_{品目}_{YYYYMMDD}_{N}条.xlsx |
| 税号校验报告 | Excel格式,包含每家公司的校验状态、处理方式、错误纠正详情 |
税号校验规则(v4新增)
| 校验结果 | 含义 | 处理方式 |
|---|---|---|
| ✅ 正确 | 联网查到税号与提供一致 | 正常填写 |
| ❌ 错误(已纠正) | 联网查到税号与提供不一致 | 自动用正确税号替换,报告中标红原错误税号 |
| ⚠️ 未查到/异常 | 公开渠道未查到该公司 | 保留原税号,标注⚠️请人工核实 |
| ⚠️ 未提供税号 | 开票信息中无税号 | 留空,标注⚠️请人工补充 |
数据映射规则
表1-发票基本信息
| 模板字段 | 数据来源 | 说明 |
|---|---|---|
| 发票流水号 | 自动生成 | 格式:FP+日期+序号 |
| 发票类型 | 用户指定/默认专票 | 增值税专用发票/普通发票 |
| 购买方名称 | 客户信息-名称 | 客户全称 |
| 购买方纳税人识别号 | 客户信息-税号 | 18位统一社会信用代码 |
| 是否含税 | 用户指定 | 默认"是" |
表2-发票明细信息
| 模板字段 | 数据来源 | 说明 |
|---|---|---|
| 发票流水号 | 关联表1 | 与表1一致 |
| 项目名称 | 客户信息-开票内容 | 如:咨询服务、技术服务等 |
| 商品和服务税收编码 | 自动匹配 | 根据项目名称匹配6位编码 |
| 税率 | 用户指定/自动匹配 | 常见:1%、3%、6%、9%、13% |
| 金额 | 客户信息-金额 | 不含税金额 |
商品税收编码参考
| 项目类型 | 税收编码 | 税率 |
|---|---|---|
| 咨询服务 | 3040201 | 6% |
| 设计服务 | 3040202 | 6% |
| 信息技术服务 | 3040501 | 6% |
| 技术服务 | 3040502 | 6% |
| 货物类-一般货物 | 1010100000000000000 | 13% |
| 建筑服务 | 3010000000000000000 | 9% |
| 运输服务 | 3010100000000000000 | 9% |
| 餐饮服务 | 3070400000000000000 | 6% |
| 住宿服务 | 3070201000000000000 | 6% |
使用流程
Step 1: 准备文件
将客户开票信息和开票模板放入 uploads/ 目录
Step 2: 运行处理(推荐使用含税号校验版本)
cd /workspace/projects/workspace/skills/invoice-generator
python3 scripts/process_invoice_v4.py uploads/开票信息.txt uploads/模板.xlsx outputs
重要:新流程(v4)会先联网校验每条税号,再填写模板,并输出
税号校验报告_日期.xlsx。如果只是想快速处理不需要校验,可用旧版:python3 scripts/process_invoice_simple.py uploads/开票信息.txt uploads/模板.xlsx outputs
Step 3: 获取结果
处理完成后,在 outputs/ 目录获取已填写的开票模板
⚠️ 重要:数据处理规则(每次必读)
每次收到的开票数据均为独立新数据,与历史数据无任何关联,不得与旧文件合并或追加。
具体要求:
- 每次从模板新建 — 直接复制原始模板文件写入,不基于任何旧输出文件
- 流水号始终从1重新编号 — 不继承、不连续
- 重复公司名视为新数据 — 同一公司再次出现也正常写入,不去重、不覆盖
- 文件命名含当天日期和条数 — 如
批量开票_普通发票_技术服务费_20260626_8条.xlsx
发票流水号生成规则
格式:FP{YYYYMMDD}{序号}
示例:
- FP20260624001
- FP20260624002
校验规则
纳税人识别号校验
- 长度:18位
- 格式:统一社会信用代码(18位)
金额校验
- 必须为正数
- 保留2位小数
文件类型配置
file_types:
- type: invoice_info
patterns:
- "*开票信息*"
- "*发票*需求*"
- "*客户*开票*"
- "*.txt"
- "*.xls"
- "*.xlsx"
- type: invoice_template
patterns:
- "*批量开票*.xlsx"
- "*导入开票模板*.xlsx"
- type: tax_code
patterns:
- "*税收编码*"
- "*商品编码*"
input_path: uploads
output_path: outputs
注意事项
- 仅支持数电发票:批量开票模板仅支持电子发票
- 专票必填税号:开具增值税专用发票时,购买方税号必填
- 文本格式输入:所有内容需以文本格式输入
- 含税标志:在明细信息表中根据实际业务填写
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决企业财务批量开票高频刚需场景
- 具备联网税号校验、自动纠错等实质性功能
- 完整端到端业务流程,显著提升开票效率
Highlights
- 触发词精准明确:'财务人员批量开票'
- description 位置正确且内容完整
- 边界清晰,不易误触
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构完整但缺少明确的适用场景说明章节
Recommendation: 建议增加 When to Use 章节,说明适用企业规模、开票量级等场景边界
Highlights
- Phase/步骤划分清晰,执行流程明确
- 包含完整端到端示例和 bash 命令
- frontmatter 完整,文档结构规范
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.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
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.
User discussion
No verified reviews yet.