claude-code: Skill for Claude Code

.claude/skills/genai-prompt-eval/SKILL.md

genai-prompt-eval is a skill for Claude Code from timothywarner-org/claude-code. It costs 103 tokens per session (631 once invoked), scanned A, original, MIT.

A testing workflow for measuring the quality and safety of answers produced by a Python generative-AI application.

In plain words
What is it for?
Use it to build evaluation cases, run model outputs through the checks, score the results, and gate a release against quality thresholds.
Why use it?
It provides repeatable checks for whether answers are supported by supplied context, relevant, understandable, and safe before a feature is released.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is timothywarner-org/claude-code's own configuration. It tells Claude Code how to work on claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timothywarner-org/claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timothywarner-org/claude-code/main/.claude/skills/genai-prompt-eval/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/timothywarner-org/claude-code

Made for: Claude Code.

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 genai-prompt-eval

README.md
[![agentmods](https://agentmods.dev/badge/skills/timothywarner-org/claude-code/genai-prompt-eval/github.svg)](https://agentmods.dev/skills/timothywarner-org/claude-code/genai-prompt-eval)
Your own site
<a href="https://agentmods.dev/skills/timothywarner-org/claude-code/genai-prompt-eval"><img src="https://agentmods.dev/badge/skills/timothywarner-org/claude-code/genai-prompt-eval/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 genai-prompt-eval

Your own site · 80×15
<a href="https://agentmods.dev/skills/timothywarner-org/claude-code/genai-prompt-eval"><img src="https://agentmods.dev/badge/skills/timothywarner-org/claude-code/genai-prompt-eval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00103 $0.00631
Opus 5.5 $0.00041 $0.00252
Sonnet 5.5 $0.00021 $0.00126
Haiku 4.5 $0.00010 $0.00063

Measured 2mo ago against content hash d12cf865df8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

genai-prompt-eval 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (resources/scripts/run_eval.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/genai-prompt-eval/SKILL.md · 48 lines

How it starts

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

Score GenAI outputs before shipping

This skill measures whether a generative-AI feature produces answers that are grounded, relevant, coherent, and safe. It runs a set of eval cases through the model, scores each output on those four dimensions, and reports pass or fail against thresholds. Pair it with the azure-ai-deploy skill: evals are Gate 1 of that deploy checklist.

When to reach for this

  • A GenAI feature is changing and you need a regression signal on answer quality.
  • A deploy gate requires proof that outputs meet a quality bar.
  • You want a repeatable eval corpus that reflects real enterprise questions, not toy prompts.

Workflow

1. Read the dimensions

Read resources/references/EVAL-DIMENSIONS.md. It defines groundedness, relevance, coherence, and safety, states what each one measures, and gives a pass signal for each.

2. Build the eval corpus

Start from resources/templates/eval_cases.jsonl. Each line is one case: an input prompt, optional context the answer must stay grounded to, and expected_criteria describing a passing answer. Add cases that mirror the questions real users send.

3. Run the harness

uv run python ${CLAUDE_SKILL_DIR}/resources/scripts/run_eval.py \
  --cases ${CLAUDE_SKILL_DIR}/resources/templates/eval_cases.jsonl \
  --threshold 0.8

The script loads the cases, calls the model for each, scores the output on the four dimensions, prints a per-case and aggregate report, and exits non-zero when the aggregate score falls below the threshold. That non-zero exit fails a CI or deploy step.

4. Read the report and act

  • Cases below threshold name the failing dimension. Fix the prompt, the retrieval context, or the guardrail, then re-run.
  • Record the aggregate score as the new baseline so the next run detects regressions.

Conventions

  • uv manages Python, not pip. Run scripts with uv run.
  • No hardcoded secrets. The scoring model client reads its endpoint and deployment from env vars.
  • Realistic cases only. Eval inputs are enterprise scenarios, never placeholder prompts.
  • Deterministic scoring where possible. Prefer a low temperature on any model-graded dimension so scores are stable across runs.

Read the full file on GitHub · 48 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 48 lines · 103 tokens per session scan A d12cf865df8a

Subscribe to this mod's changes

genai-prompt-eval is a skill published in the GitHub repository timothywarner-org/claude-code (226 stars, last pushed 3mo ago), licensed MIT. It adds 103 tokens to every session and 631 once invoked, about $0.0004 per session on Opus 5.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-30.

Related

genai-prompt-eval compared with skills from other repositories

genai-prompt-eval next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
genai-prompt-evaltimothywarner-org/claude-codeSkill2263mo agoMITA103Claude Code
cli-evaldiegosouzapw/OmniRouteSkill83k5d agoMITA34Claude Code, Codex
emerging-techniques-model-mergingdavila7/claude-code-templatesSkill33kyesterdayMITA77Claude Code, Codex
darwinian-evolverNousResearch/hermes-agentSkill261kyesterdayMITB22Claude Code, Codex
dummy-datasetphuryn/pm-skillsSkill28k8d agoMITA48Claude Code
validatesemantica-agi/semanticaSkill14kyesterdayMITA0Claude Code
agent-evalssickn33/agentic-awesome-skillsSkill49kyesterdayMITB38Claude Code