[] architecture changes

This commit is contained in:
Shayan Rais
2026-01-28 15:23:42 +05:00
parent 37827cc567
commit 7dba1d44e8
14 changed files with 329 additions and 745 deletions
+43
View File
@@ -0,0 +1,43 @@
---
description: Fetch and transform weather data for Karachi
model: haiku
---
# Weather Orchestrator Command
Fetch the current temperature for Karachi, Pakistan and apply transformations.
## Workflow
1. Use the AskUserQuestion tool to ask the user whether they want the temperature in Celsius or Fahrenheit
2. 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 API
- `weather-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
1. **Use Task Tool Only**: DO NOT use bash commands to invoke agents. You must use the Task tool.
2. **Single Agent**: The weather agent handles both fetching and transformation using its preloaded skills.
3. **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)
-14
View File
@@ -1,14 +0,0 @@
---
description: Fetch and transform weather data for Karachi
model: haiku
---
# Weather Command
Execute the weather-karachi skill to fetch and transform temperature data.
Use the Skill tool to execute the `weather-karachi` skill:
```
Skill(skill="weather-karachi")
```