Skip to main content
skill CX Codex

weather · hkuds — Claude Code skill: what it does, how to install

Fetches current conditions and weather forecasts via wttr.in and Open-Meteo without API keys.

MIT 4 installs ★ 50,255 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/nanobot --skill weather -a claude-code
Open on GitHub

What weather does

The skill provides instructions for querying weather data with curl. It relies on wttr.in for human-readable terminal output, short summaries, and airport lookups. When an agent needs structured data like temperature or wind speed based on coordinates, it queries the Open-Meteo JSON endpoint instead.

A local curl binary is required. Under Windows PowerShell, bare curl resolves to Invoke-WebRequest, so queries must explicitly call curl.exe.

What it helps with

  • check current temperature and wind in a specific city
  • fetch today's forecast in a single network call
  • look up airport conditions with IATA codes
  • query coordinates for JSON weather data via Open-Meteo

Example prompts for the agent

  • What is the current weather in London?
  • Show me today's forecast for JFK using metric units.
  • Get JSON weather conditions for latitude 51.5 and longitude -0.12.

How to install weather

1Skills CLI (Vercel)

npx skills add HKUDS/nanobot --skill weather -a claude-code

2Manually: put the files in place

~/.claude/skills/weather/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/weather/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about weather

How to install weather in Claude Code?

Run npx skills add HKUDS/nanobot --skill weather -a claude-code in your terminal.

Does the weather skill need an API key?

No keys are needed. Both wttr.in and Open-Meteo provide free endpoints without authentication.

What tools must be installed on the system?

You need curl. If you run Windows PowerShell, use curl.exe to avoid conflicts with the built-in Invoke-WebRequest alias.

Source text

SKILL.md · MIT
---
name: weather
description: Get current weather and forecasts.
homepage: https://wttr.in/:help
metadata: {"nanobot":{"emoji":"🌤️","requires":{"bins":["curl"]}}}
---

# Weather

Two free services, no API keys needed.

## wttr.in (primary)

Choose one request that matches the user's scope. Do not fetch current
conditions separately when a today or forecast request already includes them.

Platform notes:
- On Windows PowerShell, use `curl.exe`; bare `curl` may resolve to
  `Invoke-WebRequest`.
- On macOS and Linux, use `curl`.

Current conditions only:
```bash
curl -s "https://wttr.in/London?format=3"
# Output: London: ⛅️ +8°C
```

Custom current conditions format:
```bash
curl -s "https://wttr.in/London?format=%l:+%c+%t+%h+%w"
# Output: London: ⛅️ +8°C 71% ↙5km/h
```

Today's weather, including current conditions (use this single request for
questions about today's weather):
```bash
curl -s "https://wttr.in/London?1&m"
```

Full forecast:
```bash
curl -s "https://wttr.in/London?T&m"
```

On Windows PowerShell, replace `curl` with `curl.exe` in the commands above.

Format codes: `%c` condition · `%t` temp · `%h` humidity · `%w` wind · `%l` location · `%m` moon

Tips:
- URL-encode spaces: `wttr.in/New+York`
- Airport codes: `wttr.in/JFK`
- Units: `?m` (metric) `?u` (USCS)
- Today only: `?1` · Current only: `?0`
- PNG (macOS/Linux): `curl -s "https://wttr.in/Berlin.png" -o weather.png`
- PNG (Windows PowerShell): `curl.exe -s "https://wttr.in/Berlin.png" -o weather.png`

## Open-Meteo (fallback, JSON)

Free, no key, good for programmatic use:
```bash
curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true"
```

Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.

Docs: https://open-meteo.com/en/docs

© HKUDS · MIT · HKUDS/nanobot

Similar skills

All skills for Agent setup: memory, context, orchestration →

weather by other authors comes first.

weather openclaw The weather skill fetches current conditions and forecasts for a city, region, airport code, or coordinates. Use it to check rain and temperature or plan a trip. CX Codex +1 9,400installs weather happycapy-ai Fetches current conditions and forecasts for a city or airport. It works for quick answers and JSON-based weather requests. CX Codex +1 ★ 138repo stars pp-weather-goat Trevin Chow pp-weather-goat — a skill for Claude Code, Cursor, Codex and other platforms that answers weather, storm, air-quality and activity questions. Triggers on phrasings like 'what's the weather', 'is it going to rain', 'can I bike to work'. CX Codex +1 510installs weather-fetcher shanraisshan weather-fetcher — a skill for Claude Code, Codex, Cursor, and other AI coding platforms that retrieves the current temperature in Dubai via Open-Meteo API. The agent calls it when you need degrees without signup or keys. CX Codex +1 1installs weather-query vikiboss The weather-query skill fetches current conditions and forecasts for places in China. Use it when an agent needs weather, air quality, or trip-planning data. CX Codex +1 828installs mcp-server-taiwan-weather GoneTone Supplies AI models with 36-hour Taiwan weather forecasts from the official CWA open data API. Useful for regional trip planning or location-aware assistant prompts. CX Codex +1 ★ 11repo stars Xweather Weather MCP vaisala-xweather Xweather Weather MCP — a hosted MCP server that feeds Xweather conditions, forecasts and alerts into your coding agent over HTTP. CX Codex +1 GribStream.com Historical Weather Forecast API elpeque2 The GribStream.com Historical Weather Forecast API MCP server lets AI coding tools inspect GribStream forecast datasets, verify parameters, and prepare or run weather API requests. CX Codex +1 2,733installs

Project sponsors

Companies that keep this analytics open