Uq Metrics Evaluator logo

Uq Metrics Evaluator

Organization
AI-ModCon
uq-metrics-evaluator

Use when the user asks for model evaluation, accuracy, calibration, or uncertainty quantification (UQ) analysis from CSV data. Handles both regression (MAE, RMSE, R², calibration) and classification (accuracy, F1, ROC-AUC, ECE, confusion matrix). Discovers the right CSV files and columns from prompt intent, then runs evaluation with artifact outputs.

Overview

PublisherAI-ModCon
Repositorygenesis-skills
Skill nameuq-metrics-evaluator
Stars
37
Forks
16
Bundled files
5
LicenseBSD-2-Clause
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AI-ModCon on GitHub. Read the source before you install it.

Installation

Install the Uq Metrics Evaluator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/basesafe-skills/uq-metrics-evaluator .claude/skills/uq-metrics-evaluator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Uq Metrics Evaluator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Uq Metrics Evaluator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Uq Metrics Evaluator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Model Accuracy and Calibration Analysis

Arguments

The user provides a dataset or folder path and optional flags.

Expected format: <dataset_or_folder> [--task {regression|classification}] [--pred <file>] [--truth <file>]

What to specify:

  • Dataset or folder path to analyze
  • Task type (regression or classification) if not auto-detectable
  • Specific prediction/truth/probability column names or files if needed

Examples:

  • ./data — auto-discover files in directory
  • predictions.csv ground_truth.csv — explicit files
  • ./results --task classification — force classification mode

Overview

This skill performs end-to-end model evaluation from CSV files using two tools:

Core behavior:

  1. Determine task type (regression or classification) from the user's prompt and inspected column types.
  2. Discover and inspect candidate CSV files.
  3. Select relevant columns and run the appropriate evaluation tool.
  4. Return a concise analysis with artifact locations.

Environment Bootstrap

Use ephemeral uv run --with execution to avoid creating dependency files in the repository.

Schema inspection (both task types):

bash
uv run --with pandas --with pydantic \
    scripts/csv_reader_tool.py <file.csv>

Regression evaluation:

bash
uv run --with pandas --with pydantic --with numpy --with uncertainty-toolbox --with matplotlib --with seaborn \
    scripts/evaluate_metrics_tool.py <predictions.csv> <ground_truth.csv> \
    --pred-col <prediction_column> \
    --truth-col <truth_column> \
    [--uncertainty-col <uncertainty_column>]

Classification evaluation:

bash
uv run --with pandas --with pydantic --with numpy --with scikit-learn --with matplotlib --with seaborn \
    scripts/evaluate_classification_tool.py <predictions.csv> <ground_truth.csv> \
    --pred-col <predicted_class_column> \
    --truth-col <true_label_column> \
    [--prob-col <positive_class_prob_column>]        # binary only
    [--prob-cols <class0_prob> <class1_prob> ...]    # multiclass

Validation loop for execution:

  1. Run the command.
  2. If dependency or import errors appear, add missing packages via --with and rerun.
  3. Repeat until the command succeeds.

Task Type Routing

Determine task type before selecting columns:

SignalRoute to
Prompt mentions "regression", "RMSE", "MAE", "R²", "residuals", "continuous"Regression
Prompt mentions "classification", "F1", "accuracy", "confusion matrix", "AUC", "labels", "classes"Classification
Prediction column is continuous numeric (float, wide range)Regression
Prediction column is categorical or integer with few unique valuesClassification
Uncertainty column present with no class labelsRegression

When ambiguous, inspect the prediction column with csv_reader_tool and use dtype and cardinality to decide. Ask the user only if inspection is inconclusive.

Decision Logic

1. Resolve candidate CSV files

  1. Start from paths explicitly named by the user.
  2. If user gives a directory, list CSV files and rank by filename hints:
    • predictions-like: pred, prediction, inference, forecast, output
    • truth-like: truth, target, label, actual, ground
    • uncertainty/probability-like: uncert, sigma, std, prob, score
  3. If one file appears to contain both predictions and truth, use it for both inputs.

2. Inspect schemas before selecting columns

