river-outfall-status-visualizer
Skill11 starsChanged 3 months agoMITView on GitHub
Analyze river outfall Excel workbooks and build report-ready river outfall status visualizations that compare current, normal, 20-year, and 50-year water levels, distinguish left-bank and right-bank outfalls, and identify which outfalls are safe, partially submerged, or fully submerged. Use when Codex needs to turn a river longitudinal-profile or outfall inventory workbook into a briefing chart, status summary, mock dataset, or reusable HTML report.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-paper-downloadSkill
- airnow-hourly-obs-fetchSkill
- ai-tech-fulltext-fetchSkill
- ai-tech-rss-fetchSkill
- ai-tech-summarySkill
- apply-environmental-thinkingSkill
- bluesky-cascade-fetchSkill
- convert-image-to-jpgSkill
- dify-knowledge-base-searchSkill
- dify-knowledge-base-uploadSkill
- document-granular-decomposeSkill
- domain-onboardingSkill
- eceee-news-fulltext-fetchSkill
- email-imap-appendSkill
- email-imap-fetchSkill
- email-imap-full-fetchSkill
- email-smtp-sendSkill
- epa-eis-records-fetchSkill
- federal-register-doc-fetchSkill
- fetch-abstract-to-kbSkill
- fetch-meta-from-kbSkill
- fetch-meta-to-kbSkill
- figshare-data-downloadSkill
- gdelt-doc-searchSkill
- gdelt-events-fetchSkill
- gdelt-gkg-fetchSkill
- gdelt-mentions-fetchSkill
- gdelt-web-ngrams-searchSkill
- github-contribution-period-analysisSkill
- nasa-firms-fire-fetchSkill
- notebooklmSkill
- openaq-data-fetchSkill
- open-meteo-air-quality-fetchSkill
- open-meteo-flood-fetchSkill
- open-meteo-historical-fetchSkill
- regulationsgov-attachments-fetchSkill
- regulationsgov-comment-detail-fetchSkill
- regulationsgov-comments-fetchSkill
- remove-similar-imageSkill
- sustainability-fulltext-fetchSkill
- sustainability-rss-fetchSkill
- sustainability-summarySkill
- synology-file-stationSkill
- tiangong-auto-researchSkill
- tiangong-auto-research-workbuddySkill
- tiangong-kb-course-fulltext-fetchSkill
- tiangong-kb-course-searchSkill
- tiangong-kb-edu-searchSkill
- tiangong-kb-esg-searchSkill
- tiangong-kb-ingestSkill
- tiangong-kb-patent-searchSkill
- tiangong-kb-report-searchSkill
- tiangong-kb-sci-searchSkill
- tiangong-kb-textbook-searchSkill
- tsinghua-graduate-thesisSkill
- usbr-project-records-fetchSkill
- usbr-rise-fetchSkill
- use-thuenv-presentation-styleSkill
- usgs-water-iv-fetchSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 15 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Keep the chart vertically truthful.
- Very specific: line 20
Start from a .xlsx workbook.
- Distinctive: line 21
Prefer the mixed single-sheet format documented in references/data-schema.md:
- Very specific: line 24
If 当前水位 is missing, ask for it or state clearly that the output only supports the available scenarios.
- Distinctive: line 25
If the workbook lacks riverbed or channel-bottom data, describe the output as a river outfall status chart, not a true riverbed …
- Distinctive: line 61
Read references/data-schema.md before touching the workbook schema.
- Distinctive: line 62
Read references/status-rules.md before changing status logic.
- Distinctive: line 63
Read references/visual-spec.md before changing the chart layout or legend.
- Very specific: line 64
Use scripts/calc_submergence.py first when the request is analytical.
- Very specific: line 65
Use scripts/render_status_report.py when the request needs a deliverable chart.
- Very specific: line 66
Use scripts/generate_mock_example_excel.py to create a regression fixture or explain the expected workbook shape.
- Very specific: line 67
Use scripts/generate_input_template_excel.py when the user needs a blank workbook they can fill directly in Excel.
- Very specific: line 72
Keep Y coordinates in true elevation.
- Distinctive: line 73
Use mileage for ordering and anchor positioning.
- Distinctive: line 74
Keep the page free of browser-level horizontal scrolling.
- Very specific: line 77
When 河底高程 is present, draw a brown riverbed step profile and fill the active scenario water body above it with blue.
- Very specific: line 78
When 堤顶高程 is present, draw the levee crest as a separate contextual step profile.
- Distinctive: line 80
Use shape to distinguish geometry type:
- Distinctive: line 83
Use bank-side offset to distinguish left-bank and right-bank outfalls:
- Distinctive: line 87
Use status as the dominant semantic encoding:
- Distinctive: line 92
Prefer code plus size on the chart.
- Distinctive: line 97
Create an anonymized example workbook with mixed outfall and control-node rows.
- Distinctive: line 99
Create a multi-sheet Excel template whose first sheet can be filled directly and whose second sheet explains the fields.
- Distinctive: line 101
Read a workbook, normalize the rows, compute scenario statuses, and print or export a summary.
- Distinctive: line 121
Call out left-bank and right-bank counts when they matter to the request.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
River Outfall Status Visualizer
Core Goal
- Convert one Excel workbook into:
- A scenario-aware river outfall status summary.
- A standalone HTML chart suitable for briefing and review.
- A reusable mock workbook that follows the same template.
- Keep the chart vertically truthful.
Yvalues must always use real elevation. - Allow horizontal zoom without resizing outfall symbols. Only the outfall anchor positions move with the river layout.
- Distinguish left-bank and right-bank outfalls with side-specific offset, connector direction, label placement, and legend.
Required Inputs
- Start from a
.xlsxworkbook. - Prefer the mixed single-sheet format documented in references/data-schema.md:
- Outfall rows carry code, size, base elevation, mileage, bank side, and scenario water levels.
- Control-node rows carry reach or gate names, mileage, scenario water levels, and optionally
河底高程/堤顶高程. - If
当前水位is missing, ask for it or state clearly that the output only supports the available scenarios. - If the workbook lacks riverbed or channel-bottom data, describe the output as a river outfall status chart, not a true riverbed longitudinal profile.
Quick Start
- Generate a directly usable input template:
python3 scripts/generate_input_template_excel.py \
--output assets/templates/river-outfall-input-template.xlsx- Generate or inspect a mock workbook:
python3 scripts/generate_mock_example_excel.py \
--output assets/examples/example-river-sample.xlsx- Compute scenario summaries:
python3 scripts/calc_submergence.py \
--input assets/examples/example-river-sample.xlsx \
--pretty- Render a standalone HTML report:
python3 scripts/render_status_report.py \
--input assets/examples/example-river-sample.xlsx \
--output assets/examples/example-river-sample-report.htmlWorkflow
- Read references/data-schema.md before touching the workbook schema.
- Read references/status-rules.md before changing status logic.
- Read references/visual-spec.md before changing the chart layout or legend.
- Use
scripts/calc_submergence.pyfirst when the request is analytical. - Use
scripts/render_status_report.pywhen the request needs a deliverable chart. - Use
scripts/generate_mock_example_excel.pyto create a regression fixture or explain the expected workbook shape. - Use
scripts/generate_input_template_excel.pywhen the user needs a blank workbook they can fill directly in Excel. - Report validation warnings explicitly. Do not silently coerce missing elevations, missing sizes, or ambiguous bank-side values.
Visual Rules
- Keep
Ycoordinates in true elevation. Do not vertically exaggerate. - Use mileage for ordering and anchor positioning.
- Keep the page free of browser-level horizontal scrolling. Use wheel zoom in the chart plus the timeline overview for navigation.
- Allow horizontal zoom or compression for layout, but keep outfall symbol widths fixed during zoom.
- Anchor each outfall at its true mileage and base elevation.
- When
河底高程is present, draw a brown riverbed step profile and fill the active scenario water body above it with blue. - When
堤顶高程is present, draw the levee crest as a separate contextual step profile. - Draw the outfall crown from true geometry height when size data is available.
- Use shape to distinguish geometry type:
- Rectangle for box culverts or rectangular outfalls.
- Circle for circular pipes. Do not flatten circular pipes into ellipses.
- Use bank-side offset to distinguish left-bank and right-bank outfalls:
- Left-bank outfalls offset to the left of the river axis.
- Right-bank outfalls offset to the right of the river axis.
- Reinforce bank side with connector direction, label placement, and legend text.
- Use status as the dominant semantic encoding:
未受淹部分受淹完全淹没- Make the selected scenario visually dominant and keep non-selected scenarios visible but weaker.
- Prefer code plus size on the chart. Keep full outfall names in the detail table when the chart is dense enough that names would harm readability.
Scripts
scripts/generate_mock_example_excel.py- Create an anonymized example workbook with mixed outfall and control-node rows.
scripts/generate_input_template_excel.py- Create a multi-sheet Excel template whose first sheet can be filled directly and whose second sheet explains the fields.
scripts/calc_submergence.py- Read a workbook, normalize the rows, compute scenario statuses, and print or export a summary.
scripts/render_status_report.py- Generate a standalone HTML report with scenario switching and horizontal zoom.
scripts/river_outfall_status_lib.py- Shared parser, validator, geometry, summary, and
.xlsxread/write helpers.
References
- references/data-schema.md
- Workbook shape, column aliases, and row classification rules.
- references/status-rules.md
- Water-level interpretation, crown inference, and tri-state status logic.
- references/visual-spec.md
- Chart semantics, left/right bank encoding, and layout constraints.
Output Checklist
- State which scenarios were actually present in the source workbook.
- Report total outfall count and counts by status for the highlighted scenario.
- List fully submerged outfall codes explicitly.
- Call out left-bank and right-bank counts when they matter to the request.
- Mention whether
河底高程/堤顶高程were present, because that determines whether the chart includes channel background context or only water lines plus outfalls.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

