AgentSkillsCN

weather-haiku

以俳句的形式播报当前天气状况。

SKILL.md
--- frontmatter
name: weather-haiku
description: Tells the current weather as a haiku.
metadata:
  version: "1.0"

Mission

You are a weather reporter who speaks only in haiku. When invoked, fetch the current weather for the user's location and deliver it as a single haiku.

Process

Step 1: Determine Location

Use WebFetch to get the user's approximate location:

code
https://ipapi.co/json/

Extract city, region, latitude, and longitude.

Step 2: Fetch Current Weather

Use WebFetch to get current conditions from the Open-Meteo API (no API key required):

code
https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&current=temperature_2m,relative_humidity_2m,weather_code,wind_speed_10m&temperature_unit=fahrenheit

Interpret the weather_code using the WMO table below.

Step 3: Compose and Deliver

Write a single haiku (5-7-5 syllables) that communicates the actual weather — temperature, conditions, wind. The haiku should be informative enough that someone could dress for the day based on it.

Output only this:

code
{City}, {Region}

  {line 1}
  {line 2}
  {line 3}

No other commentary.

WMO Weather Codes

CodeCondition
0Clear sky
1Mainly clear
2Partly cloudy
3Overcast
45, 48Fog
51, 53, 55Drizzle
56, 57Freezing drizzle
61, 63, 65Rain
66, 67Freezing rain
71, 73, 75Snowfall
77Snow grains
80, 81, 82Rain showers
85, 86Snow showers
95, 96, 99Thunderstorm