1.7 KiB
1.7 KiB
description, model
| description | model |
|---|---|
| Fetch and transform weather data for Karachi | haiku |
Weather Orchestrator Command
Fetch the current temperature for Karachi, Pakistan and apply transformations.
Workflow
- Use the AskUserQuestion tool to ask the user whether they want the temperature in Celsius or Fahrenheit
- Use the weather agent to fetch and transform the temperature data
Agent Invocation
Use the Task tool to invoke the weather agent. This agent has two skills preloaded:
weather-fetcher: Fetches current temperature from wttr.in APIweather-transformer: Applies transformation rules and writes results
Invoke Weather Agent
Use the Task tool to invoke the weather agent:
- subagent_type: weather
- description: Fetch and transform Karachi weather
- prompt: Fetch the current temperature for Karachi, Pakistan in [unit requested by user]. Then apply the transformation rules from input/input.md and write the results to output/output.md. The agent has preloaded skills (weather-fetcher and weather-transformer) that provide the detailed instructions.
- model: haiku
Wait for the agent to complete its workflow.
Critical Requirements
- Use Task Tool Only: DO NOT use bash commands to invoke agents. You must use the Task tool.
- Single Agent: The weather agent handles both fetching and transformation using its preloaded skills.
- Pass User Preference: Include the user's temperature unit preference in the prompt.
Output Summary
Provide a clear summary to the user showing:
- Temperature unit requested
- Original temperature fetched
- Transformation rule applied (from input/input.md)
- Final transformed result (written to output/output.md)