workflow updated

This commit is contained in:
Shayan Rais
2026-03-02 20:22:05 +05:00
parent 13874e6fda
commit 2453ac274f
5 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ name: weather-agent
description: Use this agent PROACTIVELY when you need to fetch weather data for Dubai, UAE. This agent fetches real-time temperature from wttr.in API using its preloaded weather-fetcher skill.
tools: WebFetch, Read, Write, Edit
model: sonnet
color: teal
color: green
maxTurns: 5
permissionMode: acceptEdits
memory: project
+1
View File
@@ -16,6 +16,7 @@
"mcp__reddit-mcp-server__search_reddit",
"mcp__tavily-web-search__tavily_search",
"mcp__tavily-web-search__tavily_extract",
"WebFetch(domain:api.open-meteo.com)",
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:docs.anthropic.com)",
"WebFetch(domain:support.claude.com)",
+12 -7
View File
@@ -1,6 +1,6 @@
---
name: weather-fetcher
description: Instructions for fetching current weather temperature data for Dubai, UAE from wttr.in API
description: Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
user-invocable: false
---
@@ -14,13 +14,17 @@ Fetch the current temperature for Dubai, UAE in the requested unit (Celsius or F
## Instructions
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
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&current=temperature_2m&temperature_unit=celsius`
For **Fahrenheit**:
- URL: `https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708&current=temperature_2m&temperature_unit=fahrenheit`
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
- Field: `current.temperature_2m`
- Unit label is in: `current_units.temperature_2m`
3. **Return Result**: Return the temperature value and unit clearly.
@@ -35,6 +39,7 @@ Unit: [Celsius/Fahrenheit]
## Notes
- Only fetch the temperature, do not perform any transformations or write any files
- Use wttr.in as it provides reliable, free weather data
- 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
+1 -1
View File
@@ -1,7 +1,7 @@
# Weather Result
## Temperature
32°C
26.8°C
## Location
Dubai, UAE
+1 -1
View File
@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 160" width="300" height="160">
<rect width="300" height="160" rx="12" fill="#1a1a2e"/>
<text x="150" y="45" text-anchor="middle" fill="#8892b0" font-family="system-ui" font-size="14">Unit: Celsius</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">32°C</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">26.8°C</text>
<text x="150" y="140" text-anchor="middle" fill="#64ffda" font-family="system-ui" font-size="16">Dubai, UAE</text>
</svg>

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 522 B