# Weather Query

> 查询城市天气信息。支持实时天气、天气预报、气象预警。适用于用户询问天气状况、出行穿衣建议等场景。

- **Type:** Skill
- **Install:** `agentstack add skill-shihan-1147-skillmcp-agent-weather`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [shihan-1147](https://agentstack.voostack.com/s/shihan-1147)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [shihan-1147](https://github.com/shihan-1147)
- **Source:** https://github.com/shihan-1147/SkillMCP-Agent/tree/main/src/skills/weather

## Install

```sh
agentstack add skill-shihan-1147-skillmcp-agent-weather
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 天气查询技能

此技能用于查询城市天气信息，提供实时天气数据和预报服务。

## 能力范围

- **实时天气**: 查询当前温度、湿度、风力等
- **天气预报**: 未来几天的天气趋势
- **地理定位**: 将城市名转换为查询参数
- **穿衣建议**: 根据天气给出出行建议

## 使用场景

当用户提出以下类型的问题时，应激活此技能：
- "今天北京天气怎么样？"
- "上海明天会下雨吗？"
- "杭州这周的天气预报"
- "出门需要带伞吗？"

## 依赖工具

| 工具名称 | 用途 | 必需 |
|---------|------|-----|
| `amap_weather` | 查询天气信息 | ✅ |
| `amap_geo` | 地理编码（城市→坐标） | ❌ |

## 输入参数

| 参数 | 类型 | 必填 | 说明 |
|-----|------|-----|------|
| city | string | ✅ | 城市名称 |
| type | string | ❌ | 查询类型: live(实时)/forecast(预报) |

## 输出格式

```json
{
  "success": true,
  "data": {
    "city": "北京",
    "weather": "晴",
    "temperature": "25",
    "humidity": "40%",
    "wind": "东北风 3级",
    "update_time": "2026-01-19 14:00",
    "suggestion": "天气晴好，适合户外活动"
  }
}
```

## 处理流程

1. 解析用户意图，提取城市名
2. 调用天气查询工具获取数据
3. 生成天气描述和建议
4. 格式化输出结果

## 注意事项

- 城市名支持中文和拼音
- 可以查询区县级别的天气
- 预报最多支持未来 7 天

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [shihan-1147](https://github.com/shihan-1147)
- **Source:** [shihan-1147/SkillMCP-Agent](https://github.com/shihan-1147/SkillMCP-Agent)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-shihan-1147-skillmcp-agent-weather
- Seller: https://agentstack.voostack.com/s/shihan-1147
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
