aws-serverless

aws-serverless is a skill for Claude Code, Codex from cgyudistira/agentkit. It costs 45 tokens per session (1,827 once invoked), scanned A, a copy of aws-serverless, MIT.

A guide to building serverless applications on AWS, where services run code and handle infrastructure for you. It covers Lambda, API Gateway, DynamoDB, message queues, deployment tools, and startup performance.

In plain words
What is it for?
Use it to build AWS Lambda functions, HTTP APIs, database-backed services, event-driven systems, scheduled jobs, and deployments with SAM or CDK.
Why use it?
It helps avoid common production problems such as poorly structured function handlers, slow startup, incorrect event handling, and unsafe or inconsistent deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const { getItem } = require('../lib/dynamodb');.

Good fit Use it to build AWS Lambda functions, HTTP APIs, database-backed services, event-driven systems, scheduled jobs, and deployments with SAM or CDK.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/cgyudistira/agentkit
agentmods
npx agentmods add skills/cgyudistira/agentkit/aws-serverless

Made for: Claude Code, Codex.

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-serverless

README.md
[![agentmods](https://agentmods.dev/badge/skills/cgyudistira/agentkit/aws-serverless/github.svg)](https://agentmods.dev/skills/cgyudistira/agentkit/aws-serverless)
Your own site
<a href="https://agentmods.dev/skills/cgyudistira/agentkit/aws-serverless"><img src="https://agentmods.dev/badge/skills/cgyudistira/agentkit/aws-serverless/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.

agentmods 80×15 button for aws-serverless

Your own site · 80×15
<a href="https://agentmods.dev/skills/cgyudistira/agentkit/aws-serverless"><img src="https://agentmods.dev/badge/skills/cgyudistira/agentkit/aws-serverless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.1 $0.00045 $0.01827
Opus 5.5 $0.00018 $0.00731
Sonnet 5.5 $0.00009 $0.00365
Haiku 4.5 $0.00005 $0.00183

Measured 3mo ago against content hash 3deca503480d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aws-serverless 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.

Origin

This is a copy

97% identical to aws-serverless — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/skills/aws-serverless/SKILL.md · 324 lines

How it starts

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

AWS Serverless

Patterns

Lambda Handler Pattern

Proper Lambda function structure with error handling

When to use: ['Any Lambda function implementation', 'API handlers, event processors, scheduled tasks']

```javascript
// Node.js Lambda Handler
// handler.js

// Initialize outside handler (reused across invocations)
const { DynamoDBClient } = require('@aws-sdk/client-dynamodb');
const { DynamoDBDocumentClient, GetCommand } = require('@aws-sdk/lib-dynamodb');

const client = new DynamoDBClient({});
const docClient = DynamoDBDocumentClient.from(client);

// Handler function
exports.handler = async (event, context) => {
  // Optional: Don't wait for event loop to clear (Node.js)
  context.callbackWaitsForEmptyEventLoop = false;

  try {
    // Parse input based on event source
    const body = typeof event.body === 'string'
      ? JSON.parse(event.body)
      : event.body;

    // Business logic
    const result = await processRequest(body);

    // Return API Gateway compatible response
    return {
      statusCode: 200,
      headers: {
        'Content-Type': 'application/json',
        'Access-Control-Allow-Origin': '*'
      },
      body: JSON.stringify(result)
    };
  } catch (error) {
    console.error('Error:', JSON.stringify({
      error: error.message,
      stack: error.stack,
      requestId: context.awsRequestId
    }));

    return {
      statusCode: error.statusCode || 500,
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        error: error.message || 'Internal server error'
      })
    };
  }
};

async function processRequest(data) {
  // Your business logic here
  const result = await docClient.send(new GetCommand({
    TableName: process.env.TABLE_NAME,
    Key: { id: data.id }
  }));
  return result.Item;
}
# Python Lambda Handler
# handler.py

import json
import os
import logging
import boto3
from botocore.exceptions import ClientError

# Initialize outside handler (reused across invocations)
logger = logging.getLogger()
logger.setLevel(logging.INFO)

Read the full file on GitHub · 324 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. 3mo ago First seen · 324 lines · 45 tokens per session scan A 3deca503480d

Subscribe to this mod's changes

aws-serverless is a skill published in the GitHub repository cgyudistira/agentkit (2 stars, last pushed 9mo ago), licensed MIT. It adds 45 tokens to every session and 1,827 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to aws-serverless, differing in 6 lines, and is treated as a copy.

Related

aws-serverless compared with skills from other repositories

aws-serverless next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aws-serverlesscgyudistira/agentkitSkill29mo agoMITA45Claude Code, Codex
alchemy-providerpingdotgg/t3codeSkill89ktodayMITA153Claude Code, Codex
stripe-projectsNousResearch/hermes-agentSkill268ktodayMITA15Claude Code, Codex
django-storages-s3Jeffallan/claude-skillsSkill13kyesterdayMITA138Claude Code
websocket-engineerJeffallan/claude-skillsSkill13kyesterdayMITA36Claude Code
azure-eventhub-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA94Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code