nws-flood-thresholds
Download flood stage thresholds from NWS (National Weather Service)
Install / Use
npx skills add benchflow-ai/skillsbench --skill nws-flood-thresholdsInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Data & AnalyticsSupported Platforms
Tags
Our assessment of nws-flood-thresholds
nws-flood-thresholds scores 86/100 on our quality scale, 255th of 427 Data & Analytics skills we index.
Its SKILL.md is 4.0 KB long, well organised into 16 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.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so nws-flood-thresholds 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.
nws-flood-thresholds compared with similar skills
All 4 of these similar skills score higher than nws-flood-thresholds; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| nws-flood-thresholds (this skill)by benchflow-ai | 86 | 1.8k | 2mo ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 9d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 9d ago | SKILL.md |
Frequently asked questions
- How do I install nws-flood-thresholds?
- Run
npx skills add benchflow-ai/skillsbench --skill nws-flood-thresholds. The install tabs above show the steps for each supported agent. - Which AI agents does nws-flood-thresholds 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 nws-flood-thresholds 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 nws-flood-thresholds still maintained?
- The repository was last updated about 2 months ago, so nws-flood-thresholds is actively maintained.
Skill content
View source on GitHubname: nws-flood-thresholds description: Download flood stage thresholds from NWS (National Weather Service). Use when determining flood levels for USGS stations, accessing action/minor/moderate/major flood stages, or matching stations to their flood thresholds. license: MIT
NWS Flood Thresholds Guide
Overview
The National Weather Service (NWS) maintains flood stage thresholds for thousands of stream gages across the United States. These thresholds define when water levels become hazardous.
Data Sources
Option 1: Bulk CSV Download (Recommended for Multiple Stations)
https://water.noaa.gov/resources/downloads/reports/nwps_all_gauges_report.csv
Option 2: Individual Station Pages
https://water.noaa.gov/gauges/<station_id>
Example: https://water.noaa.gov/gauges/04118105
Flood Stage Categories
| Category | CSV Column | Description |
|----------|------------|-------------|
| Action Stage | action stage | Water level requiring monitoring, preparation may be needed |
| Flood Stage (Minor) | flood stage | Minimal property damage, some public threat. Use this to determine if flooding occurred. |
| Moderate Flood Stage | moderate flood stage | Structure inundation, evacuations may be needed |
| Major Flood Stage | major flood stage | Extensive damage, significant evacuations required |
For general flood detection, use the flood stage column as the threshold.
Downloading Bulk CSV
import pandas as pd
import csv
import urllib.request
import io
nws_url = "https://water.noaa.gov/resources/downloads/reports/nwps_all_gauges_report.csv"
response = urllib.request.urlopen(nws_url)
content = response.read().decode('utf-8')
reader = csv.reader(io.StringIO(content))
headers = next(reader)
data = [row[:43] for row in reader] # Truncate to 43 columns
nws_df = pd.DataFrame(data, columns=headers)
Important: CSV Column Mismatch
The NWS CSV has a known issue: header row has 43 columns but data rows have 44 columns. Always truncate data rows to match header count:
data = [row[:43] for row in reader]
Key Columns
| Column Name | Description |
|-------------|-------------|
| usgs id | USGS station ID (8-digit string) |
| location name | Station name/location |
| state | Two-letter state code |
| action stage | Action threshold (feet) |
| flood stage | Minor flood threshold (feet) |
| moderate flood stage | Moderate flood threshold (feet) |
| major flood stage | Major flood threshold (feet) |
Converting to Numeric
Threshold columns need conversion from strings:
nws_df['flood stage'] = pd.to_numeric(nws_df['flood stage'], errors='coerce')
Filtering by State
# Get stations for a specific state
state_stations = nws_df[
(nws_df['state'] == '<STATE_CODE>') &
(nws_df['usgs id'].notna()) &
(nws_df['usgs id'] != '') &
(nws_df['flood stage'].notna()) &
(nws_df['flood stage'] != -9999)
]
Matching Thresholds to Station IDs
# Build a dictionary of station thresholds
station_ids = ['<id_1>', '<id_2>', '<id_3>']
thresholds = {}
for _, row in nws_df.iterrows():
usgs_id = str(row['usgs id']).strip()
if usgs_id in station_ids:
thresholds[usgs_id] = {
'name': row['location name'],
'flood': row['flood stage']
}
Common Issues
| Issue | Cause | Solution |
|-------|-------|----------|
| Column mismatch error | CSV has 44 data columns but 43 headers | Truncate rows to 43 columns |
| Missing thresholds | Station not in NWS database | Skip station or use alternative source |
| Value is -9999 | No threshold defined | Filter out these values |
| Empty usgs id | NWS-only station | Filter by usgs id != '' |
Best Practices
- Always truncate CSV rows to match header count
- Convert threshold columns to numeric before comparison
- Filter out -9999 values (indicates no threshold defined)
- Match stations by USGS ID (8-digit string with leading zeros)
- Some stations may have flood stage but not action/moderate/major
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
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.
