ras-commander: Skill for Claude Code

.claude/skills/hecras_compute_rascontrol/SKILL.md

hecras_compute_rascontrol is a skill for Claude Code from gpt-cmdr/ras-commander. It costs 175 tokens per session (3,021 once invoked), scanned A, original, MIT.

A tool for automating older HEC-RAS versions, from 3.x through 5.x, through Windows' COM interface. COM is a Windows mechanism that lets one program control another; newer HEC-RAS versions use a different tool here.

In plain words
What is it for?
Use it to run legacy HEC-RAS plans, extract steady or changing-flow results, manage COM sessions, clean up abandoned processes, and protect notebook-based runs with a watchdog.
Why use it?
Legacy HEC-RAS automation needs process management and protection against stuck or abandoned sessions. This handles the older interface and helps keep automated runs under control.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is gpt-cmdr/ras-commander's own configuration. It tells Claude Code how to work on ras-commander itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ras-commander configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gpt-cmdr/ras-commander. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gpt-cmdr/ras-commander/main/.claude/skills/hecras_compute_rascontrol/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gpt-cmdr/ras-commander

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hecras_compute_rascontrol

README.md
[![agentmods](https://agentmods.dev/badge/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol/github.svg)](https://agentmods.dev/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol)
Your own site
<a href="https://agentmods.dev/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol"><img src="https://agentmods.dev/badge/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hecras_compute_rascontrol

Your own site · 80×15
<a href="https://agentmods.dev/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol"><img src="https://agentmods.dev/badge/skills/gpt-cmdr/ras-commander/hecras_compute_rascontrol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00175 $0.03021
Opus 5 $0.00088 $0.01510
Sonnet 5 $0.00035 $0.00604
Haiku 4.5 $0.00017 $0.00302

Measured 11d ago against content hash 3c9b1c9650be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

hecras_compute_rascontrol scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/hecras_compute_rascontrol/SKILL.md · 398 lines

How it starts

The opening of the file, as written. The whole thing — 398 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Executing HEC-RAS Plans via RasControl (COM Interface)

Use RasControl to automate HEC-RAS versions 3.x-5.x via the HECRASController COM interface. For HEC-RAS 6.x+, use RasCmdr instead.

Primary Sources

1. RasControl Implementation

Location: ras_commander/RasControl.py

Read these key sections:

  • Lines 438-527: RasControl class with version mapping and output variable codes
  • Lines 543-742: COM lifecycle management (_com_open_close())
  • Lines 746-884: run_plan() with smart skip and watchdog protection
  • Lines 936-1177: get_steady_results() - extract steady state profiles
  • Lines 1179-1458: get_unsteady_results() - extract time series with Max WS
  • Lines 1647-1909: Process management API (orphan cleanup)

2. Working Examples (Jupyter Notebooks)

  • examples/120_automating_ras_with_win32com.ipynb - Low-level win32com exploration
  • examples/121_legacy_hecrascontroller_and_rascontrol.ipynb - Complete RasControl workflows

3. Supporting Documentation

  • .claude/rules/hec-ras/execution.md - Execution mode comparison
  • ras_commander/AGENTS.md - Library context and module organization

When to Use RasControl vs RasCmdr

Scenario Use RasControl Use RasCmdr
HEC-RAS 3.x-5.x Yes No
HEC-RAS 6.x+ No (use COM only if needed) Yes (preferred)
Need GUI interaction Yes (COM opens GUI) No (headless)
Version comparison Yes Yes
Production workflows Limited Preferred
Parallel execution No (single-threaded) Yes

Quick Reference

Basic Workflow

from ras_commander import init_ras_project, RasControl

# Initialize project with version
init_ras_project(project_path, "5.0.6")  # Or "506", "4.1", "41", etc.

# Run plan (checks if current, skips if up-to-date)
success, msgs = RasControl.run_plan("02")

# Force recomputation
success, msgs = RasControl.run_plan("02", force_recompute=True)

# Extract steady state results
df_steady = RasControl.get_steady_results("02")

# Extract unsteady time series (includes Max WS row)
df_unsteady = RasControl.get_unsteady_results("01")

Read the full file on GitHub · 398 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 398 lines · 175 tokens per session scan A 3c9b1c9650be

Subscribe to this mod's changes

hecras_compute_rascontrol is a skill published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It adds 175 tokens to every session and 3,021 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

neuroskill-bci

Use live BCI cognitive and mood state from NeuroSkill.

NousResearch/hermes-agent · 18 tokens

ruview-advanced-sensing

Advanced RuView capabilities — RuvSense multistatic sensing (attention-weighted fusion, geometric diversity, persistent field model), cross-viewpoint fusion across multiple nodes, RF tomography (ISTA L1 solver, voxel grids), longitudinal biomechanics drift, pre-movement intention signals, adversarial signal detection…

ruvnet/RuView · 84 tokens

ruview-applications

Run RuView sensing applications — presence/occupancy, breathing & heart rate, activity & fall detection, 17-keypoint pose estimation (WiFlow), sleep monitoring & apnea screening, environment mapping, Mass Casualty Assessment (MAT), and the 3D point-cloud fusion demo. Use when someone wants to actually do something…

ruvnet/RuView · 79 tokens

lab-hardware-cad

Design custom laboratory hardware as parametric build123d models and export fabrication-ready STEP, STL, and DXF files - microfluidic chips and molds, optomechanical mounts and breadboard adapters, cuvette and microplate holders, tube racks, animal-behavior rigs, and 3D-printed instrument fixtures. Use when a research…

K-Dense-AI/scientific-agent-skills · 106 tokens

opentrons-integration

Author, review, migrate, simulate, and troubleshoot official Opentrons Python Protocol API v2 protocols for Flex and OT-2 robots. Use for robot-specific liquid handling, deck and labware setup, pipettes, modules, runtime parameters, liquid classes, and Opentrons App analysis. Use pylabrobot instead when one workflow…

K-Dense-AI/scientific-agent-skills · 79 tokens

pylabrobot

Develop and review PyLabRobot lab-automation resources, liquid-handling plans, offline simulations, and supported-device integrations. Use for PyLabRobot protocols or API questions; keep physical execution behind an explicit operator safety gate.

K-Dense-AI/scientific-agent-skills · 49 tokens