severe-weather

Prepends safety notes to weather forecasts when hazardous conditions are detected.

27.6k|2.7k|Updated Aug 6, 2024
One-click install
npx skills add https://github.com/mastra-ai/mastra --skill severe-weather
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: severe-weather
Source: https://github.com/mastra-ai/mastra/tree/main/examples/agent/src/mastra/agents/weather-fs/skills/severe-weather
Command: npx skills add https://github.com/mastra-ai/mastra --skill severe-weather

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Weather forecasts often bury critical hazard information, leaving users unaware of dangerous conditions like storms, flooding, or extreme temperatures until it is too late.

Core Features & Use Cases

  • Hazard Detection: Identifies storms, flooding, extreme heat or cold, and high winds in weather conditions.
  • Safety-First Output: Leads every hazardous forecast with a one-line safety note before the regular forecast details.
  • Threshold Reference: Consults a documented thresholds file defining exact hazard criteria, such as heat at or above 35°C or sustained winds at or above 60 km/h.
  • Use Case: A weather agent receives a forecast showing 40°C heat and 70 km/h winds; it automatically opens its response with a safety warning before presenting the detailed forecast.

Quick Start

Ask the weather agent for the forecast in a location experiencing storms or extreme temperatures and it will lead with a safety note.

Frequently Asked Questions about severe-weather

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add safety warnings to weather forecasts?

Check incoming weather conditions against defined hazard thresholds, then lead the response with a one-line safety note before the forecast. This skill triggers on storms, flooding, extreme heat or cold, and high winds.

What weather conditions count as hazardous?

Hazardous conditions include extreme heat at or above 35°C (95°F), extreme cold at or below -10°C (14°F), sustained winds at or above 60 km/h, and heavy rain exceeding 50 mm in 24 hours.

Can I customize the hazard thresholds for my region?

Yes, the thresholds are defined in the references/thresholds.md file, which you can edit to match regional safety standards. The skill consults this file whenever evaluating whether conditions qualify as hazardous.

Does this skill fetch weather data itself?

No, it operates on weather conditions already provided to the agent, such as from a weather tool or API. Its role is to evaluate those conditions against hazard thresholds and format the response with a safety note.

When should I not use hazard threshold checks?

Threshold-based checks are less suitable when official government alerts are available, since those reflect real-time authority decisions. Use thresholds as a baseline safety layer, not a replacement for official warnings.