Source profileQuality 92/100

nimadorostkar/Claude-Skills-collection/skills/devops/aws-serverless/SKILL.md

aws-serverless

Use when building serverless systems on AWS. Covers Lambda design, cold starts, event-driven patterns with EventBridge and SQS, idempotency, step functions, and the limits that shape the architecture.

Source repository stars
26
Declared platforms
0
Static risk flags
0
Last source update
2026-08-18
Source checked
2026-08-25

Decision brief

What it does: where it fits

Covers Lambda design, cold starts, event-driven patterns with EventBridge and SQS, idempotency, step functions, and the limits that shape the architecture.

Best for

  • Building event-driven or API workloads on Lambda.
  • Designing an event flow with EventBridge, SQS, or Step Functions.
  • Diagnosing duplicate processing, throttling, or cold-start latency.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill "skills/devops/aws-serverless"
Safe inspection promptEditorial

Inspect the Agent Skill "aws-serverless" from https://github.com/nimadorostkar/Claude-Skills-collection/blob/03f39b7041ec2679255f8d6bb5b18421561821ae/skills/devops/aws-serverless/SKILL.md at commit 03f39b7041ec2679255f8d6bb5b18421561821ae. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow

    1. Assume the function will run twice — SQS is at-least-once. EventBridge is at-least-once. Asynchronous Lambda invocations retry twice by default. Idempotency is not optional. 2. Report partial batch failures — With SQS batches, a single failed message re-delivers the entire ba…

    Assume the function will run twice — SQS is at-least-once. EventBridge is at-least-once. Asynchronous Lambda invocations retry twice by default. Idempotency is not optional.Report partial batch failures — With SQS batches, a single failed message re-delivers the entire batch unless you return batchItemFailures. That is how one poison message causes ten thousand duplicate side effects.Keep the handler thin — Parse the event, call a plain function, map the result. The business logic should be testable without a Lambda context.
  2. 02

    Purpose

    Build serverless systems that handle retries and partial failure correctly. The platform will retry your function; whether that is harmless is entirely your design decision.

    Build serverless systems that handle retries and partial failure correctly. The platform will retry your function; whether that is harmless is entirely your design decision.
  3. 03

    When to Use

    Building event-driven or API workloads on Lambda.

    Building event-driven or API workloads on Lambda.Designing an event flow with EventBridge, SQS, or Step Functions.Diagnosing duplicate processing, throttling, or cold-start latency.
  4. 04

    Capabilities

    Lambda design: handler structure, concurrency, memory tuning, cold starts.

    Lambda design: handler structure, concurrency, memory tuning, cold starts.Event sources: API Gateway, EventBridge, SQS, S3, DynamoDB Streams.Idempotency and partial-batch failure handling.
  5. 05

    Inputs

    The workload shape: request/response, event-driven, or batch.

    The workload shape: request/response, event-driven, or batch.Volume, burstiness, and latency requirements.Whether the operation is naturally idempotent.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars26SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
nimadorostkar/Claude-Skills-collection
Skill path
skills/devops/aws-serverless/SKILL.md
Commit
03f39b7041ec2679255f8d6bb5b18421561821ae
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

AWS Serverless

Purpose

Build serverless systems that handle retries and partial failure correctly. The platform will retry your function; whether that is harmless is entirely your design decision.

When to Use

  • Building event-driven or API workloads on Lambda.
  • Designing an event flow with EventBridge, SQS, or Step Functions.
  • Diagnosing duplicate processing, throttling, or cold-start latency.
  • Deciding whether serverless is the right model at all.

Capabilities

  • Lambda design: handler structure, concurrency, memory tuning, cold starts.
  • Event sources: API Gateway, EventBridge, SQS, S3, DynamoDB Streams.
  • Idempotency and partial-batch failure handling.
  • Orchestration with Step Functions.
  • Cost and limit awareness.

Inputs

  • The workload shape: request/response, event-driven, or batch.
  • Volume, burstiness, and latency requirements.
  • Whether the operation is naturally idempotent.

Outputs

  • Handlers that are safe under at-least-once delivery.
  • Explicit DLQs and retry configuration on every asynchronous source.
  • A concurrency and memory configuration chosen by measurement.

