Skip to content

Maintenance: ship an Agent Skill for building Lambda functions with Powertools for AWS Lambda (Python) #8744

Closed

Description

@leandrodamascena

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, imports aws_lambda_powertools, or asks for a Lambda handler with logging, tracing, idempotency, batch, API routing), the essential patterns with code taken from examples/, and the rules from docs/adr that affect people using the library: lazy imports, never ship boto3 in 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.json at 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-python then claude plugin install powertools-lambda-python@aws-powertools. Later we can submit it to the official Anthropic marketplace so it becomes claude 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

Activity

  1. added
    documentation
    internal
    on Nov 2, 2026
  2. powertools-for-aws-oss-automation commented on Nov 5, 2026

    @powertools-for-aws-oss-automation

    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.

  3. added
    pending-release
    on Nov 5, 2026
  4. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    This is now released under 3.40.0 version!

  5. removed
    pending-release
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationinternal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions