hf-cloud-aws-context-discovery
Fungsinya
Skill ini memeriksa akun, profil dan wilayah AWS mana yang harus dipakai AI sebelum melakukan pekerjaan cloud apa pun. Skill ini ditujukan untuk orang yang menyiapkan deployment machine learning di Amazon Web Services.
Kapan dipakai
- โSaat Anda memulai tugas AWS apa pun, seperti deployment ke SageMaker atau memanggil API AWS.
- โSaat Anda belum menyebutkan profil atau wilayah AWS mana yang harus dipakai.
- โSaat Anda mengatakan sesuatu seperti pakai akun AWS saya, dan agent membutuhkan detail akun yang tepat.
Link skill
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-aws-context-discovery/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โPakai akun AWS saya untuk menyiapkan deployment SageMaker, dan beri tahu saya profil dan wilayah mana yang Anda temukan.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI membaca pengaturan AWS lokal Anda, seperti profil aktif dan wilayah, lalu menjalankan pemeriksaan identitas sederhana. AI tidak menebak wilayah, dan hanya bertanya kepada Anda jika pengaturan tidak menyediakannya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah skill akan memakai wilayah default?
Tidak. Skill memakai pengaturan Anda atau wilayah yang Anda sebutkan, dan tidak mengasumsikan default yang sudah ditetapkan.
Bagaimana jika profil saya tidak ada?
Skill melaporkan hal itu dengan jelas sehingga Anda bisa memperbaiki profilnya sebelum pekerjaan dimulai.
Apakah skill memeriksa bahwa saya sudah masuk?
Ya. Pemeriksaan identitas memastikan kredensial Anda valid sebelum pekerjaan dilanjutkan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 11k
- Peringkat
- #11766
- Lisensi
- Apache-2.0
- Diperbarui
- 30/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
hf-cli
11kMembantu agent Anda memakai alat baris perintah Hugging Face untuk mengunduh, mengunggah dan mengelola model, dataset, Space, repositori serta cache lokal.
hf-cloud-python-env-setup
11kMembantu agent Anda menyiapkan lingkungan Python yang bersih dengan versi Python yang sesuai dan pustaka terbaru, sebelum menjalankan SageMaker atau otomatisasi AWS.
hf-cloud-sagemaker-deployment-planner
11kMembantu agent Anda merencanakan cara men-deploy model ke Amazon SageMaker, memilih hosting real-time, serverless, async atau batch dengan default yang masuk akal.
hf-cloud-sagemaker-iam-preflight
11kMembantu agent Anda memastikan ada peran eksekusi SageMaker yang bisa dipakai sebelum deployment, dan tidak membuat izin baru di akun AWS Anda tanpa memeriksanya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.