Traffic Data Skill for Openclaw

A comprehensive tool for retrieving real-time urban traffic conditions, incidents, and intersection performance data via major map providers and SCATS APIs.

teweitao
v1.0.0
Feb 22, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install traffic-data

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install traffic-data using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Traffic Data Skill?

The Traffic Data skill empowers Openclaw Skills users to fetch precise, real-time geographical and logistical information. By integrating with Baidu Map, Gaode Map, and SCATS systems, this skill provides developers and AI agents with the ability to monitor road congestion, identify traffic incidents, and analyze intersection-specific data points.

This skill is essential for building applications that require high-fidelity urban mobility insights. Whether you are developing a smart city dashboard or a logistics optimization tool, these Openclaw Skills capabilities ensure you have the most current data at your fingertips.

Traffic Data Skill Use Cases

  • Monitoring real-time road congestion for specific city routes
  • Retrieving active traffic incidents and road hazards for automated route planning
  • Analyzing SCATS intersection data for smart city or urban planning research
  • Building automated alerts for specific traffic events or significant road condition changes

How Traffic Data Skill Works

  1. The user provides a location, road name, or intersection ID as input to the AI agent.
  2. The skill executes a specific Node.js script (road.js, incident.js, or scats.js) tailored to the query type.
  3. The script interfaces with the configured Baidu Map, Gaode Map, or SCATS API using the provided environment keys.
  4. The raw API response is parsed to extract metrics like congestion levels, incident descriptions, or intersection status.
  5. The Openclaw Skills agent interprets the structured data to provide a human-readable summary or actionable insight.

Traffic Data Skill Setup

To use this skill within the Openclaw Skills framework, you must configure your environment variables and ensure Node.js is installed.

  1. Obtain API keys from the Baidu Map Open Platform (https://lbsyun.baidu.com) and Gaode Map Open Platform (https://lbs.amap.com).
  2. Add your credentials to your .env file:
# Baidu Map API Key
BAIDU_MAP_KEY=your-baidu-map-api-key

# Gaode Map API Key
GAODE_MAP_KEY=your-gaode-map-api-key

# SCATS Data API Key
SCATS_API_KEY=your-scats-api-key
  1. Execute the scripts via the CLI:
# Query real-time road conditions
node skills/traffic-data/road.js <city> <road_name>

Traffic Data Skill Data Schema & Taxonomy

The skill processes and returns data structured for easy interpretation by AI agents. Key data points include:

Attribute Description
City The geographic focus of the traffic query
Road Name Specific arterial or local road being analyzed
Incident Details Descriptions of accidents, construction, or closures
SCATS ID Unique identifier for intersection-specific signal data
Congestion Index Numerical representation of current traffic flow density

Traffic Data Skill Advanced Features

  • Multi-provider support allowing for cross-verification between Baidu and Gaode map data
  • Direct SCATS integration for low-level intersection status monitoring in smart city environments
  • Modular script architecture enabling easy inclusion in complex Openclaw Skills automation sequences
  • Real-time incident reporting for immediate situational awareness

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*