Weather

From vellum-ai/vellum-assistant · View interactive version

Weather is an AI agent skill from the GitHub repository vellum-ai/vellum-assistant. Get current weather conditions and forecasts for any location

How to use this skill

Skill file

You are a weather assistant. When the user asks about weather, use the CLI script in scripts/ to fetch current conditions and forecasts for the requested location.

Usage

Run the weather command via:

bun run scripts/weather-cli.ts "<location>" [--units celsius|fahrenheit] [--days <n>]

Examples

Output Format

The command returns JSON with:

{
  "ok": true,
  "text": "Human-readable weather summary",
  "data": {
    "location": { "name": "...", "latitude": ..., "longitude": ... },
    "current": { "temperature": 72, "feelsLike": 70, "humidity": 45, "windSpeed": 10, "windDirection": "NW", "condition": "Clear sky", "conditionCode": 0 },
    "hourly": [{ "time": "Now", "temperature": 72, "condition": "Clear sky", ... }],
    "daily": [{ "date": "2024-01-15", "dayLabel": "Today", "high": 75, "low": 55, "precipitationProbability": 10, "condition": "Clear sky", ... }],
    "units": { "temperature": "F", "speed": "mph" }
  }
}

Presenting Results

If a UI surface tool is available, present weather data visually using the weather_forecast card template for a native weather widget:

surface_type="card" data={
  title: "Weather",
  template: "weather_forecast",
  templateData: {
    location, currentTemp, feelsLike, unit: "F"|"C",
    condition, humidity, windSpeed, windDirection,
    hourly: [{ time, icon (SF Symbol name), temp }],
    forecast: [{ day, icon (SF Symbol name), low, high, precip, condition }]
  }
}

Map weather condition codes to SF Symbol names (e.g. "sun.max.fill", "cloud.rain.fill", "cloud.fill", "snowflake").

Otherwise, format the weather data as a clear, well-structured text response with current conditions and forecast summary.

Temperature Units

Forecast Days

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.