hf-cloud-aws-context-discovery
O que ela faz
Esta skill verifica qual conta, perfil e região AWS a IA deve usar antes de fazer qualquer trabalho na nuvem. É para pessoas que configuram implantações de machine learning na Amazon Web Services.
Quando usar
- ✓Quando você começa qualquer tarefa na AWS, como implantar no SageMaker ou chamar APIs da AWS.
- ✓Quando você ainda não disse qual perfil ou região da AWS usar.
- ✓Quando você diz algo como use minha conta da AWS e o agente precisa dos dados corretos da conta.
Link da skill
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-aws-context-discovery/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Use minha conta da AWS para configurar uma implantação no SageMaker e me diga qual perfil e região você encontrou.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA lê suas configurações locais da AWS, como o perfil ativo e a região, e executa uma verificação simples de identidade. Ela não adivinha uma região e só pergunta quando suas configurações não fornecem uma.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Ela usará uma região padrão?
Não. Ela usa suas configurações ou a região que você informar, e não assume um padrão fixo no código.
E se o meu perfil não existir?
A skill informa isso com clareza para que você corrija o perfil antes de qualquer trabalho começar.
Ela verifica se estou conectado?
Sim. A verificação de identidade confirma que suas credenciais são válidas antes de o trabalho continuar.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11766
- Licença
- Apache-2.0
- Atualizada em
- 30/10/2026
Comentários
- …
Mais skills deste repositório
hf-cli
11 milAjuda seu agente a usar a ferramenta de linha de comando da Hugging Face para baixar, enviar e gerenciar modelos, datasets, Spaces, repositórios e o cache local.
hf-cloud-python-env-setup
11 milAjuda seu agente a montar um ambiente Python limpo, com uma versão adequada e bibliotecas atuais, antes de executar automações do SageMaker ou da AWS.
hf-cloud-sagemaker-deployment-planner
11 milAjuda seu agente a planejar a implantação de um modelo no Amazon SageMaker, escolhendo hospedagem em tempo real, sem servidor, assíncrona ou em lote, com padrões sensatos.
hf-cloud-sagemaker-iam-preflight
11 milAjuda seu agente a confirmar que existe um papel de execução do SageMaker utilizável antes de implantar, em vez de criar novas permissões na sua conta da AWS sem verificar.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.