Skip to content

Guide · Agent skill

How to use the AWS Context Discovery agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

AWS Context Discovery is an agent skill from the huggingface/skills collection. It tells an AI agent to read your local AWS configuration before doing any AWS work, so the agent uses your real profile, region and account instead of guessing. This guide is for people who may never have used agent skills, and it covers what the skill does, how to install it, how to trigger it, and what it needs to run safely.

AWS Context Discoveryhuggingface/skills · Apache-2.0

Quick start

  1. 1Download the ZIP. Get the hf-cloud-aws-context-discovery ZIP from this page.
  2. 2Install the AWS CLI. Make sure the AWS CLI is installed and available on your PATH.
  3. 3Place the skill folder. Unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ inside one project.
  4. 4Or upload it in the Claude apps. Go to Settings → Capabilities → Skills and upload the ZIP.
  5. 5Confirm your credentials work. Run aws sts get-caller-identity to make sure your login is valid before using the skill.
  6. 6Make an AWS request. Ask for a task such as a SageMaker deployment in plain language and let the agent read your context first.

What is an agent skill, and what does this one make the agent do?

An agent skill is a folder containing a SKILL.md file with instructions that an AI agent loads when a task matches the skill's description. This skill's description tells the agent to run it at the start of any AWS task, such as deploying to SageMaker, creating resources, calling AWS APIs, or any work that touches an AWS account.

Once active, the agent discovers four things: the active profile, the region, the account ID and the caller identity. It reports them back in a line or two, and it warns you if you are signed in through SSO, because SSO principals usually cannot create IAM roles directly.

  • Active profile: the AWS_PROFILE environment variable, otherwise default, unless you name a profile in your prompt.
  • Region: taken from the first available source in this order: a region you named in the conversation, AWS_REGION, AWS_DEFAULT_REGION, the region field on the active profile, and only then a question to you.
  • Credentials, account ID and caller ARN, checked with aws sts get-caller-identity.
  • SSO detection: if the ARN shows an AWSReservedSSO role, the agent flags that IAM role creation may fail.

Install the skill from the ZIP or the Claude apps

Download the ZIP for hf-cloud-aws-context-discovery from this page. The skill ships as a single file, SKILL.md, inside the package.

For Claude Code, unzip the folder into ~/.claude/skills/ to make it available everywhere on your machine. To limit it to one project, unzip it into that project's .claude/skills/ folder instead.

In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.

  • Personal (all projects): ~/.claude/skills/
  • Single project: .claude/skills/ inside the project folder
  • Claude apps: Settings → Capabilities → Skills

Check that your AWS setup is ready

The skill only reads what already exists on your machine. It needs the AWS CLI installed and on your PATH, and a local configuration in ~/.aws/config (and optionally ~/.aws/credentials) with valid credentials, such as an SSO login or access keys.

If you have not signed in yet, do that with your normal AWS workflow first. The skill does not create credentials or sign you in.

  • AWS CLI installed and available on the PATH
  • Profile and region defined in ~/.aws/config, if you use them
  • Valid credentials, for example an active SSO session or access keys
aws sts get-caller-identity

How do you trigger the skill with natural requests?

You usually do not need to name the skill. The description tells the agent to use it when you mention deploying, your AWS account, or a profile, and before any AWS CLI or SDK call. Plain requests are enough.

If you want to be certain, say so in the prompt and name the profile or region you want. A region you name in the conversation takes priority over every other source.

  • "Deploy this model to SageMaker using my AWS account."
  • "Use my profile for this, the one called work-sso."
  • "Create an endpoint in whatever region my config uses."
  • "Check which AWS account you're about to deploy to."

What does the agent report back?

The report is meant to be short: one or two lines naming the profile, region and account, plus a note about SSO if it applies. The skill tells the agent not to ask you to confirm a region it read from your config, because your configuration is the confirmation.

If something is wrong, such as expired credentials, a profile that does not exist or no region set anywhere, the agent should stop and show the specific error before continuing.

  • Example: working with profile my-profile in eu-west-1, account 123456789012.
  • Example: you are authenticated via SSO, so an existing IAM role will be needed instead of a new one.
  • Stops on: invalid credentials, a missing named profile, or no region found.

What are the safety notes about scripts and network use?

This skill runs scripts and uses the network. Its instructions have the agent run aws sts get-caller-identity, which contacts AWS, and aws configure list, which reads your effective settings. Both commands are read-only in the sense that the skill's own text describes them as reads of configuration and identity, and it says the config files are plain INI files that it reads without writing.

Do not install it on shared or sensitive machines where you do not want an agent running identity checks against your account. Check the SKILL.md file yourself before installing if you need to review what it will run.

  • Runs aws sts get-caller-identity and aws configure list.
  • Reads ~/.aws/config and ~/.aws/credentials as plain files; the skill describes this as read-only.
  • Uses network access because the identity check calls AWS.

Tips for getting the most from it

Set your profile and region in ~/.aws/config before you start. The fewer open questions the agent has, the fewer prompts you will see.

If deployments keep failing on permissions, check whether you are on an SSO login. The skill is designed to surface that early, and an existing SageMaker execution role may be the answer rather than a new one.

  • Use AWS_PROFILE or AWS_REGION in your shell if you switch accounts often.
  • Name the profile in your prompt when you have several.
  • Ask your AWS administrator for an execution role if SSO blocks role creation.

What people use it for

  • Deploying a machine learning model to AWS SageMaker without repeating your region and account in every prompt.
  • Diagnosing an SSO login that cannot create IAM roles before a deployment fails partway through.
  • Making sure an agent deploys to the account you intended when you have several profiles configured.
  • Stopping an agent from guessing a region when your config already sets one.

Frequently asked questions

Is the AWS Context Discovery skill free?

The skill is published under the Apache-2.0 licence in the huggingface/skills repository. The source does not mention pricing, and AWS usage is billed by AWS separately.

What do I need before installing this agent skill?

You need the AWS CLI installed and on your PATH, and a local AWS configuration in ~/.aws/config with valid credentials, such as an SSO login or access keys. Without these the skill has nothing to read.

Where do I install the hf-cloud-aws-context-discovery skill?

Unzip the downloaded ZIP into ~/.claude/skills/ for all projects, or into .claude/skills/ in a single project. In the Claude apps, upload it under Settings → Capabilities → Skills.

Why does the agent warn me about SSO?

An SSO assumed-role principal usually cannot create or modify IAM roles. The skill flags this early so a SageMaker deployment does not fail later when it tries to create an execution role.

Does the skill change my AWS resources or config?

The source describes read-only actions: it runs aws sts get-caller-identity and aws configure list, and reads the config files without writing to them. It does not describe creating resources itself.

Can the agent still work if I have no AWS account?

No. The skill only reads local AWS configuration, so it is not useful without an existing AWS account and the AWS CLI set up on your machine.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you deploy to AWS from an agent, especially with SSO or several profiles, and want it to stop guessing your region and account. Skip it if you have no AWS account or CLI, or if you do not want an agent running identity checks against your account on a shared machine.

Download the skill