weather
通过 wttr.in 或 Open-Meteo 获取当前天气和预报。适用于:用户询问天气、温度或任何地点的预报。不适用于:历史天气数据、极端天气警报或详细的气象分析。无需 API 密钥。
Best use case
weather is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
通过 wttr.in 或 Open-Meteo 获取当前天气和预报。适用于:用户询问天气、温度或任何地点的预报。不适用于:历史天气数据、极端天气警报或详细的气象分析。无需 API 密钥。
Teams using weather should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/weather/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How weather Compares
| Feature / Agent | weather | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
通过 wttr.in 或 Open-Meteo 获取当前天气和预报。适用于:用户询问天气、温度或任何地点的预报。不适用于:历史天气数据、极端天气警报或详细的气象分析。无需 API 密钥。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 天气查询技能 获取当前天气状况和预报。 ## 何时使用 ✅ **在以下情况下使用此技能:** - “天气怎么样?” - “今天/明天会下雨吗?” - “[城市] 的温度是多少?” - “本周天气预报” - 旅行计划时的天气检查 ## 何时不要使用 ❌ **在以下情况下不要使用此技能:** - 历史天气数据 → 使用天气档案/API - 气候分析或趋势 → 使用专业数据源 - 超本地微气候数据 → 使用本地传感器 - 极端天气警报 → 检查官方气象源 - 航空/航海天气 → 使用专业服务(METAR 等) ## 地点 在天气查询中始终包含城市、地区或机场代码。 ## 命令示例 ### 当前天气 ```bash # 单行摘要 curl "wttr.in/Beijing?format=3" # 详细的当前状况 curl "wttr.in/Shanghai?0" # 特定城市 curl "wttr.in/New+York?format=3" ``` ### 天气预报 ```bash # 3 天预报 curl "wttr.in/Guangzhou" # 周预报 curl "wttr.in/Shenzhen?format=v2" # 特定日期(0=今天, 1=明天, 2=后天) curl "wttr.in/Beijing?1" ``` ### 格式化选项 ```bash # 单行格式 curl "wttr.in/Beijing?format=%l:+%c+%t+%w" # JSON 输出 curl "wttr.in/Beijing?format=j1" # PNG 图像 curl "wttr.in/Beijing.png" ``` ### 格式代码 - `%c` — 天气状况表情符号 - `%t` — 温度 - `%f` — “体感温度” - `%w` — 风力 - `%h` — 湿度 - `%p` — 降水量 - `%l` — 地点 ## 快速响应示例 **“天气如何?”** ```bash curl -s "wttr.in/Beijing?format=%l:+%c+%t+(体感+%f),+%w+风,+%h+湿度" ``` **“会下雨吗?”** ```bash curl -s "wttr.in/Beijing?format=%l:+%c+%p" ``` **“周末预报”** ```bash curl "wttr.in/Beijing?format=v2" ``` ## 注意事项 - 无需 API 密钥(使用 wttr.in)。 - 有速率限制;请勿高频请求。 - 适用于全球大多数城市。 - 支持机场代码:`curl wttr.in/PEK`
Related Skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
remotion-best-practices
Best practices for Remotion - Video creation in React
image-enhancer
Improves the quality of images, especially screenshots, by enhancing resolution, sharpness, and clarity. Perfect for preparing images for presentations, documentation, or social media posts.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
raffle-winner-picker
Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests. Ensures fair, unbiased selection with transparency.
nlm-skill
Expert guide for the NotebookLM CLI (`nlm`) and MCP server - interfaces for Google NotebookLM. Use this skill when users want to interact with NotebookLM programmatically, including: creating/managing notebooks, adding sources (URLs, YouTube, text, Google Drive), generating content (podcasts, reports, quizzes, flashcards, mind maps, slides, infographics, videos, data tables), conducting research, chatting with sources, or automating NotebookLM workflows. Triggers on mentions of "nlm", "notebooklm", "notebook lm", "podcast generation", "audio overview", or any NotebookLM-related automation task.
md-to-pdf
Use this skill when users want to convert Markdown files to PDF. Handles workflows like "Convert this markdown to PDF", "转换为PDF", "批量转换MD文件". Supports single file and batch directory conversion with excellent CJK (Chinese) font support, image embedding, and clean typography.
markdown-to-epub-converter
Convert markdown documents and chat summaries into formatted EPUB ebook files that can be read on any device or uploaded to Kindle.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
pptx
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks