Agent skill
weather
Get current weather and forecasts with verified location matching (no API key required).
Install this agent skill to your Project
npx add-skill https://github.com/sipeed/picoclaw/tree/main/workspace/skills/weather
Metadata
Additional technical details for this skill
- nanobot
-
{ "emoji": "\ud83c\udf24\ufe0f", "requires": { "bins": [ "curl" ] } }
SKILL.md
Weather
Use the most reliable location match first. For Chinese city names or other non-Latin input, prefer wttr.in with the original query because it resolves native names directly. Use Open-Meteo for structured current conditions and forecasts only after you have confirmed the exact city.
Accuracy Rules
- Always restate the matched location, region/country, and observation time in the final answer.
- Do not trust the first geocoding hit blindly. Check
country,admin1,admin2, andpopulation. - For Chinese city queries, do not send Hanzi directly to Open-Meteo geocoding unless the top result is obviously correct. Prefer
wttr.inwith the original Chinese name, or geocode the English/pinyin city name instead. - If multiple plausible matches remain, ask a follow-up question or state the assumption clearly.
- Use
timezone=autowhen calling Open-Meteo so the reported time matches the location.
wttr.in (best for direct city-name queries)
Quick current conditions:
curl -s "https://wttr.in/London?format=%l:+%c+%t+%h+%w"
Chinese city example:
curl -s "https://wttr.in/%E6%88%90%E9%83%BD?format=%l:+%c+%t+%h+%w"
curl -s "https://wttr.in/%E4%B8%8A%E6%B5%B7?format=%l:+%c+%t+%h+%w"
JSON output if you need more detail:
curl -s "https://wttr.in/Chengdu?format=j1"
Tips:
- URL-encode spaces:
New York->New+York - URL-encode non-ASCII text before sending the request
- Use
?mfor metric units and?ufor US units
Open-Meteo (best for structured forecasts)
- Geocode the city and verify the returned location metadata:
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=Chengdu&count=3&language=en&format=json"
- Query current weather and today's forecast with the verified coordinates:
curl -s "https://api.open-meteo.com/v1/forecast?latitude=30.66667&longitude=104.06667¤t=temperature_2m,relative_humidity_2m,weather_code,wind_speed_10m&daily=weather_code,temperature_2m_max,temperature_2m_min&forecast_days=1&timezone=auto"
Important:
- For Chinese inputs like
成都, geocodingname=%E6%88%90%E9%83%BDmay return smaller homonym locations first. PreferChengduafter verifying it matches Sichuan, China. - If geocoding looks suspicious, fall back to
wttr.infor the original city name instead of presenting a likely wrong result.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
summarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
tmux
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
hardware
Read and control I2C and SPI peripherals on Sipeed boards (LicheeRV Nano, MaixCAM, NanoKVM).
agent-browser
Browser automation via agent-browser CLI. Use when the user needs to navigate websites, fill forms, click buttons, take screenshots, extract data, or test web apps.
skill-creator
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Didn't find tool you were looking for?