cloud-native-serverless-cold-starts

cloud-native-serverless-cold-starts is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 83 tokens per session (1,764 once invoked), scanned A, original, MIT.

A guide to reducing serverless cold starts: the delay while a cloud function, such as AWS Lambda or Azure Functions, creates and prepares a new execution environment.

In plain words
What is it for?
Use it to optimize serverless function startup, choose runtime settings, and balance latency against cloud spending.
Why use it?
It helps explain why the first request can be slower and how startup work, dependencies, connections, and pre-warmed environments affect response time and cost.

Skill for Claude CodeCodex

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

Good fit Use it to optimize serverless function startup, choose runtime settings, and balance latency against cloud spending.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/serverless-cold-starts"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/serverless-cold-starts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,764 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 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.00083 $0.01764
Opus 5.5 $0.00033 $0.00706
Sonnet 5.5 $0.00017 $0.00353
Haiku 4.5 $0.00008 $0.00176

Measured 14d ago against content hash 6e12356084cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-native-serverless-cold-starts 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 14d 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/cloud-native/serverless-cold-starts/SKILL.md · 140 lines

How it starts

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

Serverless Cold Starts

Purpose

A cold start happens when a request needs a new execution environment. Its cost is environment creation + runtime start + your init code. Measure which part dominates, then apply the cheapest fix: smaller init, faster runtime packaging, snapshotting, or paying for pre-warmed capacity.

Agent Protocol

Trigger

"cold start", "init duration", "provisioned concurrency", "SnapStart", "optimize serverless startup", "GraalVM native", "min instances", "Azure Functions cold start", "Cloud Run cold start".

Input Context

  • Platform/runtime, package size, memory setting, VPC attachment.
  • Latency SLO (p99) and traffic pattern (steady vs spiky vs idle for long periods).
  • Current Init Duration distribution and cold-start rate.

Output Artifact

Diagnosis + prioritized changes (code/IaC). No file unless requested.

Response Format

Cold-start rate: {%} | p99 Init Duration: {ms}
Dominant cost: {runtime boot|dependency loading|network setup|package size}
Fixes (ordered by cost/impact): 1) ... 2) ...
Pre-warmed capacity: {none|SnapStart|provisioned N|min instances N} (cost note)

Completion Criteria

  • Measured before and after (Init Duration from REPORT logs / X-Ray / OTel).
  • Code-level fixes attempted before paying for provisioned capacity.

Anatomy (AWS Lambda)

  1. Environment creation — Firecracker microVM, code download (ZIP from S3 or container image chunks lazily loaded and cached).
  2. Runtime init — start Node.js/Python/JVM/.NET; extensions start.
  3. Function init — module-level code: imports, SDK clients, config fetch, DB connections.
  4. Invoke — handler. CloudWatch REPORT lines show Init Duration only on cold starts. Since 1 August 2025, INIT is billed for all on-demand configurations (previously free for ZIP managed runtimes), so slow init now costs money too.

Find cold starts with Logs Insights:

filter @type = "REPORT"
| stats count(*) as invocations, count(@initDuration) as coldStarts,
        pct(@initDuration, 99) as p99Init, avg(@initDuration) as avgInit by bin(1h)

Read the full file on GitHub · 140 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed · +1 lines 6e12356084cb
  2. 15d ago Changed · -53 tokens per session d7a547dcc54f
  3. 1mo ago Changed · +112 lines · +136 tokens per session 750a42055329
  4. 3mo ago First seen · 27 lines · 0 tokens per session scan A 44c398d02610

Subscribe to this mod's changes

cloud-native-serverless-cold-starts is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 15d ago), licensed MIT. It adds 83 tokens to every session and 1,764 once invoked, about $0.0003 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-09-03.

Related

cloud-native-serverless-cold-starts compared with skills from other repositories

cloud-native-serverless-cold-starts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-native-serverless-cold-startsj4flmao/agent-skillsSkill4715d agoMITA83Claude Code, Codex
serverless-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A58Claude Code
openapi-to-apigw-transformaws-samples/serverless-samplesSkill353yesterdayMIT-0A109Claude Code, Codex
gcp-cloud-runmartineserios/thebranaSkill3yesterdayMITD45Claude Code
serverlesswilliamzujkowski/standardsSkill233mo agoMITA5Claude Code, Codex
gcp-essentialsericrisco/rsc-harnessSkill695yesterdayMITA91Claude Code, Codex
architecture-paradigm-serverlessathola/claude-night-marketSkill3582d agoMITA31Claude Code