返回顶部
w

weather-query

Use when users ask about weather conditions, forecasts, or climate information for locations in China.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
714
下载量
2
收藏
概述
安装方式
版本历史

weather-query

# Weather Query Skill This skill enables AI agents to fetch real-time weather information and forecasts for locations in China using the provided shell scripts. ## When to Use This Skill Use this skill when users: - Ask about current weather conditions - Want weather forecasts - Need temperature, humidity, wind information - Request air quality data - Plan outdoor activities and need weather info ## How to Use ### Get Real-time Weather Use the `realtime.sh` script to get current conditions, air quality, daily life indices, and weather alerts. ```bash ./scripts/realtime.sh <query> [--encoding <text|json|markdown>] ``` ### Get Weather Forecast Use the `forecast.sh` script to get hourly and daily forecast data, along with sunrise/sunset times. ```bash ./scripts/forecast.sh <query> [--encoding <text|json|markdown>] [--days <0-8>] ``` - `query` (Required): The name of the city, district, or area in Chinese (e.g., `雨花台`, `北京`). Can be provided as a positional argument or with `--query`. - `encoding` (Optional): Used to specify the returned data format. Can be `text`, `json`, or `markdown`. - `days` (Optional, forecast only): Used to specify the weather forecast date range. An integer between 0 and 8. ## Response Format To balance information depth with token consumption, you **MUST** use the following rules for the `encoding` parameter: 1. **Default Strategy (`--encoding markdown`)** - **When to use:** By default for standard weather inquiries. - **Why:** Provides well-structured, easy-to-read information with moderate token usage. 2. **Brief Information (`--encoding text`)** - **When to use:** When the user explicitly requests brief or summarized weather information. - **Why:** Returns only essential details in plain text, saving maximum tokens. 3. **Complete Information (`--encoding json`)** - **When to use:** Only when the user explicitly asks for raw data, detailed fields, or comprehensive data (all indices, timestamps). - **Why:** Returns the complete API payload, which is highly token-heavy. ## Best Practices 1. **Location Names**: Always use Chinese characters for location names 2. **Error Handling**: Check if the location is valid before displaying results 3. **Context**: Provide relevant context based on weather conditions - Rain: Suggest bringing umbrella - Hot: Recommend staying hydrated - Cold: Advise wearing warm clothes - Poor AQI: Suggest wearing mask 4. **Fallbacks**: If a specific district doesn't work, try the city name ## Troubleshooting ### Issue: Location not found - **Solution**: Try using the main city name instead of district - Example: Use "北京" instead of "朝阳区" ### Issue: No forecast data - **Solution**: Verify the location name is correct - Try standard city names: 北京, 上海, 广州, 深圳, etc. ### Issue: Data seems outdated - **Solution**: The API updates regularly, but weather can change quickly - Check the `updated` timestamp in the response ## Supported Locations The weather API supports most cities and districts in China, including: - Provincial capitals: 北京, 上海, 广州, 深圳, 成都, 杭州, 南京, 武汉, etc. - Major cities: 苏州, 青岛, 大连, 厦门, etc. - Districts: 海淀区, 朝阳区, 浦东新区, etc.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 weather-query-1775990469 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 weather-query-1775990469 技能

通过命令行安装

skillhub install weather-query-1775990469

下载 Zip 包

⬇ 下载 weather-query v0.1.0

文件大小: 3.95 KB | 发布时间: 2026-4-13 12:32

v0.1.0 最新 2026-4-13 12:32
weather-query 0.1.0

- Initial release of the weather-query skill.
- Provides real-time weather information and forecasts for locations in China.
- Supports current conditions, air quality, daily life indices, and weather alerts.
- Includes scripts for both real-time data and multi-day forecasts.
- User can request info in text, markdown, or JSON formats.
- Offers usage best practices and troubleshooting guidance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部