Workflow

  1. Assume the function will run twice — SQS is at-least-once. EventBridge is at-least-once. Asynchronous Lambda invocations retry twice by default. Idempotency is not optional.
  2. Report partial batch failures — With SQS batches, a single failed message re-delivers the entire batch unless you return batchItemFailures. That is how one poison message causes ten thousand duplicate side effects.
  3. Keep the handler thin — Parse the event, call a plain function, map the result. The business logic should be testable without a Lambda context.
  4. Initialize outside the handler — Database clients, SDK clients, and config are reused across warm invocations. Creating them per invocation is a per-request cost you pay forever.
  5. Tune memory by measurement — Memory determines CPU. A function at 1024 MB often finishes in a third of the time of one at 256 MB, for the same or lower total cost.
  6. Set the DLQ and the alarm — An asynchronous function without a DLQ silently discards events after its retries. You will not know.

Best Practices

  • reportBatchItemFailures on every SQS event-source mapping. Without it, one bad message in a batch of ten reprocesses the nine good ones on every retry.
  • Set maximumConcurrency on the SQS event source, or a busy queue will scale Lambda until it exhausts your database connections.
  • Reserved concurrency protects the rest of the account from one function's burst. Provisioned concurrency eliminates cold starts and costs money continuously — use it only on latency-critical paths.
  • A Lambda in a VPC that needs internet access requires a NAT gateway. That is an hourly charge and a bandwidth charge for what looked like a free architecture.
  • Step Functions is the right tool when a workflow has retries, branches, waits, or human approval. Orchestrating that in Lambda code means reimplementing a state machine, badly.
  • Do not use Lambda for long-running or steady high-throughput work. At sustained load, a container on Fargate or ECS is usually both cheaper and faster.

Examples

SQS handler: partial batch failure plus idempotency:

export const handler = async (event: SQSEvent): Promise<SQSBatchResponse> => {
  const batchItemFailures: SQSBatchItemFailure[] = [];

  for (const record of event.Records) {
    try {
      const order = JSON.parse(record.body) as OrderPlaced;

      // Conditional write: the second delivery of the same event is a no-op.
      await ddb.send(new PutItemCommand({
        TableName: PROCESSED_TABLE,
        Item: { pk: { S: `event#${order.eventId}` }, ttl: { N: String(ttl(14)) } },
        ConditionExpression: "attribute_not_exists(pk)",
      }));

      await fulfil(order);
    } catch (err) {
      if (err instanceof ConditionalCheckFailedException) {
        continue;                                    // already processed: succeed silently
      }
      // Fail only this message. The rest of the batch is acknowledged.
      batchItemFailures.push({ itemIdentifier: record.messageId });
      console.error("processing failed", { messageId: record.messageId, err });
    }
  }

  return { batchItemFailures };
};

Retries and DLQ declared, not assumed:

Resources:
  OrdersQueue:
    Type: AWS::SQS::Queue
    Properties:
      VisibilityTimeout: 180              # >= 6x the function timeout
      RedrivePolicy:
        deadLetterTargetArn: !GetAtt OrdersDlq.Arn
        maxReceiveCount: 5                # then it stops retrying and lands in the DLQ

Notes

  • SQS visibility timeout must be at least six times the Lambda timeout, or a slow invocation will cause the message to be re-delivered while it is still being processed — producing exactly the duplicate you were trying to avoid.
  • Lambda's default asynchronous retry is two attempts with no DLQ configured by default. Events that fail three times simply vanish.
  • The AWS Lambda Powertools libraries provide idempotency, batch processing, tracing, and structured logging as tested primitives. Reimplementing them by hand is a common and unnecessary source of bugs.

Frequently asked questions

What to verify before installation and use

What does the aws-serverless source document cover?

Covers Lambda design, cold starts, event-driven patterns with EventBridge and SQS, idempotency, step functions, and the limits that shape the architecture.

How do I install aws-serverless?

The source record exposes this install command: npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill "skills/devops/aws-serverless". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10014,671

prowler-cloud/prowler

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance

Computed 100147

oaustegard/claude-skills

featuring

Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre

Computed 9931,651

HKUDS/Vibe-Trading

strategy-generate

Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

Computed 9980

vasilyu1983/AI-Agents-public

qa-testing-ios

Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.