Skip to main content
ClaudeWave
ES, Spanish
Skill674 estrellas del repoactualizado 5mo ago

weather

This skill queries real-time weather and seven-day forecasts for any global city using the free Open-Meteo API, requiring no authentication. Use it when users ask about weather conditions, temperature, precipitation, humidity, wind, clothing suggestions, or travel recommendations, supporting both Chinese and English city names like "北京天气怎么样" or "Tokyo weather forecast."

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/AgentTeam-TaichuAI/ScienceClaw /tmp/weather && cp -r /tmp/weather/Skills/weather ~/.claude/skills/weather
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# Weather — 天气查询与预报

使用免费的 Open-Meteo API 查询实时天气和 7 天预报,无需 API Key。

## 工作流程

### 1. 解析城市

从用户消息中提取城市名。如果未指定城市,询问用户或使用上次查询的城市(检查 CONTEXT.md)。

### 2. 获取坐标

使用 Open-Meteo Geocoding API 将城市名转为经纬度:

```bash
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=Beijing&count=1&language=zh"
```

从返回的 JSON 中提取 `latitude`, `longitude`, `name`, `country`。

### 3. 查询天气

**实时天气 + 7天预报**(一次请求全部获取):

```bash
curl -s "https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&current=temperature_2m,relative_humidity_2m,apparent_temperature,precipitation,weather_code,wind_speed_10m,wind_direction_10m&daily=weather_code,temperature_2m_max,temperature_2m_min,precipitation_sum,precipitation_probability_max,wind_speed_10m_max&timezone=auto&forecast_days=7"
```

### 4. 解读天气代码

将 `weather_code` 转为可读文字:

| Code | 天气 | | Code | 天气 |
|------|------|-|------|------|
| 0 | 晴天 ☀️ | | 51-55 | 毛毛雨 🌧️ |
| 1-3 | 多云 ⛅ | | 61-65 | 雨 🌧️ |
| 45-48 | 雾 🌫️ | | 71-77 | 雪 ❄️ |
| | | | 80-82 | 阵雨 🌦️ |
| | | | 95-99 | 雷暴 ⛈️ |

### 5. 回复用户

用自然语言回复,包含:

**实时天气**:
- 城市名 + 当前温度 + 体感温度
- 天气状况(晴/多云/雨等)
- 湿度 + 风速风向
- 降水量(如果有)

**未来预报**(按用户需求,默认 3 天):
- 每天:最高/最低温度 + 天气 + 降水概率

**实用建议**(可选):
- 穿衣建议(基于温度和风速)
- 出行建议(基于降水概率)
- 紫外线提醒(晴天高温时)

## 回复示例

```
🌤️ 北京今日天气

当前温度 22°C(体感 20°C),多云,湿度 45%,东南风 12 km/h。

📅 未来三天预报:
• 明天(周二):晴,18-26°C,降水概率 5%
• 后天(周三):多云转阴,15-22°C,降水概率 35%
• 大后天(周四):小雨,12-18°C,降水概率 80%

💡 建议:今天适合外出,明天气温回升可穿薄外套。周四建议带伞。
```

## 注意事项

- Open-Meteo 免费无限制,无需 API Key
- 温度单位默认摄氏度,如用户要求可切换华氏度(加 `&temperature_unit=fahrenheit`)
- 如果 geocoding 返回多个结果,选第一个(最相关),必要时确认
- 对中文城市名,geocoding 参数加 `&language=zh` 获得中文结果
brainstormingSkill

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

copywritingSkill

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever someone is working on website text that needs to persuade or convert.

deep-researchSkill

多源深度调研与专业报告生成。适用场景广泛——只要用户的问题涉及需要深度分析的专业话题,就应使用此技能。包括但不限于:(1) 用户明确要求调研/research/综述/报告/发现;(2) 用户提出一个技术或科学话题,话题复杂度需要多源深度分析;(3) 用户要求对比多种技术方案的优劣;(4) 涉及生物医药、蛋白质、基因、药物靶点等需要专业数据库支撑的问题。核心能力:根据问题性质自动组合 arXiv 论文检索 + ToolUniverse 科学工具(UniProt/OpenTargets/PubMed/FAERS 等 1000+ 工具)+ Web 搜索,多源采集数据,交叉分析,生成专业 PDF/DOCX 研究报告。

docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

feishu-setupSkill

自动配置飞书机器人应用。当用户要求配置飞书、创建飞书机器人、接入 Lark/飞书、设置飞书 app_id/app_secret、或询问如何配置飞书 IM 时触发此 skill。该 skill 通过 sandbox 内置浏览器自动完成飞书开放平台上的应用创建、权限配置、事件订阅和发布,用户仅需扫码登录。

find-skillsSkill

MANDATORY: When a user asks to install, find, search, or add ANY skill (e.g. 'install hello-world skill', 'find a skill for X', 'add a skill'), you MUST first run `skills find <query>` to search the skills ecosystem. NEVER create a skill from scratch without searching first. Even if the name sounds simple, always search — it may already exist as a published skill.

pdfSkill

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptxSkill

Use this skill any time a .pptx file is involved — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading or extracting text from .pptx files; editing or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck', 'slides', 'presentation', or references a .pptx filename. If a .pptx file needs to be opened, created, or touched, use this skill.