Index of every page on this site: llms.txt
All skills
jd-solanki avatar

/aws-best-practices

@372cfb1
by JD Solankijd-solanki/ai6 stars
2
Run it yourself

AWS service-specific best practices and configuration rules. Use when making decisions about RDS environment isolation, SSM Parameter Store, SQS consumer types, Lambda function structure, or SAM template conventions.

Use this Skill: https://skilld.dev/gh/jd-solanki/ai/aws-best-practices

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SQS.md

≈341 tokens on demand. Your agent reads this file only when SKILL.md points to it.

SQS Best Practices

Consumer Types — Use TypedDicts

Always type SQS Lambda handlers with TypedDicts. Never pass raw dict through the handler boundary — typed records catch missing keys early and make handler signatures self-documenting.

Define the following types in your shared layer so every SQS consumer uses the same definitions:

from typing import TypedDict


class SQSRecord(TypedDict):
    messageId: str
    body: str
    receiptHandle: str


class SQSEvent(TypedDict):
    Records: list[SQSRecord]


class SQSBatchItemFailure(TypedDict):
    itemIdentifier: str


class SQSBatchResponse(TypedDict):
    batchItemFailures: list[SQSBatchItemFailure]
Type Use
SQSEvent event parameter of the Lambda handler
SQSRecord Individual record from event["Records"]
SQSBatchItemFailure One failed message identifier in a partial batch response
SQSBatchResponse Return type of the handler — contains batchItemFailures list

See LAMBDA.md for the full handler pattern including batchItemFailures and process_record().

TIP: If you are following microservice architecture, place these types in the shared layer of your shared/ microservice so all other microservices can import them. See MICROSERVICE_ARCHITECTURE.md for details.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides architectural guidance and reusable templates for AWS services, focusing on security best practices like environment isolation and runtime secret fetching. No malicious patterns or security risks were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 372cfb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 3 months ago

README badge

README badge for jd-solanki/ai/aws-best-practices