# Genai hub prompt evaluation

> Genai hub prompt evaluation is an open-source agent skill for ai models and llm tooling. Benchmark LLMs and prompts on SAP AI Core with test datasets and judge metrics. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/SAP/ai-skills-library/tree/main/plugins/aicore-skills/skills/genai-hub-prompt-evaluation
- **Repository:** https://github.com/sap/ai-skills-library
- **GitHub stars:** 162
- **License:** Apache-2.0
- **Skill name:** genai-hub-prompt-evaluation
- **Collection:** https://github.com/SAP/ai-skills-library
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through running GenAI evaluations on SAP AI Core. It covers three targets: a prompt template in the prompt registry, an orchestration registry config, and a grounding (RAG) orchestration config. The agent can list system metrics, create custom LLM-as-a-judge metrics from a definition file, and reuse existing ones to avoid duplicates.

The workflow ties together several scripts: registering the dataset as an artifact, creating the evaluation configuration, and retrieving aggregate scores once an execution has completed. Execution start and status polling are delegated to a separate lifecycle skill, and credentials and object stores to an admin skill. Per-row results can optionally be downloaded as a SQLite database from S3.

Using it requires Python 3.11 or later, the uv runner, the SAP AI SDK for Core and requests, plus AI Core service credentials exported as environment variables. Datasets need a reference column when metrics depend on ground truth. The skill is published under Apache-2.0 in the SAP AI skills library.

## When your agent uses it

