cargogo-skill
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 "cargogo-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f9e4706ad4d3716ea2f08bd3d41c68a2c8d9f6896f080c0ba7139e3dc9374863. Verify the upstream source and version against https://skillhub.cn/skills/org-988us9gb/cargogo-skill 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
Cargogo Skill — Queries and subscribes to international logistics data via the Cargogo OAuth API, covering vessel records, global schedules, port vessel plans, and subscription/segments/tracking and map capabilities for sea, air, RoRo, land, China-Europe/China-Central Asia trains, and North American rail. Trigger examples: Cargogo, port-to-port sailing schedule, bill of lading number, booking number, container number, air waybill, VIN, rail tracking, vessel identity, port plan, logistics map.
Introduction source: third_party · org-988us9gb · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Query and subscribe to international logistics data via the Cargogo OAuth API, covering vessel records, global sailing schedules, port vessel schedules, and cargo subscriptions, nodes, traces, and mapping capabilities for ocean, air, RoRo, land transport, China-Europe/Central Asia trains, and North American railways. Use when the user mentions Cargogo, port-to-port sailing schedules, bill of lading number, booking number, container number, air waybill master, VIN, rail tracking, vessel identity, port schedule, or logistics map.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Parse the directory containing this document into `CARGOGO_SKILL_DIR`. Runtime requirements: Python 3.10 or above; network access allowed to the target Cargogo API domain; Cargogo OAuth credentials configured via Secret or environment variables. `CARGOGO_CLIENT_ID` and `CARGOGO_CLIENT_SECRET` are provided by the Cargogo platform; if you have not obtained credentials yet, contact the Cargogo platform to apply. Platform information and service entry: Cargogo official website. The script uses only the Python standard library and does not require installing other programs or Python packages. On first use: if credentials are not configured, read references/authentication.md. Do not ask the user to paste Client Secret, Access Token, or authentication headers in public or shared chats.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: cargogo-logistics-api
description: 通过 Cargogo OAuth API 查询和订阅国际物流数据,覆盖船舶档案、全球船期、口岸船舶计划,以及海运、空运、RoRo、陆运、中欧/中亚班列和北美铁路的货物订阅、节点、轨迹与地图能力。当用户提到 Cargogo、港到港船期、提单号、订舱号、箱号、空运主单、VIN、铁路跟踪、船舶身份、口岸计划或物流地图时使用。Cargogo 国际物流 API
使用 Skill 自带的 Python 调用脚本访问 Cargogo OAuth API。脚本从内置能力目录读取接口契约,负责参数校验、OAuth 认证、租户注入、HTTP 请求、结构化错误和大结果落盘。
已实现能力
当前提供36个工具,覆盖以下能力:
- 船舶与口岸计划(3项):按 IMO、MMSI 或船名查询船舶档案与身份;查询口岸进出口船舶计划。
- 全球船期(3项):订阅或查询港到港船期、ETD/ETA、船名航次及直达/中转方案;获取船期页面 URL。
- 口岸货物跟踪(2项):按提单号、订舱号或箱号创建口岸跟踪,并通过
queryId查询节点动态。 - 集装箱海运(8项):识别候选船公司 SCAC,创建货物跟踪,查询节点、实际轨迹、未来轨迹和来船轨迹,获取在途大屏与单票地图 URL。
- 空运(4项):创建空运主单跟踪,查询节点与实际轨迹,获取单票地图 URL。
- RoRo 滚装船(7项):按 VIN、订舱号或提单号创建跟踪,查询节点、实际轨迹和未来轨迹,获取在途大屏、单票地图与预警大屏 URL。
- 陆运(3项):创建陆运跟踪,获取单票地图 URL,查询门点围栏详情。
- 中欧/中亚班列(4项):创建班列跟踪,查询节点与实际轨迹,获取单票地图 URL。
- 北美铁路(2项):创建北美铁路跟踪并查询节点动态。
查看全部工具名称和用途时读取 references/tool-index.md;查看准确参数、接口路径和字段映射时运行 list 和 describe <tool>。
准备环境
将包含本文件的目录解析为 CARGOGO_SKILL_DIR。运行环境需要:
- Python 3.10 或更高版本;
- 允许访问目标 Cargogo API 域名;
- 已通过 Secret 或环境变量配置 Cargogo OAuth 凭据。
CARGOGO_CLIENT_ID 和 CARGOGO_CLIENT_SECRET 由 Cargogo 平台提供;尚未取得凭据时,请联系 Cargogo 平台申请。平台信息与服务入口:Cargogo 官网。
脚本仅使用 Python 标准库,不需要安装其他程序或 Python 包。首次使用时执行:
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" auth-check
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" list
如果凭据未配置,读取 references/authentication.md。不得要求用户在公开或共享聊天中粘贴 Client Secret、Access Token 或认证 Header。
标准调用流程
- 根据用户目标选择最小能力。产品或标识类型不明确时读取 references/intent-routing.md。
- 本次任务第一次使用工具前读取准确契约:
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" describe query_global_schedule
接口路径和参数映射集中维护在 references/catalog.json。describe 会显示当前环境的 base_url、实际 path、完整 url、HTTP 方法以及 Skill 参数到接口字段的映射。
- 按契约中的参数名称构造 JSON object。
- 先执行本地校验;校验不会请求远程 API:
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" validate query_global_schedule \
--params-json '{"dep_port":"CNSHA","arr_port":"NLRTM","route_type":"0"}'
- 调用只读工具:
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" call query_global_schedule \
--params-json '{"dep_port":"CNSHA","arr_port":"NLRTM","etd_from":"2026-07-28","etd_to":"2026-08-04"}'
- 订阅会创建新的业务查询。先执行
--dry-run,确认用户意图和关键标识后再调用:
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" call subscribe_ocean_tracking \
--params-file /tmp/cargogo-subscribe.json \
--dry-run
python3 "$CARGOGO_SKILL_DIR/scripts/cargogo.py" call subscribe_ocean_tracking \
--params-file /tmp/cargogo-subscribe.json \
--confirm-side-effect
--dry-run 会输出脱敏后的目标 URL、Query 参数或 JSON Body,不申请 Access Token,也不会建立远程连接。
参数原则
- 小型参数对象使用
--params-json;生成参数或复杂业务参数使用--params-file。 - 简单标量可以使用
--param name=value。 - 同一字段只能由一种参数来源提供。
- 只使用
describe返回的参数名,不把接口字段名或自然语言名称直接当参数。 - 港口使用5位 UN/LOCODE,承运人使用4位 SCAC。只采用用户提供、接口返回或其他可信来源确认的编码。
- 海运承运人未知时,先调用
query_ocean_scac_candidates。 - 除非工具契约另有说明,日期使用
YYYY-MM-DD。 - “船期”表示港到港开航班次、ETD/ETA、船名航次及直达/中转方案,应使用
query_global_schedule。 - “货物跟踪”表示某个提单、订舱单、箱、主单、VIN 或铁路箱的节点和轨迹,应先选择对应产品订阅,再使用返回的
queryId。
结果与文件
- 成功结果包含
ok=true、tool、returns、object_refs和data。 - 失败结果包含结构化
error.type、消息、状态码或字段详情。 - 空数组或零记录通常表示查询成功但当前没有匹配数据。
- 响应超过50 KB时脚本返回
spooled=true和result_path;读取该文件继续分析。 - 使用
--output <path>可以把完整结果写入指定文件。
处理查询 ID、时间、轨迹、预测数据、地图 URL 和空结果时读取 references/return-semantics.md。执行跨步骤订阅与查询时读取 references/workflows.md。
汇报要求
- 说明查询产品、关键标识、时间范围和时区。
- 区分接口观测值、业务事件、推导路线和预测结果。
- 说明结果是否为空、是否分页或写入文件。
- 订阅成功后保存并明确返回
queryId,供后续节点、轨迹和地图查询复用。 - 只返回用户需要的字段,不暴露 OAuth 凭据、Token、认证 Header 或无关客户数据。
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供国际物流全链路数据查询与订阅能力,覆盖船舶、船期、货物跟踪、轨迹地图等核心场景
- 面向货代、贸易、制造企业等有明确物流信息需求的高频刚需用户群体
Highlights
- 触发词精准完整,覆盖 Cargogo、提单号、订舱号、箱号、VIN、铁路跟踪等多种变体
- 边界清晰,不易与其他 Skill 重叠
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明适用场景和使用时机
Recommendation: 增加 When to Use 章节,说明何时使用此 Skill 及典型用例
-
缺少具体示例章节 Reported severity: Minor
虽有调用流程示例,但缺少端到端完整业务示例
Recommendation: 增加完整示例章节,如“订阅海运跟踪完整示例”或“查询船期并获取地图”
Highlights
- Phase/步骤清晰,包含准备环境、标准调用流程、参数原则、结果处理
- 提供端到端调用示例,frontmatter 完整
Highlights
- 参数校验机制完善,提供 validate 命令进行本地校验
- 不可逆操作有确认机制(--dry-run + --confirm-side-effect)
- 覆盖主要异常处理,大结果自动落盘
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.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 8, 32, 43, 83
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.cargogo.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Parse the directory containing this document into `CARGOGO_SKILL_DIR`. Runtime requirements: Python 3.10 or above; network access allowed to the target Cargogo API domain; Cargogo OAuth credentials configured via Secret or environment variables. `CARGOGO_CLIENT_ID` and `CARGOGO_CLIENT_SECRET` are provided by the Cargogo platform; if you have not obtained credentials yet, contact the Cargogo platform to apply. Platform information and service entry: Cargogo official website. The script uses only the Python standard library and does not require installing other programs or Python packages. On first use: if credentials are not configured, read references/authentication.md. Do not ask the user to paste Client Secret, Access Token, or authentication headers in public or shared chats.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.