
Weather Fetcher
Fetches the current temperature for Dubai from the Open-Meteo API in either Celsius or Fahrenheit. It's narrowly scoped to one city and one metric, making it more of a working example than a general-purpose tool. You get the WebFetch tool to hit specific lat/long coordinates, parse the JSON response for temperature_2m, and return a formatted result. Honestly useful if you're building something Dubai-specific or want a template for adding other cities, but you'll probably want to extend it beyond a single hardcoded location. Open-Meteo requires no API key, which keeps it simple for testing and demos.
- skills.sh installs
- 370
- GitHub stars
- 68.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add shanraisshan/claude-code-best-practice --skill weather-fetcher --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
-
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
- URL:
-
Extract Temperature: From the JSON response, extract the current temperature:
- Field:
current.temperature_2m - Unit label is in:
current_units.temperature_2m
- Field:
-
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
Sponsors
Details
- Repository
- github.com/shanraisshan/claude-code-best-practice
- Categories
- Backend & APIs, Code Review & Quality
- License
- MIT
- First seen
- Jun 3, 2026