customs-declaration

For customs declaration and import/export clearance procedures. Accepts customs-related documents (supports Excel, Word, PDF, images, and zip archives), such as contracts, invoices, packing lists, and declaration forms, and outputs a standard customs declaration PDF file.

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 "customs-declaration" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-02cf2d5bbba8637792cca502f4d47e8df29220e487024ffdd9aa10e4484a22ca. Verify the upstream source and version against https://skillhub.cn/skills/user_218a2ec4/customs-declaration 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

For customs declaration and import/export clearance procedures. Accepts customs-related documents (supports Excel, Word, PDF, images, and zip archives), such as contracts, invoices, packing lists, and declaration forms, and outputs a standard customs declaration PDF file.

0 Downloads

Introduction source: third_party · user_218a2ec4 · 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: 报关制单-customs-declaration
description: "当用户需要做商品报关、生成报关单、处理进出口货物通关手续时使用本技能。输入合同、发票、装箱单、报关单等报关资料文档(支持 Excel、Word、PDF、图片、压缩包),输出标准报关单 PDF 文件。"
tags: [customs-declaration, Cross-border-e-commerce, import-and-export-goods]
version: 0.2.0731

进出口商品报关

何时使用:

当用户提到下列意图时,使用本技能:

  • 需要做商品报关操作,或需要生成报关单,或报关单AI制单
  • 出口货物报关
  • 进口货物报关

支持的文件格式:

.doc .docx .xls .xlsx .pdf .png .jpg .jpeg .zip .rar .7z

若用户上传的文件不在上述格式中,提醒用户转换为支持的格式后重新上传。

数据隐私提醒:

在调用脚本前,需告知用户:上传的报关资料文档将通过网络传输至小麦云服务端进行处理,请确认文档中不包含非报关所需的敏感信息。

处理流程:

  1. 如果用户没有上传任何文件,提醒用户:请上传需要报关的商品信息,比如发票、装箱单、合同、报关单等文档(表格、PDF、图片、压缩包都可以);

    如果用户上传了文件,从对话上下文中定位用户上传文件的绝对路径(host 以 <local_files>/<active_document> 形式;这个路径将作为运行 python 脚本的 --file_path 参数。

    若有多个文件,提醒用户:请压缩成一个 .zip 文件后再上传。

  2. 分析用户的意图是出口还是进口报关。

    如果是要做进口商品报关,则运行 python 脚本的 --ie_type 参数需要传递 I,表示 import 进口的报关单。

    如果是出口报关或没有提到是进口还是出口,则默认是出口报关,不用传递 --ie_type 参数。

    如果用户表达错误或想同时做出口和进口报关,则提醒用户一次只能选一种报关模式。

  3. 调用 python 脚本,建议通过 --output 参数指定输出 PDF 的保存路径(保存到当前工作目录下即可),例如:

python scripts/declare.py --file_path=D:\Downloads\发票.pdf --output=.\报关单.pdf
  1. 可以像黑盒一样调用这个 python 脚本,不用展开读取 python 脚本内容。

  2. 脚本大概需要 20 秒~5 分钟完成,完成后会生成一张报关单 PDF 文件,呈现这个 PDF 文件给用户。

    脚本运行期间,可以向用户说明:正在处理报关单,通常需要 30秒~5 分钟,请耐心等待。

异常处理:

场景 处理方式
脚本输出 ERROR: 找不到输入文件 检查文件路径是否正确,重新定位文件绝对路径后重试
脚本输出 ERROR: 不支持的文件类型 提醒用户支持的文件格式,请用户转换格式后重新上传
脚本输出 ERROR: 免费次数超限 提醒用户如下内容:<br/>尊敬的用户,您好,您使用该技能已达免费上限,如需要更加全面的AI报关智能制单等服务,请注册并登陆“小麦云跨境智能综服平台”(https://ai.szxmytech.com),您将得到更加优质全面的服务,谢谢!
脚本输出 ERROR: 请求超时 或 ERROR: 无法连接服务器 告知用户网络异常,建议检查网络后稍后重试
脚本输出 ERROR: 服务繁忙 告知用户服务端繁忙,建议稍后重试
脚本输出 ERROR: 报关单生成超时 告知用户处理超时,可能因文档内容复杂或服务排队,建议稍后重试
脚本输出 ERROR: 服务器返回错误 或 `ERROR: 报关处理失败 告知用户服务端异常,建议稍后重试或联系客服
脚本发生其他未知错误 将脚本的 ERROR 输出转述给用户,建议稍后重试

脚本用法示例:

# 出口报关(默认)
python scripts/declare.py --file_path=D:\Downloads\发票.pdf --output=.\报关单.pdf

# 进口报关
python scripts/declare.py --file_path=D:\Downloads\进口发票.pdf --ie_type=I --output=.\进口报关单.pdf

输入参数

参数名称 是否必需 参数描述 样例
file_path 是 用户上传的报关资料绝对路径。
ie_type 否 进出口标识。取值只有两个:"E" 或 "I","E" 代表 export 出口,"I" 代表 import 进口,默认为 "E" "E"
output 否 输出 PDF 文件的保存路径。未指定时保存到当前目录,文件名格式为 报关单_{job_id}.pdf .\报关单.pdf

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 解决进出口商品报关这一明确商业场景,具有实际业务价值
  • 支持多种文件格式输入,输出标准报关单PDF,功能闭环完整
Trigger Precision80/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    缺少'海关申报'、'通关手续'等常见变体表达

    Recommendation: 补充更多报关相关触发词变体,提升触发覆盖率

Highlights

  • 核心触发词'商品报关''生成报关单'覆盖准确
  • 边界清晰,不易与其他技能混淆
Structure and Standards85/100

Areas to improve

  • 文档结构优化 Reported severity: Minor

    '何时使用'章节标题格式与其他章节不一致

    Recommendation: 统一使用'##'二级标题格式,保持文档结构一致性

Highlights

  • 处理流程步骤清晰,包含完整异常处理表格
  • 提供具体脚本调用示例,便于执行
Execution Reliability75/100

Areas to improve

  • 脚本文件验证缺失 Reported severity: Minor

    未明确说明scripts/declare.py文件是否存在或如何获取

    Recommendation: 增加脚本文件存在性验证步骤,或说明脚本来源

Highlights

  • 参数定义清晰,包含必需/可选参数说明
  • 异常处理覆盖全面,包含网络、服务端、文件等多种异常场景
Evidence Verifiability (mean of the first four)79/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.