agentleFS
ianallowayianalloway/openclaw-skills/weather-forecast/SKILL.md

weather-forecast

Skill4 starsChanged 5 months agoMITView on GitHub

Get current weather conditions and forecasts for any location

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use ?format= parameter for custom output formats

    line 170

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Weather Forecast

Get current weather, forecasts, and alerts for any location worldwide.

Current Weather

Get current conditions using wttr.in (no API key needed):

# Simple one-liner
curl -s "wttr.in/San+Francisco?format=%l:+%c+%t+%h+%w"

# Detailed current weather
curl -s "wttr.in/New+York?format=j1" | jq '.current_condition[0] | {
  temp_f: .temp_F,
  temp_c: .temp_C,
  feels_like: .FeelsLikeF,
  humidity: .humidity,
  wind_mph: .windspeedMiles,
  wind_dir: .winddir16Point,
  condition: .weatherDesc[0].value,
  uv_index: .uvIndex
}'

# ASCII art weather (great for terminal)
curl -s "wttr.in/London"

# Compact view
curl -s "wttr.in/Tokyo?0"

Multi-Day Forecast

# 3-day forecast
curl -s "wttr.in/Chicago?format=j1" | jq '.weather[] | {
  date: .date,
  max_temp: .maxtempF,
  min_temp: .mintempF,
  avg_temp: .avgtempF,
  condition: .hourly[4].weatherDesc[0].value,
  chance_of_rain: .hourly[4].chanceofrain
}'

# Week forecast (text format)
curl -s "wttr.in/Seattle?format=v2"

Weather by Coordinates

# Use latitude,longitude
curl -s "wttr.in/37.7749,-122.4194?format=j1" | jq '.current_condition[0]'

Weather Alerts

Using National Weather Service API (US only, no key needed):

# Get alerts for a location
curl -s "https://api.weather.gov/alerts/active?point=40.7128,-74.0060" | jq '.features[] | {
  event: .properties.event,
  headline: .properties.headline,
  severity: .properties.severity,
  expires: .properties.expires
}'

# Get alerts by state
curl -s "https://api.weather.gov/alerts/active?area=CA" | jq '.features | length'

OpenWeatherMap (Free API Key)

For more detailed data, use OpenWeatherMap (free tier: 1000 calls/day):

# Current weather
curl -s "https://api.openweathermap.org/data/2.5/weather?q=Miami&appid=YOUR_API_KEY&units=imperial" | jq '{
  city: .name,
  temp: .main.temp,
  feels_like: .main.feels_like,
  humidity: .main.humidity,
  description: .weather[0].description,
  wind_speed: .wind.speed
}'

# 5-day forecast
curl -s "https://api.openweathermap.org/data/2.5/forecast?q=Denver&appid=YOUR_API_KEY&units=imperial" | jq '.list[0:8] | .[] | {
  time: .dt_txt,
  temp: .main.temp,
  description: .weather[0].description
}'

Air Quality

# Using OpenWeatherMap Air Pollution API
curl -s "https://api.openweathermap.org/data/2.5/air_pollution?lat=34.0522&lon=-118.2437&appid=YOUR_API_KEY" | jq '.list[0] | {
  aqi: .main.aqi,
  co: .components.co,
  no2: .components.no2,
  pm2_5: .components.pm2_5,
  pm10: .components.pm10
}'
# AQI: 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor

Sunrise/Sunset

# Get sun times
curl -s "wttr.in/Boston?format=j1" | jq '.weather[0].astronomy[0] | {
  sunrise: .sunrise,
  sunset: .sunset,
  moonrise: .moonrise,
  moonset: .moonset,
  moon_phase: .moon_phase
}'

Weather Comparison

Compare weather across cities:

# Compare multiple cities
for city in "New York" "Los Angeles" "Chicago"; do
  echo -n "$city: "
  curl -s "wttr.in/${city// /+}?format=%t+%c"
  echo
done

Moon Phase

curl -s "wttr.in/Moon"

Tips

  • wttr.in is free and requires no API key
  • For production apps, use OpenWeatherMap or Weather.gov APIs
  • Cache weather data (it doesn't change that fast)
  • Use ?format= parameter for custom output formats

Format Codes (wttr.in)

CodeDescription
%cWeather condition icon
%tTemperature
%hHumidity
%wWind
%lLocation
%pPrecipitation

Resources

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.