[changelog] 2.1.71
This commit is contained in:
@@ -38,7 +38,7 @@ 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:
|
||||
Use the Agent tool to invoke the weather agent:
|
||||
- subagent_type: weather-agent
|
||||
- prompt: Fetch the current temperature for Dubai, UAE in [unit]...
|
||||
|
||||
@@ -49,7 +49,7 @@ Use the Skill tool to invoke the weather-svg-creator skill:
|
||||
...
|
||||
```
|
||||
|
||||
The command orchestrates the entire workflow: it asks the user for their temperature unit preference, invokes the `weather-agent` via the Task tool, and then invokes the `weather-svg-creator` skill via the Skill tool.
|
||||
The command orchestrates the entire workflow: it asks the user for their temperature unit preference, invokes the `weather-agent` via the Agent tool, and then invokes the `weather-svg-creator` skill via the Skill tool.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ This is a **skill** — invoked directly by the command via the Skill tool. It r
|
||||
---
|
||||
name: weather-fetcher
|
||||
description: Instructions for fetching current weather temperature data
|
||||
for Dubai, UAE from wttr.in API
|
||||
for Dubai, UAE from Open-Meteo API
|
||||
user-invocable: false
|
||||
---
|
||||
|
||||
@@ -79,8 +79,9 @@ Fetch the current temperature for Dubai, UAE in the requested unit
|
||||
|
||||
## Instructions
|
||||
1. Fetch Weather Data: Use the WebFetch tool to get current weather data
|
||||
- URL: https://wttr.in/Dubai?format=j1
|
||||
2. Extract Temperature: From the JSON response, extract temp_C or temp_F
|
||||
- Celsius URL: https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=celsius
|
||||
- Fahrenheit URL: https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=fahrenheit
|
||||
2. Extract Temperature: From the JSON response, extract `current.temperature_2m`
|
||||
3. Return Result: Return the temperature value and unit clearly.
|
||||
|
||||
...
|
||||
@@ -116,4 +117,4 @@ Ask Claude to create one for you — it will generate the markdown file with YAM
|
||||
# My Skill
|
||||
|
||||
Instructions for what the skill does.
|
||||
```
|
||||
```
|
||||
|
||||
@@ -25,11 +25,13 @@ The weather agent is implemented in this repo as an example of the **Command →
|
||||
---
|
||||
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
|
||||
Dubai, UAE. This agent fetches real-time temperature from Open-Meteo
|
||||
using its preloaded weather-fetcher skill.
|
||||
tools: WebFetch, Read
|
||||
tools: WebFetch, Read, Write, Edit
|
||||
model: sonnet
|
||||
color: green
|
||||
maxTurns: 5
|
||||
permissionMode: acceptEdits
|
||||
memory: project
|
||||
skills:
|
||||
- weather-fetcher
|
||||
@@ -38,7 +40,7 @@ skills:
|
||||
# Weather Agent
|
||||
|
||||
You are a specialized weather agent that fetches weather data for Dubai,
|
||||
Pakistan.
|
||||
UAE.
|
||||
|
||||
## Your Task
|
||||
|
||||
@@ -54,7 +56,7 @@ skill:
|
||||
...
|
||||
```
|
||||
|
||||
The agent has one preloaded skill (`weather-fetcher`) that provides instructions for fetching from the wttr.in API. It returns the temperature value and unit to the calling command.
|
||||
The agent has one preloaded skill (`weather-fetcher`) that provides instructions for fetching from Open-Meteo. It returns the temperature value and unit to the calling command.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user