Pular para o conteúdo
Skillpedia
Tarefas e projetos30 mil · #9359

weather

O que ela faz

Esta skill obtém o clima atual e a previsão de uma cidade sem precisar de chave de API. Ela confere a localização com cuidado para não confundir cidades com nomes parecidos.

Quando usar

  • ✓Quando você pergunta como está o clima em uma cidade agora.
  • ✓Quando você quer uma previsão para uma viagem ou para o dia seguinte.
  • ✓Quando você pergunta sobre o clima em uma cidade cujo nome tem várias correspondências.

Link da skill

https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Como está o tempo em Chengdu hoje, e qual é a previsão para o fim de semana?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente procura a cidade, confere o país e a região para confirmar a correspondência e depois obtém as condições atuais e a previsão. Ele repete na resposta o local encontrado e o horário da observação.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

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, and population.
  • For Chinese city queries, do not send Hanzi directly to Open-Meteo geocoding unless the top result is obviously correct. Prefer wttr.in with 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=auto when 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 ?m for metric units and ?u for US units

Open-Meteo (best for structured forecasts)

  1. 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"
  1. 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&current=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 成都, geocoding name=%E6%88%90%E9%83%BD may return smaller homonym locations first. Prefer Chengdu after verifying it matches Sichuan, China.
  • If geocoding looks suspicious, fall back to wttr.in for the original city name instead of presenting a likely wrong result.

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

Perguntas frequentes

Preciso de uma chave de API?

Não. A skill usa serviços públicos de clima que não exigem chave.

E se o nome da cidade for ambíguo?

O agente faz uma pergunta de confirmação ou informa a suposição que fez.

Ela lida com nomes de cidades em outros idiomas?

Sim. Nomes nativos, como nomes de cidades chinesas, são tratados por uma busca direta.

Detalhes

Descrição original do autor

Get current weather and forecasts with verified location matching (no API key required).

repo: sipeed/picoclaw

Popularidade

Estrelas no GitHub
30 mil
Posição no ranking
#9359
Licença
MIT
Atualizada em
30/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas