Introduction¶
For colleagues working in shipping, port, logistics, or maritime risk control, a common requirement is to check a vessel’s real-time AIS, port call records, or regional position, often alongside weather, typhoon, and navigation warnings. If you stitch together HTTP requests manually and cross-reference 33 types of interface documents and parameter formats, it is difficult to reproduce results stably within an Agent conversation. The ShipXY Maritime API is an enterprise-level Skill on SkillHub that encapsulates ShipXY v3 capabilities into a directory-driven CLI, allowing Agents like Cursor and WorkBuddy to select services semantically, validate parameters, and then invoke them.
What is this¶
The ShipXY Maritime API (coordinate @org-988us9gb/shipxy-skill, current version 1.0.2) is published by Yihilan, tagged with the source enterprise and categorized as professional. It integrates ShipXY maritime data and calls the official API via a built-in scripts/shipxy.py, rather than manually piecing together requests in the conversation.
The SkillHub page shows: Rating 100000, Downloads 1199; tags indicate requires_api_key=true, necessitating the use of your own Key applied for in the ShipXY console.
Core Features¶
The following capabilities align with the SkillHub description and the SKILL.md within the Skill, covering 33 ShipXY maritime data services:
| Direction | Capability |
|---|---|
| Vessel Search & Identification | Search by MMSI, IMO, vessel name, or call sign; handle vessels with the same name. |
| Real-time AIS | Latest position, speed, heading, and status for single/multiple vessels; vessels within approx. 10 nautical miles around a target vessel. |
| Region & Fleet | Current vessels within a polygon; fixed fleets in the ShipXY console. |
| Registry & Profile | Nationality, flag state, Lloyd’s vessel profile. |
| History & Events | Historical AIS tracks, vessel approach events, berthing status, port call records. |
| Ports & ETA | Port 5-digit code search, berthing/anchoring/estimated arrival, port historical activity; precise ETA for a single vessel. |
| Routing | Port-to-port or coordinate-to-port reference routes (for planning reference, not navigation instructions). |
| Marine Environment & Safety | Marine weather, sea area weather, global typhoons, domestic/international tides, China MSA navigation warnings. |
When a user mentions ShipXY, VessTrace (船讯网), MMSI, IMO, AIS, port call records, vessel tracks, or port 5-digit codes, the Agent should select the corresponding tool according to Skill routing rules (e.g., if a trusted MMSI is available, skip search; port names must first go through search_port and then pass the 5-digit code).
Installation & Activation¶
Install SkillHub CLI (if not installed)¶
command -v skillhub && skillhub --version
If not installed, you can execute the full installation (CLI + default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, defaulting to ./skills/ might not be recognized. See the official SkillHub installation instructions at skillhub.cn/install/skillhub.md.
skillhub install shipxy-skill --namespace org-988us9gb --dir <your Agent skills directory>
Common path examples (subject to SkillHub documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - WorkBuddy:
~/.workbuddy/skills/
The SkillHub page also suggests: let the AI install @org-988us9gb/shipxy-skill based on the installation documentation above.
Configure SHIPXY_API_KEY¶
The Skill package does not include ShipXY credentials. Before invocation, create an application and API Key in the ShipXY API Console, and confirm the enabled interfaces, regions, history range, and quotas in “Permission View”.
The environment variable name is fixed as SHIPXY_API_KEY. Optional methods include: WorkBuddy users configuring env.SHIPXY_API_KEY in ~/.workbuddy/settings.json, or adding export SHIPXY_API_KEY="..." in Linux’s ~/.bashrc, etc. After configuration, you must fully restart the Agent running the Skill.
After setting the Skill directory as SHIPXY_SKILL_DIR, check locally if the Key can be read (does not connect to remote, does not consume quota):
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" auth-check
configured: true only indicates that the process can read the variable; whether the Key is valid or if a service is enabled will only be returned by ShipXY upon the first real invocation.
Runtime environment requirements: Python 3.10+; the CLI depends only on the standard library.
Typical Usage¶
The following steps are from the Skill’s SKILL.md and can be reproduced directly within the installation directory.
1. Preparation & Listing Tools
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" auth-check
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" list
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" describe shipxy_search_ship
Before using a tool for the first time, you should run describe <tool> to check use_when, limits, and permission instructions.
2. Dry-run for large-scale or historical queries (does not consume quota)
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" call shipxy_get_ship_track \
--param mmsi=413000000 \
--param start_time=2026-07-19T00:00:00Z \
--param end_time=2026-07-20T00:00:00Z \
--dry-run
3. Search vessels and check single vessel position
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" call shipxy_search_ship \
--param keywords='EVER GIVEN' \
--param max_results=10
python3 "$SHIPXY_SKILL_DIR/scripts/shipxy.py" call shipxy_get_single_ship \
--param mmsi=353136000
Large results can use --output /tmp/<name>.json; responses exceeding 50 KB will be written to /tmp/shipxy-results/. You should read the returned result_path to avoid pasting the full JSON into the conversation.
In an Agent, you can also describe the task in natural language (e.g., check latest position and surrounding vessels, berthing and ETA for a port, plan a reference route and check weather along the way), and the Skill will combine multi-step calls according to references/intent-routing.md and references/workflows.md.
Applicable Scenarios & Notes¶
Who it is for: Developers, operations, and analysis personnel who need to query ShipXY data in conversations or automation; teams that already possess ShipXY API accounts and corresponding package permissions.
Limitations & Pitfalls:
- Do not pass the API Key via
--param; do not use the example Keys in the documentation. - Permission-related errors (
service_not_enabled,region_out_of_scope,quota_exhausted, etc.) should explain the package boundaries according to Skill guidelines; do not suggest purchases for empty results or parameter errors. - Time formats vary by interface (tracks use Unix seconds or timezone-aware ISO 8601; some weather/warnings/tides have fixed formats);
search_ship_approachdoes not exceed 31 days per session; port call queries by port do not exceed a 7-day window per session, etc. See “Handling Boundaries” inSKILL.md. - The regional query
get_area_shipis a current snapshot and cannot be used for historical regional discovery; route results are for planning reference only and cannot be used as collision avoidance or sailing permission. - Real-time positions, tracks, and port activities may be sensitive; only return the fields required for the task.
Conclusion¶
The ShipXY Maritime API consolidates VessTrace v3’s search, monitoring, profiles, tracks, ports, ETA, routing, and environment interfaces into a set of verifiable CLI workflows, suitable for hanging onto Agents supporting Skills to perform maritime Q&A and scripted queries. Installation and metadata are subject to SkillHub:
- API Entry: https://api.skillhub.cn/org-988us9gb/shipxy-skill
- Skill Page: https://www.skillhub.cn/skills/org-988us9gb/shipxy-skill