← Back to Skills Marketplace
laigen

Hormuz Strait Monitor

by 赖根 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
125
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hormuz-strait-monitor
Description
Track shipping transit data through the Strait of Hormuz. Monitors transits, daily throughput, and non-Iranian vessel counts from hormuzstraitmonitor.com and...
README (SKILL.md)

Hormuz Strait Transit Monitor

Track shipping transit data through the Strait of Hormuz - a critical chokepoint for global oil supply.

Quick Start

# Run the monitor
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py

# With notification channel
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py --channel wecom

# Debug mode (keep browser visible)
python ~/.openclaw/workspace/skills/hormuz-strait-monitor/scripts/hormuz_monitor.py --debug

Data Collected

Source Field Format Example
hormuzstraitmonitor.com Transits (24h) Number of ships 6 ships
Day Normal Daily average 60/day
Daily Throughput DWT (Deadweight Tonnage) 500K DWT
Avg Throughput Average DWT 10.3M
shipxy.com Non-Iranian Vessels Count from vessel list 4 vessels

Data Sources

Source URL Data Collected
hormuzstraitmonitor.com https://hormuzstraitmonitor.com/ Transits (24h), Daily Throughput, Day Normal, Avg Throughput
shipxy.com https://www.shipxy.com/special/hormuz Non-Iranian vessels exiting strait in 12h

Both sites require JavaScript rendering - static HTTP fetch will not work.

Alert Conditions

Alert triggers when any condition is met:

Condition Threshold Meaning
Transits Recovery >= 10 vessels Absolute recovery threshold
Transits Recovery >= 20% of day normal Relative recovery threshold
Throughput Recovery >= 20% of avg Oil flow returning
Non-Iranian Vessels >= 10 exiting in 12h Western/Asian shipping activity

Output

Data is appended to CSV: ~/.openclaw/workspace/memory/hormuz-transit-data.csv

Columns:

  • timestamp - Collection time
  • transits_24h - Vessels transited in last 24h
  • daily_throughput - Current daily oil flow
  • day_normal - Normal daily transit count
  • avg_throughput - Average daily throughput
  • non_iranian_vessels - Non-Iranian vessels exiting in 12h
  • alerts - Alert messages (if any)

Configuration

See references/config.json for threshold customization.

To enable notifications:

  1. Edit references/config.json
  2. Set "channel": "wecom" or other supported channel
  3. Or use --channel flag at runtime

Environment Requirements

Required:

  • Google Chrome (installed at /usr/bin/google-chrome)
  • Python 3.x
  • selenium + webdriver-manager

Install dependencies:

pip install selenium webdriver-manager

Chrome version: This skill uses Chrome 147+ (headless mode).

Workflow

  1. Fetch hormuzstraitmonitor.com

    • Launch headless Chrome
    • Wait for JavaScript rendering (~10s)
    • Parse Transits (24h), Daily Throughput, Day Normal, Avg
    • Use regex patterns for data extraction
  2. Fetch shipxy.com

    • Navigate to Chinese shipping portal
    • Wait for rendering (~15s)
    • Parse Non-Iranian vessel count (Chinese text patterns)
  3. Record Data

    • Append to CSV file
    • Include timestamp and all collected values
  4. Check Alerts

    • Compare current vs previous data
    • Evaluate threshold conditions
    • Generate alert messages
  5. Notify (if configured)

    • If alerts triggered OR channel configured
    • Send summary via specified channel

Troubleshooting

Chrome not found:

ERROR: Chrome binary not found at /usr/bin/google-chrome

Solution: Install Google Chrome or update binary path in script.

Selenium not installed:

ERROR: selenium and webdriver-manager not installed

Solution: pip install selenium webdriver-manager

Data not parsed:

  • Check debug screenshots: ~/.openclaw/workspace/memory/hormuzstraitmonitor_debug.png
  • Run with --debug to see browser content
  • Website structure may have changed - update regex patterns

Timeout errors:

  • Increase wait time in script (JavaScript-heavy pages)
  • Check network connectivity to both sites

Cron Integration

To monitor regularly, add to heartbeat or cron:

Heartbeat (HEARTBEAT.md):

- Check Hormuz Strait transit data (every 4h)

Cron job:

# Every 4 hours
openclaw cron add --schedule "0 */4 * * *" --name hormuz-monitor \
  --payload '{"kind": "agentTurn", "message": "Run Hormuz Strait monitor skill"}'

