iceflower

accuweather

0
0
# Install this skill:
npx skills add iceflower/opencode-agents-and-skills --skill "accuweather"

Install specific skill from multi-skill repository

# Description

>-

# SKILL.md


name: accuweather
description: >-
AccuWeather-based weather information lookup rules.
Use when users ask for weather forecasts, hourly forecasts, weather conditions,
sunrise/sunset times, UV index, or air quality (๋ฏธ์„ธ๋จผ์ง€/์ดˆ๋ฏธ์„ธ๋จผ์ง€).


AccuWeather Weather Information Rules

1. Overview

AccuWeather provides detailed weather forecasts including hourly forecasts, daily forecasts, air quality, and RealFeel temperature. Use the AccuWeather website to fetch weather information.

2. URL Structure

Base URL

https://www.accuweather.com/ko/kr/{city}/{location-key}/{forecast-type}/{location-key}

URL Parameters

Parameter Description Example
{city} City name in Korean URL format seoul
{location-key} AccuWeather location identifier 226081
{forecast-type} Type of forecast See table below

Forecast Types

Type Description
weather-forecast Today's weather
hourly-weather-forecast Hourly forecast
daily-weather-forecast 30-day daily forecast
minute-weather-forecast MinuteCast (precipitation)
air-quality-index Air quality

Example URLs

# Today's weather
https://www.accuweather.com/ko/kr/seoul/226081/weather-forecast/226081

# Hourly forecast (tomorrow)
https://www.accuweather.com/ko/kr/seoul/226081/hourly-weather-forecast/226081?day=2

# Daily forecast
https://www.accuweather.com/ko/kr/seoul/226081/daily-weather-forecast/226081

3. Location Keys

Major Korean Cities

City Location Key
์„œ์šธํŠน๋ณ„์‹œ 226081
๋ถ€์‚ฐ๊ด‘์—ญ์‹œ 226082
๋Œ€๊ตฌ๊ด‘์—ญ์‹œ 226083
์ธ์ฒœ๊ด‘์—ญ์‹œ 226084
๊ด‘์ฃผ๊ด‘์—ญ์‹œ 226085
๋Œ€์ „๊ด‘์—ญ์‹œ 226086
์šธ์‚ฐ๊ด‘์—ญ์‹œ 226087
์„ธ์ข…ํŠน๋ณ„์ž์น˜์‹œ 2330435
๊ฐ•๋ฆ‰์‹œ 226088
์ถ˜์ฒœ์‹œ 226089
์ „์ฃผ์‹œ 226090
์ฒญ์ฃผ์‹œ 226091
์ œ์ฃผ์‹œ 226092
์„œ๊ท€ํฌ์‹œ 226093

Finding Location Keys

If a location key is unknown:

  1. Search on AccuWeather website: https://www.accuweather.com/ko/kr/{search-term}
  2. Use web search: "AccuWeather {location name} location key"
  3. Check the URL after searching for the city on AccuWeather

4. Hourly Forecast Query

URL with Day Parameter

# Today
https://www.accuweather.com/ko/kr/{city}/{key}/hourly-weather-forecast/{key}?day=1

# Tomorrow
https://www.accuweather.com/ko/kr/{city}/{key}/hourly-weather-forecast/{key}?day=2

# Day after tomorrow
https://www.accuweather.com/ko/kr/{city}/{key}/hourly-weather-forecast/{key}?day=3

Hourly Forecast Availability

IMPORTANT: AccuWeather hourly forecasts are only available for up to 3 days (today + 2 days). For dates beyond 3 days, hourly data cannot be retrieved. In such cases, inform the user and provide daily forecast instead.

Day Parameter Availability
day=1 Today
day=2 Tomorrow
day=3 Day after tomorrow
day=4+ Not available - use daily forecast

Hourly Data Points

  • Temperature (๊ธฐ์˜จ)
  • RealFeel temperature (์ฒด๊ฐ์˜จ๋„)
  • Weather condition (๋‚ ์”จ ์ƒํƒœ)
  • Precipitation probability (๊ฐ•์ˆ˜ ํ™•๋ฅ )
  • Humidity (์Šต๋„)
  • Wind direction and speed (ํ’ํ–ฅ/ํ’์†)
  • Air quality (๋Œ€๊ธฐ์งˆ)
  • Cloud cover (๊ตฌ๋ฆ„๋Ÿ‰)

5. Daily Forecast Query

Daily Forecast URL

https://www.accuweather.com/ko/kr/{city}/{key}/daily-weather-forecast/{key}

