updated concepts

This commit is contained in:
Shayan Rais
2026-03-02 12:06:47 +05:00
parent 3776747e8a
commit 569bc9e5e2
25 changed files with 828 additions and 351 deletions
+14 -10
View File
@@ -1,6 +1,7 @@
---
name: weather-fetcher
description: Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API
description: Instructions for fetching current weather temperature data for Dubai, UAE from wttr.in API
user-invocable: false
---
# Weather Fetcher Skill
@@ -9,28 +10,31 @@ This skill provides instructions for fetching current weather data.
## Task
Fetch the current temperature for Karachi, Pakistan in degrees Celsius (Centigrade).
Fetch the current temperature for Dubai, UAE in the requested unit (Celsius or Fahrenheit).
## Instructions
1. **Fetch Weather Data**: Use the WebFetch tool to get current weather data for Karachi from wttr.in API:
- URL: `https://wttr.in/Karachi?format=j1`
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
2. **Extract Temperature**: From the JSON response, extract the current temperature in Celsius from the `current_condition` section.
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
3. **Store Result**: Keep the temperature value for the next step (transformation).
3. **Return Result**: Return the temperature value and unit clearly.
## Expected Output
After completing this skill's instructions:
```
Current Karachi Temperature: [X]°C
Status: Successfully fetched weather data
Current Dubai Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]
```
## Notes
- Only fetch the temperature, do not perform any transformations yet
- Only fetch the temperature, do not perform any transformations or write any files
- Use wttr.in as it provides reliable, free weather data
- Return just the numeric temperature value clearly
- Return the numeric temperature value and unit clearly
- Support both Celsius and Fahrenheit based on the caller's request
@@ -0,0 +1,72 @@
---
name: weather-svg-creator
description: Creates an SVG weather card showing the current temperature for
Dubai. Writes the SVG to orchestration-workflow/weather.svg and updates
orchestration-workflow/output.md.
---
# Weather SVG Creator Skill
This skill creates a visual SVG weather card and writes the output files.
## Task
Create an SVG weather card displaying the temperature for Dubai, UAE, and write it along with a summary to output files.
## Instructions
You will receive the temperature value and unit (Celsius or Fahrenheit) from the calling context.
### 1. Create SVG Weather Card
Generate a clean SVG weather card with the following structure:
```svg
<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/Fahrenheit]</text>
<text x="150" y="100" text-anchor="middle" fill="#ccd6f6" font-family="system-ui" font-size="42" font-weight="bold">[value]°[C/F]</text>
<text x="150" y="140" text-anchor="middle" fill="#64ffda" font-family="system-ui" font-size="16">Dubai, UAE</text>
</svg>
```
Replace `[Celsius/Fahrenheit]`, `[value]`, and `[C/F]` with actual values.
### 2. Write SVG File
Write the SVG content to `orchestration-workflow/weather.svg`.
### 3. Write Output Summary
Write to `orchestration-workflow/output.md`:
```markdown
# Weather Result
## Temperature
[value]°[C/F]
## Location
Dubai, UAE
## Unit
[Celsius/Fahrenheit]
## SVG Card
![Weather Card](weather.svg)
```
## Expected Input
Temperature value and unit from the weather-agent:
```
Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]
```
## Notes
- Use the exact temperature value and unit provided - do not re-fetch or modify
- The SVG should be a self-contained, valid SVG file
- Keep the design minimal and clean
- Both output files go in the `orchestration-workflow/` directory
@@ -1,54 +0,0 @@
---
name: weather-transformer
description: Instructions for applying mathematical transformations to temperature data based on rules in orchestration-workflow/input.md
---
# Weather Transformer Skill
This skill provides instructions for transforming temperature data.
## Task
Apply mathematical transformations to a temperature value and write results to output file.
## Instructions
1. **Read Transformation Rules**: Use the Read tool to read `orchestration-workflow/input.md` which contains the transformation instructions.
2. **Apply Transformation**: Apply the transformation rule to the temperature value.
- Example: If instruction says "add +10", add 10 to the temperature
- Example: If instruction says "multiply by 2", multiply temperature by 2
3. **Write Output**: Use the Write tool to save the transformed result to `orchestration-workflow/output.md` with proper formatting.
## Expected Input
The temperature value from the weather-fetcher skill:
```
Temperature: [X]°C
```
## Expected Output
Write to `orchestration-workflow/output.md` with format:
```markdown
# Weather Transformation Result
## Original Temperature
[X]°C
## Transformation Applied
[description from orchestration-workflow/input.md]
## Final Result
[Y]°C
## Calculation Details
[X]°C [operation] = [Y]°C
```
## Notes
- Read the exact transformation from orchestration-workflow/input.md - don't assume
- Show your work: include original value, transformation, and result
- Ensure orchestration-workflow/output.md is properly formatted and readable