Repository navigation
Description
Why is this needed?
Coding agents already write a lot of the code that uses this library. They get the API mostly right because the docs are in their training data, and they get the recent things wrong: Circuit Breaker, Kafka, EventBridge Custom Event Bus, Logger buffering, Json[...] with the Parser. They also repeat the patterns we spend review time on: heavy imports at module level, boto3 packaged into the layer, one Idempotency persistence layer shared by two functions.
Agent Skills are the standard answer to this: a SKILL.md with a short description the agent reads at startup, and reference files it loads only when the task needs them. Pydantic ships one for Pydantic AI and documents how to install it from Claude Code, Codex, Cursor and Gemini CLI. We have the raw material already: the docs, llms.txt, and examples/, which is tested code.
Which area does this relate to?
Other
Solution
One skill, in this repository, under .agents/skills/building-lambda-functions-with-powertools-python/, with a copy in .claude/skills/ because Claude Code does not read .agents/:
SKILL.md: when to use it (user mentions Powertools, importsaws_lambda_powertools, or asks for a Lambda handler with logging, tracing, idempotency, batch, API routing), the essential patterns with code taken fromexamples/, and the rules fromdocs/adrthat affect people using the library: lazy imports, never shipboto3in the layer, one persistence layer per function, public layer ARNs.references/: one file per utility, built from the corresponding docs page and examples so they cannot drift. A CI check compares them with the source and fails when they diverge.- A
.claude-plugin/marketplace.jsonat the root so the skill can be installed as a Claude Code plugin straight from this repository.
Installing the skill
Documented in a new docs/getting-started/coding-agent-skills.md page, with a line in the README:
- Claude Code:
claude plugin marketplace add aws-powertools/powertools-lambda-pythonthenclaude plugin install powertools-lambda-python@aws-powertools. Later we can submit it to the official Anthropic marketplace so it becomesclaude plugin install powertools-lambda-python@claude-plugins-official. - Codex, Cursor, Gemini CLI and any agent that follows agentskills.io:
npx skills add aws-powertools/powertools-lambda-python. - Manual: copy the skill directory into the project's
.agents/skills/or.claude/skills/.
Out of scope
Bundling the skill inside the wheel or the Lambda layer (hundreds of KB of markdown in every function, against ADR 0002 and 0004), and a separate skills repository. It lives here, versioned with the code.
Acknowledgment
- This request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsComing soon
Activity
powertools-for-aws-oss-automation commentedon Nov 5, 2026
Warning
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Nov 10, 2026
This is now released under 3.40.0 version!