hf-cloud-aws-context-discovery
Was er macht
Dieser Skill prüft, welches AWS-Konto, Profil und welche Region die KI vor jeder Cloud-Arbeit nutzen soll. Er ist für Leute gedacht, die Machine-Learning-Bereitstellungen auf Amazon Web Services aufsetzen.
Wann du ihn nutzt
- ✓Wenn du eine AWS-Aufgabe beginnst, etwa eine Bereitstellung auf SageMaker oder AWS-API-Aufrufe.
- ✓Wenn du noch nicht gesagt hast, welches AWS-Profil oder welche Region genutzt werden soll.
- ✓Wenn du etwas sagst wie nutze mein AWS-Konto und der Agent dafür die passenden Kontodaten braucht.
Link zum Skill
https://github.com/huggingface/skills/blob/main/skills/hf-cloud-aws-context-discovery/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Nutze mein AWS-Konto, um eine SageMaker-Bereitstellung einzurichten, und sag mir, welches Profil und welche Region du gefunden hast.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI liest deine lokalen AWS-Einstellungen, etwa das aktive Profil und die Region, und führt eine einfache Identitätsprüfung aus. Eine Region rät sie nicht. Sie fragt nur nach, wenn deine Einstellungen keine liefern.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Greift er auf eine Standardregion zurück?
Nein. Er nutzt deine Einstellungen oder die Region, die du genannt hast, und nimmt keine fest eingebaute Standardregion an.
Was ist, wenn mein Profil nicht existiert?
Der Skill meldet das deutlich, damit du das Profil beheben kannst, bevor Arbeit beginnt.
Prüft er, ob ich angemeldet bin?
Ja. Die Identitätsprüfung bestätigt, dass deine Zugangsdaten gültig sind, bevor die Arbeit weitergeht.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 11k
- Platz im Ranking
- #11766
- Lizenz
- Apache-2.0
- Aktualisiert
- 30.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
hf-cli
11kHilft deinem Agenten, das Hugging-Face-Kommandozeilenwerkzeug hf zu nutzen, um Modelle, Datensätze, Spaces und Repositorys herunterzuladen, hochzuladen und den lokalen Cache zu verwalten.
hf-cloud-python-env-setup
11kHilft deinem Agenten, eine saubere Python-Umgebung mit passender Python-Version und aktuellen Bibliotheken einzurichten, bevor SageMaker- oder AWS-Automatisierung läuft.
hf-cloud-sagemaker-deployment-planner
11kHilft deinem Agenten, die Bereitstellung eines Modells auf Amazon SageMaker zu planen und zwischen Echtzeit-, serverlosem, asynchronem und Batch-Hosting mit sinnvollen Standards zu wählen.
hf-cloud-sagemaker-iam-preflight
11kHilft deinem Agenten, vor einer Bereitstellung zu prüfen, ob eine nutzbare SageMaker-Ausführungsrolle existiert, statt ungeprüft neue Berechtigungen in deinem AWS-Konto anzulegen.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.