aicore-lifecycle-management — скилл для Claude Code: как установить
Скилл aicore-lifecycle-management для Claude Code управляет жизненным циклом ресурсов в SAP AI Core. Запускает сценарии, создаёт конфигурации, развёртывает модели и читает логи инференса.
Apache-2.0 251 установок ★ 153 обновлён 2026-10-22
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a claude-codeЧто делает aicore-lifecycle-management
Скилл управляет сценариями, исполняемыми файлами (executables), конфигурациями и деплоями в SAP AI Core через готовые Python-скрипты. Агент подключает его при запросах на просмотр сценариев, создание конфигураций, запуск, остановку или удаление деплоев, а также для снятия дубликатов LLM-деплоев.
Все операции выполняются командами вида uv run scripts/<name>.py. Скрипты, которые изменяют состояние или удаляют ресурсы, строго требуют явного указания флага --confirm, без которого команда завершится без изменений. Учётные данные не выводятся в терминал — библиотека считывает их напрямую из переменных окружения.
Для работы требуются Python 3.11+, менеджер пакетов uv и библиотека sap-ai-sdk-core. Для управления секретами и группами ресурсов нужен отдельный скилл aicore-admin-resources, а список моделей и их параметры берутся из genai-hub-foundation-models.
Какие задачи решает
- развернуть модель через SAP AI Core с заданной конфигурацией
- получить логи работающего деплоя по его идентификатору
- проверить параметры и входные артефакты конкретного executable
- удалить дублирующиеся LLM-деплои
- переключить конфигурацию на работающем деплое через патч
Примеры запросов агенту
- Разверни модель gpt-4o-mini через SAP AI Core с конфигурацией azure-openai--gpt-4o-mini
- Покажи последние 50 строк логов деплоя с ID d123456
- Выведи список всех запущенных деплоев со статусом RUNNING
Как установить aicore-lifecycle-management
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a claude-code2Вручную: положить файлы
~/.claude/skills/aicore-lifecycle-management/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/aicore-lifecycle-management/
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a codex2Вручную: положить файлы
.agents/skills/aicore-lifecycle-management/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a cursor2Вручную: положить файлы
.cursor/skills/aicore-lifecycle-management/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install SAP/ai-skills-library plugins/aicore-skills/skills/aicore-lifecycle-management2Вручную: положить файлы
.github/skills/aicore-lifecycle-management/SKILL.md1Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a gemini-cli2Командой платформы
gemini skills install https://github.com/SAP/ai-skills-library --path plugins/aicore-skills/skills/aicore-lifecycle-managementВручную: положить файлы
.devin/skills/aicore-lifecycle-management/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об aicore-lifecycle-management
Как установить aicore-lifecycle-management в Claude Code?
Выполните команду npx skills add SAP/ai-skills-library --skill aicore-lifecycle-management -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/aicore-lifecycle-management/SKILL.md.
Что делает aicore-lifecycle-management?
Скилл автоматизирует работу с SAP AI Core: проверяет сценарии, связывает параметры в конфигурации, управляет эндпоинтами инференса и читает их логи.
Что нужно для работы aicore-lifecycle-management?
Нужны Python 3.11+, установленный инструмент uv и пакет sap-ai-sdk-core. Учётные данные SAP AI Core должны быть заранее настроены в переменных окружения.
Исходный текст
SKILL.md · Apache-2.0
---
name: aicore-lifecycle-management
description: >
Manage SAP AI Core lifecycle resources: scenarios, executables, configurations, and deployments.
WHEN: user wants to list or inspect scenarios or executables, create or list configurations,
create or list or stop or delete or patch deployments, get deployment logs, or remove duplicate
LLM deployments.
DO NOT USE FOR: listing foundation models or getting inference examples — use
`genai-hub-foundation-models`; managing resource groups, secrets, or GitOps resources — use
`aicore-admin-resources`.
compatibility: Requires Python 3.11+, uv, and sap-ai-sdk-core.
allowed-tools: Bash, Read
---
## Rules
1. Run all scripts from the skill root directory with `uv run scripts/<name>.py`.
2. Never print or log credential values — the SDK reads them from the environment.
3. Scripts that delete or mutate state require `--confirm`. Always pass it explicitly; never bypass it.
4. When the user does not specify a resource group, omit `--resource-group` so the SDK uses its configured default.
5. For LLM deployments: the scenario ID, executable ID, and model parameter names come from `genai-hub-foundation-models` — invoke it first if those values are unknown.
6. Deployment configuration naming convention: use `{executable_id}--{model_name}` for LLM deployments (e.g. `azure-openai--gpt-4o-mini`). Before creating a configuration, check whether one with that name already exists via `get_configurations.py --scenario-id <id>` and reuse it to avoid duplicates.
---
## List / Inspect Scenarios
```bash
# List all scenarios
uv run scripts/get_scenarios.py
# Inspect a specific scenario and its versions
uv run scripts/get_scenarios.py --scenario-id <id>
uv run scripts/get_scenarios.py --scenario-id <id> --response-format detailed
# JSON output for piping
uv run scripts/get_scenarios.py --json
```
---
## List Executables
```bash
# List executables for a scenario
uv run scripts/get_executables.py --scenario-id <id>
# Inspect a specific executable (includes parameters and input artifacts)
uv run scripts/get_executables.py --scenario-id <id> --executable-id <id>
uv run scripts/get_executables.py --scenario-id <id> --executable-id <id> --response-format detailed
# JSON output
uv run scripts/get_executables.py --scenario-id <id> --json
```
Parameters are only returned when inspecting a single executable (`--executable-id`). The list view returns id, name, and description only.
---
## Configurations
```bash
# List configurations
uv run scripts/get_configurations.py
uv run scripts/get_configurations.py --scenario-id <id>
uv run scripts/get_configurations.py --response-format detailed
uv run scripts/get_configurations.py --json
# Inspect a specific configuration
uv run scripts/get_configurations.py --configuration-id <id>
# Create a configuration (binds parameters to an executable)
uv run scripts/create_configuration.py \
--name my-config \
--scenario-id <id> \
--executable-id <id> \
--param modelName=gpt-4o \
--param temperature=0.7
```
If a deployment fails or stays PENDING after several minutes, verify parameter names and values against the executable's declared parameters:
```bash
uv run scripts/get_executables.py --scenario-id <id> --executable-id <id> --response-format detailed
```
---
## Deployments
Deployments serve inference endpoints. The standard flow is: create (or reuse) a configuration, then create a deployment from it.
### Configuration naming convention
Always check whether a matching configuration already exists before creating one, to avoid duplicates:
```bash
# Check existing configurations before creating
uv run scripts/get_configurations.py --scenario-id <scenario-id> --json | jq '.[] | select(.name == "<expected-name>")'
```
Naming convention:
- LLM: `{executable_id}--{model_name}` — e.g. `azure-openai--gpt-4o-mini`
- Orchestration: `orchestration`
- Custom: choose a descriptive name
### LLM deployment (from genai-hub-foundation-models handoff)
```bash
# 1. Create configuration (skip if one with this name already exists):
uv run scripts/create_configuration.py \
--name azure-openai--gpt-4o-mini \
--scenario-id foundation-models \
--executable-id azure-openai \
--param modelName=gpt-4o-mini \
--param modelVersion=latest
# 2. Deploy:
uv run scripts/create_deployment.py --configuration-id <config-id> --wait
```
### Orchestration deployment
```bash
# 1. Create configuration (skip if "orchestration" config already exists):
uv run scripts/create_configuration.py \
--name orchestration \
--scenario-id orchestration \
--executable-id orchestration
# 2. Deploy:
uv run scripts/create_deployment.py --configuration-id <config-id> --wait --timeout 600
```
### List and inspect deployments
```bash
# List all deployments
uv run scripts/get_deployments.py
# Filter by status or scenario or executable
uv run scripts/get_deployments.py --status RUNNING
uv run scripts/get_deployments.py --scenario orchestration
uv run scripts/get_deployments.py --executable-id azure-openai --status RUNNING
uv run scripts/get_deployments.py --executable-id azure-openai --status RUNNING --json
# Inspect one deployment
uv run scripts/get_deployments.py --deployment-id <id>
uv run scripts/get_deployments.py --deployment-id <id> --response-format detailed
uv run scripts/get_deployments.py --deployment-id <id> --json
```
### Stop, patch, delete, logs
```bash
# Stop a deployment
uv run scripts/stop_deployment.py --deployment-id <id> --confirm
uv run scripts/stop_deployment.py --deployment-id <id> --confirm --wait
# Patch (swap configuration on a running deployment)
uv run scripts/patch_deployment.py --deployment-id <id> --configuration-id <new-config-id>
# Delete (must be STOPPED or DEAD first)
uv run scripts/delete_deployment.py --deployment-id <id> --confirm
# Stop and delete in one step:
uv run scripts/delete_deployment.py --deployment-id <id> --confirm --auto-stop
# Deployment logs
uv run scripts/get_deployment_logs.py --deployment-id <id>
uv run scripts/get_deployment_logs.py --deployment-id <id> --tail 50
uv run scripts/get_deployment_logs.py --deployment-id <id> --order asc
uv run scripts/get_deployment_logs.py --deployment-id <id> --json
# Remove duplicate LLM deployments (only affects LLM deployments with a model name)
uv run scripts/dedup_deployments.py --dry-run
uv run scripts/dedup_deployments.py
```
---
## Handoffs
- **Need a Bearer token or credential setup?** → invoke `aicore-admin-resources`
- **Need executable ID, model name, or model capabilities?** → invoke `genai-hub-foundation-models`
- **Want to list available models or providers?** → invoke `genai-hub-foundation-models`
© SAP · Apache-2.0 · SAP/ai-skills-library