aws avatar

Aws Sdk Python Usage

This one loads when you import boto3 or botocore, giving Claude the patterns for AWS SDK Python development. It covers the client versus resource decision (which matters more than you'd think, especially for DynamoDB), proper error handling with typed exceptions instead of string matching on ClientError, pagination with JMESPath searches, and service-specific APIs for S3 and DynamoDB. The most useful bit is probably the insistence on letting exceptions propagate instead of catching and swallowing them, and keeping sys.exit calls out of business logic. Solid for anyone writing AWS automation scripts or Lambda functions in Python.

skills.sh installs
8.3K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-sdk-python-usage --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
Documentation, AI & Agent Building, Python, Cloud & Infrastructure, Databases
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 56
1jeffallan avatarpostgres-projeffallan/claude-skillsUse when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, exte8.2Kskills.sh installs
2imbad0202 avatardeep-researchimbad0202/academic-research-skillsUniversal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review8Kskills.sh installs
3antonbabenko avatarterraform-skillantonbabenko/terraform-skillUse when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast ra7.9Kskills.sh installs
4google avataragent-platform-alert-configurationgoogle/skillsConfigures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics. Use when analyzing, writing, or deploying alerting policies to moni7.8Kskills.sh installs
5manaflow-ai avatarcmux-markdownmanaflow-ai/cmuxOpen markdown files in a formatted viewer panel with live reload. Use when you need to display plans, documentation, or notes alongside the terminal with rich r7.8Kskills.sh installs
6oxc-project avatarmigrate-oxlintoxc-project/oxcGuide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlin7.8Kskills.sh installs