serverless

serverless is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 13 tokens per session (813 once invoked), scanned A, original, MIT.

A guide to running backend code without managing a continuously running server, using services such as AWS Lambda. It covers deployment, cold starts, infrastructure configuration, and event-driven design.

In plain words
What is it for?
Use it to design Lambda functions, optimize cold starts, configure Terraform infrastructure, and connect API Gateway with services such as DynamoDB.
Why use it?
It helps reduce startup delays, control permissions, and create repeatable deployments for workloads that run on demand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to design Lambda functions, optimize cold starts, configure Terraform infrastructure, and connect API Gateway with services such as DynamoDB.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/serverless
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.

Any agent
npx skills add j4flmao/agent-skills --skill serverless
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

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 serverless

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/serverless"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/serverless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00013 $0.00813
Opus 5 $0.00006 $0.00407
Sonnet 5 $0.00003 $0.00163
Haiku 4.5 $0.00001 $0.00081

Measured 6d ago against content hash 777cbe21c785, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

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 6d 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.

skills/backend/universal/serverless/SKILL.md · 128 lines

How it starts

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

Serverless Mastery

Purpose

Comprehensive serverless architecture management, focusing on AWS Lambda cold-start mitigation, Terraform IaC provisioning, and highly scalable event-driven patterns.

Core Principles

  1. Minimize deployment package size to reduce cold start latency.
  2. Leverage provisioned concurrency for latency-sensitive endpoints.
  3. Optimize execution environments using Graviton and minimal runtimes.
  4. Apply principle of least privilege in IAM roles.
  5. Use Infrastructure as Code (Terraform) for reproducible environments.

Agent Protocol

  • Triggers: "deploy lambda", "optimize cold start"
  • Input Context Required: AWS credentials, source code, traffic patterns
  • Output Artifact: Terraform plan, optimized deployment zip
  • Response Formats:
    {
      "status": "deployed",
      "lambda_arn": "arn:aws:lambda:us-east-1:123456789012:function:my-func",
      "cold_start_est_ms": 120
    }
    

Decision Matrix

Is workload latency-sensitive?
 +-- Yes --> Use Provisioned Concurrency
 +-- No --> Standard on-demand Lambda

Detailed Architectural Overview

[API Gateway] ---> [Lambda Function] ---> [DynamoDB]
                   (Graviton2/Python)

Workflow Steps

Phase 1: Analysis

  1. Inspect source
  2. Identify deps
  3. Measure size
  4. Check limits

Phase 2: Optimization

  1. Strip binaries
  2. Bundle code
  3. Set architecture
  4. Tune memory

Phase 3: IaC Generation

  1. Write main.tf
  2. Define variables.tf
  3. Setup outputs.tf
  4. Provider config

Phase 4: Deployment

  1. terraform init
  2. terraform plan
  3. terraform apply
  4. verify state

Phase 5: Validation

  1. Invoke lambda
  2. Measure latency
  3. Verify logs
  4. End-to-end test

Phase 6: Monitoring

  1. Setup CloudWatch
  2. Create alarms
  3. Dashboard config
  4. Set alerts

Extended Troubleshooting Guide

Symptom Primary Cause Mitigation Action
Timeout Cold start Increase timeout or use provisioned concurrency
Missing Module Bad bundling Check deployment package contents
Access Denied IAM role Attach correct policies
Throttling Concurrency limit Request quota increase
High cost Over-provisioned Tune memory/concurrency
Missing logs CW permissions Add AWSLambdaBasicExecutionRole

Read the full file on GitHub · 128 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. 6d ago First seen · 128 lines · 13 tokens per session scan A 777cbe21c785

Subscribe to this mod's changes

serverless is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 813 once invoked, about $0.0001 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-09-03.