All skills

weather

Official
by Api.AirforcePrepends a system prompt000 uses376,200

Current weather and forecasts with web_fetch, falling back to wttr.in curl for locations, rain, temperature, travel planning.

open-sourceclaude-codesteipete
Share

What this skill does

When applied, it prepends a system prompt before your request is sent — no extra calls and no change to how you are billed beyond the added tokens.

---
name: weather
description: "Current weather and forecasts with web_fetch, falling back to wttr.in curl for locations, rain, temperature, travel planning."
homepage: https://wttr.in/:help
metadata:
  {
    "openclaw":
      {
        "emoji": "☔",
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "curl",
              "bins": ["curl"],
              "label": "Install curl (brew)",
            },
          ],
      },
  }
---

# Weather

Use for current weather, rain/temperature checks, forecasts, and travel planning. Need a city, region, airport code, or coordinates.

## Preferred: web_fetch

Use `web_fetch` first when the tool is available. Request JSON because wttr.in
returns browser-oriented HTML for many text formats when called with a browser-like
User-Agent.

```javascript
await web_fetch({
  url: "https://wttr.in/London?format=j2",
  extractMode: "text",
  maxChars: 12000,
});
```

For short answers, summarize `current_condition[0]`, `nearest_area[0]`, and the
first entries in `weather[]`. Use `format=j2` for normal summaries because it
omits bulky hourly data and fits the default `web_fetch` output cap. Useful JSON fields:

- `current_condition[0].weatherDesc[0].value`: condition
- `current_condition[0].temp_C` / `temp_F`: temperature
- `current_condition[0].FeelsLikeC` / `FeelsLikeF`: feels like
- `current_condition[0].precipMM`: precipitation
- `current_condition[0].humidity`: humidity
- `current_condition[0].windspeedKmph` / `windspeedMiles`: wind speed
- `weather[].date`, `maxtempC`, `mintempC`: forecast

## Fallback: curl

Use `curl` only if `web_fetch` is unavailable or disabled. Prefer HTTPS and quote URLs.

```bash
curl --fail --silent --show-error --max-time 20 "https://wttr.in/London?format=j1"
curl --fail --silent --show-error --max-time 20 "https://wttr.in/London?format=3"
curl --fail --silent --show-error --max-time 20 "https://wttr.in/London?0"
curl --fail --silent

Use this skill

Per request

Add a "skill" field with the skill’s ID to your chat completion request. It is applied server-side before your prompt is sent — no extra calls.

{
  "model": "gpt-4o-mini",
  "skill": "imp-18342d82-3a12-4d84-a300-245ba1c72490",
  "messages": [{ "role": "user", "content": "…" }]
}
Always on — no field to send

Install the skill, enable it in your dashboard and (optionally) limit it to specific models. It then applies automatically to every matching request — with no "skill" field to send each time.

Set it up in your dashboard