hf-cloud-aws-context-discovery
Что он делает
Этот скилл проверяет, каким аккаунтом, профилем и регионом AWS ИИ должен пользоваться, прежде чем выполнять облачную работу. Он нужен тем, кто настраивает развёртывание моделей машинного обучения в Amazon Web Services.
Когда использовать
- ✓Когда вы начинаете любую задачу в AWS, например развёртывание в SageMaker или вызовы API AWS.
- ✓Когда вы не сказали, какой профиль или регион AWS использовать.
- ✓Когда вы говорите что-то вроде «используй мой аккаунт AWS», и агенту нужны верные данные аккаунта.
Ссылка на скилл
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-aws-context-discovery/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Используй мой аккаунт AWS, чтобы настроить развёртывание в SageMaker, и скажи, какой профиль и регион ты нашёл.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
ИИ читает ваши локальные настройки AWS, например активный профиль и регион, и выполняет простую проверку личности. Регион он не угадывает и спрашивает вас только тогда, когда настройки его не содержат.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
AWS Context Discovery
Before doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers.
What to discover
Run these at the start of the AWS work and remember the results for the rest of the session.
1. Active profile
AWS_PROFILE env var, else default. If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in ~/.aws/config, surface that clearly.
2. Region
Resolution order — stop at the first one that produces a value:
- Region the user explicitly named in this conversation
AWS_REGIONenv varAWS_DEFAULT_REGIONenv varregionfield on the active profile in~/.aws/config- Ask the user — but only after the first four have failed
Do not fall back to us-east-1 or any other hardcoded default.
3. Credentials, account ID, caller ARN
aws sts get-caller-identity --profile <profile> --region <region>
Three purposes in one call: confirms credentials are valid (stop if not), returns the Account ID (needed for ARN construction), returns the Arn of the caller.
4. Identify SSO / assumed-role principals
The Arn field tells you what kind of principal this is. The pattern matters because it determines what IAM operations the caller can do.
| ARN pattern | Type | IAM write capability |
|---|---|---|
arn:aws:iam::<acct>:user/<name> |
IAM user | Depends on attached policies |
arn:aws:sts::<acct>:assumed-role/AWSReservedSSO_<...>/<email> |
SSO assumed-role | Typically none — can't create/modify IAM roles |
arn:aws:sts::<acct>:assumed-role/<role>/<session> |
Regular assumed-role | Depends on the role |
If the caller is SSO, surface this immediately before later skills hit iam:CreateRole and fail:
Heads up: you're authenticated via SSO (
AWSReservedSSO_<PermissionSet>_...). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.
This is the highest-leverage thing this skill does. Surfacing it now turns a confusing mid-deployment error into a five-second conversation.
Commands to run
# Effective profile and region (faster than parsing config files)
aws configure list
# Validate credentials and get identity
aws sts get-caller-identity
aws sts get-caller-identity --profile <profile-name> # if a profile was named
aws configure list handles env-var overrides and shows the resolved effective values. Prefer it over parsing ~/.aws/config yourself. If you need to read raw config (e.g. to list profiles), ~/.aws/config and ~/.aws/credentials are plain INI files — read-only.
What to report back
One or two lines, not a wall of text:
Working with profile
my-profileineu-west-1, account123456789012. You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.
Don't ask the user to confirm the region you just read from their config — they configured it; that is the confirmation.
If something is wrong (credentials expired, profile doesn't exist, no region anywhere), stop and surface the specific error before continuing.
Частые вопросы
Будет ли он использовать регион по умолчанию?
Нет. Он использует ваши настройки или названный вами регион и не подставляет зашитое значение по умолчанию.
Что если моего профиля не существует?
Скилл ясно сообщает об этом, чтобы вы исправили профиль до начала работы.
Проверяет ли он, что я вошёл?
Да. Проверка личности подтверждает, что ваши учётные данные действительны, прежде чем работа продолжится.
Подробности
Оригинальное описание автора
Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like "use my AWS account", "deploy to AWS", "use my profile", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.
repo: huggingface/skills
Популярность
- Звёзды на GitHub
- 11k
- Место в рейтинге
- #11766
- Лицензия
- Apache-2.0
- Обновлён
- 30.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
hf-cli
11kПомогает агенту работать с командной строкой Hugging Face: скачивать, загружать и управлять моделями, наборами данных, Spaces, репозиториями и локальным кэшем.
hf-cloud-python-env-setup
11kПомогает агенту настроить чистое окружение Python с подходящей версией Python и актуальными библиотеками перед запуском SageMaker или автоматизации AWS.
hf-cloud-sagemaker-deployment-planner
11kПомогает агенту спланировать развёртывание модели в Amazon SageMaker: выбрать размещение в реальном времени, бессерверное, асинхронное или пакетное.
hf-cloud-sagemaker-iam-preflight
11kПомогает агенту убедиться, что перед развёртыванием существует пригодная роль выполнения SageMaker, а не создавать новые права в вашем аккаунте AWS без проверки.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.