About weather-fetcher
weather-fetcher is a task-specific skill for retrieving Dubai’s current temperature. It uses WebFetch with the Open-Meteo API and returns the value in Celsius or Fahrenheit as requested.
Key features
- 01Fetch Dubai's current temperature
- 02Support Celsius and Fahrenheit
- 03Read the temperature and unit from the response
Use cases
- 01Check Dubai's current temperature in Celsius
- 02Request Dubai's temperature in Fahrenheit
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ shanraisshan/ claude-code-best-practice --skill weather-fetcherAfter installing, type/weather-fetcherin Claude Code to confirm it loaded.
Details
From the project READMEWeather 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
- 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