Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install weathercli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install weathercli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/weathercli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: weathercli description: Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required. ---
Use the weathercli command to retrieve weather information for any location worldwide.
Get real-time weather conditions including temperature, humidity, wind, and precipitation.
weathercli current "<location>"
weathercli current "<location>" --json
Returns: Current temperature, "feels like" temperature, humidity %, wind speed/direction, pressure, cloud cover, UV index, precipitation, weather condition description, and timestamp in local timezone.
Get daily or hourly weather forecasts.
# Daily forecast (default: 7 days, max: 16)
weathercli forecast "<location>" --days <N>
# Hourly forecast (max: 384 hours)
weathercli forecast "<location>" --hourly --hours <N>
# JSON output for parsing
weathercli forecast "<location>" --json
Returns: For each day/hour: temperature (high/low or current), weather condition, precipitation probability and amount, wind speed/direction, UV index, sunrise/sunset times (daily only).
Find coordinates and timezone information for a location.
weathercli search "<location>"
weathercli search "<location>" --json
Returns: Location name, coordinates (lat/lon), country, region/state, timezone.
Locations are flexible and geocoded automatically:
"London", "Tokyo", "New York""Paris, France", "Berlin, Germany""Portland, Oregon", "Barcelona, Catalonia"--json - Output structured JSON (recommended for parsing)--no-color - Disable color output (for plain text parsing)--days N - Number of days for forecast (1-16, default: 7)--hourly - Show hourly instead of daily forecast--hours N - Number of hours for hourly forecast (1-384)--verbose - Show detailed request informationColor-coded temperatures, formatted with emojis and units. Times shown in location's local timezone.
Current weather:
{
"location": {
"name": "Tokyo",
"latitude": 35.6895,
"longitude": 139.6917,
"country": "Japan",
"timezone": "Asia/Tokyo"
},
"time": "2026-01-12T18:45:00+09:00",
"temperature": 4.7,
"apparent": 1.8,
"humidity": 66,
"wind_speed": 3.6,
"wind_direction": 135,
"condition": "Clear sky",
"weather_code": 0,
"precipitation": 0,
"cloud_cover": 0,
"pressure": 1015.2,
"uv_index": 0
}
Forecast:
{
"location": { ... },
"daily": [
{
"date": "2026-01-12",
"temp_max": 12.1,
"temp_min": 4.3,
"condition": "Slight rain",
"precip_prob": 75,
"precipitation": 1.5,
"sunrise": "2026-01-12T08:04:00+09:00",
"sunset": "2026-01-12T16:45:00+09:00",
"wind_speed_max": 15.3,
"wind_direction": 202,
"uv_index_max": 2.4
}
]
}
search command first to validate--json for programmatic parsingtemperature, condition, wind_speed for quick summariesprecip_prob for rain likelihoodsunrise/sunset for daylight planningweather_code follows WMO standard (0-99)apparent temperature for "feels like" comfortQuick weather check:
weathercli current "London" --json | jq '.temperature, .condition'
Week forecast for trip:
weathercli forecast "Barcelona" --days 5 --json
Detailed today's hourly:
weathercli forecast "Seattle" --hourly --hours 24
Check multiple cities:
for city in "Tokyo" "London" "New York"; do
weathercli current "$city" --json | jq -r '"\(.location.name): \(.temperature)°C, \(.condition)"'
done
Find exact location:
weathercli search "Springfield" --json
Location not found:
Error: location not found: Atlantis
→ Check spelling, try adding country/region
Network error:
Error: weather API error: network timeout
→ Retry after brief delay
Invalid input:
Error: invalid days value
→ Check --days is between 1-16
If weathercli is not available:
# Via Go
go install github.com/pjtf93/weathercli/cmd/weathercli@latest
# Or download binary from releases
# https://github.com/pjtf93/weathercli/releases安装 Weathercli 后,可以对 AI 说这些话来触发它
Help me get started with Weathercli
Explains what Weathercli does, walks through the setup, and runs a quick demo based on your current project
Use Weathercli to get current weather conditions and forecasts for any location world...
Invokes Weathercli with the right parameters and returns the result directly in the conversation
What can I do with Weathercli in my data & analytics workflow?
Lists the top use cases for Weathercli, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/weathercli/ 目录(个人级,所有项目可用),或 .claude/skills/weathercli/(项目级)。重启 AI 客户端后,用 /weathercli 主动调用,或让 AI 根据上下文自动发现并使用。
Weathercli 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Weathercli 可免费安装使用。请查阅仓库了解许可证信息。
Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required.
Weathercli 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Weathercli
Identifies repetitive steps in your workflow and sets up Weathercli to handle them automatically