hf-cloud-aws-context-discovery

hf-cloud-aws-context-discovery is a skill for Claude Code from waybarrios/opencode-power-pack. It costs 49 tokens per session (854 once invoked), scanned C, a copy of hf-cloud-aws-context-discovery, MIT.

A checklist for identifying the active AWS account, region, profile, and caller before working with Amazon SageMaker or other AWS services. AWS profiles are local configurations that select credentials and settings.

In plain words
What is it for?
Use it at the start of AWS or SageMaker tasks. It helps inspect local AWS settings, verify the caller identity, and identify whether access uses single sign-on or an assumed role.
Why use it?
It prevents cloud work from running in the wrong account or region and avoids guessing which credentials are active. It also confirms that the credentials work before continuing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the opencode-power-pack plugin — 54 skills shipped together

Good fit Use it at the start of AWS or SageMaker tasks. It helps inspect local AWS settings, verify the caller identity, and identify whether access uses single sign-on or an assumed role.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/waybarrios/opencode-power-pack/hf-cloud-aws-context-discovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add waybarrios/opencode-power-pack --skill hf-cloud-aws-context-discovery
Clone the repo
git clone --depth 1 https://github.com/waybarrios/opencode-power-pack

Made for: Claude Code.

Or install opencode-power-pack, the plugin that ships this one along with the rest of its 54 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hf-cloud-aws-context-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/waybarrios/opencode-power-pack/hf-cloud-aws-context-discovery.svg)](https://agentmods.dev/skills/waybarrios/opencode-power-pack/hf-cloud-aws-context-discovery)
Your own site
<a href="https://agentmods.dev/skills/waybarrios/opencode-power-pack/hf-cloud-aws-context-discovery"><img src="https://agentmods.dev/badge/skills/waybarrios/opencode-power-pack/hf-cloud-aws-context-discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 854 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00854
Opus 5 $0.00024 $0.00427
Sonnet 5 $0.00010 $0.00171
Haiku 4.5 $0.00005 $0.00085

Measured 8d ago against content hash c78191186bb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

hf-cloud-aws-context-discovery scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

`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
Origin

This is a copy

92% identical to hf-cloud-aws-context-discovery — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/hf-cloud-aws-context-discovery/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on 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:

  1. Region the user explicitly named in this conversation
  2. AWS_REGION env var
  3. AWS_DEFAULT_REGION env var
  4. region field on the active profile in ~/.aws/config
  5. 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.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 76 lines · 49 tokens per session scan C c78191186bb5

Subscribe to this mod's changes

hf-cloud-aws-context-discovery is a skill published in the GitHub repository waybarrios/opencode-power-pack (495 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 854 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). It is 92% identical to hf-cloud-aws-context-discovery, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

shipkit-prompt-audit

Audit LLM prompt pipeline architecture — decomposition, parallelization, chain integrity, schema validation, fallback paths. Finds structural issues no linter catches.

stefan-stepzero/shipkit · 36 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

memstack-seo-ai-search-visibility

Use this skill when the user says 'AI search', 'AI visibility', 'ChatGPT ranking', 'Perplexity optimization', 'GEO', 'generative engine optimization', or needs to optimize content for AI-powered search engines and LLM citations. Do NOT use for traditional SEO audits or Google Ads.

cwinvestments/memstack · 71 tokens

ln-11-plan-reviewer

Reviews an implementation plan against repository evidence before execution; identifies missing decisions and risks. Not for completed-code review.

levnikolaevich/claude-code-skills · 29 tokens

ln-25-persistence-auditor

Audits queries, transactions, data-path costs, and persistence resource lifetimes. Not for general performance tuning.

levnikolaevich/claude-code-skills · 31 tokens

ln-71-system-design-baseline-builder

Creates architecture-driving requirements and constraints before design. Not for target design, plan review, or implementation audits.

levnikolaevich/claude-code-skills · 30 tokens