weather-impact-analysis
Analyze weather data impact on construction schedules. Predict weather delays, optimize work scheduling based on forecasts, and calculate weather-related risk factors for project planning.
Install / Use
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill weather-impact-analysisInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of weather-impact-analysis
weather-impact-analysis scores 91/100 on our quality scale, 265th of 599 Data & Analytics skills we index (top 45%).
Its SKILL.md is 26 KB long, well organised into 11 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 333 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated about 3 months ago, so weather-impact-analysis is actively maintained.
- Our last check on 2026-11-20 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-07. Automated pattern scan on 2026-10-07. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
weather-impact-analysis compared with similar skills
All 4 of these similar skills score higher than weather-impact-analysis; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| weather-impact-analysis (this skill)by datadrivenconstruction | 91 | 333 | 3mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 113.3k | 12d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.2k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 104.4k | 2d ago | MCP Server |
| crawl4aiby unclecode | 100 | 87.6k | today | MCP Server |
Frequently asked questions
- How do I install weather-impact-analysis?
- Run
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill weather-impact-analysis. The install tabs above show the steps for each supported agent. - Which AI agents does weather-impact-analysis work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is weather-impact-analysis safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is weather-impact-analysis still maintained?
- The repository was last updated about 3 months ago, so weather-impact-analysis is actively maintained.
Skill content
View source on GitHubname: "weather-impact-analysis" description: "Analyze weather data impact on construction schedules. Predict weather delays, optimize work scheduling based on forecasts, and calculate weather-related risk factors for project planning." homepage: "https://datadrivenconstruction.io" metadata: {"openclaw": {"emoji": "🚀", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
Weather Impact Analysis
Overview
This skill implements weather data analysis for construction project management. Integrate weather forecasts, historical data, and activity sensitivity to predict delays and optimize scheduling.
Capabilities:
- Weather forecast integration
- Activity weather sensitivity mapping
- Delay prediction and quantification
- Schedule optimization based on weather
- Historical weather impact analysis
- Risk factor calculation
Quick Start
from dataclasses import dataclass
from datetime import date, datetime, timedelta
from typing import List, Dict, Optional
from enum import Enum
import requests
class WeatherCondition(Enum):
CLEAR = "clear"
CLOUDY = "cloudy"
RAIN = "rain"
HEAVY_RAIN = "heavy_rain"
SNOW = "snow"
FROST = "frost"
HIGH_WIND = "high_wind"
EXTREME_HEAT = "extreme_heat"
EXTREME_COLD = "extreme_cold"
@dataclass
class WeatherDay:
date: date
condition: WeatherCondition
temp_high: float
temp_low: float
precipitation_mm: float
wind_speed_kmh: float
humidity_pct: float
@dataclass
class ActivitySensitivity:
activity_type: str
min_temp: float
max_temp: float
max_wind: float
max_precipitation: float
can_work_in_rain: bool
def check_work_day(weather: WeatherDay, activity: ActivitySensitivity) -> Dict:
"""Check if work is possible for given weather and activity"""
can_work = True
reasons = []
if weather.temp_low < activity.min_temp:
can_work = False
reasons.append(f"Temperature too low: {weather.temp_low}°C < {activity.min_temp}°C")
if weather.temp_high > activity.max_temp:
can_work = False
reasons.append(f"Temperature too high: {weather.temp_high}°C > {activity.max_temp}°C")
if weather.wind_speed_kmh > activity.max_wind:
can_work = False
reasons.append(f"Wind too strong: {weather.wind_speed_kmh} km/h > {activity.max_wind} km/h")
if weather.precipitation_mm > activity.max_precipitation and not activity.can_work_in_rain:
can_work = False
reasons.append(f"Precipitation: {weather.precipitation_mm}mm")
return {
'date': weather.date,
'can_work': can_work,
'reasons': reasons,
'productivity_factor': 1.0 if can_work else 0.0
}
# Example
concrete_work = ActivitySensitivity(
activity_type="concrete_placement",
min_temp=5,
max_temp=35,
max_wind=40,
max_precipitation=2,
can_work_in_rain=False
)
today_weather = WeatherDay(
date=date.today(),
condition=WeatherCondition.RAIN,
temp_high=15,
temp_low=8,
precipitation_mm=10,
wind_speed_kmh=20,
humidity_pct=80
)
result = check_work_day(today_weather, concrete_work)
print(f"Can work: {result['can_work']}, Reasons: {result['reasons']}")
Comprehensive Weather Analysis System
Weather Data Integration
from dataclasses import dataclass, field
from datetime import date, datetime, timedelta
from typing import List, Dict, Optional, Tuple
from enum import Enum
import requests
import json
class WeatherSeverity(Enum):
NORMAL = 1
CAUTION = 2
WARNING = 3
SEVERE = 4
EXTREME = 5
@dataclass
class HourlyWeather:
datetime: datetime
temperature: float
feels_like: float
humidity: float
wind_speed: float
wind_direction: float
precipitation: float
precipitation_probability: float
condition: WeatherCondition
visibility: float
uv_index: float
@dataclass
class DailyForecast:
date: date
temp_high: float
temp_low: float
sunrise: datetime
sunset: datetime
precipitation_total: float
precipitation_probability: float
primary_condition: WeatherCondition
hourly: List[HourlyWeather] = field(default_factory=list)
severity: WeatherSeverity = WeatherSeverity.NORMAL
class WeatherDataService:
"""Weather data integration service"""
def __init__(self, api_key: str = None, provider: str = "openweathermap"):
self.api_key = api_key
self.provider = provider
self.cache: Dict[str, Dict] = {}
self.cache_duration = timedelta(hours=1)
def get_forecast(self, latitude: float, longitude: float,
days: int = 14) -> List[DailyForecast]:
"""Get weather forecast for location"""
cache_key = f"{latitude},{longitude}"
if cache_key in self.cache:
cached = self.cache[cache_key]
if datetime.now() - cached['timestamp'] < self.cache_duration:
return cached['data']
if self.provider == "openweathermap":
forecast = self._fetch_openweathermap(latitude, longitude, days)
else:
forecast = self._generate_sample_forecast(days)
self.cache[cache_key] = {
'timestamp': datetime.now(),
'data': forecast
}
return forecast
def _fetch_openweathermap(self, lat: float, lon: float,
days: int) -> List[DailyForecast]:
"""Fetch from OpenWeatherMap API"""
url = f"https://api.openweathermap.org/data/2.5/forecast"
params = {
'lat': lat,
'lon': lon,
'appid': self.api_key,
'units': 'metric'
}
try:
response = requests.get(url, params=params)
data = response.json()
return self._parse_openweathermap(data)
except Exception as e:
print(f"Weather API error: {e}")
return self._generate_sample_forecast(days)
def _parse_openweathermap(self, data: Dict) -> List[DailyForecast]:
"""Parse OpenWeatherMap response"""
forecasts = []
daily_data = {}
for item in data.get('list', []):
dt = datetime.fromtimestamp(item['dt'])
day = dt.date()
if day not in daily_data:
daily_data[day] = {
'temps': [],
'precipitation': 0,
'conditions': [],
'hourly': []
}
daily_data[day]['temps'].append(item['main']['temp'])
daily_data[day]['precipitation'] += item.get('rain', {}).get('3h', 0)
condition = self._map_condition(item['weather'][0]['main'])
daily_data[day]['conditions'].append(condition)
daily_data[day]['hourly'].append(HourlyWeather(
datetime=dt,
temperature=item['main']['temp'],
feels_like=item['main']['feels_like'],
humidity=item['main']['humidity'],
wind_speed=item['wind']['speed'] * 3.6, # m/s to km/h
wind_direction=item['wind'].get('deg', 0),
precipitation=item.get('rain', {}).get('3h', 0),
precipitation_probability=item.get('pop', 0) * 100,
condition=condition,
visibility=item.get('visibility', 10000) / 1000,
uv_index=0
))
for day, data in daily_data.items():
primary_condition = max(set(data['conditions']), key=data['conditions'].count)
forecasts.append(DailyForecast(
date=day,
temp_high=max(data['temps']),
temp_low=min(data['temps']),
sunrise=datetime.combine(day, datetime.min.time().replace(hour=6)),
sunset=datetime.combine(day, datetime.min.time().replace(hour=18)),
precipitation_total=data['precipitation'],
precipitation_probability=max(h.precipitation_probability for h in data['hourly']),
primary_condition=primary_condition,
hourly=data['hourly'],
severity=self._calculate_severity(primary_condition, data)
))
return sorted(forecasts, key=lambda x: x.date)
def _map_condition(self, condition_str: str) -> WeatherCondition:
"""Map API condition to enum"""
mapping = {
'Clear': WeatherCondition.CLEAR,
'Clouds': WeatherCondition.CLOUDY,
'Rain': WeatherCondition.RAIN,
'Drizzle': WeatherCondition.RAIN,
'Thunderstorm': WeatherCondition.HEAVY_RAIN,
'Snow': WeatherCondition.SNOW,
'Mist': WeatherCondition.CLOUDY,
'Fog': WeatherCondition.CLOUDY
}
return mapping.get(condition_str, WeatherCondition.CLEAR)
def _calculate_severity(self, condition: WeatherCondition,
data: Dict) -> WeatherSeverity:
"""Calculate weather severity"""
max_temp = max(data['temps'])
min_temp = min(data['temps'])
precip = data['precipitation']
if condition in [WeatherCondition.HEAVY_RAIN, WeatherCondition.SNOW]:
if precip > 50:
return WeatherSeverity.EXTREME
elif precip > 25:
return WeatherSeverity.SEVERE
if max_temp > 40 or min_temp < -15:
return WeatherSeverity.SEVERE
if max_temp > 35 or min_temp < -5:
return WeatherSeverity.WARNING
if condition == WeatherCondition.RAIN:
return WeatherSeverity.CAUTION
return WeatherSeverity.NORMAL
def _generate_sample_forecast(self, days: int) -> List[DailyForecast]:
"""Generate sample forecast for testing"""
import random
forecasts = []
for i in range(days):
day = date.today() + timedelta(days=i)
temp_base = 15 + random.uniform(-5, 10)
condition = random.choice(list(WeatherCondition))
forecasts.append(DailyForecast(
date=day,
temp_high=temp_base + random.uniform(3, 8),
temp_low=temp_base - random.uniform(3, 8),
sunrise=datetime.combine(day, datetime.min.time().replace(hour=6)),
sunset=datetime.combine(day, datetime.min.time().replace(hour=18)),
precipitation_total=random.uniform(0, 20) if condition == WeatherCondition.RAIN else 0,
precipitation_probability=random.uniform(0, 100) if condition == WeatherCondition.RAIN else 10,
primary_condition=condition,
severity=WeatherSeverity.NORMAL
))
return forecasts
Activity Weather Sensitivity
@dataclass
class WeatherThresholds:
min_temp: float = -10
max_temp: float = 45
max_wind: float = 50
max_precipitation: float = 50
max_snow_depth: float = 20
min_visibility: float = 0.5 # km
@dataclass
class ConstructionActivity:
activity_id: str
activity_name: str
category: str
thresholds: WeatherThresholds
indoor: bool = False
rain_sensitive: bool = True
frost_sensitive: bool = False
productivity_factors: Dict[WeatherCondition, float] = field(default_factory=dict)
def __post_init__(self):
if not self.productivity_factors:
self.productivity_factors = {
WeatherCondition.CLEAR: 1.0,
WeatherCondition.CLOUDY: 0.95,
WeatherCondition.RAIN: 0.3 if self.rain_sensitive else 0.8,
WeatherCondition.HEAVY_RAIN: 0.0 if self.rain_sensitive else 0.5,
WeatherCondition.SNOW: 0.2,
WeatherCondition.FROST: 0.5 if self.frost_sensitive else 0.8,
WeatherCondition.HIGH_WIND: 0.3,
WeatherCondition.EXTREME_HEAT:
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
113.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
80.2kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
104.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
87.6kOfficial Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