> Run GenAI evaluations on SAP AI Core: benchmark LLMs and prompts against a test dataset using system-defined and custom (LLM-as-judge) metrics, then retrieve aggregate results. Supports all three evaluation types — prompt registry, orchestration registry, and grounding (RAG) orchestration registry. WHEN: user wants to evaluate or benchmark an LLM / prompt / orchestration config, run a GenAI evaluation, create or list evaluation metrics, define a custom LLM-as-a-judge metric, create a prompt template (prompt registry) or an orchestration-registry config (with or without grounding) for evaluation, create an evaluation configuration or execution, or fetch evaluation results / scores for an execution. DO NOT USE FOR: agent evaluation via the offline aeval service — use `aeval-offline-evaluation`; building a production orchestration/RAG pipeline for inference — use `genai-hub-orchestration`; generic executions, deployments, or artifacts unrelated to evaluation — use `aicore-lifecycle-management`; credentials, reso

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/genai-hub-prompt-evaluation)
- [Asks for: Read, Bash, WebFetch](https://github.com/SAP/ai-skills-library/blob/HEAD/plugins/aicore-skills/skills/genai-hub-prompt-evaluation/SKILL.md)
- [Network calls found in its scripts](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/genai-hub-prompt-evaluation)
- [License: Apache-2.0](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/genai-hub-prompt-evaluation)

## Features

- **System metric discovery:** Lists the built-in evaluation metrics available on the tenant, with optional name filtering.
- **Custom judge metrics:** Creates or reuses LLM-as-a-judge metrics from a JSON definition file.
- **Prompt template setup:** Creates or reuses prompt templates in the prompt registry for benchmarking across models.
- **Orchestration config setup:** Creates orchestration registry configs, with an optional grounding module for RAG evaluations.
- **Evaluation configuration:** Builds the evaluation configuration from a dataset artifact, metrics and a deployment URL.
- **Aggregate results retrieval:** Fetches summary scores for a completed execution, optionally as JSON.
- **Per-row result download:** Pulls the raw SQLite results database from object storage for instance-level analysis.

## Good for

- Compare several models on the same prompt using correctness and relevance scores
- Create a custom judge metric and apply it to an existing evaluation dataset
- Measure groundedness and context relevance of a RAG orchestration config
- Fetch the scores of a finished evaluation run as JSON
- Inspect per-row evaluation results from a completed execution

## Install

### Claude Code

This skill ships in the `aicore-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add SAP/ai-skills-library
/plugin install aicore-skills@ai-skills-library
```

Or copy only this skill to `~/.claude/skills/genai-hub-prompt-evaluation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/genai-hub-prompt-evaluation &&
cp -R "$tmp/plugins/aicore-skills/skills/genai-hub-prompt-evaluation" ~/.claude/skills/genai-hub-prompt-evaluation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/genai-hub-prompt-evaluation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/genai-hub-prompt-evaluation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/genai-hub-prompt-evaluation &&
cp -R "$tmp/plugins/aicore-skills/skills/genai-hub-prompt-evaluation" ~/.agents/skills/genai-hub-prompt-evaluation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/genai-hub-prompt-evaluation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/genai-hub-prompt-evaluation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/genai-hub-prompt-evaluation &&
cp -R "$tmp/plugins/aicore-skills/skills/genai-hub-prompt-evaluation" ~/.cursor/skills/genai-hub-prompt-evaluation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/genai-hub-prompt-evaluation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/SAP/ai-skills-library.git --path plugins/aicore-skills/skills/genai-hub-prompt-evaluation
```

Or copy the folder to `~/.gemini/skills/genai-hub-prompt-evaluation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/genai-hub-prompt-evaluation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/genai-hub-prompt-evaluation &&
cp -R "$tmp/plugins/aicore-skills/skills/genai-hub-prompt-evaluation" ~/.copilot/skills/genai-hub-prompt-evaluation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/genai-hub-prompt-evaluation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/SAP/ai-skills-library.git
```

Then copy `ai-skills-library/plugins/aicore-skills/skills/genai-hub-prompt-evaluation` into your agent's skills folder as `genai-hub-prompt-evaluation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What credentials does Genai hub prompt evaluation need before it runs?

It needs the AI Core auth URL, client ID and secret, base URL and resource group set as environment variables. The S3 keys are only required for downloading per-row results.

### Which evaluation targets does Genai hub prompt evaluation support?

Three types: prompt registry, orchestration registry, and grounding (RAG) orchestration registry.

### Can Genai hub prompt evaluation create evaluation metrics that don't already exist?

Yes. Custom LLM-as-a-judge metrics can be created from a definition file, and the script reuses an existing metric when one matches.

### When can results be fetched?

Only after the execution status reaches COMPLETED. The skill checks status through the lifecycle skill first.

### How do I install Genai hub prompt evaluation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/genai-hub-prompt-evaluation to use it in all your projects, or to .claude/skills/genai-hub-prompt-evaluation in one project. Or install the aicore-skills plugin, which includes it: /plugin marketplace add SAP/ai-skills-library, then /plugin install aicore-skills@ai-skills-library.

### Does Genai hub prompt evaluation run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Genai hub prompt evaluation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Genai hub prompt evaluation?

The closest alternatives to Genai hub prompt evaluation are Genai hub orchestration, Prompt optimizer, Agent prompt engineering, System prompt creator and Skill creator.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Genai hub orchestration](https://ai-powered.com/skills/genai-hub-orchestration): Genai hub orchestration is an open-source agent skill for ai models and llm tooling.
- [Prompt optimizer](https://ai-powered.com/skills/prompt-optimizer-getsentry): Prompt optimizer is an open-source agent skill for ai models and llm tooling.
- [Agent prompt engineering](https://ai-powered.com/skills/agent-prompt-engineering): Agent prompt engineering is an open-source agent skill for ai models and llm tooling.
- [System prompt creator](https://ai-powered.com/skills/system-prompt-creator): System prompt creator is an open-source agent skill for ai models and llm tooling.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Arize prompt optimization](https://ai-powered.com/skills/arize-prompt-optimization): Arize prompt optimization is an open-source agent skill for ai models and llm tooling.
- [Eval driven dev](https://ai-powered.com/skills/eval-driven-dev): Eval driven dev is an open-source agent skill for ai models and llm tooling.
- [Agent platform eval flywheel](https://ai-powered.com/skills/agent-platform-eval-flywheel): Agent platform eval flywheel is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/genai-hub-prompt-evaluation
