aws-sdk-python-usage

aws-sdk-python-usage is a skill for Claude Code, Codex from XyrusCode/ai-sync. It costs 120 tokens per session (1,937 once invoked), scanned A, a copy of aws-sdk-python-usage, MIT.

A guide to using boto3 and botocore, the Python libraries for connecting to Amazon Web Services. It covers service clients, higher-level resources, credentials, errors, and common AWS operations.

In plain words
What is it for?
Use it when writing Python code that works with services such as Amazon S3, DynamoDB, EC2, or other AWS APIs.
Why use it?
It helps avoid incorrect AWS API usage and gives you consistent patterns for handling responses, credentials, failures, and service-specific operations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing Python code that works with services such as Amazon S3, DynamoDB, EC2, or other AWS APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyruscode/ai-sync/aws-sdk-python-usage
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 XyrusCode/ai-sync --skill aws-sdk-python-usage
Clone the repo
git clone --depth 1 https://github.com/XyrusCode/ai-sync

Made for: Claude Code, Codex.

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 aws-sdk-python-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyruscode/ai-sync/aws-sdk-python-usage/github.svg)](https://agentmods.dev/skills/xyruscode/ai-sync/aws-sdk-python-usage)
Your own site
<a href="https://agentmods.dev/skills/xyruscode/ai-sync/aws-sdk-python-usage"><img src="https://agentmods.dev/badge/skills/xyruscode/ai-sync/aws-sdk-python-usage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aws-sdk-python-usage

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyruscode/ai-sync/aws-sdk-python-usage"><img src="https://agentmods.dev/badge/skills/xyruscode/ai-sync/aws-sdk-python-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% 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.00120 $0.01937
Opus 5.5 $0.00048 $0.00775
Sonnet 5.5 $0.00024 $0.00387
Haiku 4.5 $0.00012 $0.00194

Measured 1mo ago against content hash 1002a37cbb8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aws-sdk-python-usage scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to aws-sdk-python-usage — 11 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/aws-sdk-python-usage/SKILL.md · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Do not use emojis in any code, comments, or output when this skill is active.

AWS SDK for Python (boto3)

boto3 is the high-level Python SDK for AWS. It wraps botocore (the low-level SDK) and provides two distinct interfaces: clients (low-level, 1:1 API mapping) and resources (high-level, object-oriented). Understanding which to use and when is essential.

Client vs Resource

Clients map directly to AWS service APIs. Every service has a client. Responses are plain dicts.

Resources provide an object-oriented interface with attributes and actions. Only some services have resources (S3, DynamoDB, EC2, IAM, SQS, SNS, CloudFormation, CloudWatch, Glacier). Resources auto-marshal types (especially useful for DynamoDB).

import boto3

# Client - low-level, all services
s3_client = boto3.client("s3")
response = s3_client.list_buckets()
buckets = response["Buckets"]  # plain dicts

# Resource - high-level, select services
s3_resource = boto3.resource("s3")
for bucket in s3_resource.buckets.all():
    print(bucket.name)  # attribute access, not dict keys

Use clients when you need full API coverage or the service has no resource interface. Use resources when they exist and simplify your code (especially DynamoDB and S3).

Session and Client Creation

import boto3

# Default session implicitly created
client = boto3.client("s3")
resource = boto3.resource("dynamodb")

# Explicit session use when you need to customize how
# clients are created, use an explicit profile, etc.
session = boto3.Session(
    profile_name="my-profile",
    region_name="us-west-2",
)
client = session.client("s3")

Do not create clients inside loops - reuse a single client instance. Clients are thread safe and can be shared across threads once they're instantiated.

Making API Calls

# Client - pass parameters as keyword arguments, get dicts back
response = client.get_object(Bucket="my-bucket", Key="my-key")
data = response["Body"].read()

# Resource - use object methods and attributes
obj = s3_resource.Object("my-bucket", "my-key")
response = obj.get()
data = response["Body"].read()

Read the full file on GitHub · 268 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 268 lines · 120 tokens per session scan A 1002a37cbb8f

Subscribe to this mod's changes

aws-sdk-python-usage is a skill published in the GitHub repository XyrusCode/ai-sync (2 stars, last pushed 18d ago), licensed MIT. It adds 120 tokens to every session and 1,937 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to aws-sdk-python-usage, differing in 11 lines, and is treated as a copy.

Related

Other skills, from other repositories

hf-cloud-python-env-setup

Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run pip install, when about to invoke boto3, when creating or…

huggingface/skills · 128 tokens

aws-sdk-python-usage

AWS SDK for Python (boto3/botocore) development patterns. You MUST use this skill when writing Python code that uses AWS services via boto3 or botocore. This includes creating service clients or resources, configuring sessions and credentials, handling errors with ClientError, using paginators and waiters, S3 file…

aws/agent-toolkit-for-aws · 120 tokens

azure-storage-blob-py

Client library for Azure Blob Storage — object storage for unstructured data.

benjaminasterA/antigravity-awesome-skills · 0 tokens

azure-storage-file-datalake-py

Hierarchical file system for big data analytics workloads.

benjaminasterA/antigravity-awesome-skills · 0 tokens

azure-storage-file-share-py

Manage SMB file shares for cloud-native and lift-and-shift scenarios.

benjaminasterA/antigravity-awesome-skills · 0 tokens

modal

Use when running Python or GPU workloads serverlessly on Modal — modal.App, inline container Images, gpu= on @app.function, Volumes for weight caching, Cron schedules, ASGI endpoints, modal run vs serve vs deploy. NOT managed prediction APIs with no container of your own (that is replicate); NOT SSH-able GPU boxes…

ericrisco/rsc-harness · 78 tokens