Weather Query for Openclaw

A high-performance weather retrieval skill providing real-time conditions, air quality indices, and multi-day forecasts for locations across China.

jaceymarvin99
v0.1.0
Feb 26, 2026
2
1.7k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install weather-query

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 weather-query 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 Weather Query?

The Weather Query skill is a robust tool designed for AI agents to fetch precise environmental data within China. By utilizing dedicated shell scripts, this skill enables agents to access current conditions, atmospheric data, and life indices with high accuracy. As part of the Openclaw Skills ecosystem, it focuses on providing structured data that can be optimized for different token consumption levels, ensuring that AI agents can remain informed about weather alerts and climate trends without unnecessary overhead.

This skill is particularly valuable for applications requiring hyper-local data, as it supports not just major cities but also specific districts. Whether integrated into a travel assistant or a daily planning agent, Weather Query provides the necessary context to make smart recommendations based on real-world conditions.

Weather Query Use Cases

  • Fetching current temperature, humidity, and wind speed for real-time awareness.
  • Retrieving multi-day weather forecasts for travel planning and outdoor event scheduling.
  • Accessing Air Quality Index (AQI) and life indices to provide health and safety recommendations.
  • Monitoring localized weather alerts and sunrise/sunset times for specific Chinese districts.

How Weather Query Works

  1. The AI agent identifies a user request involving weather or climate information for a location in China.
  2. The agent selects the appropriate script: realtime.sh for current data or forecast.sh for future predictions.
  3. The agent passes the location name in Chinese characters as the primary query argument.
  4. An encoding format (markdown, text, or json) is specified to match the required level of detail and token budget.
  5. The script executes the API call and returns the formatted environmental data.
  6. The agent processes the output to provide a context-aware response, such as suggesting protective gear for poor air quality.

Weather Query Setup

To integrate this skill into your environment, ensure the provided shell scripts are accessible. You can trigger the weather retrieval via the CLI as follows:

# Get real-time weather
./scripts/realtime.sh "北京" --encoding markdown

# Get an 8-day forecast
./scripts/forecast.sh "上海" --encoding json --days 8

Note that all location queries must be input using Chinese characters for accurate API matching within the Openclaw Skills framework.

Weather Query Data Schema & Taxonomy

The skill organizes weather data into structured formats to facilitate easy parsing by AI agents. Data points are categorized by location and update timestamps.

Feature Description Formats Supported
Real-time Data Temp, humidity, wind, and AQI Markdown, Text, JSON
Forecasts Hourly and daily (up to 8 days) predictions Markdown, Text, JSON
Life Indices Suggestions for clothing, UV, and car washing Markdown, JSON
Alerts Official weather warnings and alerts Markdown, JSON

Metadata including the updated timestamp is provided in every response to ensure data freshness.

Weather Query Advanced Features

  • Token-optimized encoding strategies (text for brevity, markdown for readability, json for raw data).
  • Granular location support covering provincial capitals, major cities, and specific urban districts.
  • Integrated life index data providing actionable insights beyond basic temperature readings.
  • Automatic fallback logic suggesting city-level queries if a specific district lookup fails.
  • Configurable forecast ranges allowing for precise temporal data retrieval up to 8 days in advance.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*