/taiwan-ecommerce:taiwan-logisticsfrom Taiwan E-commerce Toolkit
Integrates Taiwan logistics APIs including ECPay, NewebPay, PAYUNi, SmilePay, PChomePay, PayNow, ezShip aggregators, HCT direct carrier, and on-demand delivery (Lalamove, pandago). Handles CVS pickup, home delivery, cold-chain, store-map selectors, COD, shipment tracking, and encryption (MD5, AES-256-CBC, AES-256-GCM, 3DES).
Ships in Taiwan E-commerce Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Item | Content |
|---|---|
| Origin | Official vendor API docs, PDF specs and SDKs; every source is registered in the repo's sources/official-sources.json (URL, how it is fetched, which files it covers) |
| Providers | data/providers.csv has 20 rows: 7 aggregators with a logistics API, 1 direct carrier API (HCT), 2 on-demand services, and 10 rows with no public API (listed so the skill can say so) |
| Rows | 1126 rows in 5 search domains; per-domain counts come from python scripts/search.py --stats, not from this file |
| Provenance | Every row has doc_url (official doc) and trust (實測 measured / 官方文件 official doc / 推論 inferred); retrieved_on is the last date the source was compared |
| Crypto | Expected values are produced by running the vendors' own SDKs or spec samples verbatim (tests/vectors/); examples are compared byte for byte |
| Verified | 2026-11-15: self-test passes, verify-examples.py passes; known gaps are in data/pending.csv |
Rows marked trust=推論 are inferred from the official docs. Present them as advice, never as an official rule.
Use this skill for
Do not use it for
| Case | Use instead |
|---|---|
| Taking payment (card, ATM, CVS payment code) | taiwan-payment skill |
| Issuing e-invoices | taiwan-invoice skill |
| T-Cat, Pelican, Kerry TJ, Chunghwa Post, 7-11 MyShip direct APIs | None are public. Say so and point to references/carrier-direct-access.md |
Single entry point: scripts/search.py. Look everything up there first; the other tools are next steps.
| User-run tools | Purpose |
|---|---|
scripts/search.py | Entry point: query the data (--stats for counts) |
scripts/recommend.py | Recommend a provider for a requirement |
scripts/generate-logistics-service.py | Output the verified service implementation (--output ts or py) |
scripts/test_logistics.py | Signature known-answer test (offline by default; --live to reach test environments) |
scripts/test_skill.py | Self-test: number check, provenance columns, routing queries, evals format |
scripts/check_numbers.py | Check every number in this file against the data |
examples/*.py | Runnable per-provider examples to copy into a project |
| Maintainer tools (repo root) | Purpose |
|---|---|
scripts/verify-examples.py | Examples and doc snippets against official test vectors |
scripts/validate-data.py | CSV format, keys, file size |
scripts/check-sources.py | Detect changes in official sources |
scripts/add-provenance.py | Fill CSV provenance columns |
Dependencies: scripts/ uses only the Python standard library, except test_logistics.py --live, --create and --query, which need requests.
examples/ need pycryptodome (AES, 3DES) and requests: pip install -r requirements.txt.
Rule: look it up first, never answer from memory. If the data does not have it, say you could not find it, mark it 待補 (pending) and log it in data/pending.csv. Do not guess.
python scripts/search.py "<keywords>" # auto-detect the domain
python scripts/search.py "<keywords>" --domain <d> # search one domain
python scripts/search.py "<keywords>" --domain all # search every domain
python scripts/search.py --stats # rows per domain
Chinese and colloquial wording works directly (the data has Chinese names and descriptions).
| What the user says | Domain | Command |
|---|---|---|
| "綠界物流狀態 2073 是什麼" / status code meaning | status | search.py "2073" --domain status |
| "包裹到店了嗎" / delivery states | status | search.py "配達" --domain status |
| "7-11 取貨付款要帶什麼子類型" / CVS subtype, temperature, COD cap | logistics_type | search.py "7-11 取貨付款" --domain logistics_type |
| "冷凍可以寄超商嗎" | logistics_type | search.py "冷凍" --domain logistics_type |
| "建立物流訂單打哪支 API" / map, print, query endpoints | operation | search.py "建立物流訂單" --domain operation |
| "選店電子地圖" | operation | search.py "電子地圖" --domain operation |
| "收件門市欄位各家叫什麼" | field | search.py "ReceiverStoreID" --domain field |
| "Lalamove 有 API 嗎" / which providers, test URLs, encryption | provider | search.py "Lalamove" --domain provider |
| "黑貓可以直接串嗎" | provider | search.py "tcat" --domain provider, then references/carrier-direct-access.md |
| "該選哪一家物流" | — | recommend.py "<requirement>" |
Every result carries doc_url and trust. Cite doc_url in the answer; do not add facts the results do not contain.
Then read the provider's reference:
| Provider | Reference |
|---|---|
| ECPay 綠界 | references/ecpay-logistics-api.md |
| NewebPay 藍新 | references/NEWEBPAY_LOGISTICS_REFERENCE.md |
| PAYUNi 統一 | references/payuni-logistics-api.md |
| SmilePay 速買配 | references/smilepay-logistics-api.md |
| PChomePay支付連 | references/pchomepay-logistics-api.md |
| PayNow 立吉富 | references/paynow-logistics-api.md |
| ezShip 台灣便利配 | references/ezship-logistics-api.md |
| HCT 新竹物流 (direct) | references/hct-logistics-api.md |
| Lalamove | references/lalamove-logistics-api.md |
| pandago and on-demand overview | references/ondemand-delivery.md |
| Carriers without a public API | references/carrier-direct-access.md |
| Concepts, NewebPay walkthrough, PAYUNi operations, best practices | references/implementation-guide.md |
| 官方文件稽核紀錄(各家改了什麼、依據網址) | references/audit-20261117.md |
| Task | Steps | Data | Output and evidence of done |
|---|---|---|---|
| Pick a provider | 1. recommend.py 2. check provider and logistics_type | provider, logistics_type | Recommendation with doc_url, labelled as advice |
| CVS pickup order | 1. store map 2. take StoreID from the map response 3. create order with the right subtype 4. sign | operation, logistics_type, field | Code; signature matches verify-examples.py vectors |
| Home delivery / cold chain | 1. check subtype, temperature and size limits 2. create order | logistics_type, operation | Code with doc_url |
| Status notifications | 1. verify the signature or hash first 2. map codes 3. update idempotently | status, reference | Code; unknown codes logged, not guessed |
| Status code lookup | 1. search the code with the provider name | status | Meaning with doc_url; if not found, say so and log it |
| On-demand delivery | 1. quote 2. order before the quote expires 3. track | operation, ondemand-delivery.md | Code with doc_url |
| Generate a service | generate-logistics-service.py <Provider> --output ts or py | — | Verified implementation, not a stub |
Rules when writing code
examples/; do not reimplement from memory.Run these after producing anything. Every validator exits non-zero on failure, so each one can gate a step.
| Output | Validator | Pass criteria |
|---|---|---|
| Signatures | python scripts/test_logistics.py | exit 0 (offline) |
| Examples, doc snippets | python scripts/verify-examples.py (repo root, needs pip install -r requirements-dev.txt) | FAIL 0, exit 0 |
| Data CSV | python scripts/validate-data.py (repo root) | all pass, exit 0 |
| Numbers in this file | python scripts/check_numbers.py | exit 0 |
| The skill itself | python scripts/test_skill.py | failed 0, exit 0 |
| Answer quality | python evals/grade.py --with <with-skill answers> --without <without-skill answers> | with-skill scored accuracy ≥ 90%; results in evals/RESULTS.md |
--live reaches the providers' test environments; run it only when the user asks.
python scripts/check-sources.py, update the affected reference and CSV, run the validators above, then check-sources.py --update.python scripts/add-provenance.py; rows with no official source are marked 推論 and must be logged in data/pending.csv.python scripts/check_numbers.py --fix._studies/harness/import_logistics_status.py (source documents stay in _studies/, not in the repo).taiwan-logistics/ over ~/.claude/skills/taiwan-logistics/ without deleting files that exist only in the installed copy.CLAUDE.md (opens in a new tab)EXAMPLES.md (opens in a new tab)README.md (opens in a new tab)README.zh-TW.md (opens in a new tab)data/field-mappings.csv (opens in a new tab)data/logistics-types.csv (opens in a new tab)data/operations.csv (opens in a new tab)data/pending.csv (opens in a new tab)data/providers.csv (opens in a new tab)data/status-codes.csv (opens in a new tab)evals/RESULTS.md (opens in a new tab)evals/cases.json (opens in a new tab)evals/grade.py (opens in a new tab)evals/runs/2026-11-15-with-skill.json (opens in a new tab)evals/runs/2026-11-15-without-skill.json (opens in a new tab)examples/ecpay-logistics-cvs-example.py (opens in a new tab)examples/ezship-logistics-example.py (opens in a new tab)examples/hct-logistics-example.py (opens in a new tab)examples/newebpay-logistics-cvs-example.py (opens in a new tab)examples/paynow-logistics-cvs-example.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
taiwan-logistics, ecpay, newebpay, hct, lalamove, cvs-pickup, shipment-tracking
3 skills in this plugin
/taiwan-invoiceTaiwan E-Invoice API integration specialist for ECPay, SmilePay, Amego, ezPay, PayNow, O'Pay and SunPay, plus MOF E-Invoice platform queries. Use when developing invoice systems, implementing B2C/B2B invoice issuance, void, allowance, invoice printing, carrier/donation code validation, or working with Taiwan E-Invoice APIs. Handles encryption (AES-128-CBC, AES-256-CBC, MD5, JWT), API requests, and service provider differences. 中文觸發:電子發票串接、開立發票、作廢、折讓、載具、手機條碼、捐贈碼、統編、B2B 三聯式、B2C 二聯式、加值中心、財政部大平台、發票列印。/taiwan-paymentTaiwan Payment API integration specialist for ECPay, NewebPay, PAYUNi, SmilePay, PChomePay, ezPay, PayNow, Shopline Payments, LINE Pay v4, TapPay, O'Pay, JKOPAY, SunPay and GoMyPay. Use when developing payment systems, implementing credit card, ATM, CVS, e-wallet, LINE Pay, Apple Pay, Google Pay, Click to Pay, TWQR or BNPL payments, or working with Taiwan payment gateway APIs. Handles encryption (SHA256, AES-256-CBC, AES-256-GCM, dynamic AES-256, RSA, JWT, HMAC-SHA256, Basic Auth → token, Prime token), API requests, and service provider differences. 中文觸發:金流串接、綠界、藍新、統一金流、信用卡付款、ATM 虛擬帳號、超商代碼、LINE Pay、Apple Pay、街口、CheckMacValue、TradeSha、付款通知、退款、定期定額。npx claudepluginhub moksa1123/taiwan-ecommerce-toolkit --plugin taiwan-ecommerceOther plugins' skills for the same job