aws-lambda-handler-cookbook CLAUDE.md

aws-lambda-handler-cookbook CLAUDE.md is an instructions file for coding agents from ran-isenberg/aws-lambda-handler-cookbook. It costs 643 tokens per session, scanned A, original, MIT.

Repository instructions for a Python blueprint for AWS Lambda services, including application code, deployment configuration, automated delivery, documentation, and tests. AWS Lambda is a service that runs code in response to events without managing servers.

In plain words
What is it for?
Use it when changing service code, data models, AWS CDK deployment code, GitHub Actions, documentation, or any of the test types.
Why use it?
It explains the project's layered code structure and points to the rules for handlers, data models, infrastructure, workflows, and tests.

Instructions file

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.

agentmods
npx agentmods add instructions/ran-isenberg/aws-lambda-handler-cookbook/claude-md
Clone the repo
git clone --depth 1 https://github.com/ran-isenberg/aws-lambda-handler-cookbook

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-lambda-handler-cookbook CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ran-isenberg/aws-lambda-handler-cookbook/claude-md.svg)](https://agentmods.dev/instructions/ran-isenberg/aws-lambda-handler-cookbook/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ran-isenberg/aws-lambda-handler-cookbook/claude-md"><img src="https://agentmods.dev/badge/instructions/ran-isenberg/aws-lambda-handler-cookbook/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 643 This file is loaded in full into every session.
When invoked 643 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00643 $0.00643
Opus 5 $0.00321 $0.00321
Sonnet 5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

Measured 5d ago against content hash bbb7b42ca42e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aws-lambda-handler-cookbook CLAUDE.md 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 5d 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.

CLAUDE.md · 41 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code in this repository. Topic rules live in .claude/rules/ and load automatically (path-scoped ones only when you touch matching files).

Project

Production-grade blueprint for AWS Serverless services in Python: a Lambda handler skeleton plus CDK deployment code, a CI/CD pipeline, and tests.

  • Runtime: Python >=3.14, managed with uv. Infra: AWS CDK. Docs: MkDocs → GitHub Pages.

Layout

  • service/ — app code, layered handlers/logic/dal/, with models/ (Pydantic) shared.
  • cdk/ — CDK stacks and constructs (cdk/service/).
  • tests/unit/, integration/, infrastructure/, e2e/.
  • docs/ — documentation and runnable examples.

Rules index

  • .claude/rules/makefile.md — command reference; always use make targets. (loaded every session)
  • .claude/rules/github-actions.md — CI workflows; SHA-pinning. (scoped to .github/workflows/)
  • .claude/rules/service.md — handler/logic/dal layering, Powertools, Pydantic. (scoped to service/)
  • .claude/rules/models.md — Pydantic model conventions and placement. (scoped to service/**/models/)
  • .claude/rules/testing.md — unit / integration / e2e / infra test patterns. (scoped to tests/)
  • .claude/rules/cdk.md — construct and stack structure. (scoped to cdk/)
  • .claude/rules/docs.md — Zensical build, markdownlint, OpenAPI sync. (scoped to docs/)
  • .claude/rules/security.md — secrets, IAM, cdk-nag, WAF, OIDC. (loaded every session)
  • .claude/rules/dependencies.md — uv + npm, make update-deps, audits. (loaded every session)
  • .claude/rules/git-pr.md — Conventional Commits, release bumps, PR labels. (loaded every session)

Planning (plan mode)

  • Explore the relevant service/ layer and its tests before proposing changes; name the files you'll touch.
  • Respect the layering — never move logic into handlers or bypass the DAL.
  • Every behavior change names the suite that covers it and updates/adds tests.
  • Never run cloud-mutating commands while planning or exploringmake deploy/destroy, cdk deploy/destroy, aws …. Planning uses read-only and local commands only.
  • Verify before claiming done: run make lint plus the narrowest relevant suite; report real output.

Read the full file on GitHub · 41 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. 5d ago First seen · 41 lines · 643 tokens per session scan A bbb7b42ca42e

Subscribe to this mod's changes

aws-lambda-handler-cookbook CLAUDE.md is an instructions file published in the GitHub repository ran-isenberg/aws-lambda-handler-cookbook (680 stars, last pushed 26d ago), licensed MIT. It adds 643 tokens to every session, about $0.0032 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.