nisar-snow-diagnose

nisar-snow-diagnose is a skill for Claude Code, Codex from responsible-genai-hackweek/nicer-nisar. It costs 86 tokens per session (1,550 once invoked), scanned A, original, BSD-3-Clause.

A diagnostic workflow for examining an existing Mores Creek snow-depth model product and its residual errors, meaning the differences between predictions and observed values.

In plain words
What is it for?
It helps inspect saved predictions and residuals, identify failure patterns, and record findings that can guide a later model-training change.
Why use it?
It helps distinguish genuine model problems from artifacts caused by factors such as canopy, slope, elevation, coherence, or a single observation pair, without changing the model or raster.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect saved predictions and residuals, identify failure patterns, and record findings that can guide a later model-training change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add responsible-genai-hackweek/nicer-nisar --skill nisar-snow-diagnose
Clone the repo
git clone --depth 1 https://github.com/responsible-genai-hackweek/nicer-nisar

Made for: Claude Code, Codex.

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 nisar-snow-diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose/github.svg)](https://agentmods.dev/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose)
Your own site
<a href="https://agentmods.dev/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose"><img src="https://agentmods.dev/badge/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose/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 nisar-snow-diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose"><img src="https://agentmods.dev/badge/skills/responsible-genai-hackweek/nicer-nisar/nisar-snow-diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 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.
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.00086 $0.01550
Opus 5 $0.00043 $0.00775
Sonnet 5 $0.00017 $0.00310
Haiku 4.5 $0.00009 $0.00155

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

Security

Grade A, and why

nisar-snow-diagnose 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 12d 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.

contributors/ibrahim/skills/nisar-snow-diagnose/SKILL.md · 113 lines

How it starts

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

Diagnosing a product

This is the only part of the system with agency. Training and prediction had every decision deliberately removed so results stay reproducible; diagnostics is where the loop, the hypotheses, and the judgment live.

It runs on the analysis side, never in the path that generates a product. It reads artifacts that already exist and writes findings. It does not write rasters, does not refit, does not touch models/<id>/. If a diagnosis implies a change, that change belongs to nisar-snow-train and produces a new pinned model_id — never an edit to the current one.

There is no diagnose.py. This is an exploratory loop over saved artifacts, which is correct: freezing it into a module would be freezing the part that should stay flexible.

What you have to work with

import json, joblib, pandas as pd, numpy as np, rasterio
d    = "models/mcs-dsd-20260828-0f28ba57"
card = json.load(open(f"{d}/model_card.json"))
rows = pd.read_parquet(f"{d}/training_rows.parquet")   # features + dsd_mean + x/y
est  = joblib.load(f"{d}/model.joblib")
with rasterio.open("products/dsd_077_2026-02-07_<model_id>.tif") as ds:
    dsd, coh, gate = ds.read(1), ds.read(2), ds.read(3)
    tags = ds.tags()

rows carries the bookkeeping columns as well as the features — cell_id, row, col, x_center, y_center, cc_label, mask_water, mask_sub_ref, mask_sub_sec, pair_id, track — which is what makes spatial and mask-conditioned residual analysis possible without re-streaming.

Residuals must be out-of-fold. cross_validate returns (results, oof); in-sample residuals on a ridge with 12 features will look flat and tell you nothing.

The axes worth looking at

Condition on Looking for What it would mean
coh80, coh20_std error rising as coherence falls the cell threshold (0.20) is too permissive
chm_mean error under canopy L-band canopy penetration limits — expected, worth quantifying
slope_deg, aspect_sin/cos error on steep or lee slopes geometric distortion, or wind redistribution the features miss
elev_m structure across the gradient the orographic term is doing work the radar should
cc_label offset between components datum leakage — should be impossible at CC_ALLOW = (1,)
gate_code bits error concentrated in one bit's cells a gate is admitting cells it should drop
x_center, y_center spatial clustering of residuals unmodelled spatial process; also re-check the variogram
distance to nodata edge error on the perimeter boundary artifact in an ancillary layer

Read the full file on GitHub · 113 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. 12d ago First seen · 113 lines · 86 tokens per session scan A 85cbcf7f14d2

Subscribe to this mod's changes

nisar-snow-diagnose is a skill published in the GitHub repository responsible-genai-hackweek/nicer-nisar (2 stars, last pushed 14d ago), licensed BSD-3-Clause. It adds 86 tokens to every session and 1,550 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

mechanical-engineering-research

Apply source-aware mechanical-engineering judgment to research, analysis, coding, writing, teaching, research identity, and release work. Use for thermal-fluid systems, heat transfer, fluid mechanics, thermodynamics, HVAC, energy systems, turbomachinery, piping, multiphase flow, experiments, correlations, CFD…

hanhuark/mechanical-engineering-research-skill · 122 tokens

research-schematic-design

Create publication-quality, editable scientific and engineering schematics with explicit physical meaning, exact labels, visual hierarchy, and provenance. Use for experimental facilities, thermal-fluid mechanisms, workflows, graphical abstracts, system architectures, or research diagrams.

hanhuark/mechanical-engineering-research-skill · 50 tokens

thermal-fluid-analysis

Analyze thermal-fluid engineering systems, experiments, CFD, and correlations with explicit assumptions, validity limits, uncertainty, and mechanism-based interpretation. Use for heat transfer, fluid mechanics, phase change, HVAC, energy systems, turbomachinery, piping, or thermal management.

hanhuark/mechanical-engineering-research-skill · 56 tokens

research-data-analysis

Design and analyze engineering experiments or simulations using baseline cases, hypothesis-driven DOE, traceable data processing, defensible plots, uncertainty, and validation. Use for CFD, laboratory data, ML workflows, parameter studies, or research code.

hanhuark/mechanical-engineering-research-skill · 50 tokens

research-lab

A research workflow for questions that can be tested with evidence, such as comparing models or software. It defines the question, baseline, candidates, data, measurements, and decision rules before running or resuming an experiment.

ooooooooooooooooooop/agent-tools · 115 tokens

alternative-coffee-intelligence

Alternative Slowbar coffee intelligence — scientific analysis from seed to cup using First Principle + System Thinking. Covers: varieties, terroir, cultivation, disease diagnosis, processing, roasting physics/chemistry, extraction science, brewing, business strategy, storytelling. ALWAYS trigger for coffee-related…

ElmatadorZ/alternative-coffee-claudeskill · 92 tokens