Skip to content
Skill

Genai hub prompt evaluation

Benchmark LLMs and prompts on SAP AI Core with test datasets and judge metrics

Genai hub prompt evaluation is an open-source agent skill for ai models and llm tooling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
162
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Genai hub prompt evaluation

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 21 files (104 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

/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:

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Genai hub prompt evaluation 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.

More from SAP/ai-skills-library

  1. Checks SAP AI Core credentials, fetches auth tokens and manages resource groups

    • Open source
    • 162 GitHub stars
    • Cloud and infrastructure
  2. Lets your agent manage SAP AI Core scenarios, configurations and deployments via scripts

    • Open source
    • 162 GitHub stars
    • Cloud and infrastructure
  3. Generates Java code for calling SAP GenAI Hub models via the SAP AI SDK

    • Open source
    • 162 GitHub stars
    • Developer tools
  4. Generates TypeScript and JavaScript code for calling SAP GenAI Hub models

    • Open source
    • 162 GitHub stars
    • Developer tools
  5. Generates Python code for calling LLMs, batch jobs and RAG through SAP AI Core

    • Open source
    • 162 GitHub stars
    • Developer tools
  6. Browse SAP AI Core GenAI Hub foundation models and get IDs for deployments

    • Open source
    • 162 GitHub stars
    • AI models and LLM tooling