← Back to Skills Marketplace
wu-uk

glm-basics

by wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
76
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install glm-lake-mendota-glm-basics
Description
Basic usage of the General Lake Model (GLM) for lake temperature simulation. Use when you need to run GLM, understand input files, or modify configuration pa...
README (SKILL.md)

GLM Basics Guide

Overview

GLM (General Lake Model) is a 1D hydrodynamic model that simulates vertical temperature and mixing dynamics in lakes. It reads configuration from a namelist file and produces NetCDF output.

Running GLM

cd /root
glm

GLM reads glm3.nml in the current directory and produces output in output/output.nc.

Input File Structure

File Description
glm3.nml Main configuration file (Fortran namelist format)
bcs/*.csv Boundary condition files (meteorology, inflows, outflows)

Configuration File Format

glm3.nml uses Fortran namelist format with multiple sections:

&glm_setup
   sim_name = 'LakeName'
   max_layers = 500
/
&light
   Kw = 0.3
/
&mixing
   coef_mix_hyp = 0.5
/
&meteorology
   meteo_fl = 'bcs/meteo.csv'
   wind_factor = 1
   lw_factor = 1
   ch = 0.0013
/
&inflow
   inflow_fl = 'bcs/inflow1.csv','bcs/inflow2.csv'
/
&outflow
   outflow_fl = 'bcs/outflow.csv'
/

Modifying Parameters with Python

import re

def modify_nml(nml_path, params):
    with open(nml_path, 'r') as f:
        content = f.read()
    for param, value in params.items():
        pattern = rf"({param}\s*=\s*)[\d\.\-e]+"
        replacement = rf"\g\x3C1>{value}"
        content = re.sub(pattern, replacement, content)
    with open(nml_path, 'w') as f:
        f.write(content)

# Example usage
modify_nml('glm3.nml', {'Kw': 0.25, 'wind_factor': 0.9})

Common Issues

Issue Cause Solution
GLM fails to start Missing input files Check bcs/ directory
No output generated Invalid nml syntax Check namelist format
Simulation crashes Unrealistic parameters Use values within valid ranges

Best Practices

  • Always backup glm3.nml before modifying
  • Run GLM after each parameter change to verify it works
  • Check output/ directory for results after each run
Usage Guidance
This skill appears to be a simple GLM usage guide, but proceed cautiously. Key points to consider before installing/using: - The SKILL.md tells the agent to cd /root — change that to the working/project directory (or remove it) unless you intentionally want to operate in /root; running in /root can expose unrelated files and assumes elevated environment. - The provided Python namelist editor uses a naive regex that may modify unintended numeric tokens and could corrupt glm3.nml. Prefer using a proper Fortran namelist parser (e.g., f90nml or a library) or ensure strong, parameter-scoped replacements and always keep backups. - Because there's no install information, verify that the glm binary on your system is the official/trusted GLM distribution before running it. If glm is missing, obtain it from the official project/release page rather than installing from an unknown source. - Before running automated edits, back up glm3.nml and review diffs; avoid running the skill with access to system directories you don't want modified. If the maintainers can (a) remove or explain the /root directive, (b) replace the regex approach with a proper namelist parser, and (c) include guidance or a reference to the official GLM distribution, my concerns would be largely resolved.
Capability Analysis
Type: OpenClaw Skill Name: glm-lake-mendota-glm-basics Version: 0.1.0 The skill bundle provides documentation and a Python utility for managing the General Lake Model (GLM). The content in SKILL.md is consistent with its stated purpose of lake temperature simulation, and the provided code snippet for modifying configuration files via regex contains no malicious logic or data exfiltration attempts.
Capability Assessment
Purpose & Capability
Name/description match the instructions: running GLM, editing glm3.nml, and reading bcs/*.csv are expected. However, the SKILL.md instructs cd /root which is not necessary for running GLM and is an odd choice that exposes or assumes access to a privileged user directory.
Instruction Scope
Instructions tell the agent to change into /root and run the glm binary and to edit glm3.nml in-place. The /root path is unrelated to the stated purpose and may cause the agent to read or write files in a system user home. The provided Python modifier uses a simplistic regex that can accidentally change unintended numeric tokens in the namelist (risk of corrupting config).
Install Mechanism
There is no install spec (instruction-only), so nothing will be downloaded or written to disk by the skill itself. That is low-risk, but it also means the guide assumes the glm binary is already present; the SKILL.md does not tell the user where to obtain a trusted glm binary.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportionate for a local GLM usage guide.
Persistence & Privilege
always is false and there is no install step that persists files or modifies agent/system configuration. The skill does not request elevated platform privileges in its metadata.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install glm-lake-mendota-glm-basics
  3. After installation, invoke the skill by name or use /glm-lake-mendota-glm-basics
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Bulk publish from all-task-skills-dedup
Metadata
Slug glm-lake-mendota-glm-basics
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is glm-basics?

Basic usage of the General Lake Model (GLM) for lake temperature simulation. Use when you need to run GLM, understand input files, or modify configuration pa... It is an AI Agent Skill for Claude Code / OpenClaw, with 76 downloads so far.

How do I install glm-basics?

Run "/install glm-lake-mendota-glm-basics" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is glm-basics free?

Yes, glm-basics is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does glm-basics support?

glm-basics is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created glm-basics?

It is built and maintained by wu-uk (@wu-uk); the current version is v0.1.0.

💬 Comments