Tariff Calculator Amazon logo

Tariff Calculator Amazon

Community
liangdabiao
tariff-calculator-amazon

面向亚马逊卖家的通用关税计算器。计算任何贸易路线的进口关税到岸成本和增值税/消费税。支持中国→美国、中国→欧盟、美国→欧盟、欧盟→美国、美国→中国及自定义原产国/目的国组合。包括301条款关税、贸易协定税率(USMCA、EVFTA)和HS编码查询。无需API密钥。

Overview

Publisherliangdabiao
RepositoryAmazon-Skills-Liang
Skill nametariff-calculator-amazon
Stars
99
Forks
20
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by liangdabiao on GitHub. Read the source before you install it.

Installation

Install the Tariff Calculator Amazon AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/liangdabiao/Amazon-Skills-Liang/tree/main/skills/tariff-calculator-amazon
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/liangdabiao/Amazon-Skills-Liang.git /tmp/Amazon-Skills-Liang
mkdir -p .claude/skills
cp -r /tmp/Amazon-Skills-Liang/skills/tariff-calculator-amazon .claude/skills/tariff-calculator-amazon
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tariff Calculator Amazon in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tariff Calculator Amazon on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tariff Calculator Amazon is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

关税计算器 — 亚马逊 💰

面向国际亚马逊卖家的通用关税和到岸成本计算器。

安装

bash
npx skills add nexscope-ai/eCommerce-Skills --skill tariff-calculator-amazon -g

功能

  • 通用贸易路线 — 任意原产国到任意目的国
  • 关税税率查询 — HS编码 → 税率
  • 301条款关税 — 中国进口商品的美国附加关税
  • 增值税/消费税计算 — 欧盟、英国、加拿大、澳大利亚、中国税率
  • 到岸成本 — 完整成本细分
  • HS编码匹配 — 产品描述 → HS编码建议
  • 贸易协定 — USMCA、EVFTA、RCEP优惠税率

支持的贸易路线

路线主要关税增值税/消费税
🇨🇳 → 🇺🇸 中国 → 美国301条款(7.5-25%)不适用
🇨🇳 → 🇪🇺 中国 → 欧盟标准关税19-22%
🇨🇳 → 🇬🇧 中国 → 英国标准关税20%
🇺🇸 → 🇪🇺 美国 → 欧盟标准关税19-22%
🇪🇺 → 🇺🇸 欧盟 → 美国标准关税不适用
🇺🇸 → 🇨🇳 美国 → 中国报复性关税13%增值税
🇨🇳 → 🇨🇦 中国 → 加拿大标准关税5%消费税
🇨🇳 → 🇦🇺 中国 → 澳大利亚标准关税10%消费税
自定义用户定义用户定义

301条款关税(中国 → 美国)

HS章节产品附加税率
84xx电脑、机械25%
85xx电子产品(部分)0-25%
94xx家具、照明25%
95xx玩具25%
61/62服装7.5%
64xx鞋类7.5%
42xx箱包、配饰7.5%

到岸成本公式

到岸成本 =
    FOB价
  + 国际运费
  + 保险
  + 进口关税
  + 增值税/消费税(如适用)
  + 清关费用
  + 港口费用
  + 内陆运费

工作流程

第一步: 收集关税计算需求 — 产品类型、HS编码、原产国、目的国、FOB货值、数量、运费等基本信息。

第二步: 通过多选题补充信息 — 产品材质、是否涉及301条款关税、是否需要贸易协定优惠、是否涉及多个SKU计算。

第三步: 使用以下框架和方法论进行研究分析。

到岸成本计算公式: 到岸成本=FOB货值+国际运费+保险费+进口关税+VAT/GST+清关费+港口费+内陆运输费。逐步计算:CIF价值=FOB货值+国际运费+保险费;关税总额=CIF价值×基础关税率+CIF×301税率(中国→美国);增值税=VAT基数×VAT税率,其中VAT基数=CIF+关税总额;税费总额=关税+VAT+清关费($150)+港口费($50);到岸总成本=CIF+税费总额+内陆运输费。

