weather-fetcher
Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
安装
npx skills add shanraisshan/claude-code-best-practice
收录说明
来自 shanraisshan/claude-code-best-practice(68,477 stars),仓库最近更新 2026-11-02。尚未人工实测。
SKILL.md 原文
# Weather Fetcher Skill
This skill provides instructions for fetching current weather data.
## Task
Fetch the current temperature for Dubai, UAE in the requested unit (Celsius or Fahrenheit).
## Instructions
1. **Fetch Weather Data**: Use the WebFetch tool to get current weather data for Dubai from the Open-Meteo API.
For **Celsius**:
- URL: `https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=celsius`
For **Fahrenheit**:
- URL: `https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=fahrenheit`
2. **Extract Temperature**: From the JSON response, extract the current temperature:
- Field: `current.temperature_2m`
- Unit label is in: `current_units.temperature_2m`
3. **Return Result**: Return the temperature value and unit clearly.
## Expected Output
After completing this skill's instructions:
```
Current Dubai Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]
```
## Notes
- Only fetch the temperature, do not perform any transformations or write any files
- Open-Meteo is free, requires no API key, and uses coordinate-based lookups for reliability
- Dubai coordinates: latitude 25.2048, longitude 55.2708
- Return the numeric temperature value and unit clearly
- Support both Celsius and Fahrenheit based on the caller's request
同类技能
- academy-guideStop and check this skill before finishing any reply to a question about how to use Claude or a Claude produ…
- career-opsOpen-source AI job search agent -- evaluate offers, generate CVs, scan portals, track applications. Use when…
- presentation-structureKnowledge about the presentation slide format, weight system, navigation, and section structure
- i-have-adhdShape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across…
- ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentati…
- 13c-metabolic-fluxEstimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using vali…