Notes

  • The Strait of Hormuz handles ~20% of global oil consumption
  • During Iran-West tensions, transits may drop significantly
  • Recovery signals indicate de-escalation or alternative routing
  • Non-Iranian vessel count is key indicator of Western/Asian shipping confidence
Usage Guidance
This skill is functionally coherent for scraping Hormuz transit metrics, but take these precautions before installing: 1) Inspect the remainder of scripts/hormuz_monitor.py (notifications and any subprocess usage) to confirm where alerts are posted and whether secrets/webhooks are required; the SKILL.md does not document notification authentication. 2) Expect webdriver-manager to download ChromeDriver at runtime and write to the user's cache—run in an environment where automatic downloads are acceptable. 3) The script will create/append a CSV and may save debug screenshots under ~/.openclaw/workspace; ensure you are comfortable with that storage location. 4) Run initially in debug mode or a sandboxed account to confirm parsing behavior and that no unexpected network endpoints are contacted. If you need higher assurance, ask the skill author to document notification auth flows (what credentials or webhooks are used) or to provide a version that requires explicit user-supplied webhooks stored in the skill's config file.
Capability Analysis
Type: OpenClaw Skill Name: hormuz-strait-monitor Version: 1.0.0 The skill is a specialized OSINT tool designed to monitor shipping traffic and oil throughput in the Strait of Hormuz. It uses Selenium to scrape data from hormuzstraitmonitor.com and shipxy.com, specifically tracking vessel counts and transit recovery signals. The code (scripts/hormuz_monitor.py) is well-structured, follows OpenClaw standards for data storage in the workspace memory, and lacks any indicators of malicious intent, data exfiltration, or unauthorized execution. While it uses webdriver-manager to download a browser driver and targets specific geopolitical data, these actions are clearly aligned with its stated purpose.
Capability Assessment
Purpose & Capability
The name/description (monitoring Hormuz transit data) aligns with the implementation: the script uses Selenium + Chrome to render JavaScript pages (hormuzstraitmonitor.com and shipxy.com), parses metrics with regex/DOM, and appends results to a CSV in the user's OpenClaw workspace. Required runtime pieces (Chrome, selenium, webdriver-manager) are appropriate for this scraping task.
Instruction Scope
SKILL.md and the script confine actions to fetching two specified sites, parsing page text/embedded JSON, taking optional screenshots for debugging, appending CSV rows, and creating alerts. They do not instruct reading unrelated system files or environment variables. One scope gap: notifications are supported (e.g., 'wecom' channel) but SKILL.md and references/config.json do not document how authentication/credentials for notification channels are supplied—this is a missing operational detail (not proven malicious).
Install Mechanism
There is no explicit install spec, but the code uses webdriver-manager to auto-download a matching ChromeDriver at runtime. That behavior will fetch a binary from the web and write it to disk (typical for webdriver-manager). This is expected for Selenium-based scripts but is an external download performed at runtime rather than through an audited package install.
Credentials
The skill declares no required environment variables or credentials, which matches the visible code so far. However, SKILL.md advertises notification channels (wecom/others) without explaining how to provide channel credentials or webhooks; if the script supports sending alerts to external services it may require secrets (not declared). The script writes data and screenshots to the user's OpenClaw workspace (expected) and does not appear to request unrelated sensitive access.
Persistence & Privilege
The skill is not always-on and does not request elevated platform privileges. It only writes files to its own workspace paths (CSV, debug screenshots). It does not modify other skills or global agent settings according to provided files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hormuz-strait-monitor
  3. After installation, invoke the skill by name or use /hormuz-strait-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - Track shipping transit data through Strait of Hormuz with alerts for traffic recovery
Metadata
Slug hormuz-strait-monitor
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Hormuz Strait Monitor?

Track shipping transit data through the Strait of Hormuz. Monitors transits, daily throughput, and non-Iranian vessel counts from hormuzstraitmonitor.com and... It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.

How do I install Hormuz Strait Monitor?

Run "/install hormuz-strait-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Hormuz Strait Monitor free?

Yes, Hormuz Strait Monitor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Hormuz Strait Monitor support?

Hormuz Strait Monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hormuz Strait Monitor?

It is built and maintained by 赖根 (@laigen); the current version is v1.0.0.

💬 Comments