Run csv_reader_tool on each candidate file first. Prefer columns that are numeric, low missingness, and semantically matched to user language.

3. Map semantic roles to columns

Regression:

  • Prediction (--pred-col): y_pred, pred, prediction, mean, mu, forecast
  • Truth (--truth-col): y, y_true, truth, ground_truth, actual, target
  • Uncertainty (--uncertainty-col): sigma, std, stddev, uncertainty, pred_std

Classification:

  • Predicted class (--pred-col): y_pred, pred, prediction, class, label_pred
  • True label (--truth-col): y, y_true, label, ground_truth, actual, target
  • Binary probability (--prob-col): prob, score, prob_pos, p_pos, probability
  • Multiclass probabilities (--prob-cols): one column per class, ordered to match class order

Branching (classification):

  • If predicted class + truth found, run hard-label metrics (accuracy, F1, precision, recall, confusion matrix).
  • If a probability column is also found and the user asks for calibration or UQ, include ECE/MCE/Brier + reliability diagram.
  • If probability column missing, run hard-label metrics only and report calibration skipped.

Output Contract

Regression — return:

  1. Chosen files and columns (+ rationale).
  2. Accuracy metrics: mae, rmse, r2, corr, row_count.
  3. UQ calibration (when available): mean_calibration_error, rms_calibration_error, miscalibration_area, sharpness, nll.
  4. Artifacts: residuals CSV + residual distribution PNG; calibration CSV + calibration plot PNG.

Classification — return:

  1. Chosen files and columns (+ rationale).
  2. Hard-label metrics: accuracy, precision_macro, recall_macro, f1_macro, num_classes, row_count.
  3. Probability metrics (when available): roc_auc, log_loss.
  4. Calibration (when probability column present): expected_calibration_error, max_calibration_error, brier_score.
  5. Artifacts: confusion matrix CSV + heatmap PNG; reliability diagram PNG (if probabilities available).
  6. Any skipped steps or assumptions.

Quality Checks

Before finalizing analysis, verify:

  • Selected columns exist in the inspected schema.
  • Prediction/truth lengths are compatible.
  • Non-null rows remain after filtering.
  • For regression: prediction and truth columns are numeric.
  • For regression calibration: uncertainty values are strictly positive.
  • For classification: at least 2 unique classes are present in truth column.
  • For classification probabilities: probability columns are numeric and in [0, 1].

If checks fail, explain what failed, propose 2–3 alternative columns, and ask for clarification only when needed.

Procedure

  1. Parse the user-provided files, directory, column hints, and task type.
  2. Determine task type (regression vs. classification) from prompt and schema inspection.
  3. Discover and inspect candidate CSV files with csv_reader_tool.
  4. Select file pair and column mapping.
  5. Execute the appropriate evaluation tool.
  6. Summarize metrics and interpret model behavior.
  7. Report artifact paths for follow-on visualization or debugging.

Common Mistakes

MistakeFix
Running regression tool on class label columnsInspect cardinality; route to classification tool
Running classification tool on continuous outputsInspect dtype and range; route to regression tool
Using --prob-col for multiclassUse --prob-cols with one column per class
Requesting calibration without probability columnRun hard-label metrics only; report calibration skipped
Mixing row-misaligned filesUse same-row datasets or ask for join key workflow
Guessing columns without inspectionAlways run csv_reader_tool first

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Uq Metrics Evaluator AI skill do?

Use when the user asks for model evaluation, accuracy, calibration, or uncertainty quantification (UQ) analysis from CSV data. Handles both regression (MAE, RMSE, R², calibration) and classification (accuracy, F1, ROC-AUC, ECE, confusion matrix). Discovers the right CSV files and columns from prompt intent, then runs evaluation with artifact outputs.

Why use Uq Metrics Evaluator on TypingMind?

Because you install it once and use it with any model. Uq Metrics Evaluator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Uq Metrics Evaluator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/uq-metrics-evaluator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Uq Metrics Evaluator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Uq Metrics Evaluator?

As many as you like. As long as a model supports skills, you can use Uq Metrics Evaluator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Uq Metrics Evaluator AI skill free?

Yes. It is published on GitHub by AI-ModCon under the BSD-2-Clause license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