Skip to content
Back to skills

215 Name Skill 2857b1e4

ASecurity

查询城市天气信息。当用户询问某个城市的天气、温度、湿度等信息时使用。

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 215-name-skill_2857b1e4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 215 Name Skill 2857b1e4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 215 Name Skill 2857b1e4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-215-name-skill-2857b1e4/badge)](https://www.skillsdirectory.com/skills/tools-only-215-name-skill-2857b1e4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: weather
description: 查询城市天气信息。当用户询问某个城市的天气、温度、湿度等信息时使用。
license: MIT
compatibility: Requires Python 3.x, network access
metadata:
  author: skillLite
  version: "3.0"
---

# Weather Skill

查询指定城市的**真实天气**信息。**开箱即用,无需配置任何 API Key!**

## 数据来源(按优先级)

| 优先级 | 数据源 | 需要 Key | 说明 |
|--------|--------|----------|------|
| 1 | **中华万年历** | ❌ 不需要 | 国内免费稳定,默认使用 |
| 2 | **sojson天气** | ❌ 不需要 | 备用免费源,含空气质量 |
| 3 | 和风天气 | ✅ 需要 | 数据详细 |
| 4 | 高德天气 | ✅ 需要 | 国内稳定 |
| 5 | wttr.in | ❌ 不需要 | 国外服务,可能超时 |

## 直接使用(推荐)

无需任何配置,直接查询即可获取真实天气数据!

## 可选配置

如需更详细的天气数据,可配置以下 API:

### 高德天气 API
```bash
export AMAP_API_KEY=your_key  # https://lbs.amap.com
```

### 和风天气 API
```bash
export QWEATHER_API_KEY=your_key  # https://dev.qweather.com
```

## 示例

输入: `{"city": "深圳"}`
输出:
```json
{
  "city": "深圳",
  "temperature": "18°C",
  "weather": "多云",
  "high": "20°C",
  "low": "14°C",
  "wind": "东北风 3-4级",
  "tip": "天气较凉,注意添加衣物",
  "source": "中华万年历",
  "success": true
}
```


Files in this skill

  • README.md770 B
  • skill.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.