weather
Skill này làm gì
Skill này lấy thời tiết hiện tại và dự báo cho một thành phố mà không cần khóa API. Nó kiểm tra địa điểm cẩn thận để không nhầm các thành phố có tên giống nhau.
Khi nào nên dùng
- ✓Khi bạn hỏi thời tiết ở một thành phố lúc này như thế nào.
- ✓Khi bạn muốn dự báo cho một chuyến đi hoặc một ngày sắp tới.
- ✓Khi bạn hỏi về thời tiết ở một thành phố có nhiều tên trùng khớp.
Liên kết skill
https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thời tiết ở Thành Đô (Chengdu) hôm nay thế nào, và dự báo cho cuối tuần ra sao?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tra cứu thành phố, kiểm tra quốc gia và khu vực để xác nhận đúng địa điểm, rồi lấy điều kiện hiện tại và dự báo. Nó nhắc lại địa điểm khớp và thời điểm quan sát trong câu trả lời.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Tôi có cần khóa API không?
Không. Skill dùng các dịch vụ thời tiết công khai không cần khóa.
Nếu tên thành phố mơ hồ thì sao?
Agent hỏi lại bạn hoặc nêu rõ giả định nó đã dùng.
Nó có xử lý tên thành phố bằng ngôn ngữ khác không?
Có. Tên bản địa, như tên thành phố tiếng Trung, được xử lý bằng tra cứu trực tiếp.
Chi tiết
Mô tả gốc của tác giả
Get current weather and forecasts with verified location matching (no API key required).
repo: sipeed/picoclaw
Độ phổ biến
- Sao GitHub
- 30k
- Vị trí xếp hạng
- #9359
- Giấy phép
- MIT
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-browser
30kGiúp agent của bạn mở trang web, điền biểu mẫu, bấm nút, chụp ảnh màn hình và lấy dữ liệu bằng một công cụ dòng lệnh trình duyệt.
hardware
30kGiúp agent của bạn đọc cảm biến và điều khiển các thiết bị nhỏ như màn hình trên bo mạch Sipeed qua kết nối I2C và SPI.
picoclaw-agent
30kGiúp agent của bạn thiết lập, cấu hình và xử lý sự cố PicoClaw, một trợ lý AI cá nhân nhẹ có cổng chat và tác vụ theo lịch.
summarize
30kGiúp agent của bạn tóm tắt trang web, file cục bộ và video YouTube, hoặc lấy bản chép lời khi có sẵn.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.