Search

PythonReactSEOPDF
OpenClaw

查天气

天气查询与预报(query_weather)

congwupiece0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install congwupiece/weather-wang

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

查天气

目的

为用户提供准确、及时的天气信息查询服务,帮助用户了解目标地区的天气状况,为出行、活动安排等提供决策依据。

前置条件

  • 明确查询的城市或地区名称
  • 确定查询的时间范围(实时/未来N天)

输入

输入 来源 说明
location 用户指定 城市或地区名称,如"北京"、"上海浦东"
days 用户指定(可选) 预报天数,默认为当天,可选1-7天
details 用户指定(可选) 是否需要详细信息(空气质量、紫外线等)

工作流步骤

步骤 1: 查询天气数据

工具: query_weather 参数: location — 地区名称; days — 预报天数; details — 是否详细

调用示例:

query_weather(location="北京", days=3, details=true)

预期返回:

{
  "location": "北京",
  "query_time": "2024-03-15 14:30:00",
  "current": {
    "temperature": 15,
    "feels_like": 13,
    "weather": "多云",
    "humidity": 45,
    "wind_speed": 12,
    "wind_direction": "西北风",
    "pressure": 1013,
    "visibility": 10
  },
  "forecast": [
    {
      "date": "2024-03-15",
      "day": "今天",
      "temp_high": 18,
      "temp_low": 8,
      "weather_day": "多云",
      "weather_night": "晴",
      "precipitation_prob": 10,
      "wind": "西北风3-4级",
      "aqi": 85,
      "uv_index": 5
    },
    {
      "date": "2024-03-16",
      "day": "明天",
      "temp_high": 20,
      "temp_low": 10,
      "weather_day": "晴",
      "weather_night": "晴",
      "precipitation_prob": 5,
      "wind": "南风2-3级",
      "aqi": 65,
      "uv_index": 7
    }
  ],
  "alerts": []
}
步骤 2: 智能分析与建议

执行方式: Agent 推理

Agent 根据天气数据,提供以下分析:

天气状况分类:

  • 优: 晴天,温度适宜(15-25°C),空气质量良好(AQI < 50)
  • 良: 多云或晴,温度可接受,空气质量一般(AQI 50-100)
  • 中: 阴天或小雨,温度偏冷/偏热,空气质量较差(AQI 100-150)
  • 差: 雨雪天气,极端温度,空气污染(AQI > 150)

出行建议:

天气条件 建议
降水概率 > 70% 建议携带雨具
温差 > 10°C 建议备好外套
AQI > 100 建议佩...

Source information

Source
github
Repository
openclaw/skills
Path
skills/congwupiece/weather-wang
Version
—
Commit
2f55ec7be29ea8d03e9c2a2abb87f244681f43a5
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 查天气

## 目的
为用户提供准确、及时的天气信息查询服务,帮助用户了解目标地区的天气状况,为出行、活动安排等提供决策依据。

## 前置条件
- 明确查询的城市或地区名称
- 确定查询的时间范围(实时/未来N天)

## 输入
| 输入 | 来源 | 说明 |
|------|------|------|
| location | 用户指定 | 城市或地区名称,如"北京"、"上海浦东" |
| days | 用户指定(可选) | 预报天数,默认为当天,可选1-7天 |
| details | 用户指定(可选) | 是否需要详细信息(空气质量、紫外线等) |

## 工作流步骤

### 步骤 1: 查询天气数据
**工具**: `query_weather`
**参数**: location — 地区名称; days — 预报天数; details — 是否详细

**调用示例**:
```
query_weather(location="北京", days=3, details=true)
```

**预期返回**:
```json
{
  "location": "北京",
  "query_time": "2024-03-15 14:30:00",
  "current": {
    "temperature": 15,
    "feels_like": 13,
    "weather": "多云",
    "humidity": 45,
    "wind_speed": 12,
    "wind_direction": "西北风",
    "pressure": 1013,
    "visibility": 10
  },
  "forecast": [
    {
      "date": "2024-03-15",
      "day": "今天",
      "temp_high": 18,
      "temp_low": 8,
      "weather_day": "多云",
      "weather_night": "晴",
      "precipitation_prob": 10,
      "wind": "西北风3-4级",
      "aqi": 85,
      "uv_index": 5
    },
    {
      "date": "2024-03-16",
      "day": "明天",
      "temp_high": 20,
      "temp_low": 10,
      "weather_day": "晴",
      "weather_night": "晴",
      "precipitation_prob": 5,
      "wind": "南风2-3级",
      "aqi": 65,
      "uv_index": 7
    }
  ],
  "alerts": []
}
```

### 步骤 2: 智能分析与建议
**执行方式**: Agent 推理

Agent 根据天气数据,提供以下分析:

**天气状况分类**:
- **优**: 晴天,温度适宜(15-25°C),空气质量良好(AQI < 50)
- **良**: 多云或晴,温度可接受,空气质量一般(AQI 50-100)
- **中**: 阴天或小雨,温度偏冷/偏热,空气质量较差(AQI 100-150)
- **差**: 雨雪天气,极端温度,空气污染(AQI > 150)

**出行建议**:
| 天气条件 | 建议 |
|----------|------|
| 降水概率 > 70% | 建议携带雨具 |
| 温差 > 10°C | 建议备好外套 |
| AQI > 100 | 建议佩...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.