---
description: Fetch weather data for Dubai and create an SVG weather card
model: haiku
---
## Workflow
### Step 1: Ask User Preference
Use the AskUserQuestion tool to ask the user whether they want the temperature
in Celsius or Fahrenheit.
### Step 2: Fetch Weather Data
Use the Task tool to invoke the weather agent:
- subagent_type: weather-agent
- prompt: Fetch the current temperature for Dubai, UAE in [unit requested by user].
### Step 3: Create SVG Weather Card
Use the Skill tool to invoke the weather-svg-creator skill:
- skill: weather-svg-creator
## Critical Requirements
1. Use Task Tool for Agent: DO NOT use bash commands to invoke agents.
You must use the Task tool.
2. Use Skill Tool for SVG Creator: Invoke the SVG creator via the Skill tool,
not the Task tool.
---name: weather-agentmodel: sonnetcolor: greenmaxTurns: 5skills: - weather-fetcher---# Weather Agent## Your Task1. Fetch: Follow the weather-fetcher skill instructions to fetch the current temperature2. Report: Return the temperature value and unit to the caller## Critical Requirements1. Use Your Skill: The skill content is preloaded - follow those instructions2. Return Data: Your job is to fetch and return the temperature - not to write files or create outputs
---name: weather-fetcheruser-invocable: false---## Instructions1. Fetch Weather Data: Use the WebFetch tool to get current weather data 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=celsius2. Extract Temperature: From the JSON response, extract current.temperature_2m3. Return Result: Return the temperature value and unit clearly.Notes:- Only fetch the temperature, do not perform any transformations or write any files- user-invocable: false (不能被用户直接调用,只能被 Agent 预加载)
---name: weather-svg-creatordescription: Creates an SVG weather card showing the current temperature for Dubai.---## TaskYou will receive a temperature value and unit from the calling context.Create an SVG weather card and write both the SVG and a markdown summary.## Instructions1. Create SVG — Use the SVG template, replacing placeholders with actual values2. Write SVG file — Write to orchestration-workflow/weather.svg3. Write summary — Write to orchestration-workflow/output.md## Rules- Use the exact temperature value and unit provided — do not re-fetch or modify