Daily Data Points

  • High/Low temperature (์ตœ๊ณ /์ตœ์ € ๊ธฐ์˜จ)
  • RealFeel temperature range
  • Weather condition
  • Precipitation probability
  • UV index (์ž์™ธ์„  ์ง€์ˆ˜)
  • Wind speed

Day Parameter for Specific Date

# Day 3 (2 days from today)
https://www.accuweather.com/ko/kr/seoul/226081/daily-weather-forecast/226081?day=3

6. Sunrise/Sunset Query

Sun/Moon URL

Sunrise and sunset times are available on the weather-today page:

https://www.accuweather.com/ko/kr/{city}/{key}/weather-today/{key}

Available Data

AccuWeather provides the following sun/moon information:

Data Korean Term
Sunrise ์ผ์ถœ
Sunset ์ผ๋ชฐ
Moonrise ์›”์ถœ
Moonset ์›”๋ชฐ
Day length ๊ฐ€์กฐ ์‹œ๊ฐ„
Moon phase ๋‹ฌ ์œ„์ƒ

Example Output

**ํ•ด์™€ ๋‹ฌ**

- ์ผ์ถœ: ์˜ค์ „ 6:47
- ์ผ๋ชฐ: ์˜คํ›„ 6:37
- ๊ฐ€์กฐ ์‹œ๊ฐ„: 11์‹œ๊ฐ„ 50๋ถ„
- ์›”์ถœ: ์˜ค์ „ 3:20
- ์›”๋ชฐ: ์˜คํ›„ 12:27

Alternative Source: KASI (ํ•œ๊ตญ์ฒœ๋ฌธ์—ฐ๊ตฌ์›)

For more precise astronomical data, use the Korea Astronomy and Space Science Institute (KASI) website:

Service URL
์ผ์ถœ์ผ๋ชฐ์‹œ๊ฐ๊ณ„์‚ฐ https://astro.kasi.re.kr/life/pageView/9
์›”๋ณ„ ํ•ด/๋‹ฌ ์ถœ๋ชฐ์‹œ๊ฐ https://astro.kasi.re.kr/life/pageView/6

KASI provides:

  • Sunrise/sunset times (์ผ์ถœ/์ผ๋ชฐ)
  • Moonrise/moonset times (์›”์ถœ/์›”๋ชฐ)
  • Civil twilight (์‹œ๋ฏผ๋ฐ•๋ช…)
  • Nautical twilight (ํ•ญํ•ด๋ฐ•๋ช…)
  • Astronomical twilight (์ฒœ๋ฌธ๋ฐ•๋ช…)

7. UV Index Query

UV Index in Daily Forecast

UV index is available in daily forecast and weather-today pages:

# Daily forecast with UV index
https://www.accuweather.com/ko/kr/{city}/{key}/daily-weather-forecast/{key}

UV Index Scale

Index Range Korean Level English Level
0-2 ์ข‹์Œ Good
3-5 ๋ณดํ†ต Moderate
6-7 ํ•ด๋กœ์›€ (๋ฏผ๊ฐ ๊ทธ๋ฃน) High
8-10 ๊ฑด๊ฐ•์— ํ•ด๋กœ์›€ Very High
11+ ๋งค์šฐ ํ•ด๋กœ์›€ Extreme

UV Index Output Example

- ์ž์™ธ์„ ์ง€์ˆ˜: 6 (ํ•ด๋กœ์›€ - ๋ฏผ๊ฐ ๊ทธ๋ฃน)

8. Air Quality Query

Air Quality URL

https://www.accuweather.com/ko/kr/{city}/{key}/air-quality-index/{key}

AQI (Air Quality Index)

AccuWeather provides comprehensive air quality data including:

Pollutant Korean Name Description
PM2.5 ์ดˆ๋ฏธ์„ธ๋จผ์ง€ Particles โ‰ค 2.5 micrometers
PM10 ๋ฏธ์„ธ๋จผ์ง€ Particles โ‰ค 10 micrometers
O3 ์˜ค์กด Ground-level ozone
NO2 ์ด์‚ฐํ™”์งˆ์†Œ Nitrogen dioxide
SO2 ์ด์‚ฐํ™”ํ™ฉ Sulfur dioxide
CO ์ผ์‚ฐํ™”ํƒ„์†Œ Carbon monoxide

AQI Scale

AQI Range Korean Level English Level Health Impact
0-19 ์™„๋ฒฝํ•จ Perfect Suitable for all outdoor activities
20-49 ๋ณดํ†ต Fair Acceptable for most people
50-99 ๋‚˜์จ Poor Sensitive groups may be affected
100-149 ๊ฑด๊ฐ•์— ํ•ด๋กœ์›€ Unhealthy Limit outdoor activities
150-249 ๊ฑด๊ฐ•์— ๋งค์šฐ ํ•ด๋กœ์›€ Very Unhealthy Avoid outdoor activities
250+ ์œ„ํ—˜ Hazardous Everyone should avoid outdoor exposure

