shdskill11

Extracts invoice numbers from PDF files or detail sheets, matches them with undeducted invoice data exported from the e-tax bureau, and automatically generates an import template for invoice deduction selection. Intended for company finance staff to batch-process VAT special invoice deduction selections.

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 "shdskill11" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f3ad998dcdb78667ff93c1607041a31c0bf134326f6db2d4b3d236546a01ebc2. Verify the upstream source and version against https://skillhub.cn/skills/user_9355e276/shdskill11 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 invoice numbers from PDF files or detail sheets, matches them with undeducted invoice data exported from the e-tax bureau, and automatically generates an import template for invoice deduction selection. Intended for company finance staff to batch-process VAT special invoice deduction selections.

0 Downloads

Introduction source: third_party · user_9355e276 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 根据发票号码写入发票抵扣勾选导入模板
description: 从PDF文件或明细表中提取发票号码,匹配电子税务局导出的未抵扣发票信息,自动生成发票抵扣勾选导入模板。适用于企业财务人员批量处理增值税专用发票抵扣勾选。
version: 1.0.0
author: WorkBuddy
tags: [发票, 税务, 抵扣勾选, 批量处理, 电子税务局, PDF提取, Excel]
category: 办公效率

根据发票号码写入发票抵扣勾选导入模板

功能概述

自动完成发票抵扣勾选导入模板的生成,核心流程分三步:

  1. 收集发票号码 — 从PDF发票文件提取 或 从Excel明细表导入
  2. 上传数据文件 — 电子税务局导出的"未抵扣发票信息" + "抵扣勾选导入模板"
  3. 自动匹配生成 — 号码匹配 → 数据填充 → 结果保存到桌面

触发方式

用户说出以下任一关键词即触发本技能:

  • "批量勾选模板"
  • "生成勾选模板"
  • "发票模板生成"
  • "发票抵扣勾选导入模板"

运行环境

  • Python 3.9+(需要 tkinter 支持)
  • 依赖:pandas, openpyxl, pdfplumber, pillow

一键安装依赖

pip install -r scripts/requirements.txt

启动方式

python scripts/main.py

或直接双击 scripts/ 目录中的 启动.bat(Windows)。

操作步骤

步骤1:获取发票号码

弹出"步骤 1/3 — 发票号码收集"窗口,提供两种方式:

方式 说明
上传PDF文件 选择一个或多个PDF发票文件,自动扫描提取20位数电发票号码
上传明细表 选择 Excel/CSV 文件,自动读取"数电发票号码"列
  • 提取结果自动去重,显示在列表中
  • 可手动勾选/取消勾选,支持全选/取消全选
  • 确认后点击"下一步"

步骤2:上传数据文件

弹出"步骤 2/3 — 上传文件"窗口,需上传两个文件:

  1. 未抵扣发票信息 — 从电子税务局「发票查询」导出(.xlsx/.xls)
  2. 抵扣勾选导入模板 — 从电子税务局「抵扣勾选」下载(.xlsx/.xls)

步骤3:自动匹配生成

点击"确定"后自动执行:

  • 发票号码匹配(主匹配字段:数电发票号码)
  • 按模板列顺序填充数据
  • 结果保存到桌面(文件名含时间戳)
  • 弹出结果统计窗口

文件结构

scripts/
├── main.py              # 主程序入口
├── number_manager.py    # 发票号码管理(PDF提取、Excel读取、去重)
├── template_generator.py # 模板生成核心(匹配、填充、保存)
├── ui_dialogs.py        # tkinter GUI 弹窗界面
├── config.yaml          # 配置文件
└── requirements.txt     # Python 依赖

常见问题

Q: PDF无法提取发票号码? A: PDF必须是电子发票(有文字层),扫描件/图片型PDF需要先OCR识别。

Q: 提示"无匹配结果"? A: 检查未抵扣发票信息文件中"数电发票号码"列是否包含目标号码,确认该发票状态为"未抵扣"。

Q: 生成的文件在哪里? A: 默认保存到桌面,文件名格式:抵扣勾选导入模板_YYYYMMDD_HHMMSS.xlsx

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 面向企业财务人员,解决增值税专用发票抵扣勾选的高频刚需痛点
  • 实现从PDF/Excel提取发票号码到自动生成电子税务局导入模板的端到端自动化
Trigger Precision85/100

Highlights

  • 触发词覆盖合理,包含多种常见表达方式,边界清晰
Structure and Standards90/100

Highlights

  • 三步流程清晰,含端到端示例,frontmatter完整,结构规范
Execution Reliability88/100

Highlights

  • 依赖明确,异常处理覆盖主要场景,用户确认机制完善
Evidence Verifiability (mean of the first four)89/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.

  • 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 37

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.

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.