本文へスキップ
Skillpedia
タスクとプロジェクト30k · #9359

weather

できること

このスキルは、APIキーなしで、都市の現在の天気と予報を取得します。似た名前の都市を取り違えないよう、場所を慎重に確認します。

使う場面

  • ✓ある都市の今の天気を尋ねるとき。
  • ✓旅行や翌日の予報がほしいとき。
  • ✓同じ名前の都市が複数ある都市の天気を尋ねるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“今日の成都の天気と、週末の予報を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは都市を調べ、国と地域を確認して一致を確かめます。その後、現在の状況と予報を取得します。答えには、一致した場所と観測の時刻を改めて示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

APIキーは必要ですか?

いいえ。スキルは、キーの要らない公開の天気サービスを使います。

都市名があいまいな場合は?

エージェントは追加の質問をするか、自分が立てた前提を述べます。

他の言語の都市名も扱えますか?

はい。中国語の都市名などの母語の名前は、直接の検索で扱えます。

詳細

作者による元の説明

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

repo: sipeed/picoclaw

人気

GitHubのスター
30k
ランキング
#9359
ライセンス
MIT
更新日
2026/10/30

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル