[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C8JB7WHW7CBMCG4K6C2N8W":3,"skill-same:01M7C8JB7WHW7CBMCG4K6C2N8W":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C8JB7WHW7CBMCG4K6C2N8W","flood-detection",null,"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.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"MIT","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskillsbench_slice\u002Fflood-risk-analysis\u002Fenvironment\u002Fskills\u002Fflood-detection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flood-detection\ndescription: 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.\nlicense: MIT\n---\n\n# Flood Detection Guide\n\n## Overview\n\nFlood detection involves comparing observed water levels against established flood stage thresholds. This guide covers how to process water level data and identify flood events.\n\n## Flood Stage Definition\n\nAccording 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:\n```\nwater_level >= flood_stage_threshold\n```\n\n## Aggregating Instantaneous Data to Daily\n\nUSGS instantaneous data is recorded at ~15-minute intervals. For flood detection, aggregate to daily maximum:\n```python\n# df is DataFrame from nwis.get_iv() with datetime index\n# gage_col is the column name containing water levels\n\ndaily_max = df[gage_col].resample('D').max()\n```\n\n### Why Daily Maximum?\n\n| Aggregation | Use Case |\n|-------------|----------|\n| `max()` | Flood detection - captures peak water level |\n| `mean()` | Long-term trends - may miss short flood peaks |\n| `min()` | Low flow analysis |\n\n## Detecting Flood Days\n\nCompare daily maximum water level against flood threshold:\n```python\nflood_threshold = \u003Cthreshold_from_nws>  # feet\n\n# Count days with flooding\nflood_days = (daily_max >= flood_threshold).sum()\n\n# Get specific dates with flooding\nflood_dates = daily_max[daily_max >= flood_threshold].index.tolist()\n```\n\n## Processing Multiple Stations\n```python\nflood_results = []\n\nfor site_id, site_data in all_data.items():\n    daily_max = site_data['water_levels'].resample('D').max()\n    threshold = thresholds[site_id]['flood']\n\n    days_above = int((daily_max >= threshold).sum())\n\n    if days_above > 0:\n        flood_results.append({\n            'station_id': site_id,\n            'flood_days': days_above\n        })\n\n# Sort by flood days descending\nflood_results.sort(key=lambda x: x['flood_days'], reverse=True)\n```\n\n## Flood Severity Classification\n\nIf multiple threshold levels are available:\n```python\ndef classify_flood(water_level, thresholds):\n    if water_level >= thresholds['major']:\n        return 'major'\n    elif water_level >= thresholds['moderate']:\n        return 'moderate'\n    elif water_level >= thresholds['flood']:\n        return 'minor'\n    elif water_level >= thresholds['action']:\n        return 'action'\n    else:\n        return 'normal'\n```\n\n## Output Format Examples\n\n### Simple CSV Output\n```python\nimport csv\n\nwith open('flood_results.csv', 'w', newline='') as f:\n    writer = csv.writer(f)\n    writer.writerow(['station_id', 'flood_days'])\n    for result in flood_results:\n        writer.writerow([result['station_id'], result['flood_days']])\n```\n\n### JSON Output\n```python\nimport json\n\noutput = {\n    'flood_events': flood_results,\n    'total_stations_with_flooding': len(flood_results)\n}\n\nwith open('flood_report.json', 'w') as f:\n    json.dump(output, f, indent=2)\n```\n\n## Common Issues\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| No floods detected | Threshold too high or dry period | Verify threshold values |\n| All days show flooding | Threshold too low or data error | Check threshold units (feet vs meters) |\n| NaN in daily_max | Missing data for entire day | Check data availability |\n\n## Best Practices\n\n- Use daily maximum for flood detection to capture peaks\n- Ensure water level and threshold use same units (typically feet)\n- Only report stations with at least 1 flood day\n- Sort results by flood severity or duration for prioritization\n","# Flood Detection Guide\n\n## Overview\n\nFlood detection involves comparing observed water levels against established flood stage thresholds. This guide covers how to process water level data and identify flood events.\n\n## Flood Stage Definition\n\nAccording 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:\n```\nwater_level >= flood_stage_threshold\n```\n\n## Aggregating Instantaneous Data to Daily\n\nUSGS instantaneous data is recorded at ~15-minute intervals. For flood detection, aggregate to daily maximum:\n```python\n# df is DataFrame from nwis.get_iv() with datetime index\n# gage_col is the column name containing water levels\n\ndaily_max = df[gage_col].resample('D').max()\n```\n\n### Why Daily Maximum?\n\n| Aggregation | Use Case |\n|-------------|----------|\n| `max()` | Flood detection - captures peak water level |\n| `mean()` | Long-term trends - may miss short flood peaks |\n| `min()` | Low flow analysis |\n\n## Detecting Flood Days\n\nCompare daily maximum water level against flood threshold:\n```python\nflood_threshold = \u003Cthreshold_from_nws>  # feet\n\n# Count days with flooding\nflood_days = (daily_max >= flood_threshold).sum()\n\n# Get specific dates with flooding\nflood_dates = daily_max[daily_max >= flood_threshold].index.tolist()\n```\n\n## Processing Multiple Stations\n```python\nflood_results = []\n\nfor site_id, site_data in all_data.items():\n    daily_max = site_data['water_levels'].resample('D').max()\n    threshold = thresholds[site_id]['flood']\n\n    days_above = int((daily_max >= threshold).sum())\n\n    if days_above > 0:\n        flood_results.append({\n            'station_id': site_id,\n            'flood_days': days_above\n        })\n\n# Sort by flood days descending\nflood_results.sort(key=lambda x: x['flood_days'], reverse=True)\n```\n\n## Flood Severity Classification\n\nIf multiple threshold levels are available:\n```python\ndef classify_flood(water_level, thresholds):\n    if water_level >= thresholds['major']:\n        return 'major'\n    elif water_level >= thresholds['moderate']:\n        return 'moderate'\n    elif water_level >= thresholds['flood']:\n        return 'minor'\n    elif water_level >= thresholds['action']:\n        return 'action'\n    else:\n        return 'normal'\n```\n\n## Output Format Examples\n\n### Simple CSV Output\n```python\nimport csv\n\nwith open('flood_results.csv', 'w', newline='') as f:\n    writer = csv.writer(f)\n    writer.writerow(['station_id', 'flood_days'])\n    for result in flood_results:\n        writer.writerow([result['station_id'], result['flood_days']])\n```\n\n### JSON Output\n```python\nimport json\n\noutput = {\n    'flood_events': flood_results,\n    'total_stations_with_flooding': len(flood_results)\n}\n\nwith open('flood_report.json', 'w') as f:\n    json.dump(output, f, indent=2)\n```\n\n## Common Issues\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| No floods detected | Threshold too high or dry period | Verify threshold values |\n| All days show flooding | Threshold too low or data error | Check threshold units (feet vs meters) |\n| NaN in daily_max | Missing data for entire day | Check data availability |\n\n## Best Practices\n\n- Use daily maximum for flood detection to capture peaks\n- Ensure water level and threshold use same units (typically feet)\n- Only report stations with at least 1 flood day\n- Sort results by flood severity or duration for prioritization\n",{"name":5,"license":15,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","tests\u002Ffixtures\u002Fskillsbench_slice\u002Fflood-risk-analysis\u002Fenvironment\u002Fskills\u002Fflood-detection",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill flood-detection",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill flood-detection",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill flood-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskillsbench_slice\u002Fflood-risk-analysis\u002Fenvironment\u002Fskills\u002Fflood-detection\u002FSKILL.md",true,[],[46,54,61,68,73,78],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":69,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":74,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":79,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]