SkillAgentSearch skills...

flood-detection

Detect flood events by comparing water levels to thresholds

Install / Use

npx skills add benchflow-ai/skillsbench --skill flood-detection

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

83/100

Category

Other

Supported Platforms

Universal

Tags

Our assessment of flood-detection

flood-detection scores 83/100 on our quality scale, 97th of 160 Other skills we index.

Its SKILL.md is 3.6 KB long, well organised into 18 sections with 7 code examples: a solid amount of guidance for an agent.

With 1,813 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
20/20
Description
8/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so flood-detection is actively maintained.
  • It is released under the Apache-2.0 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.

flood-detection compared with similar skills

All 4 of these similar skills score higher than flood-detection; compare them before choosing.

SkillScoreStarsUpdatedFormat
flood-detection (this skill)by benchflow-ai831.8k2mo agoSKILL.md
algorithmic-artby anthropics100177.9k8d agoSKILL.md
pptxby anthropics100177.9k8d agoSKILL.md
designby nextlevelbuilder100130.2k9d agoSKILL.md
ui-ux-pro-maxby nextlevelbuilder100130.2k9d agoSKILL.md

Frequently asked questions

How do I install flood-detection?
Run npx skills add benchflow-ai/skillsbench --skill flood-detection. The install tabs above show the steps for each supported agent.
Which AI agents does flood-detection 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 flood-detection safe to use?
It is Apache-2.0-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 flood-detection still maintained?
The repository was last updated about 2 months ago, so flood-detection is actively maintained.

name: flood-detection description: Detect flood events by comparing water levels to thresholds. Use when determining if flooding occurred, counting flood days, aggregating instantaneous data to daily values, or classifying flood severity. license: MIT

Flood Detection Guide

Overview

Flood detection involves comparing observed water levels against established flood stage thresholds. This guide covers how to process water level data and identify flood events.

Flood Stage Definition

According to the National Weather Service, flood stage is the water level at which overflow of the natural banks begins to cause damage. A flood event occurs when:

water_level >= flood_stage_threshold

Aggregating Instantaneous Data to Daily

USGS instantaneous data is recorded at ~15-minute intervals. For flood detection, aggregate to daily maximum:

# df is DataFrame from nwis.get_iv() with datetime index
# gage_col is the column name containing water levels

daily_max = df[gage_col].resample('D').max()

Why Daily Maximum?

| Aggregation | Use Case | |-------------|----------| | max() | Flood detection - captures peak water level | | mean() | Long-term trends - may miss short flood peaks | | min() | Low flow analysis |

Detecting Flood Days

Compare daily maximum water level against flood threshold:

flood_threshold = <threshold_from_nws>  # feet

# Count days with flooding
flood_days = (daily_max >= flood_threshold).sum()

# Get specific dates with flooding
flood_dates = daily_max[daily_max >= flood_threshold].index.tolist()

Processing Multiple Stations

flood_results = []

for site_id, site_data in all_data.items():
    daily_max = site_data['water_levels'].resample('D').max()
    threshold = thresholds[site_id]['flood']

    days_above = int((daily_max >= threshold).sum())

    if days_above > 0:
        flood_results.append({
            'station_id': site_id,
            'flood_days': days_above
        })

# Sort by flood days descending
flood_results.sort(key=lambda x: x['flood_days'], reverse=True)

Flood Severity Classification

If multiple threshold levels are available:

def classify_flood(water_level, thresholds):
    if water_level >= thresholds['major']:
        return 'major'
    elif water_level >= thresholds['moderate']:
        return 'moderate'
    elif water_level >= thresholds['flood']:
        return 'minor'
    elif water_level >= thresholds['action']:
        return 'action'
    else:
        return 'normal'

Output Format Examples

Simple CSV Output

import csv

with open('flood_results.csv', 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(['station_id', 'flood_days'])
    for result in flood_results:
        writer.writerow([result['station_id'], result['flood_days']])

JSON Output

import json

output = {
    'flood_events': flood_results,
    'total_stations_with_flooding': len(flood_results)
}

with open('flood_report.json', 'w') as f:
    json.dump(output, f, indent=2)

Common Issues

| Issue | Cause | Solution | |-------|-------|----------| | No floods detected | Threshold too high or dry period | Verify threshold values | | All days show flooding | Threshold too low or data error | Check threshold units (feet vs meters) | | NaN in daily_max | Missing data for entire day | Check data availability |

Best Practices

  • Use daily maximum for flood detection to capture peaks
  • Ensure water level and threshold use same units (typically feet)
  • Only report stations with at least 1 flood day
  • Sort results by flood severity or duration for prioritization

Related Skills

View on GitHub
GitHub Stars1.8k
CategoryOther
Updated2mo ago
Forks368

Languages

PDDL

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions