ocean-container-tracking
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ocean-container-tracking":https://skillpi.com/zh/skills/deepskill-3999c3edff5701915f619164cf5f162a40308746d31f51f67cd2c92ba5999ff0。安装前核对上游来源和版本:https://skillhub.cn/skills/user_8aa5619a/ocean-container-tracking。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
海运集装箱一键追踪工具。用于对集装箱号、提单号或订舱号进行一键追踪,自动识别承运船公司并定位货物状态、位置、所属船舶及预计到港时间(ETA)。开箱即用覆盖中远海运(COSCO)、海丰(SITC)、中外运(SNL)、长荣(Evergreen)。适用于需要快速查询海运运输实时信息的场景。
介绍来源: third_party · user_8aa5619a · 1.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ocean-container-tracking
description: "Track ocean/sea freight shipment status by container number, bill-of-lading (BL) number, or booking number. This skill should be used when a user wants to look up the transport status, location, ETA/ETD, vessel, or latest event of a sea shipment — for example 'track container TCKU3953453', '查一下这个提单号 HLCUHAM260123456 到哪了', '帮我批量查这几个箱号的海运状态', or '这票货清关了吗'. It drives the local cargo-tracking Python package (CLI + MCP) which performs multi-source carrier lookups, normalizes results, and returns a standardized tracking result. Not for air freight, domestic parcel/express, or truck LTL."
slug: ocean-container-tracking
displayName: 海运集装箱状态追踪
version: 1.0.1
summary: "海运集装箱 / 提单 / 订舱号一键追踪,自动识别船公司、定位状态/位置/船舶/ETA,开箱即用覆盖中远海运 COSCO、海丰 SITC、中外运 SNL、长荣 Evergreen。"
author: hiabo
license: MIT
category: 商业运营
platforms:
- WorkBuddy
agent_created: trueOcean Container Tracking
Overview
This skill queries sea freight shipment status through the local cargo-tracking
Python package. That package handles input recognition (ISO 6346 container check
digit, BL prefix routing), bounded multi-source orchestration (carrier sites +
aggregators), and a strict standardized result model. This skill is the
onboarding guide for driving it correctly and interpreting its output.
Core idea to internalize: the result model strictly separates two layers and they must never be mixed:
result_status— did the query succeed? (success,partial_success,no_result,source_failed,parse_failed,ambiguous,invalid_input,unsupported_query_type)tracking_status— where is the shipment in its transport journey? Present only whenresult_statusissuccessorpartial_success.
Never report a shipment as "delivered / not found / cleared" based on a failed query. A failed query means "we could not get the data", not a business fact.
Prerequisites
The cargo-tracking package is bundled inside this skill under
bundled/cargo-tracking/ — no PyPI install and no local checkout is required.
The bundled scripts/track.py wrapper injects it onto the import path on first
run and installs only the lightweight runtime dependencies it needs
(httpx, pydantic). So a fresh user who installs this skill from the
marketplace gets a working setup with zero manual steps.
Verify the bundle is present and importable:
python -m cargo_tracking.cli info --json
# or, via the wrapper (auto-installs deps, keeps the credential-free scope):
python scripts/track.py info
Optional extras (only for broader coverage):
--scope full(orpython -m pip install -e "bundled/cargo-tracking[full]") installsmcp+playwrightfor the JCTrans / aggregator carriers and the Playwright-based official browser lookup.[ocr]extra (Pillow / numpy / easyocr) enables the T.S. Lines OCR/CAPTCHA source.- Some sources still need credentials via environment variables (see the carrier
/ aggregator directory), e.g.
JC_USERNAME/JC_PASSWORD,SINAY_API_KEY,TRACK123_API_SECRET,TERMINAL49_API_KEY. Without them those sources reportreadiness != readyand are skipped — that is expected, not an error.
Note: advanced users may set
CARGO_TRACKING_SRCto point at their own cargo-tracking checkout instead of the bundled one; this is never required.
Coverage Scope (default: credential-free)
The most reliable out-of-the-box experience covers only carriers that need no credentials. These work against public carrier APIs with zero setup:
| Carrier | Aliases | Interface |
|---|---|---|
| SITC | 海丰 | public JSON API |
| COSCO | COSU/COAU, 中远海运 | public JSON API |
| SNL / Sinotrans | SNL, 中外运 | public JSON API |
| Evergreen | EMC/EGLV, 长荣 | public HTML/AJAX |
(T.S. Lines 德翔 is also key-free but requires the [ocr] extra to solve its
CAPTCHA; include it only when that extra is installed.)
Everything else — Maersk, MSC, Hapag-Lloyd, CMA CGM, ONE, OOCL, ZIM, Yang Ming,
Wan Hai, and the 15 aggregator platforms — requires JC_USERNAME/JC_PASSWORD
or an aggregator API key. Without those, queries to them return source_failed
or are skipped, which is noisy and uninformative.
The bundled scripts/track.py wrapper enforces this with a scope flag:
--scope credential-free(default) — runs the real query only for references whose routed source reports an emptyrequirementslist; otherwise it skips the reference and prints guidance (which carrier, what credential, official URL). This keeps the default path quiet and useful.--scope full— forwards every reference to the raw CLI unchanged; configure the relevant credentials first or expectsource_failedfor gated carriers.
Detection is requirement-based (via route <REF> --json), not a hardcoded
allowlist, so any future key-free source is included automatically.
Standard Workflow
For a normal tracking request:
- Extract the reference number(s) from the user's message (container / BL / booking). Do not guess or fabricate a number the user did not provide.
- Run a single query through the bundled wrapper (default scope keeps the
path credential-free and quiet):
python scripts/track.py query <REFERENCE> --query-type auto- The wrapper adds
--jsonautomatically and honors--scope(see "Coverage Scope" above). Use--scope fullonly when the user has configured carrier/aggregator credentials and wants broader coverage. - Leave
--query-type autounless the user explicitly states the type. - Default
--query-mode fastis fine; usebalancedonly if fast yieldsno_resultand the user wants a deeper attempt. (thoroughis accepted but downgraded tobalanced.)
- The wrapper adds
- Interpret
result_statusfirst, then readtracking_statusonly if the query succeeded. See "Interpreting Results" below. - Summarize for the user in their language (Chinese by default): the
shipment status, latest event + time + location, current vessel/voyage,
origin/destination ports, and ETA/ETD when present. Surface
warningsandneeds_manual_reviewhonestly.
For batch requests (multiple numbers), use the wrapper so credential-gated carriers are skipped with guidance instead of failing inline:
# Inline (credential-free by default; Hapag/Maersk/etc. are skipped + reported)
python scripts/track.py batch NUM1 NUM2 NUM3 --query-type auto
# Broaden to all sources once credentials are configured
python scripts/track.py batch NUM1 NUM2 NUM3 --query-type auto --scope full
# From a file (lines / json / csv auto-detected by extension)
python -m cargo_tracking.cli batch --input queries.csv --output result.json
python -m cargo_tracking.cli batch --input queries.txt --output result.jsonl --output-format jsonl
Note: when --input is used, the wrapper cannot pre-filter a file, so it
forwards everything to the CLI unchanged — configure credentials for any
non-free carriers present in the file.
Keep --max-concurrency modest (default 3, max 10) to stay bounded and avoid
hammering carrier sites.
When a Query Fails or Returns No Data
Do not stop at a bare failure. Use the diagnostic commands to give the user a useful next step:
python -m cargo_tracking.cli route <REFERENCE> --json— shows which carrier / source the number should route to, the official tracking URL, and the recommended automation strategy.python -m cargo_tracking.cli carriers --json— carrier coverage, connected source ids, credential requirements, and official-site query entry URLs.python -m cargo_tracking.cli aggregators --json— free / trial / commercial aggregator sources and their constraints.python -m cargo_tracking.cli query-info --json— current source readiness and V1 limitations (useful to explain why a source was skipped).python -m cargo_tracking.cli official-lookup <REFERENCE> --json— best-effort Playwright browser lookup of the official carrier site when no stable API exists. Returns page-visible evidence text that still needs human review before becoming a business conclusion. Requires Playwright browsers installed.
Typical guidance to relay: "自动来源暂时查不到,可以到 <官网 URL> 用这个提单号人工再查一次" plus the requirement note (e.g. needs SCAC / needs login).
Interpreting Results
Read references/result_schema.md for the full field-by-field schema, the enum
value meanings (all 11 tracking_status values and 16 EventCode values), and
how to phrase each result_status for the user. Load it whenever unsure how to
map a raw result to a human summary.
Key rules (do not violate):
- If
result_statusis a failure value,tracking_statusis absent — never invent one, and never tell the user the cargo's business state. - If
needs_manual_reviewistrue, explicitly tell the user human/manual verification is recommended and includemanual_review_reasons. short_summaryis always a non-empty plain string; it is a safe fallback line to show, but prefer building a richer localized summary from the structured fields.- Treat tracking output as reference visibility data, NOT as proof of delivery / release / customs clearance. Do not use it as the sole basis for releasing cargo or assigning liability.
MCP Alternative
If an MCP client is preferred over the CLI, the same package exposes an MCP
server via the cargo-tracking-mcp entry point, with tools: tracking_query,
tracking_query_batch, tracking_query_info, tracking_carrier_directory,
tracking_aggregator_directory, tracking_route_reference,
tracking_official_browser_lookup. Tool arguments mirror the CLI options above.
Reference Number Cheatsheet
- Container — 4 letters (owner + category U/J/Z) + 6 digits + 1 check digit,
e.g.
TCKU3953453. Validated by ISO 6346 check digit; an invalid check digit returnsinvalid_input. - BL (bill of lading) — carrier-specific prefixes, e.g.
HLCU…(Hapag),COAU…/COSU…(COSCO),SIT[TD]…(SITC),799…(T.S. Lines),1[45][01]…(Evergreen/EMC),SNLF…(Sinotrans). - Booking — no stable public source; queries commonly return unavailable /
source_failed. Set this expectation with the user.
See references/result_schema.md for the complete enum tables and phrasing
guidance.
当前收录版本
1.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决海运集装箱追踪这一国际贸易和物流行业的核心需求
- 开箱即用覆盖中远海运 COSCO、海丰 SITC、中外运 SNL、长荣 Evergreen 等主流船公司
- 支持批量查询和多种参考号类型(集装箱号、提单号、订舱号)
亮点
- 触发词精准完整,覆盖多种变体(中英文混合输入)
- 边界清晰,明确区分海运与空运、国内快递等场景
- 支持自然语言指令如'查一下这个提单号'、'帮我批量查这几个箱号'
亮点
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,包含版本、作者、许可证等信息
- 文档结构良好,包含概述、先决条件、覆盖范围、标准工作流程等章节
亮点
- 工具来源明确,使用本地捆绑的 cargo-tracking Python 包
- 参数正确,支持多种查询模式和范围控制
- 覆盖主要异常情况,提供诊断命令和用户指导
- 不可逆操作有确认机制,明确区分查询状态和货物状态
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 56 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 51, 61, 69, 72, 86 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。