weather-fetcher
Instructions for fetching the current temperature for Dubai, UAE from the Open-Meteo API.
- Kind
- Skill
- Works with
- Claude Code
- Source
- shanraisshan/claude-code-best-practice @ 6d0844baf620
- Path
- .claude/skills/weather-fetcher/SKILL.md
- License
- MIT
- Jobs
- Implementation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# 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 …