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.
git clone --depth 1 https://github.com/jimmypocock/cursor-rulesWrote 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.
[](https://agentmods.dev/rules/jimmypocock/cursor-rules/aws-lambda)<a href="https://agentmods.dev/rules/jimmypocock/cursor-rules/aws-lambda"><img src="https://agentmods.dev/badge/rules/jimmypocock/cursor-rules/aws-lambda/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.
<a href="https://agentmods.dev/rules/jimmypocock/cursor-rules/aws-lambda"><img src="https://agentmods.dev/badge/rules/jimmypocock/cursor-rules/aws-lambda.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00005 | $0.00892 |
| Opus 5.5 | $0.00002 | $0.00357 |
| Sonnet 5.5 | $0.00001 | $0.00178 |
| Haiku 4.5 | $0.00001 | $0.00089 |
Grade A, and why
aws-lambda 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Description: AWS Lambda Function Best Practices Globs: /lambda//.ts, /functions//.ts, /src//.ts, /lambda//.py, /functions//.py, /src//.py
AWS Lambda Development Standards
@base.mdc @typescript.mdc
Lambda Function Design
- Follow single responsibility principle for each Lambda function
- Keep functions focused on one specific task or domain operation
- Separate business logic from infrastructure concerns
- Create pure functions where possible for easier testing
- Implement idempotent functions to handle retries safely
- Design functions to be stateless
- Avoid long-running processes; break them into smaller steps
Handler Structure
- Keep handlers thin, delegating to service or business logic layers
- Validate input parameters early in the function
- Return properly structured responses
- Add custom context to errors for better debugging
- Follow these layers in Lambda implementation:
- Handler layer (entry point)
- Service layer (business logic)
- Data access layer (repository pattern)
- External service integrations
Performance Optimization
- Initialize SDK clients and database connections outside the handler
- Cache static assets and reference data between invocations
- Implement connection pooling for database access
- Utilize provisioned concurrency for latency-sensitive functions
- Set appropriate memory allocation based on function needs
- Use environment variables for configuration
- Implement backoff strategies for external service calls
- Leverage AWS SDK client reuse whenever possible
Cold Start Mitigation
- Keep function code and dependencies lightweight
- Use AWS Lambda Layers for large dependencies
- Use provisioned concurrency for critical paths
- Implement warmup mechanisms for important functions
- Consider using NodeJS or native runtime for faster cold starts
- Choose appropriate memory settings to balance CPU/memory needs
- Set reasonable function timeouts
Error Handling
- Implement comprehensive error handling and logging
- Add context information to errors
- Use structured logging with correlation IDs
- Distinguish between client errors (4xx) and server errors (5xx)
- Use try/catch blocks with specific error types
- Handle retries with exponential backoff
- Consider implementing circuit breakers for external services
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.
- 3mo ago First seen · 114 lines · 5 tokens per session scan A 93ce70ed7edd
aws-lambda is a cursor rule published in the GitHub repository jimmypocock/cursor-rules (8 stars, last pushed 1y ago), licensed MIT. It adds 5 tokens to every session and 892 once invoked, about $0.0000 per session on Opus 5.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-31.
aws-lambda compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aws-lambdajimmypocock/cursor-rules | Cursor rule | 8 | 1y ago | MIT | A | 5 | Cursor |
| supabase-edgeshipkit-io/bones | Cursor rule | 21 | today | none | A | 0 | Cursor |
| 90-devops-deploymentaiagentwithdhruv/ai-dev-stack | Cursor rule | 11 | 5mo ago | MIT | A | 0 | Cursor |
| 00-global-architectaiagentwithdhruv/ai-dev-stack | Cursor rule | 11 | 5mo ago | MIT | A | 334 | Cursor |
| 55-data-model-versioningaiagentwithdhruv/ai-dev-stack | Cursor rule | 11 | 5mo ago | MIT | A | 0 | Cursor |
| 85-error-observabilityaiagentwithdhruv/ai-dev-stack | Cursor rule | 11 | 5mo ago | MIT | A | 349 | Cursor |
| 30-database-postgresaiagentwithdhruv/ai-dev-stack | Cursor rule | 11 | 5mo ago | MIT | A | 0 | Cursor |