sagemaker-mlflow — скилл для Claude Code
Скилл sagemaker-mlflow подключает агента к SageMaker Managed MLflow по ARN ресурса (mlflow-app или mlflow-tracking-server), после чего передаёт управление другим MLflow-скиллам через MLFLOW_TRACKING_URI.
Apache-2.0 394 установок ★ 91 обновлён 2026-10-23
npx skills add mlflow/skills --skill sagemaker-mlflow -a claude-codeЧто делает sagemaker-mlflow
Скилл проверяет три обязательных условия: Python не ниже 3.10, AWS-credentials (переменные окружения, aws configure или IAM-роль) и плагин sagemaker-mlflow, без которого вызов mlflow.set_tracking_uri() с ARN завершается ошибкой UnsupportedModelRegistryStoreURIException. Если ARN не задан, скрипт discover_arns.py находит доступные ресурсы в текущем регионе; ARN из другого региона не пройдёт аутентификацию.
После экспорта ARN в MLFLOW_TRACKING_URI и региона в AWS_DEFAULT_REGION запускается проверка verify_connection.py, которая тестирует все три компонента и останавливается на первой ошибке с подсказкой. Скилл не устанавливает зависимости и не настраивает credentials сам — это делает пользователь.
Ошибка AccessDenied или 403 означает, что у принципала нет прав sagemaker-mlflow или sagemaker на ARN, либо регион в AWS_DEFAULT_REGION не совпадает с регионом ресурса.
Какие задачи решает
- подключить агента к SageMaker Managed MLflow через ARN
- проверить Python, AWS-credentials и плагин
sagemaker-mlflowперед работой - найти доступные MLflow-ресурсы в текущем AWS-регионе
- настроить
MLFLOW_TRACKING_URIдля других MLflow-скиллов - диагностировать
UnsupportedModelRegistryStoreURIExceptionилиAccessDenied
Примеры запросов агенту
- Подключи агента к SageMaker MLflow по ARN
arn:aws:sagemaker:us-east-1:123456789012:mlflow-app/my-app - Найди доступные MLflow-ресурсы в моём AWS-регионе
- Проверь, установлен ли
sagemaker-mlflowи настроены ли AWS-credentials
Как установить sagemaker-mlflow
1Через Skills CLI (Vercel)
npx skills add mlflow/skills --skill sagemaker-mlflow -a claude-code2Вручную: положить файлы
~/.claude/skills/sagemaker-mlflow/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sagemaker-mlflow/
1Через Skills CLI (Vercel)
npx skills add mlflow/skills --skill sagemaker-mlflow -a codex2Вручную: положить файлы
.agents/skills/sagemaker-mlflow/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mlflow/skills --skill sagemaker-mlflow -a cursor2Вручную: положить файлы
.cursor/skills/sagemaker-mlflow/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mlflow/skills sagemaker-mlflow2Вручную: положить файлы
.github/skills/sagemaker-mlflow/SKILL.md1Через Skills CLI (Vercel)
npx skills add mlflow/skills --skill sagemaker-mlflow -a gemini-cli2Командой платформы
gemini skills install https://github.com/mlflow/skills --path sagemaker-mlflowВручную: положить файлы
.devin/skills/sagemaker-mlflow/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mlflow/skills --skill sagemaker-mlflow -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о sagemaker-mlflow
Как установить sagemaker-mlflow в Claude Code?
Выполни команду npx skills add mlflow/skills --skill sagemaker-mlflow -a claude-code, скилл установится в ~/.claude/skills/sagemaker-mlflow/SKILL.md.
Что делает скилл sagemaker-mlflow?
Подключает агента к SageMaker Managed MLflow по ARN, проверяет Python не ниже 3.10, AWS-credentials и плагин sagemaker-mlflow, затем передаёт окружение другим MLflow-скиллам через MLFLOW_TRACKING_URI.
Что нужно для работы sagemaker-mlflow?
Python 3.10 или выше, плагин sagemaker-mlflow (устанавливается через pip install sagemaker-mlflow), настроенные AWS-credentials и ARN ресурса mlflow-app или mlflow-tracking-server в том же регионе, что и credentials.
Исходный текст
SKILL.md · Apache-2.0
--- name: sagemaker-mlflow description: > Connect to SageMaker Managed MLflow (mlflow-app or mlflow-tracking-server ARN) as an MLflow backend, then hand off to the other MLflow skills. Triggers on a SageMaker MLflow ARN (arn:aws:sagemaker:...:mlflow-app/... or arn:aws:sagemaker:...:mlflow-tracking-server/...) or "SageMaker Managed MLflow". --- # Connect to SageMaker MLflow Connect using the `sagemaker-mlflow` plugin, an ARN tracking URI and AWS credentials. Other MLflow skills inherit the connection through `MLFLOW_TRACKING_URI`. Requires **Python >= 3.10** (mlflow >= 3.8). Validate and report the fix — never auto-install the plugin or acquire credentials (mirrors the repo's Databricks pattern). ## Step 1: Preconditions - `python --version` -> must be 3.10+. If older, STOP and tell the user. - Confirm AWS credentials resolve (env vars, `aws configure` / SSO, or an IAM role). If they error (ExpiredToken / no creds), STOP and ask the user to configure them. (`scripts/verify_connection.py` also checks this, via boto3.) ## Step 2: Check the plugin If missing, stop and give the user this installation command: ```bash pip install sagemaker-mlflow ``` Required even if `MLFLOW_TRACKING_URI` is already an ARN — without it, `mlflow.set_tracking_uri()` fails with `UnsupportedModelRegistryStoreURIException`. ## Step 3: Select the resource ARN - **If the user already provided an ARN** (or `MLFLOW_TRACKING_URI` is set to `arn:aws:sagemaker:...`), use it as-is. - **Otherwise, discover it** in the user's region: ```bash python scripts/discover_arns.py ``` If exactly one is returned, use it; if several, list name/status/ARN and ask the user which to use. Both `mlflow-app` and `mlflow-tracking-server` ARNs work; the ARN is also shown on the resource's detail page in the SageMaker Studio console. Then export it (the ARN is region-bound — a cross-region ARN will not authenticate): ```bash export MLFLOW_TRACKING_URI="<arn>" # mlflow-app/<id> or mlflow-tracking-server/<name> export AWS_DEFAULT_REGION="<region>" # AWS credentials resolved via the default chain (SigV4) ``` ## Step 4: Verify ```bash python scripts/verify_connection.py "$MLFLOW_TRACKING_URI" ``` Checks all three prerequisites (plugin / credentials / ARN connectivity) and exits non-zero with a remediation hint on the first failure. Do not proceed until it passes. After the connection verifies, hand off to the requested MLflow skill — it inherits the connected environment via `MLFLOW_TRACKING_URI`. ## Troubleshooting - `UnsupportedModelRegistryStoreURIException` — see Step 2, then repeat verification. - `AccessDenied` / `403` — credentials are missing/expired, or the principal lacks MLflow permissions on the ARN. Check that credentials resolve, grant `sagemaker-mlflow` / `sagemaker` permissions, and confirm the ARN region matches `AWS_DEFAULT_REGION`.
© mlflow · Apache-2.0 · mlflow/skills