Air Quality Output Example

**๋Œ€๊ธฐ์งˆ**

- AQI: 55 (๋‚˜์จ)
- PM2.5 (์ดˆ๋ฏธ์„ธ๋จผ์ง€): 30 ยตg/mยณ (๋ณดํ†ต)
- PM10 (๋ฏธ์„ธ๋จผ์ง€): 17 ยตg/mยณ (์™„๋ฒฝํ•จ)
- ์˜ค์กด (O3): 50 ยตg/mยณ (์™„๋ฒฝํ•จ)

9. Output Format

Hourly Forecast Table

Present hourly data in a table format:

| ์‹œ๊ฐ„ | ๊ธฐ์˜จ | ์ฒด๊ฐ์˜จ๋„ | ๋‚ ์”จ | ๊ฐ•์ˆ˜ํ™•๋ฅ  | ์Šต๋„ | ํ’ํ–ฅ/ํ’์† |
|------|------|----------|------|----------|------|-----------|
| 0์‹œ  | 3โ„ƒ  | 4โ„ƒ      | ํ๋ฆผ | 0%       | 56% | ๋ถ์„œ 6km/h |

Daily Forecast Summary

**๋‚ ์งœ** (์š”์ผ)

- ๋‚ ์”จ: [์ƒํƒœ]
- ๊ธฐ์˜จ: ์ตœ์ € Xโ„ƒ / ์ตœ๊ณ  Yโ„ƒ
- ์ฒด๊ฐ์˜จ๋„: Xโ„ƒ ~ Yโ„ƒ
- ๊ฐ•์ˆ˜ํ™•๋ฅ : X%
- ์ž์™ธ์„ ์ง€์ˆ˜: X (๋“ฑ๊ธ‰)
- ํ’์†: X km/h

Air Quality Summary

**๋Œ€๊ธฐ์งˆ**

- AQI: X (๋“ฑ๊ธ‰)
- ์ดˆ๋ฏธ์„ธ๋จผ์ง€(PM2.5): X ยตg/mยณ (๋“ฑ๊ธ‰)
- ๋ฏธ์„ธ๋จผ์ง€(PM10): X ยตg/mยณ (๋“ฑ๊ธ‰)

10. Weather Terms (Korean)

Korean Term English Term
๋ง‘์Œ Clear/Sunny
๋Œ€์ฒด๋กœ ๋ง‘์Œ Mostly clear
์ผ๋ถ€ ํ™”์ฐฝ Partly sunny
๊ฐ„ํ—์ ์œผ๋กœ ํ๋ฆผ Intermittent clouds
์•ฝ๊ฐ„ ํ๋ฆผ Mostly cloudy
๋Œ€์ฒด๋กœ ํ๋ฆผ Mostly cloudy
ํ๋ฆผ Cloudy
๊ตฌ๋ฆ„์ด ์ค„์–ด๋“ฆ Decreasing clouds
์ ์ฐจ ํ๋ ค์ง Increasing clouds
๋น„ Rain
์†Œ๋‚˜๊ธฐ Shower
๊ฐ€๋ฒผ์šด ๋น„ Light rain
๋ˆˆ Snow
๋น„ ๋˜๋Š” ๋ˆˆ Rain or snow
์ฒœ๋‘ฅ Thunderstorm

11. Best Practices

Query Strategy

  1. For current weather: Use weather-forecast page
  2. For hourly forecast: Use hourly-weather-forecast with day parameter
  3. For multi-day forecast: Use daily-weather-forecast
  4. For sunrise/sunset: Use weather-today page
  5. For air quality: Use air-quality-index page

Information Prioritization

When user asks for weather without specifying details:

  1. Temperature (high/low or current)
  2. Weather condition
  3. Precipitation probability
  4. Wind information
  5. UV index and Air quality (if relevant)
  6. Sunrise/sunset (if relevant)

Time Reference

  • Always clarify the date being referenced (today, tomorrow, specific date)
  • Use 24-hour format for time in Korean context
  • Note the forecast issuance time if available

Attribution

Always cite AccuWeather as the source:

์ถœ์ฒ˜: AccuWeather

12. Limitations

  • AccuWeather website may change structure; adapt as needed
  • Some detailed data may require JavaScript rendering
  • Location keys may change; verify periodically
  • Forecast accuracy decreases with longer time ranges
  • Hourly forecasts are only available for up to 3 days (day=1 to day=3). For dates beyond 3 days, only daily forecasts can be provided.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.