weather · diff

git:20260415.985c6f9 to git:20260903.31062ce

4 added, 0 removed. Audit A to A.

---
name: weather
description: Use this skill whenever the user wants to get weather information. This includes current weather, forecasts, temperature, humidity, wind, and weather conditions for any city or region.
---
# Weather Skill
Get weather information using the weather script.
## Usage
```sh
./scripts/weather.sh "City name"
```
+ Run it with the `execute_command` tool, `workdir` set to this skill's directory
+ (the folder containing this file), so the relative path resolves here rather than
+ in the user's project.
+
- **Note**: Use English or Pinyin for city names (e.g. Use "Wuhan" instead of "武汉")
The script fetches weather data from wttr.in in JSON format.
## Output
Current: `location | temp°C, condition | Humidity: X% | Wind: Ykm/h`
Forecast: `date | condition | temp°C`
## Example
```sh
./scripts/weather.sh "New York"
```
Output:
```
New York | 18°C, Partly cloudy | Humidity: 65% | Wind: 12km/h
2026-02-23 | Partly Cloudy | 18°C
2026-02-24 | Sunny | 20°C
2026-02-25 | Light Rain | 16°C
```