genai-hub-foundation-models — скилл для Claude Code: модели SAP
Скилл genai-hub-foundation-models для Claude Code показывает модели SAP AI Core GenAI Hub и их параметры. Запускается, когда нужно найти имя модели или executable ID для развёртывания.
Apache-2.0 256 установок ★ 153 обновлён 2026-10-22
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a claude-codeЧто делает genai-hub-foundation-models
Скилл получает актуальный список foundation-моделей из SAP AI Core GenAI Hub и показывает провайдеров, версии, возможности и длину контекста. Можно отфильтровать список по executable ID, сценарию или запросить подробный вывод; для сценариев со скриптами предусмотрен JSON-формат.
Для работы нужны Python 3.11+, uv и sap-ai-sdk-core. Если учётные данные не настроены, сначала вызывается aicore-admin-resources. При неизвестном или неподтверждённом имени модели скилл запрашивает живой каталог; известное имя можно не перепроверять.
Скилл также подбирает имя модели для create_llm_deployment и приводит примеры curl для уже развёрнутых моделей. Он не создаёт и не управляет развёртываниями: для этого используется aicore-lifecycle-management.
Какие задачи решает
- найти доступные модели и их провайдеров
- получить executable ID для модели
- сверить версии, возможности и длину контекста
- подобрать точное имя модели для
create_llm_deployment - получить пример
curlдля уже развёрнутой модели
Примеры запросов агенту
- Покажи доступные модели Google и их executable ID.
- Найди модель с поддержкой streaming и покажи длину контекста.
- Дай пример
curlдля вызова уже развёрнутой модели.
Как установить genai-hub-foundation-models
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a claude-code2Вручную: положить файлы
~/.claude/skills/genai-hub-foundation-models/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/genai-hub-foundation-models/
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a codex2Вручную: положить файлы
.agents/skills/genai-hub-foundation-models/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a cursor2Вручную: положить файлы
.cursor/skills/genai-hub-foundation-models/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install SAP/ai-skills-library plugins/aicore-skills/skills/genai-hub-foundation-models2Вручную: положить файлы
.github/skills/genai-hub-foundation-models/SKILL.md1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a gemini-cli2Командой платформы
gemini skills install https://github.com/SAP/ai-skills-library --path plugins/aicore-skills/skills/genai-hub-foundation-modelsВручную: положить файлы
.devin/skills/genai-hub-foundation-models/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о genai-hub-foundation-models
Как установить genai-hub-foundation-models в Claude Code?
Выполни npx skills add SAP/ai-skills-library --skill genai-hub-foundation-models -a claude-code. Файл скилла появится по пути ~/.claude/skills/genai-hub-foundation-models/SKILL.md.
Что делает genai-hub-foundation-models?
Скилл показывает модели из SAP AI Core GenAI Hub, их версии, возможности, длину контекста и executable ID. Он также даёт примеры запросов к уже развёрнутой модели.
Что нужно для работы genai-hub-foundation-models?
Нужны Python 3.11+, uv, пакет sap-ai-sdk-core и настроенные учётные данные. Если учётные данные не настроены, сначала вызывается aicore-admin-resources.
Исходный текст
SKILL.md · Apache-2.0
---
name: genai-hub-foundation-models
description: >
List and explore foundation models available in SAP AI Core GenAI Hub: browse supported
providers, model names, versions, capabilities, and executable IDs needed to create deployments.
WHEN: user wants to see what models are available, find an executable-id or model-name for
deployment, browse providers (Azure OpenAI, Anthropic, Google, Mistral, Cohere, etc.), check
model capabilities or context length, get the correct model-name to pass to create_llm_deployment,
or get curl inference examples for a deployed model (chat completions, Responses API, embeddings,
image generation, etc.).
DO NOT USE FOR: creating or managing deployments — use `aicore-lifecycle-management`.
compatibility: Requires Python 3.11+, uv, and sap-ai-sdk-core.
allowed-tools: Bash, Read
---
## Rules
1. Fetch the live model list when the model name is unknown or unconfirmed — skip if the user already named a specific model.
2. `executable-id` and `model-name` values from this skill are the inputs needed by `aicore-lifecycle-management` to create a deployment.
3. If credentials are not configured, invoke `aicore-admin-resources` first.
4. Before executing any curl example, get a Bearer token with:
```bash
export TOKEN=$(uv run skills/aicore-admin-resources/scripts/get_token.py)
```
Never add `2>&1` or pipe the command — that prints the raw JWT into the conversation.
---
## List Available Models
```bash
# Show all options and examples:
uv run scripts/list_foundation_models.py --help
# One provider only (e.g. Azure OpenAI):
uv run scripts/list_foundation_models.py --executable-id azure-openai
# Detailed view (versions, capabilities, context length, streaming support):
uv run scripts/list_foundation_models.py --response-format detailed
# Machine-readable JSON for scripting:
uv run scripts/list_foundation_models.py --json | jq '.[].model'
uv run scripts/list_foundation_models.py --response-format detailed --json | jq '.[] | select(.model == "gpt-4o") | .versions'
# Models supported by the Orchestration service only:
uv run scripts/list_foundation_models.py --scenario-id orchestration
```
---
## Provider → Executable ID Mapping
| Provider | `--executable-id` |
| -------------- | ------------------- |
| Azure OpenAI | `azure-openai` |
| Anthropic | `aws-bedrock` |
| Google | `gcp-vertexai` |
| Amazon Bedrock | `aws-bedrock` |
| Mistral AI | `aicore-mistralai` |
| Cohere | `aicore-cohere` |
| Perplexity | `perplexity-ai` |
| NVIDIA | `aicore-nvidia` |
| Open Source | `aicore-opensource` |
| SAP | `aicore-sap` |
Supported models in your instance may differ from this table — use the script to get the live list.
---
## Create a Deployment
Once you have the `executable-id` and `model-name`, check whether a RUNNING deployment for that model already exists:
```bash
uv run skills/aicore-lifecycle-management/scripts/get_deployments.py \
--scenario foundation-models --status RUNNING --json
```
If one is found, use `AskUserQuestion` to ask whether to reuse it or create a new one. Then invoke `aicore-lifecycle-management` with both values.
The `modelName` value must exactly match the catalog output — a mismatch causes an "Invalid Configuration" error at deployment time, not at configuration creation.
---
## When to Load Reference Files
| Trigger | Load |
| -------------------------------------------------------------------------------------------- | ---------------------- |
| Curl inference examples, provider-specific endpoint paths, or about to call a deployed model | `references/MODELS.md` |
---
## Finding the Deployment URL for a Curl Call
1. **Get the `executable-id`** — look it up in the Provider → Executable ID table above.
2. **Find the running deployment:**
```bash
uv run skills/aicore-lifecycle-management/scripts/get_deployments.py \
--scenario foundation-models --executable-id <executable-id> --status RUNNING --json
# use .deployment_url and .resource_group from the matching entry
```
3. See `references/MODELS.md` for export setup and curl examples per provider.
---
## Handoffs
- **Credential/auth error?** → invoke `aicore-admin-resources`
- **Ready to create a deployment with the model you found?** → invoke `aicore-lifecycle-management`
© SAP · Apache-2.0 · SAP/ai-skills-library