HS编码体系: HS编码是国际贸易通用商品分类编码,前2位代表章(Chapter),前4位代表税号(Heading)。章和税号国际统一,子目(6-10位)各国自定义。HS查询优先级:直接输入HS编码精确匹配(置信度100%);关键词匹配内置映射表(置信度60-80%);描述模糊匹配遍历数据库(置信度70%)。

基础关税率: 基础关税率按HS章节和目的国确定,数据来源为各国最惠国待遇(MFN)税率。例如:塑料制品(39章)美国6.5%、欧盟6.5%;机械设备(84章)美国0%、欧盟2%;电子电气(85章)美国0%、欧盟2%;家具(94章)美国0%、欧盟0%;玩具(95章)美国0%、欧盟4.5%。

301条款关税计算: 美国对从中国进口部分商品征收额外附加关税,按HS4位税号判定。关税与基础关税叠加计算,非替代关系。例如:电脑(8471)25%;电源/变压器(8504)25%;通讯设备(8517)25%;家具(9403)25%;玩具(9503)25%;服装(6110/6203/6204)7.5%;鞋类(6402)7.5%。

VAT/GST计算方法: VAT基数=CIF价值+关税总额;VAT=VAT基数×VAT税率。例如:中国→欧盟:CIF=$5215+关税=$1304;VAT基数=$6519;VAT=$6519×19%=$1239。

第四步: 提供完整的关税计算报告,包含成本细分、税费明细、到岸总成本和单价分析。

使用方法

基本计算

bash
python3 scripts/calculator.py

带参数

bash
python3 scripts/calculator.py '{
  "hs_code": "8518300000",
  "origin_country": "CN",
  "destination_country": "US",
  "fob_value": 5000.00,
  "quantity": 500,
  "freight_cost": 200.00
}'

HS编码查询

bash
python3 scripts/hs_lookup.py "wireless earbuds"
python3 scripts/hs_lookup.py "bluetooth speaker"

自定义贸易路线

bash
python3 scripts/calculator.py '{
  "hs_code": "9503009000",
  "origin_country": "VN",
  "destination_country": "DE",
  "fob_value": 10000.00,
  "quantity": 1000,
  "freight_cost": 500.00,
  "custom_duty_rate": 0.047,
  "custom_vat_rate": 0.19
}'

输出示例

💰 关税与到岸成本报告

产品:无线蓝牙耳机
HS编码:8518300000
路线:中国 🇨🇳 → 美国 🇺🇸

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 成本细分

FOB价               $  5,000.00
国际运费             $    200.00
保险                 $     15.00
CIF价               $  5,215.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🏛️ 关税与税费

基础关税(0.0%)      $      0.00
301条款(0.0%)      $      0.00
总关税               $      0.00
清关费用             $    150.00
港口费用             $     50.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💵 到岸成本总结

总到岸成本           $  5,515.00
单价                 $     11.03

贸易协定支持

协定国家优惠
USMCA美国、墨西哥、加拿大减税/零关税
EVFTA欧盟、越南减税
RCEP亚太地区减税
UK-Japan英国、日本减税

自定义配置

为您的路线创建自定义配置:

json
{
  "default_origin": "CN",
  "default_destination": "US",
  "include_insurance": true,
  "insurance_rate": 0.003,
  "customs_fee": 150,
  "port_fee": 50
}

属于 Nexscope AI — 面向电商卖家的AI工具。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tariff Calculator Amazon AI skill do?

面向亚马逊卖家的通用关税计算器。计算任何贸易路线的进口关税到岸成本和增值税/消费税。支持中国→美国、中国→欧盟、美国→欧盟、欧盟→美国、美国→中国及自定义原产国/目的国组合。包括301条款关税、贸易协定税率(USMCA、EVFTA)和HS编码查询。无需API密钥。

Why use Tariff Calculator Amazon on TypingMind?

Because you install it once and use it with any model. Tariff Calculator Amazon is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tariff Calculator Amazon in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/liangdabiao/Amazon-Skills-Liang/tree/main/skills/tariff-calculator-amazon. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tariff Calculator Amazon?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tariff Calculator Amazon?

As many as you like. As long as a model supports skills, you can use Tariff Calculator Amazon with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tariff Calculator Amazon AI skill free?

It is published on GitHub by liangdabiao. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