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.
npx skills add j4flmao/agent-skills --skill serverless-cold-startsgit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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.
[](https://agentmods.dev/skills/j4flmao/agent-skills/serverless-cold-starts)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 Durationdistribution 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)
- Environment creation — Firecracker microVM, code download (ZIP from S3 or container image chunks lazily loaded and cached).
- Runtime init — start Node.js/Python/JVM/.NET; extensions start.
- Function init — module-level code: imports, SDK clients, config fetch, DB connections.
- Invoke — handler.
CloudWatch
REPORTlines showInit Durationonly 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)
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.
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.
- 14d ago Changed · +1 lines 6e12356084cb
- 15d ago Changed · -53 tokens per session d7a547dcc54f
- 1mo ago Changed · +112 lines · +136 tokens per session 750a42055329
- 3mo ago First seen · 27 lines · 0 tokens per session scan A 44c398d02610
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.
cloud-native-serverless-cold-starts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloud-native-serverless-cold-startsj4flmao/agent-skills | Skill | 47 | 15d ago | MIT | A | 83 | Claude Code, Codex |
| serverless-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 58 | Claude Code |
| openapi-to-apigw-transformaws-samples/serverless-samples | Skill | 353 | yesterday | MIT-0 | A | 109 | Claude Code, Codex |
| gcp-cloud-runmartineserios/thebrana | Skill | 3 | yesterday | MIT | D | 45 | Claude Code |
| serverlesswilliamzujkowski/standards | Skill | 23 | 3mo ago | MIT | A | 5 | Claude Code, Codex |
| gcp-essentialsericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 91 | Claude Code, Codex |
| architecture-paradigm-serverlessathola/claude-night-market | Skill | 358 | 2d ago | MIT | A | 31 | Claude Code |