Reliability logo

Reliability

Organization
ai-analyst-lab
reliability

Check whether an AI analysis answer is STABLE by running the same question several independent times and measuring what holds versus what drifts. Trigger on "/reliability", "run this a few times", "is this answer stable / reliable", "check reliability of <question>", "does it give the same answer again", "run it N times and compare". The cheapest eval and the only one needing no answer key: stability, not correctness.

Overview

Publisherai-analyst-lab
Repositoryai-analyst-plugin
Skill namereliability
Stars
34
Forks
13
Bundled files
1
LicenseMIT
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.

  • 1 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-analyst-lab on GitHub. Read the source before you install it.

Installation

Install the Reliability 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-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/reliability
  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-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/reliability .claude/skills/reliability
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Reliability 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 Reliability 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 Reliability 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.

Skill: Reliability check

Purpose

Run one analytics question several independent times and report whether the answer is stable (every run agrees) or drifting (runs disagree because the question is under-defined). Stability is necessary, not sufficient: a wrong query is perfectly stable. This check needs no ground truth.

Invocation

/reliability "<the question>" [N] — default N = 5. Example: /reliability "What's our retention rate?"

How to run it

Step 1 — fire N independent runs

Launch N sub-agents in parallel with the Task/Agent tool (N defaults to 5). They must be genuinely independent: each gets a fresh context and sees ONLY the question, never the other runs' answers. Give each sub-agent exactly this brief:

You are answering one analytics question against the active dataset. Load the normal session context first (knowledge-bootstrap: read .knowledge/active.yaml, then the active dataset's schema.md, quirks.md, and manifest from the local datasets dir). For the metric dictionary and semantic context, first resolve the context dir: read .knowledge/context-source.yaml; if it exists and says source: git, clone or pull the repo it names into .knowledge/.context-cache (checkout the ref, default main) and use the dataset's directory inside that cache; otherwise use .knowledge/datasets/{active}/. Read metrics/index.yaml and semantic/ from the RESOLVED dir, not from any other copy. Do not read .knowledge/reliability/ history before answering. If the metric you're asked about is defined in the dictionary, use that definition exactly. If it is not, decide for yourself how best to define and measure it. Query the real data through the session's active data connection (the mounted files or the connected warehouse). Answer the question: "". Then return ONLY this block: headline: <the single number you'd report> measured: <one line: numerator, denominator, grain, window, any filter> definition_source: <"metric dictionary" if you used a defined metric, else "my own choice">

Do not let the runs share state. Run them concurrently.

Step 2 — record the runs (tracked + auditable)

Write the N results to a timestamped run directory so every check leaves an audit trail: .knowledge/reliability/<UTC-timestamp>-<question-slug>/runs.json, shaped as {"question": "<the question>", "runs": [{"run":1,"headline":"...","measured":"...","definition_source":"..."}, ...]}.

Step 3 — compute the statistics (deterministic, not estimated)

Run the script bundled with this skill, using its path inside this skill's own directory: python3 <this skill's dir>/scripts/reliability_stats.py <the run directory from Step 2>

If the skill install path cannot be resolved (some sandboxed environments): read the script file(s) from this skill, write a copy into a scripts/ folder inside the working folder, and run from there. The scripts are self-contained.

The script computes the numbers deterministically (never let the model estimate them): distinct values, min/max/range, mean, stdev, CV, the agreement count + agreement rate, how many runs used the metric dictionary, and the STABLE/DRIFT verdict. It writes stats.json + report.md in the run dir and appends one line to .knowledge/reliability/log.jsonl (the audit log of every reliability check over time, so results can be tracked).

Step 4 — report (short, on-screen)

Show the report.md it produced: the Run | headline | what it measured | source table, the verdict, and the computed stats (distinct values, agreement rate, CV, range). Frame it:

  • STABLE — "Same answer every run. Lean on it being consistent. Stable is not correct though, a wrong query is perfectly stable too, so this says it's settled, not that it's the reading you meant."
  • DRIFT — "N distinct readings. Each run quietly chose a different definition. The spread is the check telling you to go define this before you trust any single number."

Tell the user where it was saved (the run dir + .knowledge/reliability/log.jsonl). Then the honest footnotes: N is illustrative (size it to the precision you need); this check needs no answer key (it measures stability, not correctness); nearly free as long as the runs are genuinely independent (some tools cache answers, and then it sees nothing).

Notes

  • The active data connection is whatever the session is configured for (mounted files or a connected warehouse); the sub-agents just use that same connection.
  • The fix for drift is not a smarter model, it's context: define the metric once in the dictionary (the /metric-spec skill, or just tell the analyst the definition and ask it to save it), then run /reliability again and the runs converge on the meaning you set.
  • One exception: when you are running a comparison (with-and-without, the /context-compare skill), do NOT save the definition permanently with /metric-spec. The comparison stages the definition temporarily (copies the metrics index entry aside for the with-definition runs, then restores the original when the comparison is done). Save into the dictionary only when you want the definition to be permanent, not for a comparison.

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 Reliability AI skill do?

Check whether an AI analysis answer is STABLE by running the same question several independent times and measuring what holds versus what drifts. Trigger on "/reliability", "run this a few times", "is this answer stable / reliable", "check reliability of <question>", "does it give the same answer again", "run it N times and compare". The cheapest eval and the only one needing no answer key: stability, not correctness.

Why use Reliability on TypingMind?

Because you install it once and use it with any model. Reliability 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 Reliability in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/reliability. 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 Reliability?

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 Reliability?

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

Is the Reliability AI skill free?

Yes. It is published on GitHub by ai-analyst-lab under the MIT 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 👇