updated concepts

This commit is contained in:
Shayan Rais
2026-03-02 12:06:47 +05:00
parent 3776747e8a
commit 569bc9e5e2
25 changed files with 828 additions and 351 deletions
+14 -10
View File
@@ -1,6 +1,7 @@
---
name: weather-fetcher
description: Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API
description: Instructions for fetching current weather temperature data for Dubai, UAE from wttr.in API
user-invocable: false
---
# Weather Fetcher Skill
@@ -9,28 +10,31 @@ This skill provides instructions for fetching current weather data.
## Task
Fetch the current temperature for Karachi, Pakistan in degrees Celsius (Centigrade).
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 Karachi from wttr.in API:
- URL: `https://wttr.in/Karachi?format=j1`
1. **Fetch Weather Data**: Use the WebFetch tool to get current weather data for Dubai from wttr.in API:
- URL: `https://wttr.in/Dubai?format=j1`
- This returns JSON format weather data
2. **Extract Temperature**: From the JSON response, extract the current temperature in Celsius from the `current_condition` section.
2. **Extract Temperature**: From the JSON response, extract the current temperature:
- For Celsius: use `temp_C` from the `current_condition` section
- For Fahrenheit: use `temp_F` from the `current_condition` section
3. **Store Result**: Keep the temperature value for the next step (transformation).
3. **Return Result**: Return the temperature value and unit clearly.
## Expected Output
After completing this skill's instructions:
```
Current Karachi Temperature: [X]°C
Status: Successfully fetched weather data
Current Dubai Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]
```
## Notes
- Only fetch the temperature, do not perform any transformations yet
- Only fetch the temperature, do not perform any transformations or write any files
- Use wttr.in as it provides reliable, free weather data
- Return just the numeric temperature value clearly
- Return the numeric temperature value and unit clearly
- Support both Celsius and Fahrenheit based on the caller's request