Flood risk analysis

From XuShuwenn/RedAct · View interactive version

Flood risk analysis is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Analyze USGS streamflow data to find stations with flooding during specific date ranges and output flood statistics.

How to use this skill

Skill file

Flood Risk Analysis from Streamflow Data

When to Use

Input File

Output

CSV at /root/output/flood_results.csv.

Output

Execution Protocol Checks

Key Steps

  1. Parse streamflow data by station, preserving station_id exactly as text
  2. Inspect the parsed dataframe/schema before choosing the measurement column; identify the requested series by name, not by position
  3. Determine each station's flood threshold from authoritative station metadata or task-provided data before classifying any day
  4. Filter the exact requested date range (April 1-7, 2025); do not substitute another window if data is missing or unusable
  5. Count days in that window where observed values exceed the fixed threshold
  6. Keep only stations with >= 1 flood day
  7. Restrict analysis to station IDs present in /root/data/michigan_stations.txt and verify every output station_id is a member of that input list
  8. Validate the final CSV before declaring success: required columns, requested sort/order, station_id formatting, plausible station counts, and flood_days bounds for the 7-day window
  9. If authoritative thresholds or required data for the requested window are unavailable, report the limitation explicitly rather than inventing criteria or changing the scope

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.