Skip to content
Back to skills

Docs

ASecurity

Thin wrapper for the preserved detailed note: [s0_preflight.md](s0_preflight.md).

  • 231 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
devopspythonbash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lzwei196-docs-f0276a7e/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-f0276a7e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Stage 0: Preflight Skill

Thin wrapper for the preserved detailed note: [s0_preflight.md](s0_preflight.md).

## Purpose

Verify this KI is bound to the real CaMa-Flood v4.20 executable and the local HydroCraft map/setup files before any runoff conversion, map preparation, execution, or calibration work.

## Inputs

- `SKILL.md`
- `preflight_check.py`
- `diagnostics/triplets.yaml`
- `KISSPATH_BINARIES/cmf_v420_pkg/src/MAIN_cmf`
- `KISSPATH_BINARIES/cmf_v420_pkg/map/glb_15min/`
- `KISSPATH_BINARIES/cmf_v420_pkg/map/data/ELSE_GPCC_coastmod_dayclm-1981-2010.one`

## Outputs

- Terminal dependency report.
- Final `PREFLIGHT_REPORT=<json>` line from `preflight_check.py`.
- Exit code `0` when all critical binary, map, setup-tool, Python-import, and KI-tool checks pass.

## Procedure

Run the KI preflight from the KI root:

```bash
cd KISSPATH_KI_ROOT/CaMa_Flood/knowledge_infrastructure
python preflight_check.py
```

Manually spot-check the core binding if preflight fails:

```bash
test -x KISSPATH_BINARIES/cmf_v420_pkg/src/MAIN_cmf
test -d KISSPATH_BINARIES/cmf_v420_pkg/map/glb_15min
test -s KISSPATH_BINARIES/cmf_v420_pkg/map/data/ELSE_GPCC_coastmod_dayclm-1981-2010.one
test -s diagnostics/triplets.yaml
```

## Verification

Confirm the report contract is present and machine-readable:

```bash
cd KISSPATH_KI_ROOT/CaMa_Flood/knowledge_infrastructure
python preflight_check.py | tail -1
```

The last line must start with `PREFLIGHT_REPORT=` and the critical checks for `MAIN_cmf`, `glb_15min`, `generate_inpmat`, `calc_outclm`, `calc_rivwth`, and the four pipeline tools must pass.

## Traps

- `dt_002`: `preflight_check.py` reports the CaMa-Flood binary missing, not executable, loader-broken, or failing its startup probe. Restore or rebuild `KISSPATH_BINARIES/cmf_v420_pkg/src/MAIN_cmf`; do not substitute a Python routing approximation.
- `dt_011`: missing `calc_outclm` or the GPCC climatology will later break Stage 2 channel-parameter generation because climatological discharge must be accumulated from `glb_15min`.
- `dt_015`: absence of the regional high-resolution `1min` support is a setup dependency for downstream downscaling and CaMa-to-SFINCS coupling.

## Example

```bash
cd KISSPATH_KI_ROOT/CaMa_Flood/knowledge_infrastructure
python preflight_check.py
```

Files in this skill

  • REFERENCES.md1.4 KB
  • format_spec.yaml39.5 KB
  • papers.json5.9 KB
  • s0_preflight.md2.2 KB
  • s0_preflight_skill.md2.2 KB
  • s1_prepare_runoff.md2.9 KB
  • s1_prepare_runoff_skill.md3.2 KB
  • s2_configure_basin.md3.6 KB
  • s2_configure_basin_skill.md3.8 KB
  • s3_execute_cama.md2.6 KB
  • s3_execute_cama_skill.md2.8 KB
  • s4_postprocess.md2.8 KB
  • s4_postprocess_skill.md2.9 KB
  • validation_convention.yaml18.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.